/* AC Milan Club Albania — Light Modern UI */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --red: #AC0000;
    --red-dark: #8B0000;
    --red-light: #FFF1F1;
    --red-soft: #FFD6D6;
    --black: #111111;
    --text: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --bg: #F5F5F5;
    --bg-alt: #FFFFFF;
    --border: #E5E5E5;
    --border-light: #EEEEEE;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 8px 28px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(172,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.font-display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.04em; }

/* ── Typography ── */
.gradient-text {
    color: var(--red);
    background: none;
    -webkit-text-fill-color: unset;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.75rem;
    letter-spacing: 0.04em;
    color: var(--black);
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.page-header {
    position: relative;
    background:
        radial-gradient(ellipse 80% 90% at 50% -30%, rgba(224, 7, 26, 0.1) 0%, transparent 58%),
        linear-gradient(180deg, #fff 0%, #faf7f7 100%);
    padding: 3.25rem 0 2.6rem;
    margin-bottom: 2.25rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(224, 7, 26, 0.1);
    text-align: center;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(224, 7, 26, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 7, 26, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 20%, transparent 75%);
    pointer-events: none;
    opacity: 0.7;
}
.page-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(220px, 40%);
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.page-header .container {
    position: relative;
    z-index: 1;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.page-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin: 0 0 1.1rem;
    padding: 0;
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: none;
    border: none;
    transition: color 0.15s ease;
}
.page-back-arrow {
    font-size: 1.15em;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--red);
    transition: transform 0.15s ease, color 0.15s ease;
}
.page-back:hover {
    color: var(--red);
}
.page-back:hover .page-back-arrow {
    color: var(--black);
    transform: translateX(-4px);
}
.page-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.7rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(224, 7, 26, 0.08);
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.page-header-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(224, 7, 26, 0.15);
}
.page-header .section-title,
.page-header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 7vw, 3.6rem);
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--black);
    margin: 0;
}
.page-header .section-subtitle,
.page-header-sub {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    margin: 0.75rem 0 0;
    max-width: 34rem;
    line-height: 1.55;
    font-weight: 500;
}
.page-header-mark {
    margin-top: 1.1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.06em;
    line-height: 1;
}
.page-header-mark .hash,
.page-header-mark .milan { color: var(--red); }
.page-header-mark .sempre { color: #111; }

/* ── Buttons ── */
.btn-milan {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--red);
    color: #fff;
    font-weight: 700; font-size: 0.9rem;
    border-radius: 6px; border: none; cursor: pointer;
    text-decoration: none; transition: all 0.25s ease;
    box-shadow: none;
}
.btn-milan:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(172,0,0,0.35);
    color: #fff;
}

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--red); color: var(--red);
    font-weight: 700; font-size: 0.9rem;
    border-radius: 6px; background: transparent; cursor: pointer;
    text-decoration: none; transition: all 0.25s ease;
}
.btn-outline:hover { background: var(--red); color: #fff; transform: translateY(-1px); }

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.5rem 1.25rem;
    color: var(--text); font-weight: 600; font-size: 0.875rem;
    border-radius: 6px; background: transparent;
    border: 1.5px solid var(--border); cursor: pointer;
    text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ── Cards ── */
.card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}
a.card:hover,
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(224,7,26,0.15);
}

.card-hover {
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-soft);
}

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ── Forms ── */
.input-field {
    width: 100%;
    padding: 0.8rem 1.1rem;
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--black);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(224,7,26,0.12);
}
.input-field::placeholder { color: var(--text-light); }

select.input-field { cursor: pointer; }
textarea.input-field { resize: vertical; min-height: 100px; }

#posts-results {
    transition: opacity 0.2s ease;
}
#posts-results.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Posts filters */
.posts-toolbar {
    margin-bottom: 1.25rem;
}
.posts-filters-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 0.7rem 0.95rem 0.8rem;
    box-shadow: 0 6px 18px rgba(17, 17, 17, 0.04);
    overflow: visible;
}
.posts-filters-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
}
.posts-filters-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(240px, 1.35fr);
    gap: 0.75rem;
    align-items: end;
}
.posts-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.posts-field-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    padding-left: 0.1rem;
}
.posts-field-control {
    position: relative;
    display: flex;
    align-items: center;
}
.posts-field-icon {
    position: absolute;
    left: 0.75rem;
    z-index: 1;
    color: var(--red);
    display: flex;
    pointer-events: none;
    opacity: 0.9;
}
.posts-field-icon svg {
    width: 15px;
    height: 15px;
}
.posts-field-caret {
    position: absolute;
    right: 0.75rem;
    z-index: 1;
    color: var(--text-muted);
    display: flex;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
}
.posts-field-input {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid #E8E8E8;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: 10px;
    padding: 0.5rem 2.2rem 0.5rem 2.25rem;
    min-height: 38px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.posts-field-input::placeholder {
    color: #A3A3A3;
    font-weight: 500;
}
.posts-field-input:hover {
    border-color: #D6D6D6;
    background: #fff;
}
.posts-field-control:focus-within .posts-field-input,
.posts-field-input:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(172, 0, 0, 0.1), 0 4px 12px rgba(172, 0, 0, 0.05);
}
.posts-field-control:focus-within .posts-field-icon {
    color: var(--red-dark);
}
.posts-field-control:focus-within .posts-field-caret,
.posts-dropdown.is-open .posts-field-caret {
    color: var(--red);
    transform: rotate(180deg);
}
.posts-search-wrap { width: 100%; }

/* Custom category dropdown */
.posts-dropdown {
    position: relative;
}
.posts-dropdown-toggle {
    width: 100%;
    min-height: 38px;
    border: 1.5px solid #E8E8E8;
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFA 100%);
    border-radius: 10px;
    padding: 0.45rem 2.2rem 0.45rem 2.25rem;
    cursor: pointer;
    text-align: left;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.posts-dropdown-toggle:hover {
    border-color: #D6D6D6;
    background: #fff;
}
.posts-dropdown.is-open .posts-dropdown-toggle,
.posts-dropdown-toggle:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(172, 0, 0, 0.1), 0 4px 12px rgba(172, 0, 0, 0.05);
}
.posts-dropdown-value {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}
.posts-dropdown-text {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.posts-dropdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
}
.posts-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 40;
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 16px;
    padding: 0.45rem;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
    max-height: 320px;
    overflow-y: auto;
    animation: posts-drop-in 0.18s ease;
}
.posts-dropdown-menu[hidden] { display: none; }
@keyframes posts-drop-in {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.posts-dropdown-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.15s ease, transform 0.15s ease;
}
.posts-dropdown-option:hover {
    background: #F7F7F7;
}
.posts-dropdown-option.is-selected {
    background: var(--red-light);
}
.posts-dropdown-option-left {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.posts-dropdown-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}
.posts-dropdown-option-text strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.25;
}
.posts-dropdown-option-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}
.posts-dropdown-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    background: #F0F0F0;
    border-radius: 999px;
    min-width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
}
.posts-dropdown-option.is-selected .posts-dropdown-count {
    display: none;
}
.posts-dropdown-check {
    display: none;
    color: var(--red);
    font-weight: 800;
    font-size: 0.95rem;
}
.posts-dropdown-option.is-selected .posts-dropdown-check {
    display: inline-flex;
}
.posts-cat-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

@media (max-width: 767px) {
    .posts-filters-card {
        padding: 0.65rem 0.8rem 0.75rem;
        border-radius: 12px;
    }
    .posts-filters-row {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }
    .posts-field-input,
    .posts-dropdown-toggle {
        min-height: 42px;
        font-size: 0.92rem;
        border-radius: 10px;
    }
    .posts-field-input { padding-left: 2.35rem; }
    .posts-field-icon { left: 0.8rem; }
    .posts-field-caret { right: 0.8rem; }
    .posts-dropdown-menu {
        max-height: 55vh;
        border-radius: 12px;
    }
    .posts-dropdown-option {
        padding: 0.85rem 0.8rem;
    }
}

/* ── Milan accents (no stripes) ── */
.milan-stripes-bar { display: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── Navbar — clean like acmilan.com ── */
.site-nav {
    position: relative;
    background: #111111;
    border-bottom: none;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}
.site-nav::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    z-index: 2;
    background: var(--red);
}
.site-nav::after { display: none; }
.site-nav .nav-inner,
.site-nav .mobile-menu {
    position: relative;
    z-index: 1;
}
.site-nav.scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.site-nav.scrolled .nav-inner { height: 64px; }
.site-nav.scrolled .nav-logo-img { width: 46px; height: 46px; }

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    transition: height 0.35s ease;
}

.nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: #fff;
}
.nav-logo-img {
    width: 48px; height: 48px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.25s ease, width 0.35s ease, height 0.35s ease;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.05); }
.nav-logo-icon {
    width: 44px; height: 44px;
    background: var(--red);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: #fff;
}
.nav-logo:hover .nav-logo-icon { transform: scale(1.04); }
.nav-logo-text { line-height: 1.15; }
.nav-logo-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    color: #fff;
}
.nav-logo-sub {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    background: none;
    padding: 0;
    border: none;
}
.nav-link {
    padding: 0.5rem 0.95rem;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    box-shadow: none;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.nav-link-active {
    color: #fff;
    background: var(--red);
    box-shadow: none;
}
.nav-link-active:hover {
    color: #fff;
    background: var(--red-dark);
}

.nav-user { display: flex; align-items: center; gap: 0.65rem; }
.nav-user-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 0.4rem 0.85rem;
}
.nav-username {
    font-size: 0.82rem;
    color: #fff;
    font-weight: 700;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-admin-badge {
    background: var(--red); color: #fff;
    font-size: 0.7rem; font-weight: 700;
    padding: 0.25rem 0.75rem; border-radius: 6px;
    text-decoration: none; transition: background 0.2s;
    border: none;
}
.nav-admin-badge:hover { background: #fff; color: var(--red); }

.site-nav .btn-ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    background: transparent;
    border-radius: 6px;
}
.site-nav .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}
.site-nav .btn-milan {
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    box-shadow: none;
}
.site-nav .btn-milan:hover {
    background: var(--red-dark);
    color: #fff;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 0.45rem;
    color: #fff;
}

