/* Na Netflixu – Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background-color: #0A0A0A;
    color: #ffffff;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background-color: #B9090B; color: white; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: #2A2A2A; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== Typography ===== */
.font-heading  { font-family: 'Outfit', sans-serif; }
.font-numeral  { font-family: 'Bebas Neue', sans-serif; }
.font-body     { font-family: 'Manrope', sans-serif; }

/* ===== Colors ===== */
.text-gold    { color: #D4AF37; }
.text-crimson { color: #B9090B; }
.bg-crimson   { background-color: #B9090B; }

/* ===== Admin bar (visible only when logged in as admin) ===== */
#admin-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    height: 32px;
    background: #B9090B;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.admin-bar-label {
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .65rem;
    margin-right: .75rem;
    padding-right: .75rem;
    border-right: 1px solid rgba(255,255,255,.25);
}
.admin-bar-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #fff;
    text-decoration: none;
    padding: 0 .75rem;
    height: 32px;
    transition: background .15s;
    border-radius: 0;
}
.admin-bar-link:hover { background: rgba(0,0,0,.25); }
.admin-bar-edit {
    background: rgba(0,0,0,.2);
    font-weight: 700;
}
/* Push the navbar down when admin bar is visible */
body:has(#admin-bar) .navbar { top: 32px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background 0.5s, border-color 0.5s;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.navbar.scrolled {
    background-color: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-inner {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 64px;
}
@media (min-width: 768px) { .navbar-inner { padding: 0 3rem; height: 80px; } }
@media (min-width: 1024px) { .navbar-inner { padding: 0 4rem; } }

.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    user-select: none;
    text-decoration: none;
}
.logo-main  { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: #B9090B; letter-spacing: 0.1em; line-height: 1; }
.logo-tld   { font-family: 'Bebas Neue', sans-serif; font-size: 1.25rem; color: rgba(255,255,255,0.8); line-height: 1; }
@media (min-width: 768px) { .logo-main { font-size: 2.25rem; } .logo-tld { font-size: 1.5rem; } }

.nav-links { display: none; list-style: none; align-items: center; gap: 1.75rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.nav-active { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .nav-right { gap: 1.25rem; } }

.nav-icon-btn {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
    padding: 4px;
}
.nav-icon-btn:hover { color: #fff; }

.nav-avatar {
    width: 36px; height: 36px;
    background: #B9090B;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    cursor: pointer;
}

/* Search */
.search-form {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    padding: 0 0.75rem;
    height: 36px;
    position: relative;
}
.search-form input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.875rem;
    width: 160px;
}
@media (min-width: 768px) { .search-form input { width: 224px; } }
.search-form input::placeholder { color: rgba(255,255,255,0.4); }

.search-results {
    position: absolute;
    right: 0; top: 48px;
    width: 320px;
    max-height: 384px;
    overflow-y: auto;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    z-index: 100;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.search-result-item:hover { background: rgba(255,255,255,0.07); }
.search-result-item img { width: 40px; height: 56px; object-fit: cover; border-radius: 3px; }
.search-result-title { font-size: 0.875rem; font-weight: 600; color: #fff; }
.search-result-meta  { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Mobile menu */
.mobile-menu-btn {
    display: flex; align-items: center;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.85);
}
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,10,10,0.98);
    z-index: 60;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: #B9090B; }
.mobile-close {
    position: absolute; top: 1.5rem; right: 1.5rem;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.7); font-size: 1.5rem;
}

/* ===== Hero Banner ===== */
.hero {
    position: relative;
    width: 100%;
    height: 78vh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
@media (min-width: 768px) { .hero { height: 92vh; } }

.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.hero-gradient-bottom {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(10,10,10,0.6) 70%, #0A0A0A 100%);
}
.hero-gradient-left {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 40%, rgba(10,10,10,0.2) 70%, transparent 100%);
}
.hero-grain {
    position: absolute; inset: 0;
    pointer-events: none; opacity: 0.2; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-content {
    position: relative; z-index: 10;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem 4rem;
}
@media (min-width: 768px) { .hero-content { padding: 0 3rem 7rem; } }
@media (min-width: 1024px) { .hero-content { padding: 0 4rem 7rem; } }

.hero-inner { max-width: 672px; animation: fadeUp 0.7s ease-out both; }

.hero-badge {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.2em;
    color: #D4AF37;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: block;
}
@media (min-width: 768px) { .hero-badge { font-size: 1rem; } }

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 0.95;
    margin-bottom: 1rem;
    text-shadow: 0 4px 32px rgba(0,0,0,0.7);
}
@media (min-width: 768px) { .hero-title { font-size: clamp(3rem, 8vw, 5rem); } }

.hero-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem;
    font-size: 0.75rem; color: rgba(255,255,255,0.8);
    font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .hero-meta { font-size: 0.875rem; } }
.hero-meta .match { color: #D4AF37; }
.hero-meta .rated  { border: 1px solid rgba(255,255,255,0.4); padding: 1px 6px; border-radius: 2px; }
.hero-meta .hd     { border: 1px solid rgba(255,255,255,0.4); padding: 1px 6px; border-radius: 2px; display: none; }
@media (min-width: 768px) { .hero-meta .hd { display: inline; } }

.hero-synopsis {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 576px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .hero-synopsis { font-size: 1.125rem; -webkit-line-clamp: none; } }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.btn-play {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #fff; color: #000;
    font-weight: 600; padding: 0.75rem 1.75rem;
    border-radius: 4px; border: none; cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-play:hover { background: rgba(255,255,255,0.85); }

.btn-info {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #fff; font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 4px; border: none; cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-info:hover { background: rgba(255,255,255,0.3); }

.btn-circle {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.6);
    background: transparent;
    display: none; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
@media (min-width: 768px) { .btn-circle { display: inline-flex; } }
.btn-circle:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-right {
    position: absolute;
    right: 1rem; bottom: 6rem;
    z-index: 10;
    display: flex; align-items: center; gap: 0.75rem;
}
@media (min-width: 768px) { .hero-right { right: 3rem; bottom: 8rem; } }

.hero-mute-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
    transition: border-color 0.2s;
}
.hero-mute-btn:hover { border-color: #fff; }

.hero-rating-strip {
    display: none;
    align-items: center;
    background: rgba(0,0,0,0.4);
    border-left: 4px solid rgba(255,255,255,0.8);
    padding: 4px 24px 4px 12px;
    font-size: 0.875rem; font-weight: 600;
    color: #fff;
}
@media (min-width: 768px) { .hero-rating-strip { display: flex; } }

/* ===== Content Rows ===== */
.content-section {
    position: relative;
    padding: 1rem 0 1.5rem;
}
@media (min-width: 768px) { .content-section { padding: 1.5rem 0; } }

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0.75rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .row-header { padding: 0 3rem 1rem; margin-bottom: 1rem; } }
@media (min-width: 1024px) { .row-header { padding: 0 4rem 1rem; } }

.row-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}
@media (min-width: 768px) { .row-title { font-size: 1.5rem; } }
@media (min-width: 1024px) { .row-title { font-size: 1.75rem; } }

.row-showall {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D4AF37;
    font-weight: 600;
    display: none;
    align-items: center; gap: 3px;
    transition: color 0.2s;
}
.content-section:hover .row-showall { display: inline-flex; }
.row-showall:hover { color: #fff; }

.row-scroll-wrapper { position: relative; }

.row-scroll-btn {
    position: absolute; top: 0; bottom: 0; z-index: 30;
    display: none; align-items: center; justify-content: center;
    width: 3rem;
    transition: opacity 0.2s;
    border: none; cursor: pointer;
    color: #fff;
    opacity: 0;
}
@media (min-width: 768px) { .row-scroll-btn { display: flex; } }
.content-section:hover .row-scroll-btn { opacity: 1; }

.row-scroll-btn.left {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85), transparent);
}
.row-scroll-btn.right {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.85), transparent);
}
@media (min-width: 1024px) { .row-scroll-btn { width: 4rem; } }