.mobile-menu {
    display: none;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 32px rgba(0,0,0,0.35);
    animation: menu-slide 0.3s ease;
}
@keyframes menu-slide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-menu.open { display: block; }
.mobile-menu-inner { padding: 1rem 1.5rem 1.25rem; }
.mobile-menu .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    margin-bottom: 0.35rem;
    border-radius: 6px;
    color: rgba(255,255,255,0.8);
    background: transparent;
    border: none;
}
.mobile-menu .nav-link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.mobile-menu .nav-link-active {
    background: var(--red);
    color: #fff;
}
.mobile-menu .nav-user-chip {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.12);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(172,0,0,0.08) 0%, transparent 65%);
    pointer-events: none;
}
.hero::after { display: none; }
.hero-stripe { display: none; }
.hero-content {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 4.5rem;
    text-align: center;
    z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.9);
    color: var(--red);
    font-size: 0.78rem; font-weight: 700;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--red-soft);
    box-shadow: 0 4px 16px rgba(224,7,26,0.12);
}
.hero-logo-img {
    width: 160px; height: 160px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
    filter: drop-shadow(0 12px 40px rgba(224,7,26,0.3));
}
.hero-logo {
    width: 100px; height: 100px;
    background: var(--red);
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem; color: #fff;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 32px rgba(224,7,26,0.4);
    animation: float 4s ease-in-out infinite;
}
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    letter-spacing: 0.04em;
    color: var(--black);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.hero-title span { color: var(--red); }
.hero-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Hero kompakt (legacy) */
.hero-compact .hero-content { padding: 3rem 1.5rem 2.5rem; }
.hero-compact .hero-logo-img { width: 72px; height: 72px; margin-bottom: 1rem; }
.hero-compact .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); }
.hero-compact .hero-desc { margin-bottom: 1.5rem; }

/* ── News top: karusel + listë ── */
.news-top {
    position: relative;
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%, rgba(224,7,26,0.06) 0%, transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    padding: 2rem 0 2.5rem;
}
.news-top-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.news-top-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.25rem;
}
.news-top-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.85rem, 4vw, 2.4rem);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0;
}
.news-top-heading span { color: var(--red); }
.news-top-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}
.news-top-all:hover { text-decoration: underline; }
.news-top-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.15rem;
    align-items: stretch;
}
.news-top-grid--list-only {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
}
.news-top-grid--carousel-only {
    grid-template-columns: 1fr;
}
.news-carousel-panel { min-width: 0; }
.news-carousel-viewport {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--black);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}
.news-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.news-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    z-index: 1;
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}
.news-carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}
.news-carousel-bg { position: absolute; inset: 0; }
.news-carousel-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.03);
    transition: transform 6.5s ease;
}
.news-carousel-slide.is-active .news-carousel-bg img {
    transform: scale(1);
}
.news-carousel-bg-fallback {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 50%, #AC0000 160%);
}
.news-carousel-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.05) 15%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.88) 100%),
        linear-gradient(90deg, rgba(224,7,26,0.18) 0%, transparent 45%);
}
.news-carousel-content {
    position: absolute; left: 0; right: 0; bottom: 0;
    z-index: 2;
    padding: 1.25rem 1.35rem 2.6rem;
}
.news-carousel-badge {
    display: inline-block;
    font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    margin-bottom: 0.55rem;
    box-shadow: 0 4px 14px rgba(224,7,26,0.35);
}
.news-carousel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    letter-spacing: 0.03em;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 0.4rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.news-carousel-meta {
    font-size: 0.75rem; font-weight: 600;
    color: rgba(255,255,255,0.72);
}
.news-carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10;
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.55));
}
.news-carousel-arrow svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.8;
}
@media (hover: hover) and (pointer: fine) {
    .news-carousel-viewport:hover .news-carousel-arrow {
        opacity: 1;
        pointer-events: auto;
    }
    .news-carousel-arrow:hover {
        color: var(--red);
        transform: translateY(-50%) scale(1.12);
    }
}
.news-carousel-prev { left: 0.35rem; }
.news-carousel-next { right: 0.35rem; }
@media (hover: none), (pointer: coarse) {
    .news-carousel-arrow { display: none; }
}
.news-carousel-dots {
    position: absolute; bottom: 0.85rem; left: 50%; transform: translateX(-50%);
    z-index: 10;
    display: flex; gap: 0.4rem;
}
.news-carousel-dot {
    width: 7px; height: 7px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}
.news-carousel-dot.is-active {
    background: #fff;
    width: 22px;
    box-shadow: 0 0 0 2px rgba(224,7,26,0.55);
}
.news-list-panel {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 1rem 0.65rem 0.65rem;
    display: flex;
    flex-direction: column;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(0,0,0,0.06);
    backdrop-filter: blur(8px);
}

/* Flash list panel */
.flash-list-panel {
    padding: 0;
    background:
        linear-gradient(180deg, rgba(224,7,26,0.06) 0%, rgba(255,255,255,0) 72px),
        #fff;
    border: 1px solid rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
}
.flash-list-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0%, #111 50%, var(--red) 100%);
    background-size: 200% 100%;
    z-index: 2;
}
.flash-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.85rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.flash-list-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}
.flash-list-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, var(--red), #7a0000);
    box-shadow: 0 4px 12px rgba(224,7,26,0.28);
    flex-shrink: 0;
}
.flash-list-heading h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
}
.flash-list-all {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(224,7,26,0.08);
    transition: background 0.15s ease, color 0.15s ease;
}
.flash-list-all:hover {
    background: rgba(224,7,26,0.14);
    text-decoration: none;
}
.flash-list {
    list-style: none;
    margin: 0;
    padding: 0.55rem 0.55rem 0.65rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(224,7,26,0.25) transparent;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.flash-list::-webkit-scrollbar { width: 4px; }
.flash-list::-webkit-scrollbar-thumb {
    background: rgba(224,7,26,0.28);
    border-radius: 999px;
}
.flash-list-item {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 0.7rem 0.8rem 0.7rem 0.95rem;
    overflow: hidden;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.flash-list-item-accent {
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--red);
    opacity: 0.55;
    transition: opacity 0.18s ease, height 0.18s ease;
}
.flash-list-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}
.flash-list-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.flash-list-item-badge {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(224,7,26,0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
}
.flash-list-item-time {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}
.flash-list-item-title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}
.flash-list-item-title {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.flash-list-item-arrow {
    flex-shrink: 0;
    color: var(--red);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    transition: transform 0.18s ease;
}
.flash-list-item-excerpt {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (hover: hover) and (pointer: fine) {
    .flash-list-item:hover {
        background: #fff;
        border-color: rgba(224,7,26,0.2);
        box-shadow: 0 8px 22px rgba(224,7,26,0.1);
        transform: translateY(-1px);
    }
    .flash-list-item:hover .flash-list-item-accent { opacity: 1; }
    .flash-list-item:hover .flash-list-item-title { color: var(--red); }
    .flash-list-item:hover .flash-list-item-arrow { transform: translateX(3px); }
    .flash-list-item:hover .flash-list-item-excerpt { color: rgba(80,80,80,0.9); }
}
.flash-list-item:active {
    transform: translateY(0);
}

.news-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0.7rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 0.25rem;
    flex-shrink: 0;
}
.news-list-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    margin: 0;
}
.news-list-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}
.news-list-count-link {
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}
.news-list-count-link:hover {
    color: var(--red);
    background: var(--red-light);
}
.news-flash-empty {
    padding: 1.25rem 0.85rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
}
.news-title-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0.15rem 0.25rem 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.news-title-list::-webkit-scrollbar { width: 5px; }
.news-title-list::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 999px;
}
.news-title-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    margin: 0.08rem 0.15rem;
    text-decoration: none;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
    .news-title-item:hover {
        background: var(--red-light);
        color: var(--red);
    }
    .news-title-item:hover .news-title-time { color: rgba(224,7,26,0.7); }
}
.news-title-item.is-active {
    background: linear-gradient(135deg, rgba(224,7,26,0.1), rgba(224,7,26,0.04));
    border-color: rgba(224,7,26,0.18);
    color: var(--red);
    box-shadow: 0 4px 14px rgba(224,7,26,0.08);
}
.news-title-item.is-active .news-title-num {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    box-shadow: 0 4px 10px rgba(224,7,26,0.3);
}
.news-title-num {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.news-title-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.news-title-text {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-flash-excerpt {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-flash-item:hover .news-flash-excerpt {
    color: rgba(224,7,26,0.75);
}
.news-title-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
}
.news-title-item.is-active .news-title-time { color: rgba(224,7,26,0.7); }

/* Brand CTA */
.home-brand {
    padding: 0.5rem 0 0;
    background: transparent;
}
.home-brand-card {
    text-align: center;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    padding: 2rem 1.5rem 1.75rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.home-brand-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
}
.home-brand-logo {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 50%;
    margin: 0 auto 0.85rem;
    display: block;
    box-shadow: 0 6px 18px rgba(224,7,26,0.2);
}
.home-brand-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.4rem;
}
.home-brand-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin: 0 0 0.55rem;
    color: var(--black);
}
.home-brand-title span { color: var(--red); }
.home-brand-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0 auto 1.25rem;
    max-width: 460px;
    line-height: 1.55;
}
.home-brand-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}
.home-brand-actions .btn-milan,
.home-brand-actions .btn-outline {
    min-width: 150px;
    padding: 0.7rem 1.4rem;
    font-size: 0.875rem;
}

@media (max-width: 900px) {
    .news-top-grid { grid-template-columns: 1fr; }
    .news-carousel-viewport { height: 250px; }
    .news-list-panel {
        height: auto;
        max-height: 280px;
    }
    .home-brand-card { padding: 1.75rem 1.15rem 1.5rem; }
    .home-brand-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .home-brand-actions .btn-milan,
    .home-brand-actions .btn-outline {
        width: 100%;
        min-width: 0;
    }
}

/* ── Feature cards grid ── */
.home-features {
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
    background:
        radial-gradient(ellipse 70% 60% at 10% 0%, rgba(224, 7, 26, 0.06), transparent 55%),
        linear-gradient(180deg, #fff 0%, #faf7f7 100%);
}
.home-features-header {
    margin-bottom: 1.75rem;
    text-align: center;
}
.home-features-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.4rem;
}
.home-features-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    letter-spacing: 0.04em;
    line-height: 1;
    margin: 0;
    color: var(--black);
}
.home-features-sub {
    margin: 0.55rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(4, 1fr); gap: 1.15rem; }
}

.feature-card {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 18px;
    padding: 1.35rem 1.3rem 1.3rem;
    text-align: left;
    text-decoration: none;
    color: var(--black);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}
.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red) 0%, #111 100%);
    opacity: 1;
}
.feature-card::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 7, 26, 0.08), transparent 68%);
    pointer-events: none;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(224, 7, 26, 0.12);
    border-color: rgba(224, 7, 26, 0.28);
    background: #fff;
}
.feature-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.15rem;
    position: relative;
    z-index: 1;
}
.feature-icon {
    width: 52px;
    height: 52px;
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0 8px,
        #111 8px 16px
    );
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid rgba(17, 17, 17, 0.15);
    font-size: 1.45rem;
    box-shadow: 0 8px 18px rgba(224, 7, 26, 0.2);
    transition: all 0.28s ease;
}
.feature-card:hover .feature-icon {
    background: repeating-linear-gradient(
        90deg,
        var(--red) 0 8px,
        #111 8px 16px
    );
    border-color: rgba(17, 17, 17, 0.25);
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(224, 7, 26, 0.3);
}
.feature-body {
    flex: 1;
    position: relative;
    z-index: 1;
}
.feature-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.65rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.4rem;
    color: #111;
}
.feature-card p {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}
.feature-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(224, 7, 26, 0.08);
    color: var(--red);
    font-size: 1rem;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.feature-card:hover .feature-arrow {
    transform: translateX(3px);
    background: var(--red);
    color: #fff;
}

/* ── Section wrapper ── */
.section { padding: 3.5rem 0; }
.section-alt {
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.section-link {
    color: var(--red); font-weight: 700; font-size: 0.875rem; text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--red);
    transition: all 0.2s ease;
}
.section-link:hover { background: var(--red); color: #fff; text-decoration: none; }

/* ── Post card ── */
.post-card-img {
    aspect-ratio: 16/9;
    background: var(--red-light);
    overflow: hidden;
    position: relative;
}
.post-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.card-hover:hover .post-card-img img { transform: scale(1.06); }
.post-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--red-light), #fff);
}
.post-card-img-placeholder img,
.post-card-img-placeholder-logo {
    width: 80px; height: 80px;
    object-fit: contain;
    opacity: 0.35;
}
.post-card-body { padding: 1.25rem 1.5rem; }
.post-card-title { font-weight: 700; font-size: 1rem; line-height: 1.4; margin: 0.5rem 0; transition: color 0.2s; }
.card-hover:hover .post-card-title { color: var(--red); }
.post-card-excerpt { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.post-card-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 0.75rem; }
.home-post-card {
    border: 1px solid var(--border-light);
}
.home-post-card:hover {
    border-color: rgba(224,7,26,0.2);
}

/* ── Match banner ── */
.match-banner {
    background: #111;
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--red);
}
.match-banner::before {
    content: '';
    position: absolute; right: -40px; top: -40px;
    width: 220px; height: 220px;
    background: rgba(172,0,0,0.15);
    border-radius: 50%;
}
.match-banner::after { display: none; }
.match-banner-label {
    background: var(--red);
    font-size: 0.72rem; font-weight: 700;
    padding: 0.3rem 0.85rem; border-radius: 4px;
    letter-spacing: 0.08em; text-transform: uppercase;
    display: inline-block; margin-bottom: 0.75rem;
}
.match-banner h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem; letter-spacing: 0.06em;
}
.match-banner p { opacity: 0.75; font-size: 0.9rem; margin-top: 0.25rem; }
.match-banner .btn-milan { background: var(--red); color: #fff; box-shadow: none; border-radius: 6px; }
.match-banner .btn-milan:hover { background: #fff; color: var(--red); }
.match-banner .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; border-radius: 6px; }
.match-banner .btn-outline:hover { background: #fff; color: var(--red); }

/* ── Legend cards ── */
.legend-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}
@media (min-width: 640px) {
    .legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .legend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 1280px) {
    .legend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.legend-grid-home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) {
    .legend-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
}
.legend-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
}
.legend-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark, #8b0000) 100%);
    z-index: 2;
}
.legend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(224, 7, 26, 0.12);
    border-color: rgba(224, 7, 26, 0.28);
}
.legend-card-media {
    position: relative;
    background:
        radial-gradient(circle at 70% 10%, rgba(224, 7, 26, 0.08), transparent 42%),
        linear-gradient(180deg, #faf7f7 0%, #f3f3f3 100%);
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.85rem 0.85rem 0.5rem;
}
.legend-card-media.is-empty {
    min-height: 200px;
}
.legend-card-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 4px;
    background: repeating-linear-gradient(
        90deg,
        #111 0 7px,
        var(--red) 7px 14px
    );
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease;
}
.legend-card:hover .legend-card-media img {
    transform: scale(1.03);
}
.legend-card-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--red), #7a0000);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.25rem;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(224, 7, 26, 0.28);
}
.legend-card-body {
    padding: 1rem 1.15rem 1.25rem;
    text-align: left;
    background: #fff;
    border-top: 1px solid var(--border-light);
}
.legend-card-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    color: var(--black);
    line-height: 1.1;
}
.legend-card-pos {
    font-size: 0.78rem;
    color: var(--red);
    font-weight: 700;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.legend-card-years {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    font-weight: 600;
}
@media (max-width: 639px) {
    .legend-card-media { min-height: 210px; }
    .legend-card-media img { max-height: 230px; }
    .legend-card-name { font-size: 1.25rem; }
}

/* ── Legend detail page ── */
.legend-detail-page {
    padding: 1.5rem 0 3.5rem;
}
.legend-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.15rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: color 0.15s ease;
}
.legend-detail-back:hover { color: var(--red); }
.legend-detail-card {
    background: #fff;
    border-radius: 22px;
    border: 1px solid var(--border-light);
    box-shadow: 0 16px 48px rgba(17, 17, 17, 0.07);
    overflow: hidden;
    position: relative;
}
.legend-detail-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--red) 0%, var(--red-dark, #8b0000) 100%);
    z-index: 2;
}
.legend-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
}
.legend-detail-photo {
    background:
        radial-gradient(circle at 30% 20%, rgba(224, 7, 26, 0.1), transparent 50%),
        linear-gradient(180deg, #faf7f7 0%, #f4f4f4 100%);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-bottom: 1px solid var(--border-light);
}
.legend-detail-photo img {
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center center;
    display: block;
    padding: 5px;
    background: repeating-linear-gradient(
        90deg,
        #111 0 8px,
        var(--red) 8px 16px
    );
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}
.legend-detail-photo-placeholder {
    width: 150px;
    height: 150px;
    background: linear-gradient(145deg, var(--red), #7a0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #fff;
    box-shadow: 0 12px 36px rgba(224, 7, 26, 0.28);
    border: 4px solid #fff;
}
.legend-detail-main {
    min-width: 0;
}
.legend-detail-header {
    padding: 1.75rem 1.5rem 1.35rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(180deg, #fff 0%, #fcfcfc 100%);
}
.legend-detail-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
    margin: 0 0 0.45rem;
}
.legend-detail-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.4rem, 7vw, 3.6rem);
    letter-spacing: 0.04em;
    line-height: 1.05;
    color: var(--black);
    margin: 0;
}
.legend-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}
.legend-detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f4f4f4;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}
.legend-detail-tag.is-red {
    background: rgba(224, 7, 26, 0.1);
    color: var(--red);
}
.legend-detail-body {
    padding: 1.5rem;
}
.legend-detail-section + .legend-detail-section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-light);
}
.legend-detail-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.05em;
    color: var(--red);
    margin: 0 0 0.85rem;
}
.legend-detail-bio {
    color: var(--text);
    line-height: 1.85;
    font-size: 1.02rem;
    margin: 0;
    white-space: pre-line;
}
.legend-detail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.legend-detail-stat {
    background: linear-gradient(180deg, #fff8f8 0%, #fff 100%);
    border: 1px solid rgba(224, 7, 26, 0.12);
    border-radius: 14px;
    padding: 1.1rem 0.9rem;
    text-align: center;
}
.legend-detail-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--red);
    line-height: 1;
}
.legend-detail-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.legend-detail-achievements {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.legend-detail-achievements li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid var(--border-light);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.45;
}
.legend-detail-trophy {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    margin-top: 0.05rem;
}
.legend-detail-trophy .trophy-icon {
    width: 26px;
    height: 26px;
    display: block;
}
@media (min-width: 768px) {
    .legend-detail-page { padding: 2rem 0 4rem; }
    .legend-detail-layout {
        grid-template-columns: minmax(280px, 360px) 1fr;
        align-items: stretch;
    }
    .legend-detail-photo {
        min-height: 100%;
        padding: 2.5rem 2rem;
        border-bottom: none;
        border-right: 1px solid var(--border-light);
    }
    .legend-detail-photo img { max-height: 620px; }
    .legend-detail-header { padding: 2.25rem 2.5rem 1.6rem; }
    .legend-detail-body { padding: 1.75rem 2.5rem 2.5rem; }
    .legend-detail-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 768px) and (max-width: 959px) {
    .legend-detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── Storyline ── */
.storyline-timeline { position: relative; padding: 2rem 0; }
.storyline-timeline::before {
    content: '';
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--red), var(--border));
    border-radius: 2px;
}
.storyline-item {
    opacity: 0; transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4,0,0.2,1);
    position: relative; margin-bottom: 3rem;
}
.storyline-item.visible { opacity: 1; transform: translateY(0); }
.storyline-dot {
    position: absolute; left: 50%; top: 2rem;
    transform: translateX(-50%);
    width: 18px; height: 18px;
    background: var(--red);
    border: 4px solid var(--bg-alt);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--red-soft);
    z-index: 2;
}
.storyline-card {
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    max-width: 420px;
    transition: box-shadow 0.3s;
}
.storyline-card:hover { box-shadow: var(--shadow); border-color: var(--red-soft); }
.storyline-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem; color: var(--red); line-height: 1;
}
.storyline-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.storyline-card-meta.is-right {
    justify-content: flex-end;
}
.storyline-trophy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem 0.35rem 0.4rem;
    border-radius: 999px;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 800;
}
.storyline-trophy-badge .trophy-icon {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}
.storyline-trophy-badge--champions-league {
    background: rgba(212, 175, 55, 0.16);
    color: #8a6a00;
}
.storyline-trophy-badge--serie-a {
    background: rgba(172, 0, 0, 0.1);
    color: var(--red);
}
.storyline-trophy-badge--foundation {
    background: rgba(17, 17, 17, 0.08);
    color: #111;
}
.storyline-trophy-badge--foundation .trophy-icon {
    color: #AC0000;
}
.storyline-card h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.03em; margin: 0.5rem 0 0.25rem; }
.storyline-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.storyline-desc { margin-top: 0.15rem; }
.storyline-desc-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.storyline-desc:not(.is-expanded) .storyline-desc-text {
    max-height: calc(0.9rem * 1.6 * 4);
    overflow: hidden;
}
.storyline-desc-toggle {
    display: inline-flex;
    align-items: center;
    margin-top: 0.55rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.storyline-desc-toggle:hover { text-decoration: underline; }

.storyline-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: repeating-linear-gradient(
        90deg,
        #111 0 8px,
        var(--red) 8px 16px
    );
    padding: 5px;
    aspect-ratio: 16 / 10;
}
.storyline-gallery-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}
.storyline-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    width: 100%;
    height: 100%;
}
.storyline-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}
.storyline-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #111;
}
.storyline-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: auto;
    height: auto;
    padding: 0.35rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45));
    transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.storyline-gallery-btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 3;
}
.storyline-gallery-btn:hover {
    background: transparent;
    color: #ff2a3a;
    transform: translateY(-50%) scale(1.12);
}
.storyline-gallery-prev { left: 0.55rem; }
.storyline-gallery-next { right: 0.55rem; }
.storyline-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.55rem;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}
.storyline-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(224, 7, 26, 0.4);
    cursor: pointer;
    transition: background 0.15s ease, width 0.15s ease;
}
.storyline-gallery-dot.is-active {
    background: var(--red);
    width: 16px;
}
.storyline-gallery-count {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 3;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(224, 7, 26, 0.35);
}