.row-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 8px;
    padding: 8px 1rem 8px;
}
.row-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .row-scroll { gap: 12px; padding: 8px 3rem 8px; } }
@media (min-width: 1024px) { .row-scroll { padding: 8px 4rem 8px; } }

/* ===== Poster Card ===== */
.poster-card {
    position: relative;
    flex: none;
    width: 140px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.9);
    transition: transform 320ms cubic-bezier(0.22,1,0.36,1), box-shadow 320ms;
    display: block;
    z-index: 1;
}
@media (min-width: 768px) { .poster-card { width: 200px; } }
.poster-card:hover {
    transform: scale(1.06);
    z-index: 20;
    box-shadow: 0 0 40px -5px rgba(185,9,11,0.5);
}

.poster-fallback {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(185,9,11,0.4), #1a0a0a, rgba(212,175,55,0.3));
    display: flex; align-items: center; justify-content: center;
    padding: 0.75rem;
}
.poster-fallback span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}
.poster-img {
    position: relative;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.poster-card:hover .poster-img { transform: scale(1.1); }
.poster-card img[style*="opacity: 0"] { display: none; }

.poster-hover {
    position: absolute; inset-x: 0; bottom: 0;
    padding: 0.75rem;
    background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}
.poster-card:hover .poster-hover { opacity: 1; }
.poster-hover-title {
    font-size: 0.875rem; font-weight: 600; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.poster-hover-meta {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 4px; font-size: 0.625rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.poster-hover-meta .match { color: #D4AF37; font-weight: 700; }
.poster-hover-meta .year  { color: rgba(255,255,255,0.8); }
.poster-hover-btns {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px;
}
.poster-hover-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.poster-hover-btn.white { background: #fff; }
.poster-hover-btn.outline {
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent; color: #fff;
}
.poster-hover-btn.ml { margin-left: auto; }

.badge-original {
    position: absolute; top: 8px; left: 8px;
    background: rgba(185,9,11,0.95);
    color: #fff; font-size: 0.5625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 2px 6px; border-radius: 2px;
    pointer-events: none;
}

/* Platform badges (Z jiných platforem) */
.badge-platform {
    position: absolute; top: 8px; left: 8px;
    background: var(--pbg, #444);
    color: var(--pfg, #fff);
    font-size: 0.5625rem; font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 7px; border-radius: 3px;
    pointer-events: none;
    white-space: nowrap;
}
/* stack multiple platform badges */
.badge-platform ~ .badge-platform { top: 28px; }
.badge-platform ~ .badge-platform ~ .badge-platform { top: 48px; }

/* Platform legend chips in row header */
.platform-legend {
    display: flex; gap: .35rem; flex-wrap: wrap; align-items: center;
}
.platform-legend-item {
    background: var(--pbg, #444);
    color: var(--pfg, #fff);
    font-size: .65rem; font-weight: 700;
    padding: 2px 8px; border-radius: 3px;
    letter-spacing: .05em;
}

/* ===== TOP 10 Row ===== */
.top10-section { position: relative; padding: 1rem 0 1.5rem; }
@media (min-width: 768px) { .top10-section { padding: 1.5rem 0; } }

.top10-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .top10-header { padding: 0 3rem; margin-bottom: 1rem; } }
@media (min-width: 1024px) { .top10-header { padding: 0 4rem; } }

.top10-label {
    background: #B9090B; color: #fff;
    font-size: 0.625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    padding: 3px 8px; border-radius: 2px;
    margin-right: 0.75rem;
}

.top10-title-label {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem; font-weight: 600; color: #fff;
}
@media (min-width: 768px) { .top10-title-label { font-size: 1.75rem; } }

.top10-showall {
    display: none;
    align-items: center; gap: 4px;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #D4AF37; transition: color 0.2s;
}
@media (min-width: 768px) { .top10-showall { display: inline-flex; } }
.top10-showall:hover { color: #fff; }

.top10-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 4px;
    padding: 8px 1rem 16px;
}
@media (min-width: 768px) { .top10-scroll { gap: 8px; padding: 16px 3rem 16px; } }
@media (min-width: 1024px) { .top10-scroll { padding: 16px 4rem 16px; } }
.top10-scroll::-webkit-scrollbar { display: none; }

.top10-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex: none;
    scroll-snap-align: start;
    width: 280px;
    height: 180px;
    text-decoration: none;
}
@media (min-width: 768px) { .top10-card { width: 380px; height: 260px; } }

.top10-numeral {
    position: absolute;
    left: -8px; bottom: -30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(160px, 22vw, 320px);
    line-height: 0.8;
    -webkit-text-stroke: 3px #595959;
    color: transparent;
    user-select: none;
    pointer-events: none;
}
@media (min-width: 768px) { .top10-numeral { left: -12px; bottom: -50px; } }

.top10-poster {
    position: relative;
    margin-left: auto;
    height: 100%;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.9);
    transition: transform 0.3s;
}
.top10-card:hover .top10-poster { transform: scale(1.05); }
.top10-poster img { width: 100%; height: 100%; object-fit: cover; }

.top10-rank1-badge {
    position: absolute; top: 8px; right: 8px;
    background: #D4AF37; color: #000;
    font-size: 0.5625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 2px 6px; border-radius: 2px;
}

/* ===== Magazine Card ===== */
.mag-featured {
    position: relative;
    display: block;
    width: 100%; height: 420px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}
@media (min-width: 768px) { .mag-featured { height: 560px; } }

.mag-featured img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}
.mag-featured:hover img { transform: scale(1.05); }
.mag-featured-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.mag-featured-body {
    position: absolute; inset-x: 0; bottom: 0;
    padding: 1.5rem;
    max-width: 768px;
}
@media (min-width: 768px) { .mag-featured-body { padding: 2.5rem; } }
.mag-cat {
    display: inline-block;
    color: #D4AF37; font-weight: 700; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.2em;
    border-left: 2px solid #D4AF37; padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}
.mag-featured-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem; font-weight: 800;
    color: #fff; margin-bottom: 0.75rem;
    line-height: 1.2;
    transition: color 0.2s;
}
@media (min-width: 768px) { .mag-featured-title { font-size: 3rem; } }
.mag-featured:hover .mag-featured-title { color: #D4AF37; }
.mag-featured-excerpt {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    font-size: 0.75rem; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}
.mag-meta-dot { width: 4px; height: 4px; background: rgba(255,255,255,0.5); border-radius: 50%; }
.mag-meta-read { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .mag-meta-read { display: flex; } }

.mag-card {
    display: flex; flex-direction: column; gap: 0.75rem;
    text-decoration: none; cursor: pointer;
    color: inherit;
}
.mag-card-img {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}
.mag-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.mag-card:hover .mag-card-img img { transform: scale(1.1); }
.mag-card-cat {
    color: #D4AF37; font-size: 0.625rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
}
@media (min-width: 768px) { .mag-card-cat { font-size: 0.75rem; } }
.mag-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem; font-weight: 600;
    color: #fff; margin-top: 4px; margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .mag-card-title { font-size: 1.25rem; } }
.mag-card:hover .mag-card-title { color: #B9090B; }
.mag-card-excerpt {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mag-card-meta {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.6875rem; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}

/* ===== Magazine home section ===== */
.mag-home-section { padding: 3rem 1rem 0; }
@media (min-width: 768px) { .mag-home-section { padding: 4rem 3rem 0; } }
@media (min-width: 1024px) { .mag-home-section { padding: 4rem 4rem 0; } }
.mag-home-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .mag-home-header { margin-bottom: 2rem; } }
.mag-home-subtitle {
    color: #D4AF37; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.25em; margin-bottom: 0.5rem;
}
@media (min-width: 768px) { .mag-home-subtitle { font-size: 0.875rem; } }
.mag-home-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.875rem; font-weight: 700; color: #fff;
}
@media (min-width: 768px) { .mag-home-title { font-size: 2.25rem; } }
.mag-home-all {
    font-size: 0.875rem; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
    display: flex; align-items: center; gap: 4px;
    transition: color 0.2s;
}
.mag-home-all:hover { color: #fff; }
.mag-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) { .mag-home-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* ===== Footer ===== */
.footer {
    background: #070707;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1920px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
@media (min-width: 768px) { .footer-inner { padding: 4rem 3rem; } }
@media (min-width: 1024px) { .footer-inner { padding: 4rem 4rem; } }

.footer-top {
    display: flex; flex-direction: column;
    gap: 2rem; margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }

.footer-desc { color: rgba(255,255,255,0.5); font-size: 0.875rem; max-width: 28rem; margin-top: 0.5rem; }

.footer-socials { display: flex; align-items: center; gap: 1rem; }
.footer-social-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.footer-social-btn:hover { border-color: #D4AF37; color: #D4AF37; }

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 0.875rem;
}
@media (min-width: 768px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }

.footer-col-title {
    font-family: 'Outfit', sans-serif;
    color: #fff; font-size: 0.875rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; gap: 1rem;
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-heart { color: #B9090B; }

/* ===== Pages ===== */
.page-header {
    padding: 7rem 1rem 0;
}
@media (min-width: 768px) { .page-header { padding: 8rem 3rem 0; } }
@media (min-width: 1024px) { .page-header { padding: 8rem 4rem 0; } }

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem; font-weight: 800;
    color: #fff; letter-spacing: -0.02em;
}
@media (min-width: 768px) { .page-title { font-size: 3.75rem; } }
@media (min-width: 1024px) { .page-title { font-size: 4.5rem; } }

.page-subtitle {
    color: #D4AF37;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.25em;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) { .page-subtitle { font-size: 0.875rem; } }

.page-desc {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    max-width: 40rem;
    margin-top: 0.75rem;
}
@media (min-width: 768px) { .page-desc { font-size: 1.125rem; } }

/* ===== Filter categories ===== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2rem 1rem 0;
}
.filter-bar::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .filter-bar { padding: 2rem 3rem 0; gap: 0.75rem; } }
@media (min-width: 1024px) { .filter-bar { padding: 2rem 4rem 0; } }

.filter-btn {
    flex: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem; font-weight: 500; letter-spacing: 0.025em;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
}
@media (min-width: 768px) { .filter-btn { font-size: 0.875rem; } }
.filter-btn.active { background: #B9090B; color: #fff; }
.filter-btn.inactive { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); }
.filter-btn.inactive:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== Titles grid ===== */
.titles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 2rem 1rem;
}
@media (min-width: 640px) { .titles-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
@media (min-width: 768px) { .titles-grid { grid-template-columns: repeat(4, 1fr); padding: 2rem 3rem; } }
@media (min-width: 1024px) { .titles-grid { grid-template-columns: repeat(6, 1fr); padding: 2rem 4rem; gap: 1.25rem; } }
@media (min-width: 1280px) { .titles-grid { grid-template-columns: repeat(7, 1fr); } }

/* ===== TOP 10 page ===== */
.top10-page-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 2rem 1rem;
}
@media (min-width: 768px) { .top10-page-grid { padding: 2rem 3rem; } }
@media (min-width: 1024px) { .top10-page-grid { padding: 2rem 4rem; } }

.top10-list-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    border-radius: 8px;
    padding-left: 0.5rem;
}
.top10-list-item:hover { background: rgba(255,255,255,0.03); }
.top10-list-rank {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem; color: rgba(255,255,255,0.15);
    min-width: 50px; text-align: center;
    line-height: 1;
}
@media (min-width: 768px) { .top10-list-rank { font-size: 5rem; min-width: 80px; } }
.top10-list-rank.rank1 { color: #D4AF37; }

.top10-list-poster {
    width: 60px; height: 90px;
    border-radius: 4px; overflow: hidden; flex-none;
}
@media (min-width: 768px) { .top10-list-poster { width: 80px; height: 120px; } }
.top10-list-poster img { width: 100%; height: 100%; object-fit: cover; }

.top10-list-info { flex: 1; min-width: 0; }
.top10-list-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700; color: #fff;
    margin-bottom: 4px;
}
@media (min-width: 768px) { .top10-list-title { font-size: 1.25rem; } }
.top10-list-meta { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.top10-list-match { font-size: 0.875rem; font-weight: 700; color: #D4AF37; margin-top: 4px; }

/* ===== Detail page ===== */
.detail-hero { position: relative; width: 100%; height: 75vh; min-height: 520px; overflow: hidden; }
@media (min-width: 768px) { .detail-hero { height: 88vh; } }
.detail-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero-content {
    position: relative; z-index: 10;
    max-width: 1920px; margin: 0 auto;
    height: 100%; display: flex; align-items: flex-end;
    padding: 0 1rem 3rem;
}
@media (min-width: 768px) { .detail-hero-content { padding: 0 3rem 5rem; } }
@media (min-width: 1024px) { .detail-hero-content { padding: 0 4rem 5rem; } }

.detail-inner { max-width: 768px; animation: fadeUp 0.7s ease-out both; }

.detail-badges { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.detail-badge-n {
    background: #B9090B; color: #fff;
    font-size: 0.625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em;
    padding: 3px 8px; border-radius: 2px;
}
@media (min-width: 768px) { .detail-badge-n { font-size: 0.75rem; } }
.detail-badge-extra {
    border: 1px solid rgba(212,175,55,0.5); color: #D4AF37;
    font-size: 0.625rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 3px 8px; border-radius: 2px;
}
@media (min-width: 768px) { .detail-badge-extra { font-size: 0.75rem; } }

.detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800; color: #fff;
    letter-spacing: -0.02em; line-height: 0.95;
    margin-bottom: 1rem;
    text-shadow: 0 4px 32px rgba(0,0,0,0.7);
}

.detail-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
    font-size: 0.75rem; color: rgba(255,255,255,0.85);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .detail-meta { font-size: 0.875rem; } }
.detail-meta .match { color: #D4AF37; }
.detail-meta .rated, .detail-meta .hd, .detail-meta .res51 {
    border: 1px solid rgba(255,255,255,0.4); padding: 1px 6px; border-radius: 2px;
}

.detail-synopsis {
    font-size: 1rem; color: rgba(255,255,255,0.9);
    line-height: 1.6; margin-bottom: 1.5rem;
    max-width: 672px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
@media (min-width: 768px) { .detail-synopsis { font-size: 1.125rem; } }

.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.btn-netflix {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #B9090B; color: #fff;
    font-weight: 600; padding: 0.75rem 1.75rem;
    border-radius: 4px; border: none; cursor: pointer;
    font-size: 1rem; text-decoration: none;
    transition: background 0.2s;
}
.btn-netflix:hover { background: #8A0608; }

.detail-tagline {
    color: #D4AF37; font-style: italic;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    margin-top: 1rem;
}
@media (min-width: 768px) { .detail-tagline { font-size: 1rem; } }

/* Detail tabs */
.detail-tabs {
    position: sticky; top: 64px; z-index: 30;
    background-color: rgba(10,10,10,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
@media (min-width: 768px) { .detail-tabs { top: 80px; } }

.detail-tabs-inner {
    max-width: 1920px; margin: 0 auto;
    padding: 0 1rem;
    display: flex; align-items: center; gap: 1.5rem;
    overflow-x: auto; scrollbar-width: none;
}
.detail-tabs-inner::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .detail-tabs-inner { padding: 0 3rem; gap: 2rem; } }
@media (min-width: 1024px) { .detail-tabs-inner { padding: 0 4rem; } }

.detail-tab {
    position: relative; flex: none;
    padding: 1rem 0;
    font-size: 0.875rem; font-weight: 600; letter-spacing: 0.025em;
    transition: color 0.2s;
    cursor: pointer;
    border: none; background: none; color: rgba(255,255,255,0.55);
    text-decoration: none; display: block;
}
@media (min-width: 768px) { .detail-tab { font-size: 1rem; } }
.detail-tab:hover { color: #fff; }
.detail-tab.active { color: #fff; }
.detail-tab.active::after {
    content: ''; position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px; background: #B9090B;
}

.detail-content {
    max-width: 1920px; margin: 0 auto;
    padding: 2.5rem 1rem;
}
@media (min-width: 768px) { .detail-content { padding: 3.5rem 3rem; } }
@media (min-width: 1024px) { .detail-content { padding: 3.5rem 4rem; } }

.detail-overview-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) { .detail-overview-grid { grid-template-columns: 2fr 1fr; gap: 3rem; } }

.detail-section-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: #D4AF37; margin-bottom: 0.75rem;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.meta-item-label {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5); margin-bottom: 4px;
}
.meta-item-value { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.9); }
@media (min-width: 768px) { .meta-item-value { font-size: 1rem; } }

.cast-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.cast-chip {
    padding: 4px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    font-size: 0.75rem; color: rgba(255,255,255,0.8);
    font-weight: 500;
}
/* Clickable cast chip (rich / synced) */
.cast-chip--link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 3px 12px 3px 3px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 9999px;
    font-family: inherit;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
    text-align: left;
}
.cast-chip--link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}
.cast-chip-photo {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.cast-chip-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.cast-chip-info {
    display: flex; flex-direction: column; gap: 0;
}
.cast-chip-name { line-height: 1.2; }
.cast-chip-role {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.38);
    line-height: 1;
}

/* ===== Person modal ===== */
.person-modal {
    position: fixed; inset: 0;
    z-index: 300;
    display: none;
    align-items: center; justify-content: center;
    padding: 1rem;
}
.person-modal.open { display: flex; }
.person-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.person-modal-inner {
    position: relative; z-index: 1;
    background: #141414;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    width: 100%; max-width: 860px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.9);
}
.person-modal-close {
    position: sticky;
    top: 0.75rem; right: 0;
    float: right;
    margin: 0.75rem 0.75rem 0 0;
    width: 34px; height: 34px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: #fff; font-size: 1.1rem; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}
.person-modal-close:hover { background: rgba(185,9,11,0.8); }
.person-modal-loading {
    min-height: 280px;
    display: flex; align-items: center; justify-content: center;
}
.person-modal-spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: #B9090B;
    border-radius: 50%;
    animation: person-spin 0.75s linear infinite;
}
@keyframes person-spin { to { transform: rotate(360deg); } }
.person-modal-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 2rem;
}
.person-modal-left { flex-shrink: 0; }
.person-photo {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    aspect-ratio: 2/3;
    background: #1a1a1a;
    display: block;
}
.person-photo-placeholder {
    width: 100%;
    aspect-ratio: 2/3;
    background: #1a1a1a;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: rgba(255,255,255,0.12);
}
.person-ext-links {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-top: 0.75rem;
}
.person-ext-link {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.15s;
}
.person-ext-link:hover { background: rgba(255,255,255,0.13); color: #fff; }
.person-known-for {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: #B9090B;
    margin-bottom: 0.3rem;
}
.person-modal-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff; line-height: 1;
    margin: 0 0 0.75rem;
}
.person-modal-meta {
    display: flex; flex-direction: column; gap: 0.25rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}
.person-modal-meta strong { color: rgba(255,255,255,0.8); }
.person-modal-bio {
    margin-bottom: 0.5rem;
}
.person-bio-text {
    font-size: 0.84rem; line-height: 1.7;
    color: rgba(255,255,255,0.65);
    margin: 0 0 0.4rem;
    white-space: pre-line;
}
.person-bio-more {
    background: none; border: none;
    color: #B9090B; cursor: pointer;
    font-size: 0.8rem; font-family: inherit;
    padding: 0;
}
.person-bio-more:hover { text-decoration: underline; }
.person-filmography-title {
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin: 1.25rem 0 0.6rem;
}
.person-filmo-grid {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.person-filmo-item {
    display: flex; flex-direction: column;
    text-decoration: none;
    width: 76px; flex-shrink: 0;
    transition: opacity 0.15s;
}
.person-filmo-item:hover { opacity: 0.8; }
.person-filmo-item img {
    width: 76px; height: 108px;
    object-fit: cover; border-radius: 4px;
    background: #1a1a1a;
}
.person-filmo-name {
    font-size: 0.63rem; color: rgba(255,255,255,0.65);
    margin-top: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.3;
}
.person-filmo-year {
    font-size: 0.6rem; color: rgba(255,255,255,0.3);
    margin-top: 0.1rem;
}
.person-modal-error {
    padding: 3rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}
@media (max-width: 600px) {
    .person-modal-body {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.25rem;
    }
    .person-photo, .person-photo-placeholder {
        max-width: 140px;
        margin: 0 auto;
    }
}

/* Admin persons grid card */
.person-admin-card {
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: opacity 0.15s;
}
.person-admin-card:hover { opacity: 0.75; }

/* Episodes list */
.episodes-list { display: flex; flex-direction: column; gap: 1rem; }
.episode-item {
    display: flex; align-items: flex-start; gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.15s;
}
.episode-item:hover { background: rgba(255,255,255,0.04); }
.episode-thumb {
    width: 120px; height: 68px;
    flex: none; border-radius: 4px; overflow: hidden;
    background: rgba(255,255,255,0.05);
}
@media (min-width: 768px) { .episode-thumb { width: 160px; height: 90px; } }
.episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.episode-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem; color: rgba(255,255,255,0.4);
    min-width: 32px; text-align: center; line-height: 1;
}
.episode-info { flex: 1; min-width: 0; }
.episode-title { font-weight: 600; color: #fff; font-size: 0.9375rem; margin-bottom: 4px; }
.episode-duration { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.episode-desc { font-size: 0.8125rem; color: rgba(255,255,255,0.65); line-height: 1.5; }

/* Modal / YouTube overlay */
.video-modal {
    display: none;
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
}
.video-modal.open { display: flex; }
.video-modal-inner {
    position: relative;
    width: 90vw; max-width: 960px;
}
.video-modal-close {
    position: absolute; top: -2.5rem; right: 0;
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.7); font-size: 1.5rem;
    transition: color 0.2s;
}
.video-modal-close:hover { color: #fff; }
.video-wrapper {
    position: relative; width: 100%; padding-bottom: 56.25%;
    background: #000; border-radius: 8px; overflow: hidden;
}
.video-wrapper iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ===== Article page ===== */
.article-header { padding: 7rem 1rem 2rem; }
@media (min-width: 768px) { .article-header { padding: 8rem 3rem 2rem; } }
@media (min-width: 1024px) { .article-header { padding: 8rem 4rem 2rem; max-width: 1920px; margin: 0 auto; } }

.article-hero-img {
    width: 100%; max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}
.article-body {
    max-width: 720px; margin: 2rem auto;
    padding: 0 1rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
}
@media (min-width: 768px) { .article-body { font-size: 1.125rem; } }
.article-body p { margin-bottom: 1.5rem; }
.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem; font-weight: 700; color: #fff;
    margin-top: 2.5rem; margin-bottom: 1rem;
}
.article-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem; font-weight: 600; color: #fff;
    margin-top: 2rem; margin-bottom: 0.75rem;
}

/* ===== Animations ===== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.animate-fade-up { animation: fadeUp 0.7s ease-out both; }
.animate-fade-in { animation: fadeIn 0.6s ease-out both; }

/* ===== Utility ===== */
.container {
    max-width: 1920px; margin: 0 auto;
    padding-left: 1rem; padding-right: 1rem;
}
@media (min-width: 768px) { .container { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 1024px) { .container { padding-left: 4rem; padding-right: 4rem; } }

.pb-20 { padding-bottom: 5rem; }
.min-h-screen { min-height: 100vh; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.text-gold-sm {
    color: #D4AF37; font-size: 0.625rem;
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
}

/* ===== Admin styles ===== */
.admin-body {
    background: #111; color: #e5e5e5;
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
}
.admin-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: 240px; background: #0A0A0A;
    border-right: 1px solid rgba(255,255,255,0.06);
    z-index: 40; padding: 1.5rem 0;
    overflow-y: auto;
}
.admin-logo { padding: 0 1.5rem 2rem; }
.admin-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem; font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.admin-nav a:hover, .admin-nav a.active {
    color: #fff; background: rgba(185,9,11,0.1);
    border-left: 3px solid #B9090B;
}
.admin-main {
    margin-left: 240px; padding: 2rem;
    min-height: 100vh;
}
.admin-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem;
}
.admin-title { font-size: 1.5rem; font-weight: 700; color: #fff; }

.admin-card {
    background: #1a1a1a; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; margin-bottom: 2rem;
}
@media (min-width: 768px) { .admin-stat-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-stat { text-align: center; }
.admin-stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: #B9090B; }
.admin-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
    text-align: left; padding: 0.75rem 1rem;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.8);
    vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-form-group { margin-bottom: 1.25rem; }
.admin-label { display: block; font-size: 0.8125rem; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    background: #0A0A0A;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px; padding: 0.625rem 0.875rem;
    color: #fff; font-size: 0.875rem;
    transition: border-color 0.2s;
    font-family: 'Manrope', sans-serif;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none; border-color: #B9090B;
}
.admin-textarea { resize: vertical; min-height: 120px; }
.admin-select option { background: #1a1a1a; }

.btn-admin {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 6px; border: none; cursor: pointer;
    font-size: 0.875rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
}
.btn-admin-primary { background: #B9090B; color: #fff; }
.btn-admin-primary:hover { background: #8A0608; }
.btn-admin-secondary { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.12); }
.btn-admin-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-admin-danger { background: rgba(185,9,11,0.15); color: #ff4444; border: 1px solid rgba(185,9,11,0.3); }
.btn-admin-danger:hover { background: rgba(185,9,11,0.25); }
.btn-admin-success { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }

.badge-type {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-series { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-movie  { background: rgba(168,85,247,0.15); color: #c084fc; }
.badge-published { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-draft    { background: rgba(234,179,8,0.15);  color: #fbbf24; }

.alert { padding: 0.875rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.875rem; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.alert-error   { background: rgba(239,68,68,0.1);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,0.1);  border: 1px solid rgba(59,130,246,0.3);  color: #60a5fa; }

/* ===== Admin extras ===== */
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem; padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-page-title { font-size: 1.625rem; font-weight: 700; color: #fff; }

.admin-stats-grid {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-bottom: 2rem;
}
@media (min-width: 768px) { .admin-stats-grid { grid-template-columns: repeat(4,1fr); } }

.admin-stat-card {
    background: #1a1a1a; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 1.5rem; text-align: center;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.stat-value { font-family: 'Bebas Neue', sans-serif; font-size: 3rem; color: #B9090B; line-height: 1; }

.admin-two-col { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.admin-card-head h2 { font-size: 1rem; font-weight: 700; color: #fff; }

.admin-form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-form-row .admin-form-group { flex: 1; min-width: 180px; }

.btn-admin-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; }
.btn-admin-ai { background: rgba(212,175,55,0.15); color: #D4AF37; border: 1px solid rgba(212,175,55,0.3); }
.btn-admin-ai:hover { background: rgba(212,175,55,0.25); }

.admin-checkbox-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.8); font-size: 0.875rem; cursor: pointer;
}
.admin-checkbox-label input { accent-color: #B9090B; width: 16px; height: 16px; }

.type-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.type-badge.series { background: rgba(59,130,246,0.15); color: #60a5fa; }
.type-badge.movie  { background: rgba(168,85,247,0.15); color: #c084fc; }

.badge-published { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; }
.badge-published.published { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-published.draft { background: rgba(234,179,8,0.15); color: #fbbf24; }

.req { color: #B9090B; }

/* ===== Responsive fixes ===== */
@media (max-width: 767px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; padding: 1rem; }
}