/* Storyline lightbox */
.slb {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}
.slb[hidden] { display: none !important; }
.slb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
}
.slb-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
}
.slb-stage.is-dragging { cursor: grabbing; }
.slb-img {
    max-width: 96vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.08s ease-out;
}
.slb-img.is-zooming { transition: none; }
.slb-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.slb-close:hover { background: var(--red); }
.slb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: none;
    background: transparent;
    color: var(--red);
    padding: 0.5rem;
    cursor: pointer;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
}
.slb-nav:hover { color: #ff2a3a; }
.slb-prev { left: 0.35rem; }
.slb-next { right: 0.35rem; }
.slb-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.85rem;
    z-index: 3;
    text-align: center;
    pointer-events: none;
}
.slb-count {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
}
.slb-hint {
    display: block;
    margin-top: 0.45rem;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
}
@media (max-width: 700px) {
    .slb-hint { display: none; }
    .slb-nav { display: none; }
}

.admin-story-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.65rem;
}
.admin-story-image {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border-light);
    background: #111;
    cursor: pointer;
}
.admin-story-image img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.admin-story-image-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #DC2626;
    background: #fff;
}
.admin-story-image-remove input {
    accent-color: #DC2626;
}

/* ── Leaderboard ── */
.leaderboard { background: var(--bg-alt); border-radius: var(--radius); border: 1.5px solid var(--border-light); box-shadow: var(--shadow-sm); overflow: hidden; }
.leaderboard-header { background: var(--red); color: #fff; padding: 1.25rem 1.5rem; font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.06em; }
.leaderboard-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--border-light); transition: background 0.2s; }
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: var(--red-light); }
.leaderboard-rank { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; width: 28px; text-align: center; color: var(--text-light); }
.leaderboard-rank.gold { color: #F59E0B; }
.leaderboard-rank.silver { color: #9CA3AF; }
.leaderboard-rank.bronze { color: #D97706; }
.leaderboard-avatar { width: 36px; height: 36px; background: var(--red-light); color: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; }
.leaderboard-name { flex: 1; font-weight: 600; font-size: 0.9rem; }
.leaderboard-pts { font-weight: 800; color: var(--red); font-size: 0.85rem; }

/* ── Footer ── */
.site-footer {
    background: var(--black);
    color: #fff;
    margin-top: auto;
}
.site-footer-accent {
    height: 3px;
    background: var(--red);
}
.site-footer-stripe { display: none; }
.site-footer-inner { max-width: 80rem; margin: 0 auto; padding: 3.5rem 1.5rem 2rem; }
.site-footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .site-footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-img {
    width: 56px; height: 56px;
    object-fit: contain;
    border-radius: 50%;
}
.footer-logo-icon { width: 44px; height: 44px; background: var(--red); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; }
.footer-logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: 0.06em; }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.875rem; line-height: 1.7; max-width: 320px; }
.footer-champions {
    margin-top: 1.15rem;
    max-width: 320px;
}
.footer-champions-row {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}
.footer-champions-trophy {
    width: 26px;
    height: 26px;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}
.footer-champions-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.85);
}
.footer-heading { color: var(--red); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; color: rgba(255,255,255,0.35); font-size: 0.8rem; }

/* ── Auth pages ── */
.auth-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(160deg, var(--red-light) 0%, var(--bg) 50%);
    position: relative;
}
.auth-home-btn,
.auth-page > .page-back {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    margin: 0;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow);
    padding: 2.5rem;
}
.auth-logo-img {
    width: 100px; height: 100px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    display: block;
    filter: drop-shadow(0 8px 24px rgba(224,7,26,0.25));
}
.auth-logo { width: 64px; height: 64px; background: var(--red); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: #fff; margin: 0 auto 1.25rem; box-shadow: 0 6px 20px rgba(224,7,26,0.35); }
.auth-title { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; text-align: center; letter-spacing: 0.04em; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin: 0.25rem 0 1.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-label { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 0.3rem; display: block; }
.auth-footer { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--red); font-weight: 700; text-decoration: none; }
.auth-error { color: #DC2626; font-size: 0.78rem; margin-top: 0.25rem; }

/* ── Article ── */
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}
.article-back:hover {
    color: var(--red);
    background: var(--red-light);
    border-color: var(--red-soft);
}
.article-header { margin-bottom: 2rem; }
.article-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: 0.03em; line-height: 1.1; margin: 1rem 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--border-light); }
.article-img {
    margin-bottom: 2rem;
    text-align: center;
    background: transparent;
    box-shadow: none;
}
.article-img img {
    width: auto;
    max-width: 100%;
    max-height: 440px;
    height: auto;
    object-fit: contain;
    object-position: top center;
    display: inline-block;
    vertical-align: top;
    border-radius: var(--radius);
}
.article-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); }
.article-body p { margin-bottom: 1.25rem; }

/* ── Comments (Facebook-style) ── */
.comment-card {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.35rem 0;
    background: transparent;
    border: none;
}
.comment-avatar {
    width: 36px;
    height: 36px;
    background:
        repeating-linear-gradient(
            135deg,
            #111 0 5px,
            var(--red) 5px 10px
        );
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    flex-shrink: 0;
    border: 2px solid #111;
    box-shadow: 0 0 0 1.5px var(--red);
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.comment-body {
    flex: 1;
    min-width: 0;
}
.comment-bubble {
    display: inline-block;
    max-width: 100%;
    background: #F0F2F5;
    border-radius: 18px;
    padding: 0.55rem 0.85rem 0.65rem;
    line-height: 1.4;
}
.comment-name {
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--black);
    line-height: 1.3;
}
.comment-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.45;
    margin: 0.15rem 0 0;
    word-break: break-word;
}
.comment-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin: 0.25rem 0 0 0.65rem;
}
.comment-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}
.comment-meta-dot {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1;
    user-select: none;
}
.comment-action-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.2rem 0.35rem;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}
.comment-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--black);
}
.comment-delete-btn:hover {
    color: #DC2626;
    background: rgba(220, 38, 38, 0.08);
}
.comment-edit-form {
    margin-top: 0.5rem;
    max-width: 100%;
}
.comment-edit-form.hidden { display: none; }
.comment-edit-form .comment-edit-input {
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    border-radius: 18px;
    border-color: transparent;
    background: #F0F2F5;
}
.comment-edit-form .comment-edit-input:focus {
    background: #fff;
    border-color: var(--red);
}
.comment-edit-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-left: 0.15rem;
}
.comment-save-btn,
.comment-cancel-edit-btn {
    font-size: 0.8125rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    padding: 0.45rem 0.85rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.comment-save-btn {
    background: var(--red);
    color: #fff;
}
.comment-save-btn:hover { background: var(--red-dark); }
.comment-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.comment-cancel-edit-btn {
    background: #E4E6EB;
    color: var(--text);
}
.comment-cancel-edit-btn:hover { background: #D8DADF; }
.comment-edit-error {
    display: none;
    color: #DC2626;
    font-size: 0.78rem;
    font-weight: 600;
    margin-top: 0.4rem;
    padding-left: 0.15rem;
}
#comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 1.75rem;
    width: 100%; max-width: 400px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }
.modal-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--black);
    margin-bottom: 0.5rem;
}
.modal-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions .btn-ghost,
.modal-actions .btn-milan { font-size: 0.85rem; padding: 0.6rem 1.25rem; }
.modal-btn-danger { background: #DC2626; box-shadow: 0 4px 14px rgba(220,38,38,0.35); }
.modal-btn-danger:hover { background: #B91C1C; }

/* ── Admin ── */
.admin-body { background: var(--bg); min-height: 100vh; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--bg-alt);
    border-right: 1px solid var(--border-light);
    position: fixed; height: 100vh; overflow-y: auto;
    display: flex; flex-direction: column;
    box-shadow: 2px 0 12px rgba(0,0,0,0.04);
}
.admin-sidebar-stripe { height: 3px; background: var(--red); }
.admin-sidebar-logo { padding: 1.5rem; border-bottom: 1px solid var(--border-light); }
.admin-sidebar-nav { padding: 1rem; flex: 1; }
.admin-sidebar-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem; border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none;
    font-weight: 600; font-size: 0.875rem;
    transition: all 0.2s; margin-bottom: 0.15rem;
}
.admin-sidebar-link svg { width: 18px; height: 18px; opacity: 0.6; }
.admin-sidebar-link:hover { background: var(--red-light); color: var(--red); }
.admin-sidebar-link:hover svg { opacity: 1; }
.admin-sidebar-link-active { background: var(--red-light); color: var(--red); }
.admin-sidebar-link-active svg { opacity: 1; }
.admin-main { flex: 1; margin-left: 260px; min-width: 0; overflow-x: hidden; }
.admin-topbar {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.25rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.admin-topbar-left {
    display: flex; align-items: center; gap: 0.75rem; min-width: 0;
}
.admin-topbar h1 {
    font-weight: 700; font-size: 1.1rem; color: var(--black);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-topbar-user { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.admin-site-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9px;
    background: var(--red-light);
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(224,7,26,0.15);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-site-btn:hover {
    background: var(--red);
    color: #fff;
}
.admin-menu-btn {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--red-light); color: var(--red);
    border: none; border-radius: 10px;
    cursor: pointer; flex-shrink: 0;
    transition: background 0.2s;
}
.admin-menu-btn:hover { background: var(--red-soft); }
.admin-sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(17,17,17,0.45);
    z-index: 190;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.admin-sidebar-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.admin-content { padding: 2rem; max-width: 100%; overflow-x: hidden; }
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
    .admin-stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
    .admin-stat-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.admin-stat {
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    padding: 1.15rem 1.2rem 1.2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.admin-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: repeating-linear-gradient(90deg, #111 0 10px, var(--red) 10px 20px);
}
.admin-stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}
.admin-stat-link:hover {
    border-color: rgba(224,7,26,0.28);
    box-shadow: 0 10px 28px rgba(224,7,26,0.1);
    transform: translateY(-2px);
}
.admin-stat-link:hover .admin-stat-go { color: var(--red); transform: translateX(2px); }
.admin-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.admin-stat-icon {
    width: auto;
    height: auto;
    border-radius: 0;
    display: block;
    background: none;
    border: none;
    box-shadow: none;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0;
}
.admin-stat-icon svg {
    display: none;
}
.admin-stat-go {
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.1rem;
    transition: color 0.15s ease, transform 0.15s ease;
}
.admin-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.35rem;
    color: var(--red);
    line-height: 1;
}
.admin-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 0.35rem;
}

.dash-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    background:
        linear-gradient(135deg, rgba(224,7,26,0.08), rgba(0,0,0,0.03)),
        var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
}
.dash-hero-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}
.dash-hero-title {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    letter-spacing: 0.03em;
    line-height: 1;
}
.dash-hero-sub {
    margin: 0.4rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.dash-hero-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
}
.dash-hero-link:hover { text-decoration: underline; }

.dash-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 900px) {
    .dash-panels { grid-template-columns: repeat(3, 1fr); }
}
.dash-panel {
    background: var(--bg-alt);
    border: 1.5px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}
.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--border-light);
}
.dash-panel-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}
.dash-panel-all {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}
.dash-panel-all:hover { text-decoration: underline; }
.dash-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    flex: 1;
}
.dash-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.dash-list-item:hover { background: var(--red-light); }
.dash-list-item:hover strong { color: var(--red); }
.dash-list-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: repeating-linear-gradient(135deg, #111 0 4px, var(--red) 4px 8px);
    border: 1.5px solid #111;
}
.dash-list-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.dash-list-main strong {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-list-main small {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.dash-list-time {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}
.dash-list-empty {
    padding: 2rem 1.15rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Admin table */
.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.admin-page-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    min-width: 0;
}
.admin-page-head .btn-milan {
    flex-shrink: 0;
    font-size: 0.85rem;
    padding: 0.65rem 1.15rem;
}
.admin-table-wrap {
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table thead { background: var(--bg); }
.admin-table th { padding: 0.85rem 1.25rem; text-align: left; font-weight: 700; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table td { padding: 0.85rem 1.25rem; border-top: 1px solid var(--border-light); color: var(--text); vertical-align: middle; }
.admin-table tr:hover td { background: var(--red-light); }
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}
.admin-table-actions form { display: inline-flex; margin: 0; flex: 0 0 auto; }
.admin-table-actions a,
.admin-table-actions button {
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    font-family: inherit;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.78rem;
    border-radius: 9px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    background: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
    min-height: 34px;
}
.admin-btn:hover { transform: translateY(-1px); }
.admin-btn:active { transform: translateY(0); }
.admin-btn::before {
    content: '';
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: center / contain no-repeat;
    mask: center / contain no-repeat;
}
.admin-btn-edit {
    background: #EEF4FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}
.admin-btn-edit::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E");
}
.admin-btn-edit:hover {
    background: #DBEAFE;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.15);
}
.admin-btn-delete {
    background: #FEF2F2;
    color: #DC2626;
    border-color: #FECACA;
}
.admin-btn-delete::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'/%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'/%3E%3Cpath d='M10 11v6M14 11v6'/%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'/%3E%3C/svg%3E");
}
.admin-btn-delete:hover {
    background: #FEE2E2;
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.14);
}
.admin-btn-toggle {
    background: #FFFBEB;
    color: #B45309;
    border-color: #FDE68A;
}
.admin-btn-toggle::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M5.6 18.4l2.1-2.1M16.3 7.7l2.1-2.1'/%3E%3Ccircle cx='12' cy='12' r='3.5'/%3E%3C/svg%3E");
}
.admin-btn-toggle:hover {
    background: #FEF3C7;
    box-shadow: 0 6px 14px rgba(180, 83, 9, 0.12);
}
.admin-btn-success {
    background: #ECFDF5;
    color: #047857;
    border-color: #A7F3D0;
}
.admin-btn-success::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.admin-btn-success:hover {
    background: #D1FAE5;
    box-shadow: 0 6px 14px rgba(4, 120, 87, 0.12);
}
.admin-btn-warning {
    background: #FFF7ED;
    color: #C2410C;
    border-color: #FED7AA;
}
.admin-btn-warning::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.5 15a9 9 0 1 0 2.1-9.4L1 10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 4 1 10 7 10'/%3E%3Cpath d='M3.5 15a9 9 0 1 0 2.1-9.4L1 10'/%3E%3C/svg%3E");
}
.admin-btn-warning:hover {
    background: #FFEDD5;
    box-shadow: 0 6px 14px rgba(194, 65, 12, 0.12);
}
.admin-content .input-field,
.admin-content select.input-field,
.admin-content textarea.input-field {
    max-width: 100%;
    box-sizing: border-box;
}
.admin-content form.max-w-3xl {
    max-width: 100%;
}
.admin-meme-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}
.admin-meme-actions form { margin: 0; flex: 1 1 calc(50% - 0.2rem); }
.admin-meme-actions .admin-btn { width: 100%; }
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.35rem;
}
.admin-form-actions .btn-milan,
.admin-form-actions .admin-back-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-back-btn {
    text-decoration: none;
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
}

.admin-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: var(--red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

/* Admin file dropzone */
.file-dropzone {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1.5px dashed rgba(224, 7, 26, 0.35);
    border-radius: 14px;
    background:
        linear-gradient(180deg, #fff 0%, #faf7f7 100%);
    padding: 1.35rem 1.25rem;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    overflow: hidden;
}
.file-dropzone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(224, 7, 26, 0.06), transparent 45%);
    pointer-events: none;
}
.file-dropzone:hover,
.file-dropzone.is-dragover {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 10px 28px rgba(224, 7, 26, 0.1);
}
.file-dropzone.is-dragover {
    transform: translateY(-1px);
}
.file-dropzone.has-file {
    border-style: solid;
    border-color: rgba(224, 7, 26, 0.28);
}
.file-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-dropzone-idle,
.file-dropzone-ready {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}
.file-dropzone-ready {
    flex-direction: row;
    text-align: left;
    gap: 1rem;
}
.file-dropzone-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    background: var(--red-light);
    margin-bottom: 0.35rem;
}
.file-dropzone-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
}
.file-dropzone-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 22rem;
    line-height: 1.4;
}
.file-dropzone-btn {
    margin-top: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 16px rgba(224, 7, 26, 0.25);
}
.file-dropzone:hover .file-dropzone-btn {
    background: var(--red-dark, #b80616);
}
.file-dropzone-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}
.file-dropzone-thumb img,
.file-dropzone-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.file-dropzone-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1;
}
.file-dropzone-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--black);
    word-break: break-all;
}
.file-dropzone-size {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.file-dropzone-change {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--red);
}

/* Alerts */
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.alert-success { background: #F0FDF4; border: 1.5px solid #BBF7D0; color: #15803D; }
.alert-error { background: #FEF2F2; border: 1.5px solid #FECACA; color: #DC2626; }
.flash-message { position: fixed; top: 80px; right: 1.5rem; z-index: 200; padding: 0.85rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem; box-shadow: var(--shadow); transition: opacity 0.3s; }
.flash-success { background: #15803D; color: #fff; }
.flash-error { background: #DC2626; color: #fff; }

/* ── Animations ── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.animate-float { animation: float 4s ease-in-out infinite; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── Utility classes (used in blade templates) ── */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1,1fr); }
.grid-cols-2 { grid-template-columns: repeat(2,1fr); }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.hidden { display: none !important; }
.block { display: block; }
.inline { display: inline; }
.inline-flex { display: inline-flex; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.w-full { width: 100%; }
.w-64 { width: 16rem; }
.w-32 { width: 8rem; }
.w-20 { width: 5rem; }
.w-16 { width: 4rem; }
.w-10 { width: 2.5rem; }
.w-8 { width: 2rem; }
.w-6 { width: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-full { height: 100%; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-32 { height: 8rem; }
.h-16 { height: 4rem; }
.h-10 { height: 2.5rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.h-5 { height: 1.25rem; }
.max-w-7xl { max-width: 80rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 56rem; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-lg { max-width: 32rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-auto { margin-top: auto; }
.ml-64 { margin-left: 260px; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.text-white { color: #fff; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: var(--text-muted); }
.text-gray-500 { color: var(--text-light); }
.text-milan-red, .text-red-400 { color: var(--red); }
.text-green-400 { color: #16A34A; }
.text-yellow-400 { color: #D97706; }
.text-blue-400 { color: #2563EB; }
.bg-milan-red { background: var(--red); }
.bg-milan-black { background: var(--black); }
.bg-milan-dark { background: var(--bg); }
.bg-milan-gray { background: var(--bg-alt); }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: var(--radius-sm); }
.rounded-xl { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }
.border { border: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border-light); }
.border-b { border-bottom: 1px solid var(--border-light); }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.aspect-video { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shrink-0 { flex-shrink: 0; }
.self-start { align-self: flex-start; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.transition-all { transition: all 0.3s; }
.transition-colors { transition: color 0.2s; }
.transition-transform { transition: transform 0.5s; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:text-white:hover { color: #fff; }
.hover\:text-milan-red:hover { color: var(--red); }
.hover\:scale-105:hover { transform: scale(1.05); }
.cursor-pointer { cursor: pointer; }
.shadow-lg { box-shadow: var(--shadow); }

@media (min-width: 640px) {
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:block { display: block; }
    .sm\:inline { display: inline; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
}
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-8xl { font-size: 6rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:pr-\[55\%\] { padding-right: 55%; }
    .md\:pl-\[55\%\] { padding-left: 55%; }
    .md\:text-right { text-align: right; }
    .md\:justify-end { justify-content: flex-end; }
    .md\:mx-0 { margin-left: 0; margin-right: 0; }
    .md\:ml-0 { margin-left: 0; }
    .md\:mr-0 { margin-right: 0; }
    .md\:ml-auto { margin-left: auto; }
    .md\:block { display: block; }
    .md\:h-80 { height: 20rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:col-span-2 { grid-column: span 2; }
    .storyline-item-left { padding-right: 55%; }
    .storyline-item-right { padding-left: 55%; text-align: right; }
}
@media (max-width: 767px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .storyline-timeline::before { left: 20px; }
    .storyline-dot { left: 20px; }

    .admin-menu-btn { display: inline-flex; }
    .admin-sidebar {
        z-index: 200;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; width: 100%; max-width: 100vw; }
    .admin-content { padding: 0.85rem; }
    .admin-topbar { padding: 0.75rem 0.85rem; }
    .admin-topbar h1 { font-size: 1rem; }
    .admin-topbar-user { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-site-btn { padding: 0.4rem 0.65rem; font-size: 0.75rem; }
    body.admin-sidebar-open { overflow: hidden; }

    .admin-page-head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    .admin-page-head .btn-milan {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        min-height: 44px;
        align-items: center;
    }

    /* Tabelat → karta në mobile (pa scroll horizontal) */
    .admin-table-wrap {
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }
    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .admin-table { min-width: 0 !important; border: none; }
    .admin-table thead { display: none; }
    .admin-table tbody {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    .admin-table tr {
        background: var(--bg-alt);
        border: 1.5px solid var(--border-light);
        border-radius: 14px;
        padding: 0.85rem 0.9rem 0.9rem;
        box-shadow: var(--shadow-sm);
    }
    .admin-table tr:hover td { background: transparent; }
    .admin-table td {
        border: none;
        padding: 0.35rem 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.75rem;
        text-align: right;
        word-break: break-word;
    }
    .admin-table td::before {
        content: attr(data-label);
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--text-muted);
        text-align: left;
        flex: 0 0 38%;
        max-width: 38%;
        padding-top: 0.15rem;
    }
    .admin-table td[data-label=""] {
        display: block;
        text-align: left;
        padding-top: 0.15rem;
        padding-bottom: 0.45rem;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 0.35rem;
    }
    .admin-table td[data-label=""]::before { display: none; }
    .admin-table td.admin-table-actions,
    .admin-table td:has(.admin-table-actions) {
        display: block;
        padding-top: 0.65rem;
        margin-top: 0.25rem;
        border-top: 1px solid var(--border-light);
        text-align: left;
    }
    .admin-table td.admin-table-actions::before,
    .admin-table td:has(.admin-table-actions)::before {
        display: none;
    }
    .admin-table td[colspan] {
        display: block;
        text-align: center;
        padding: 1.75rem 0.5rem;
        color: var(--text-muted);
    }
    .admin-table td[colspan]::before { display: none; }

    .admin-table-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        width: 100%;
    }
    .admin-table-actions form {
        display: block;
        width: 100%;
    }
    .admin-table-actions .admin-btn {
        width: 100%;
        min-height: 44px;
        padding: 0.7rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 11px;
    }
    /* Nëse ka 3 butona, i fundit merr rresht të plotë */
    .admin-table-actions > :nth-child(3) {
        grid-column: 1 / -1;
    }

    .admin-resolve-row td {
        display: block !important;
        text-align: left !important;
        padding: 0.75rem 0 0 !important;
        border-top: none !important;
    }
    .admin-resolve-row td::before { display: none !important; }
    .admin-resolve-form {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .admin-resolve-form .input-field,
    .admin-resolve-form select {
        width: 100% !important;
        max-width: 100%;
    }
    .admin-resolve-form .btn-milan {
        width: 100%;
        min-height: 44px;
    }

    .admin-stat-grid { gap: 0.65rem; }
    .admin-stat { padding: 1rem; }
    .admin-stat-value { font-size: 1.85rem; }
    .dash-hero { padding: 1rem 1.1rem; }
    .dash-panels { gap: 0.85rem; }
    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.55rem;
    }
    .admin-form-actions .btn-milan,
    .admin-form-actions .admin-back-btn {
        width: 100%;
    }
}
@media (min-width: 1024px) {
    .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3,1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:w-64 { width: 16rem; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4,1fr); }
}

/* ── Penalty Minigame ── */
.penalty-wrap { display: flex; flex-direction: column; gap: 1.25rem; }
.penalty-info { padding: 1.25rem 1.5rem; }
.penalty-info-row {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
    font-size: 0.8125rem; font-weight: 700; color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.penalty-info-text { font-size: 0.9rem; color: var(--text); line-height: 1.55; margin: 0; }
.penalty-limit-msg { font-size: 0.8125rem; color: var(--text-muted); margin: 0.75rem 0 0; }
.penalty-game { padding: 1.25rem; overflow: hidden; }
.penalty-game.hidden { display: none; }
.penalty-hud {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem;
    margin-bottom: 1rem; text-align: center;
}
.penalty-hud-item {
    background: var(--bg); border-radius: var(--radius-sm);
    padding: 0.65rem 0.5rem; border: 1px solid var(--border-light);
}
.penalty-hud-label {
    display: block; font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light);
}
.penalty-hud-value {
    display: block; font-family: 'Bebas Neue', sans-serif;
    font-size: 1.65rem; letter-spacing: 0.04em; color: var(--red); line-height: 1.1;
}
.penalty-pitch {
    position: relative;
    height: 380px;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #1a2a1a 0%, transparent 8%),
        linear-gradient(180deg, #2f8f3a 22%, #247a30 55%, #1c6426 100%);
    border: 2px solid rgba(17, 17, 17, 0.2);
    margin-bottom: 1.25rem;
    box-shadow:
        inset 0 -30px 50px rgba(0, 0, 0, 0.18),
        0 12px 28px rgba(17, 17, 17, 0.12);
}
.penalty-sky {
    position: absolute;
    inset: 0 0 76%;
    background:
        radial-gradient(ellipse 90% 80% at 50% 100%, rgba(224, 7, 26, 0.12), transparent 55%),
        linear-gradient(180deg, #3a4550 0%, #5c6770 45%, #7a858c 100%);
}
.penalty-stands {
    position: absolute;
    top: 16%;
    left: 0;
    right: 0;
    height: 10%;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
    opacity: 0.9;
}
.penalty-crowd {
    position: absolute;
    top: 17%;
    left: 0;
    right: 0;
    height: 8%;
    background:
        repeating-linear-gradient(90deg,
            rgba(224, 7, 26, 0.55) 0 10px,
            rgba(20, 20, 20, 0.7) 10px 20px,
            rgba(255, 255, 255, 0.18) 20px 28px,
            rgba(20, 20, 20, 0.7) 28px 38px
        );
    opacity: 0.75;
    filter: blur(0.6px);
}
.penalty-grass-stripes {
    position: absolute;
    inset: 22% 0 0;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.04) 0 28px,
        rgba(0, 0, 0, 0.07) 28px 56px
    );
    pointer-events: none;
    z-index: 0;
}
.penalty-goal-frame {
    position: absolute;
    top: 9%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 380px;
    height: 44%;
    z-index: 2;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}
.penalty-crossbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(180deg, #fff 0%, #ececec 40%, #c8c8c8 100%);
    border-radius: 4px 4px 1px 1px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    z-index: 4;
}
.penalty-post {
    position: absolute;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(90deg, #bdbdbd 0%, #fff 30%, #f2f2f2 65%, #a8a8a8 100%);
    border-radius: 4px;
    box-shadow:
        2px 0 10px rgba(0, 0, 0, 0.22),
        inset -1px 0 0 rgba(255, 255, 255, 0.7),
        inset 1px 0 0 rgba(0, 0, 0, 0.08);
    z-index: 4;
}
.penalty-post-left { left: 0; }
.penalty-post-right { right: 0; }
.penalty-net-back {
    position: absolute;
    inset: 8px 10px 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28)),
        radial-gradient(ellipse at 50% 0%, rgba(224, 7, 26, 0.08), transparent 60%);
    border-radius: 0 0 6px 6px;
    z-index: 1;
}
.penalty-net {
    position: absolute;
    inset: 8px 10px 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 3px, transparent 3px 11px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.42) 0 3px, transparent 3px 11px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-top: none;
    border-radius: 0 0 4px 4px;
    z-index: 2;
    opacity: 0.9;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.12);
}
.penalty-goal-glow {
    position: absolute;
    bottom: -6px;
    left: 10px;
    right: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    filter: blur(4px);
    z-index: 3;
}
.penalty-box-line {
    position: absolute;
    bottom: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: 58%;
    height: 2px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    z-index: 1;
}
.penalty-box-line::before,
.penalty-box-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 34px;
    background: rgba(255, 255, 255, 0.7);
}
.penalty-box-line::before { left: 0; }
.penalty-box-line::after { right: 0; }

/* Portieri Inter */
.penalty-keeper {
    position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}
.penalty-keeper-figure {
    position: relative;
    width: 52px; height: 58px;
}
.penalty-keeper-head {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; border-radius: 50%;
    background: #f0c8a0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}
.penalty-keeper-torso {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 26px; border-radius: 6px 6px 4px 4px;
    z-index: 1;
}
.inter-kit {
    background: repeating-linear-gradient(90deg, #0068A8 0 7px, #0a0a0a 7px 14px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.penalty-keeper-arm {
    position: absolute; top: 16px; width: 22px; height: 10px;
    z-index: 3;
}
.penalty-keeper-arm.arm-left {
    left: -4px; transform: rotate(-35deg); transform-origin: right center;
}
.penalty-keeper-arm.arm-right {
    right: -4px; transform: rotate(35deg); transform-origin: left center;
}
.penalty-glove {
    width: 16px; height: 14px; border-radius: 5px 5px 8px 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.inter-glove {
    background: repeating-linear-gradient(
        -45deg,
        #0068A8 0 4px,
        #111 4px 8px
    );
    border: 1px solid rgba(0,0,0,0.35);
}
.penalty-keeper.dive-left {
    left: 16%;
    transform: translateX(-50%) rotate(-22deg);
}
.penalty-keeper.dive-left .arm-left { transform: rotate(-75deg); }
.penalty-keeper.dive-left .arm-right { transform: rotate(10deg); }
.penalty-keeper.dive-center {
    left: 50%;
    transform: translateX(-50%) scale(1.1);
}
.penalty-keeper.dive-center .arm-left { transform: rotate(-55deg); }
.penalty-keeper.dive-center .arm-right { transform: rotate(55deg); }
.penalty-keeper.dive-right {
    left: 84%;
    transform: translateX(-50%) rotate(22deg);
}
.penalty-keeper.dive-right .arm-left { transform: rotate(-10deg); }
.penalty-keeper.dive-right .arm-right { transform: rotate(75deg); }

/* Lojtari Milan */
.penalty-shooter {
    position: absolute; bottom: 8%; left: 50%;
    transform: translateX(-50%);
    width: 70px; height: 80px;
    z-index: 6;
}
.penalty-player {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 56px; height: 72px;
    transition: transform 0.35s ease;
}
.penalty-player.is-kicking { transform: translateX(-50%) rotate(-8deg); }
.penalty-player-head {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 18px; height: 18px; border-radius: 50%;
    background: #e8b88a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 3;
}
.penalty-player-torso {
    position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
    width: 32px; height: 30px; border-radius: 8px 8px 4px 4px;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.milan-kit {
    background: repeating-linear-gradient(90deg, var(--red) 0 8px, #111 8px 16px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}
.penalty-player-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px; color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.02em;
}
.penalty-player-legs {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 40px; height: 28px;
}
.penalty-leg {
    position: absolute; bottom: 0;
    width: 10px; height: 26px;
    background: #1a1a1a;
    border-radius: 4px 4px 2px 2px;
}
.penalty-leg::after {
    content: '';
    position: absolute; bottom: -3px; left: -2px;
    width: 14px; height: 6px;
    background: #222;
    border-radius: 2px;
}
.leg-stand { left: 8px; transform: rotate(5deg); }
.leg-kick {
    right: 6px;
    transform-origin: top center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.leg-kick.kick-left { transform: rotate(-55deg); }
.leg-kick.kick-center { transform: rotate(-75deg); }
.leg-kick.kick-right { transform: rotate(-95deg); }

.penalty-result {
    position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.06em;
    opacity: 0; pointer-events: none; z-index: 8; white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.penalty-result.is-goal,
.penalty-result.is-save { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
.penalty-result.is-goal {
    color: #fff; text-shadow: 0 2px 12px rgba(224,7,26,0.8), 0 0 24px rgba(224,7,26,0.5);
}
.penalty-result.is-save {
    color: #fff; text-shadow: 0 2px 12px rgba(0,104,168,0.9), 0 0 20px rgba(0,0,0,0.4);
}
.penalty-spot {
    position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%);
    width: 16px; height: 16px; background: rgba(255,255,255,0.9);
    border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
    z-index: 1;
}
.penalty-ball {
    position: absolute; bottom: 13%; left: 50%;
    transform: translateX(-50%);
    font-size: 1.65rem; z-index: 7;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
    transition: bottom 0.55s cubic-bezier(0.25, 0.8, 0.35, 1),
                left 0.55s cubic-bezier(0.25, 0.8, 0.35, 1),
                transform 0.55s cubic-bezier(0.25, 0.8, 0.35, 1);
}
.penalty-ball.shoot-left { bottom: 52%; left: 30%; transform: translateX(-50%) scale(0.8); }
.penalty-ball.shoot-center { bottom: 56%; left: 50%; transform: translateX(-50%) scale(0.8); }
.penalty-ball.shoot-right { bottom: 52%; left: 70%; transform: translateX(-50%) scale(0.8); }
.penalty-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.7rem;
}
.penalty-controls.is-disabled { opacity: 0.55; pointer-events: none; }
.penalty-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.9rem 0.5rem;
    background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
    border: 1.5px solid rgba(224, 7, 26, 0.35);
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    color: #111;
    transition: all 0.2s ease;
    box-shadow: 0 6px 16px rgba(17, 17, 17, 0.05);
}
.penalty-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: #fff;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(224, 7, 26, 0.28);
}
.penalty-btn-icon svg {
    display: block;
}
.penalty-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(224, 7, 26, 0.28);
}
.penalty-btn:hover:not(:disabled) .penalty-btn-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
}
.penalty-btn-main {
    border-color: rgba(224, 7, 26, 0.35);
    background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}
.penalty-btn-main .penalty-btn-icon {
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(224, 7, 26, 0.28);
}
.penalty-btn-main:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(224, 7, 26, 0.28);
}
.penalty-btn-main:hover:not(:disabled) .penalty-btn-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    box-shadow: none;
}
.penalty-hint {
    text-align: center; font-size: 0.875rem; font-weight: 600;
    color: var(--text-muted); margin: 1rem 0 0;
}
.penalty-final.hidden { display: none; }
.penalty-final-card { padding: 2.5rem 2rem; text-align: center; }
.penalty-final-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }
.penalty-final-title {
    font-family: 'Bebas Neue', sans-serif; font-size: 2.25rem;
    letter-spacing: 0.04em; margin-bottom: 0.5rem;
}
.penalty-final-score {
    font-family: 'Bebas Neue', sans-serif; font-size: 2.75rem;
    color: var(--red); letter-spacing: 0.04em; margin-bottom: 0.75rem;
}
.penalty-final-msg { color: var(--text); font-size: 1rem; margin-bottom: 0.5rem; }
.penalty-final-points { color: var(--text-muted); font-weight: 700; font-size: 0.9rem; margin-bottom: 1.5rem; }
.penalty-final-actions {
    display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.penalty-feature-card {
    position: relative; overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-light);
}
.penalty-feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--red);
}
@media (max-width: 480px) {
    .penalty-pitch { height: 300px; }
    .penalty-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }
    .penalty-btn {
        flex-direction: column;
        justify-content: center;
        gap: 0.25rem;
        padding: 0.65rem 0.25rem;
        font-size: 0.72rem;
        border-radius: 12px;
    }
    .penalty-btn-icon {
        width: 34px;
        height: 34px;
    }
    .penalty-btn-icon svg {
        width: 18px;
        height: 18px;
    }
    .penalty-shooter { bottom: 6%; }
    .penalty-ball.shoot-left { bottom: 50%; left: 28%; }
    .penalty-ball.shoot-center { bottom: 54%; }
    .penalty-ball.shoot-right { bottom: 50%; left: 72%; }
}

/* ===== Meme Instagram Feed ===== */
.meme-feed {
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.meme-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: visible;
}
.meme-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
}
.meme-card-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    overflow: hidden;
}
.meme-card-avatar--logo {
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    padding: 2px;
}
.meme-card-avatar--logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.meme-card-user {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.meme-card-user strong { font-size: 0.9rem; }
.meme-card-user span { font-size: 0.72rem; color: var(--text-light); }
.meme-card-media {
    background: #000;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    scroll-margin-top: 72px;
    transition: min-height 0.32s ease, max-height 0.32s ease;
}
.meme-card-media img,
.meme-card-media .meme-video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(85vh, 720px);
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    background: #000;
    transition: max-height 0.32s ease;
}
.meme-card.comments-open .meme-card-media {
    min-height: 0;
    max-height: 34vh;
}
.meme-card.comments-open .meme-card-media img,
.meme-card.comments-open .meme-card-media .meme-video {
    max-height: 34vh;
}
.meme-card.comments-open .meme-card-header,
.meme-card.comments-open .meme-card-actions,
.meme-card.comments-open .meme-card-stats,
.meme-card.comments-open .meme-card-caption {
    display: none;
}
.meme-card-media.is-video {
    cursor: pointer;
}
.meme-card-media.is-video .meme-video {
    background: #000;
}
.meme-video-play {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.meme-card-media.is-paused .meme-video-play {
    opacity: 1;
}
.meme-video-play svg {
    color: #fff;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
    background: rgba(0, 0, 0, 0.35);
    border-radius: 50%;
    padding: 0.85rem;
    box-sizing: content-box;
}
.meme-video-mute {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.meme-video-mute .meme-mute-off { display: none; }
.meme-video-mute.is-unmuted .meme-mute-on { display: none; }
.meme-video-mute.is-unmuted .meme-mute-off { display: block; }
.meme-like-burst {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}
.meme-like-burst svg {
    width: 96px;
    height: 96px;
    color: #fff;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
    transform: scale(0);
}
.meme-like-burst.is-playing {
    opacity: 1;
}
.meme-like-burst.is-playing svg {
    animation: meme-heart-burst 0.85s cubic-bezier(0.17, 0.89, 0.32, 1.25) forwards;
}
@keyframes meme-heart-burst {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-12deg);
    }
    18% {
        opacity: 1;
        transform: scale(1.35) rotate(0deg);
    }
    35% {
        transform: scale(0.92) rotate(4deg);
    }
    55% {
        opacity: 1;
        transform: scale(1.08) rotate(-2deg);
    }
    100% {
        opacity: 0;
        transform: scale(1.4) rotate(0deg);
    }
}
.meme-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.65rem 0.15rem;
}
.meme-action-btn {
    background: none;
    border: none;
    padding: 0.35rem;
    cursor: pointer;
    color: #111;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.15s ease;
}
.meme-action-btn:active { transform: scale(0.9); }
.meme-like-btn .meme-heart-filled { display: none; color: #ED4956; }
.meme-like-btn.is-liked .meme-heart-outline { display: none; }
.meme-like-btn.is-liked .meme-heart-filled { display: block; animation: meme-pop 0.35s ease; }
@keyframes meme-pop {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.meme-card-stats {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 1rem 0.35rem;
    font-size: 0.85rem;
}
.meme-card-stats strong { font-weight: 800; }
.meme-card-caption {
    padding: 0 1rem 0.6rem;
    font-size: 0.9rem;
    line-height: 1.4;
}
.meme-card-caption strong { margin-right: 0.35rem; }
.meme-comments-count {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.meme-comments-count:hover { color: var(--red); }
.meme-comment-toggle.is-active { color: var(--red); }

/* Bottom sheet comments — Instagram-style split with shrunk media */
.meme-comments-sheet {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
}
.meme-comments-sheet:not(.is-collapsed) {
    visibility: visible;
    pointer-events: auto;
}
.meme-comments-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(10, 10, 10, 0.35);
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.28s ease;
}
.meme-comments-sheet:not(.is-collapsed) .meme-comments-backdrop {
    opacity: 1;
}
.meme-comments-panel {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    height: min(66vh, 700px);
    max-height: min(66vh, 700px);
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    transform: translateY(110%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    touch-action: pan-y;
}
.meme-comments-panel.is-dragging {
    transition: none;
}
.meme-comments-sheet:not(.is-collapsed) .meme-comments-panel {
    transform: translateY(0);
}
.meme-comments-grabber {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.7rem 0 0.35rem;
    cursor: grab;
    touch-action: none;
}
.meme-comments-grabber span {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: #d0d0d0;
}
.meme-comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 1rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    touch-action: none;
}
.meme-comments-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    line-height: 1;
    user-select: none;
}
.meme-brand-hash,
.meme-brand-milan {
    color: var(--red);
}
.meme-brand-sempre {
    color: #111;
}
.meme-comments-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.meme-comments-close:hover {
    background: rgba(224, 7, 26, 0.12);
    color: var(--red);
}
.meme-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-height: 160px;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0.9rem 1rem;
    -webkit-overflow-scrolling: touch;
}
.meme-comments-list:empty,
.meme-comments-list.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.meme-comments-list:empty::after,
.meme-comments-list.is-empty::after {
    content: 'Ende nuk ka komente. Bëhu i pari!';
}
.meme-comments-list.is-empty:not(:empty)::after {
    display: none;
}
.meme-comments-sheet .meme-comment-form,
.meme-comments-sheet .meme-login-hint {
    flex-shrink: 0;
    margin: 0;
    padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-light);
    background: #fff;
}
.meme-comments-sheet .meme-comment-form {
    border-top: 1px solid var(--border-light);
    padding-top: 0.75rem;
}
.meme-comments-sheet .meme-comment-input {
    background: #f4f4f4;
    border-radius: 999px;
    padding: 0.6rem 1rem;
}
.meme-comments-sheet .meme-comment-submit {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
}
.meme-comment-submit {
    background: none;
    border: none;
    color: var(--red);
    font-weight: 800;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background 0.15s ease, opacity 0.15s ease, transform 0.12s ease;
}
.meme-comment-submit svg {
    display: block;
    margin-left: 2px; /* optical center for paper-plane */
}
.meme-comment-submit:not(:disabled):hover {
    background: rgba(224, 7, 26, 0.1);
}
.meme-comment-submit:not(:disabled):active {
    transform: scale(0.92);
}
.meme-comment-submit:disabled {
    opacity: 0.35;
    cursor: default;
}
body.meme-sheet-open {
    overflow: hidden;
}
.meme-comment {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
}
.meme-comment.is-reply { margin-top: 0.45rem; }
.meme-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        repeating-linear-gradient(
            135deg,
            #111 0 4px,
            var(--red) 4px 8px
        );
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
    border: 1.5px solid #111;
    box-shadow: 0 0 0 1px var(--red);
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
.meme-comment-main { flex: 1; min-width: 0; }
.meme-comment-bubble {
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}
.meme-comment-author { margin-right: 0.3rem; }
.meme-comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-light);
}
.meme-comment-like-btn,
.meme-comment-reply-btn,
.meme-comment-edit-btn,
.meme-comment-delete-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-light);
}
.meme-comment-like-btn.is-liked { color: var(--red); }
.meme-comment-like-btn:disabled { cursor: default; opacity: 0.6; }
.meme-c-like-count {
    margin-left: 0.25rem;
    font-weight: 800;
}
.meme-comment-delete-btn:hover { color: #DC2626; }
.meme-replies {
    margin-top: 0.45rem;
    padding-left: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.meme-comment-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 0.65rem;
    position: relative;
    flex-wrap: wrap;
}
.meme-reply-hint {
    width: 100%;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.meme-reply-cancel {
    background: none;
    border: none;
    color: var(--red);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    margin-left: 0.35rem;
}
.meme-comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    min-width: 0;
    padding: 0.35rem 0;
}
.meme-login-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding-top: 0.35rem;
}
.meme-login-hint a { color: var(--red); font-weight: 700; }
.meme-comment-edit-box { margin-top: 0.4rem; }
.meme-comment-edit-box.hidden { display: none; }
.meme-comment-edit-input {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    resize: vertical;
}
.meme-comment-edit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
.meme-comment-save-btn,
.meme-comment-cancel-btn {
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.meme-comment-save-btn { background: var(--red); color: #fff; }
.meme-comment-cancel-btn { background: #eee; color: #333; }
@media (max-width: 600px) {
    .meme-feed { max-width: 100%; }
    .meme-card { border-radius: 0; border-left: none; border-right: none; }
}

/* ── Lajme Flash ── */
.flash-feed {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 760px;
}
.flash-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-left: 4px solid var(--red);
    border-radius: 14px;
    padding: 1.15rem 1.25rem 1.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.flash-card-single {
    padding: 1.5rem 1.5rem 1.35rem;
}
.flash-card-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.flash-card-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}
.flash-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    letter-spacing: 0.03em;
    margin: 0 0 0.45rem;
    line-height: 1.15;
}
.flash-card-title a {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}
.flash-card-title a > span:first-child {
    flex: 1;
    min-width: 0;
}
.flash-card-arrow {
    flex-shrink: 0;
    color: var(--red);
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.1;
    transition: transform 0.18s ease;
}
.flash-card-title a:hover { color: var(--red); }
.flash-card-title a:hover .flash-card-arrow { transform: translateX(4px); }
.flash-card-body {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-wrap;
}
.flash-back {
    display: inline-block;
    margin-top: 1.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}
.flash-back:hover { text-decoration: underline; }
.flash-empty {
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--text-muted);
    background: #fff;
    border-radius: 14px;
    border: 1px dashed rgba(0,0,0,0.1);
}

/* ── Lineup builder ── */
.lineup-app { margin-bottom: 2rem; }
.lineup-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}
.lineup-formations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.lineup-formation-btn {
    border: 1.5px solid #E5E5E5;
    background: #fff;
    color: var(--text);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.lineup-formation-btn.is-active,
.lineup-formation-btn:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.lineup-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}
.lineup-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}
.lineup-status.is-ok { color: #15803d; }
.lineup-status.is-err { color: var(--red); }
.lineup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 1.25rem;
    align-items: start;
}
.lineup-pitch-wrap { min-width: 0; }
.lineup-pitch {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    max-height: 640px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(160deg, #1a7a3a 0%, #14632f 45%, #0f5226 100%);
    background-size: 28px 28px, 28px 28px, auto;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}
.lineup-pitch-mark {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.35);
    pointer-events: none;
}
.lineup-pitch-halfway {
    left: 8%;
    right: 8%;
    top: 50%;
    height: 0;
    border-width: 1.5px 0 0;
}
.lineup-pitch-circle {
    width: 22%;
    aspect-ratio: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}
.lineup-pitch-box-top {
    width: 44%;
    height: 14%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-top: none;
    border-radius: 0 0 8px 8px;
}
.lineup-pitch-box-bottom {
    width: 44%;
    height: 14%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.lineup-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}
.lineup-slot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 72px;
    z-index: 2;
}
.lineup-slot.is-drop-target .lineup-slot-empty,
.lineup-slot.is-drop-target .lineup-slot-chip {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(172,0,0,0.55);
}
.lineup-slot.is-drop-invalid .lineup-slot-empty,
.lineup-slot.is-drop-invalid .lineup-slot-chip {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(80,80,80,0.55);
    opacity: 0.7;
}
.lineup-slot-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.18);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.lineup-slot-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    cursor: grab;
    user-select: none;
}
.lineup-slot-chip:active { cursor: grabbing; }
.lineup-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    background: linear-gradient(135deg, var(--red), var(--black));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
.lineup-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lineup-avatar-letter {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    font-family: 'Bebas Neue', sans-serif;
}
.lineup-slot-name {
    max-width: 78px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lineup-slot-pos {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}
.lineup-slot-remove {
    position: absolute;
    top: -4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.lineup-pool-panel {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 0.9rem;
    box-shadow: 0 8px 24px rgba(17,17,17,0.05);
    max-height: 680px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.lineup-pool-filters { margin-bottom: 0.75rem; }
.lineup-search {
    margin-bottom: 0.55rem;
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
}
.lineup-pos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.lineup-pos-btn {
    border: 1px solid #E8E8E8;
    background: #fafafa;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
}
.lineup-pos-btn.is-active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.lineup-pool {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 0;
    flex: 1;
    padding-right: 0.2rem;
}
.lineup-pool-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    border: 1px solid #EFEFEF;
    background: #fafafa;
    border-radius: 12px;
    padding: 0.45rem 0.55rem;
    cursor: grab;
    font: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.lineup-pool-card:hover,
.lineup-pool-card.is-selected {
    border-color: rgba(172,0,0,0.35);
    background: #fff;
}
.lineup-pool-card.is-selected {
    box-shadow: 0 0 0 2px rgba(172,0,0,0.15);
}
.lineup-pool-card.is-dragging { opacity: 0.55; }
.lineup-pool-card .lineup-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.lineup-pool-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.lineup-pool-meta strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lineup-pool-meta small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}
@media (max-width: 900px) {
    .lineup-layout { grid-template-columns: 1fr; }
    .lineup-pitch {
        max-width: 420px;
        max-height: none;
    }
    .lineup-pool-panel { max-height: 360px; }
    .lineup-slot { width: 64px; }
    .lineup-avatar { width: 46px; height: 46px; }
    .lineup-slot-empty { width: 50px; height: 50px; }
}


