/* ========================================
   FILMOVIZIJA - Netflix-Style Dark Theme
   ======================================== */

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

:root {
    --bg-primary: #080808;
    --bg-secondary: #111;
    --bg-card: #181818;
    --bg-hover: #232323;
    --bg-overlay: rgba(0,0,0,0.75);
    --text-primary: #e5e5e5;
    --text-secondary: #8c8c8c;
    --text-white: #fff;
    --accent: #e50914;
    --accent-hover: #f6121d;
    --accent-gold: #f5c518;
    --accent-green: #46d369;
    --border: #222;
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0s;
    --shadow: 0 4px 20px rgba(0,0,0,0.6);
    --max-width: 100%;
}

html {
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
}

/* ========================================
   HEADER - Floating glass navbar
   ======================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
}

.site-header.scrolled {
    background: rgba(8, 8, 8, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4%;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.85;
}

.logo-clapper {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 3px;
    color: var(--text-white);
    text-transform: uppercase;
}

.logo-accent {
    color: var(--text-white);
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 2px;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.main-nav a:hover {
    color: var(--text-white);
}

.main-nav a.active {
    color: var(--text-white);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: transparent;
    border: none;
    border-radius: 1px;
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-dropdown-btn::after {
    content: ' \25BE';
    font-size: 10px;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn.active {
    color: var(--text-white);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 8px;
    min-width: 180px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    scrollbar-width: thin;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 4px;
}

.nav-dropdown-menu a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.08);
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-years {
    display: none;
    min-width: 480px;
    max-height: none;
    overflow: visible;
    columns: 6;
    column-gap: 0;
    padding: 12px;
}

.nav-dropdown-years a {
    break-inside: avoid;
    text-align: center;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: 600;
}

.nav-dropdown:hover .nav-dropdown-years {
    display: block;
}

/* Search */
.search-form {
    display: flex;
    margin-left: auto;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    overflow: hidden;
}

.search-form:focus-within {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.search-form input {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 9px 16px;
    font-size: 13px;
    width: 200px;
    outline: none;
    font-family: inherit;
}

.search-form input::placeholder {
    color: var(--text-secondary);
}

.search-form button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 14px 8px 0;
    cursor: pointer;
    font-size: 15px;
}

.search-form button:hover {
    color: var(--text-white);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* ========================================
   HERO - Featured movie showcase
   ======================================== */

.hero {
    position: relative;
    padding: 0;
    min-height: 40vh;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(8,8,8,0.95) 0%, rgba(8,8,8,0.6) 50%, rgba(8,8,8,0.2) 100%),
                linear-gradient(to top, rgba(8,8,8,1) 0%, rgba(8,8,8,0) 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 4% 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.hero-left {
    flex: 1;
    max-width: 650px;
}

.hero-right {
    flex-shrink: 0;
    text-align: right;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 3px;
    border-radius: 4px;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero-text {
    max-width: 70%;
    padding: 20px 0;
}

.hero-text h1 {
    white-space: normal;
}

.hero-overview {
    font-size: 16px;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 20px;
    max-width: 100%;
}

.hero-bottom-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}


.hero-card {
    display: flex;
    gap: 24px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    width: fit-content;
    max-width: 90vw;
}

.hero-card-poster {
    flex-shrink: 0;
    width: 480px;
}

.hero-card-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-card-info {
    flex: 1;
    min-width: 0;
}

.hero-director {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
    display: inline;
    margin-right: 20px;
}

.hero-director strong {
    color: var(--text-primary);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.05;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-rating {
    color: var(--accent-gold);
    font-weight: 700;
}

.hero-overview {
    font-size: 16px;
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 20px;
}

.hero-bottom-row {    display: flex;    align-items: center;    gap: 20px;    margin-top: 16px;}
.hero-btn {
    display: inline-block;
    vertical-align: middle;
    padding: 14px 36px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229,9,20,0.4);
}

.hero-stats {
    display: flex;
    gap: 40px;
    font-size: 15px;
    color: var(--text-secondary);
}

.hero-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-stats strong {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
    }
    .hero-content {
        flex-direction: column;
        padding: 100px 4% 30px;
    }
    .hero-right {
        max-width: 100%;
    }
    .hero-card {
        flex-direction: column;
    }
    .hero-card-poster {
        width: 120px;
    }
    .hero h1 {
        font-size: 22px;
    }
    .hero-overview {
        font-size: 13px;
    }
}

/* ========================================
   QUICK FILTERS
   ======================================== */

.quick-filters {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4% 10px;
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-row::-webkit-scrollbar {
    display: none;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 50px;
}

.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.filter-pills a {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.filter-pills a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

.filter-pills.years {
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-pills.years::-webkit-scrollbar {
    display: none;
}

/* ========================================
   FILM SECTIONS
   ======================================== */

.film-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 4% 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.film-card-wrap {
    position: relative;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.remove-btn:hover {
    background: #ff1a1a;
}

.clear-link {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.clear-link:hover {
    color: #ff1a1a;
}

.toggle-section {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-section:hover {
    color: var(--text-white);
    border-color: rgba(255,255,255,0.3);
}

.see-all {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
}

.see-all:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.08);
}

/* ========================================
   FILM GRID - Netflix poster cards
   ======================================== */

.film-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 20px;
}

/* Homepage sections: exactly 2 full rows, hide overflow */
.film-section .film-grid {
    grid-template-rows: repeat(2, auto);
    overflow: hidden;
    max-height: none;
}

.film-section .film-grid:not(#allMoviesGrid) > *:nth-child(n+17) {
    display: none;
}

.film-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.film-card:hover {
    z-index: 10;
    box-shadow: var(--shadow);
}

.film-poster {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
}

.film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-card:hover .film-poster img {
    filter: brightness(0.6);
}

/* Overlay info on hover */
.film-card:hover .film-info {
    opacity: 1;
    transform: translateY(0);
}

.no-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.film-rating {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.film-rating::before {
    content: '\2605';
    font-size: 10px;
}

.film-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.film-series-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.film-series-badges .film-rating {
    position: static;
    background: #e50914;
    color: #fff;
}

.film-series-badges .film-rating::before {
    display: none;
}

.film-genres {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 5px 14px;
    background: #e50914;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
}

.film-info {
    padding: 10px 4px 4px;
}

.film-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.film-year {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   MINI HERO
   ======================================== */

.mini-hero {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center 20%;
    margin-top: 68px;
}

.mini-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%),
                linear-gradient(to top, #080808 0%, transparent 40%);
}

.mini-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 4%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.mini-hero-label {
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.mini-hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    max-width: 500px;
}

.mini-hero-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.mini-hero-overview {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    max-width: 450px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.mini-hero-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    padding: 7px 22px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
}

.mini-hero-btn:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ========================================
   LIVE SEARCH DROPDOWN
   ======================================== */

.search-wrap {
    position: relative;
    margin-left: auto;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.7);
    z-index: 300;
    padding: 6px;
}

.sd-section {
    margin-bottom: 4px;
}

.sd-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding: 8px 12px 4px;
}

.sd-film {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.sd-film:hover {
    background: rgba(255,255,255,0.08);
}

.sd-poster {
    width: 36px;
    height: 54px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.sd-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sd-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sd-meta {
    font-size: 12px;
    color: #888;
}

.sd-actor {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sd-actor:hover {
    background: rgba(255,255,255,0.08);
}

.sd-actor-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sd-actor-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0.6;
    flex-shrink: 0;
}

.sd-empty {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

.sd-all {
    display: block;
    text-align: center;
    padding: 10px;
    color: #e50914;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
}

.sd-all:hover {
    color: #fff;
}

.search-dropdown::-webkit-scrollbar {
    width: 4px;
}

.search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* ========================================
   GLOBAL FILTER BAR
   ======================================== */

.global-filter-bar {
    padding: 16px 4%;
}



.global-filter-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Custom dropdown */
.cdd {
    position: relative;
    flex: 1;
    min-width: 80px;
}

.cdd-btn {
    width: 100%;
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.cdd-btn:hover {
    background: rgba(255,255,255,0.08);
}

.cdd-arrow {
    font-size: 10px;
    opacity: 0.5;
}

.cdd-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 160px;
    max-height: 300px;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 4px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.cdd.open .cdd-menu {
    display: block;
}

.cdd-item {
    padding: 8px 14px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
}

.cdd-item:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.cdd-item.active {
    color: #e50914;
    font-weight: 600;
}

.cdd-menu::-webkit-scrollbar {
    width: 4px;
}

.cdd-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.filter-go-btn {
    padding: 8px 22px;
    background: #e50914;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.filter-go-btn:hover {
    background: #f40612;
}

/* ========================================
   BROWSE PAGE
   ======================================== */

.browse-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 10px 4% 40px;
}

.browse-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.browse-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.5px;
}

.result-count {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.browse-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.06);
}

.filter-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

/* Old select styles removed — using custom dropdowns */

.filter-clear {
    padding: 8px 16px;
    background: rgba(229,9,20,0.15);
    color: #e50914;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    align-self: flex-end;
}

.filter-clear:hover {
    background: #e50914;
    color: #fff;
}

/* Genre pills on browse */
.genre-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.genre-pills a {
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.genre-pills a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.15);
}

.genre-pills a.active {
    color: var(--text-white);
    border-color: var(--accent);
    background: rgba(229, 9, 20, 0.2);
}

/* Year bar */
.year-bar {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 14px;
    padding-bottom: 4px;
}

.year-bar::-webkit-scrollbar { display: none; }

.year-bar a {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 4px;
    white-space: nowrap;
}

.year-bar a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.08);
}

.year-bar a.active {
    color: var(--text-white);
    background: transparent;
    border: none;
    font-weight: 600;
}

/* Letter bar */
.letter-bar {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.letter-bar a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    border-radius: var(--radius);
}

.letter-bar a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}

.letter-bar a.active {
    color: var(--text-white);
    background: transparent;
    border: none;
}

/* Infinite scroll loader */
.scroll-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scroll-end {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}

/* No results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
    padding: 24px 0;
}

.pagination a {
    padding: 10px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pagination a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.15);
}

.pagination a.active {
    color: var(--text-white);
    background: transparent;
    border: none;
    border-color: var(--accent);
}

/* ========================================
   FILM PAGE - Movie detail
   ======================================== */

.film-page {
    position: relative;
    padding-top: 68px;
}

.film-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background-size: cover;
    background-position: center top;
    opacity: 0.2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
}

.film-content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 4%;
}

/* Player */
.player-section {
    margin-bottom: 28px;
}

.player-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.no-source {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 16px;
    border: 1px solid var(--border);
}

.source-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.source-switcher span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.source-btn:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

.source-btn.active {
    color: var(--text-white);
    border-color: var(--accent);
    background: rgba(229,9,20,0.2);
}

.source-btn.source-ok {
    border-color: rgba(70, 211, 105, 0.4);
}

.source-btn.source-ok::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #46d369;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.source-btn.source-dead {
    opacity: 0.3;
    order: 99;
}

.source-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Legacy film-meta (kept for compatibility) */

.sub-download {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(70, 211, 105, 0.1);
    border: 1px solid rgba(70, 211, 105, 0.25);
    border-radius: 6px;
    color: #46d369;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-right: 8px;
}

.sub-download:hover {
    background: rgba(70, 211, 105, 0.2);
}

.sub-badge {
    padding: 3px 10px;
    background: rgba(70, 211, 105, 0.1);
    border: 1px solid rgba(70, 211, 105, 0.25);
    border-radius: 4px;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ========================================
   FILM DETAIL PAGE - Redesigned
   ======================================== */

.film-detail {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    margin-top: 8px;
}

.film-detail-left {
    flex-shrink: 0;
    width: 300px;
}

.detail-poster {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.film-detail-center {
    flex: 1;
    min-width: 0;
}

/* Title row with score */
.detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 14px;
}

.detail-title-row h1 {
    flex: 1;
    font-size: 34px;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.detail-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.score-ring {
    position: relative;
    width: 60px;
    height: 60px;
}

.score-ring svg {
    width: 100%;
    height: 100%;
}

.score-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-white);
}

.score-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tags */
.detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.dtag {
    padding: 6px 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dtag.accent {
    color: var(--accent);
    border-color: rgba(229,9,20,0.3);
}

.dtag.imdb-link {
    background: rgba(245,197,24,0.12);
    border-color: rgba(245,197,24,0.3);
    color: var(--accent-gold);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.dtag.imdb-link:hover {
    background: rgba(245,197,24,0.22);
}

/* Genres */
.detail-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.detail-genres a {
    padding: 6px 18px;
    background: rgba(229,9,20,0.08);
    border: 1px solid rgba(229,9,20,0.2);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.detail-genres a:hover {
    background: rgba(229,9,20,0.18);
}

/* Overview */
.detail-overview {
    margin-bottom: 24px;
}

.detail-overview p {
    font-size: 17px;
    line-height: 1.8;
    color: #ccc;
}

/* Info grid */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.info-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Reviews toggle button */
.reviews-toggle {
    margin-top: 24px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.reviews-toggle:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.2);
}

/* Reviews modal */
.reviews-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.reviews-modal.open {
    display: flex;
}

.reviews-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.reviews-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.reviews-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
}

.reviews-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}

.reviews-close:hover {
    color: var(--text-white);
}

.reviews-modal-body {
    overflow-y: auto;
    padding: 20px 28px;
}

.rev-card {
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 14px;
}

.rev-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.rev-author {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.rev-rating {
    padding: 3px 12px;
    background: rgba(245,197,24,0.12);
    border: 1px solid rgba(245,197,24,0.25);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-gold);
}

.rev-date {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: auto;
}

.rev-text {
    font-size: 15px;
    color: #bbb;
    line-height: 1.8;
}

/* Responsive film detail */
@media (max-width: 768px) {
    .film-detail {
        flex-direction: column;
        gap: 20px;
    }

    .film-detail-left {
        width: 160px;
    }

    .detail-title-row h1 {
        font-size: 24px;
    }

    .detail-overview p {
        font-size: 15px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .info-value {
        font-size: 14px;
    }

    .reviews-modal {
        padding: 16px;
    }

    .reviews-modal-content {
        max-height: 90vh;
        border-radius: 12px;
    }
}

/* Season/Episode picker */
.season-picker {
    margin: 32px 0 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.season-picker h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 14px;
}

.season-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.season-tab {
    padding: 10px 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.season-tab:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}

.season-tab.active {
    color: var(--text-white);
    background: transparent;
    border: none;
    border-color: var(--accent);
}

.episode-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.episode-btn {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.episode-btn:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.12);
}

.episode-btn.active {
    color: var(--text-white);
    background: transparent;
    border: none;
    border-color: var(--accent);
}

.current-playing {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Player tabs */
.player-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.player-tab {
    padding: 10px 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.player-tab:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}

.player-tab.active {
    color: var(--text-white);
    background: transparent;
    border: none;
    border-color: var(--accent);
}

.player-panel {
    display: none;
}

/* Subtitle overlay */
.subtitle-overlay {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    text-align: center;
    max-width: 80%;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.5;
    padding: 6px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
    display: none;
}

.subtitle-overlay:empty {
    display: none !important;
    background: none;
}

.subtitle-controls {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-toggle {
    padding: 6px 14px;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.sub-toggle.active {
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.subtitle-controls input[type="range"] {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
}

.subtitle-controls input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
}

#subSyncLabel {
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 30px;
}

.sub-start-hint {
    text-align: center;
    margin-top: 8px;
}

.player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 600;
    z-index: 5;
}

.player-mode-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: rgba(70, 211, 105, 0.12);
    border: 1px solid rgba(70, 211, 105, 0.3);
    border-radius: 6px;
    color: #46d369;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.player-mode-btn:hover {
    background: rgba(70, 211, 105, 0.2);
}

.player-mode-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

#customPlayerWrapper .video-js {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.player-panel.active {
    display: block;
}

/* Legacy review styles removed — using modal now */

/* Film action buttons (Watchlist, Favorite) */
.film-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.action-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
}

.action-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(229,9,20,0.1);
}

.action-icon {
    font-size: 18px;
}

/* List tabs (Watchlist page) */
.list-tabs {
    display: flex;
    gap: 4px;
}

.list-tab {
    padding: 8px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.list-tab:hover {
    color: var(--text-white);
}

.list-tab.active {
    color: var(--text-white);
    background: transparent;
    border: none;
    border-color: var(--accent);
}

/* Support bar */
.support-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 4%;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}

.support-bar span {
    font-size: 14px;
    color: var(--text-secondary);
}

.coffee-btn {
    padding: 10px 24px;
    background: #FFDD00;
    color: #000;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
}

.coffee-btn:hover {
    background: #FFE84D;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,221,0,0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    padding: 40px 4% 30px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--text-white);
}

.footer-inner p {
    margin-top: 8px;
}

/* Static pages */
.static-page {
    max-width: 800px;
    margin: 0 auto;
}

.static-page h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
}

.static-page p {
    font-size: 16px;
    line-height: 1.8;
    color: #bbb;
    margin-bottom: 16px;
}

.static-page ul {
    margin: 0 0 16px 24px;
    color: #bbb;
    font-size: 16px;
    line-height: 2;
}

.static-page strong {
    color: var(--text-white);
}

/* ========================================
   SCROLLBAR (thin dark)
   ======================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .film-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
    }

    .film-section .film-grid:not(#allMoviesGrid) > *:nth-child(n+13) {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 4%;
        gap: 8px;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a.active::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .search-form {
        width: 100%;
        order: 3;
    }

    .search-form input {
        width: 100%;
    }

    .film-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .film-section .film-grid:not(#allMoviesGrid) > *:nth-child(n+9) {
        display: none;
    }

    .hero {
        padding: 100px 4% 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stats strong {
        font-size: 22px;
    }

    .film-meta {
        flex-direction: column;
    }

    .film-meta-poster {
        width: 140px;
    }

    .film-meta-info h1 {
        font-size: 22px;
    }

    .browse-page {
        padding-top: 80px;
    }

    .browse-header h1 {
        font-size: 24px;
    }

    .browse-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .genre-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .genre-pills::-webkit-scrollbar { display: none; }

    .section-header h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .film-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .film-section .film-grid:not(#allMoviesGrid) > *:nth-child(n+7) {
        display: none;
    }

    .film-card:hover {
        transform: none;
    }

    .film-title {
        font-size: 14px;
    }

    .film-year {
        font-size: 10px;
    }

    .film-info {
        padding: 6px 2px 2px;
    }

    .player-wrapper {
        border-radius: 0;
        margin: 0 -4%;
    }

    .film-genres {
        font-size: 8px;
        padding: 3px 8px;
    }

    .film-series-badges .film-rating {
        font-size: 10px;
        padding: 2px 5px;
    }
}

/* Mobile: filter bar */
@media (max-width: 768px) {
    .global-filter-inner {
        flex-wrap: wrap;
        border-radius: 12px;
        padding: 8px;
        gap: 4px;
    }

    .cdd {
        min-width: calc(33% - 4px);
        flex: 1 1 calc(33% - 4px);
    }

    .cdd-btn {
        font-size: 12px;
        padding: 6px 8px;
    }

    .filter-go-btn {
        width: 100%;
        margin-top: 4px;
    }

    .mini-hero {
        height: 200px;
    }

    .mini-hero-title {
        font-size: 16px;
    }

    .mini-hero-overview {
        display: none;
    }

    .search-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }

    .auth-box {
        padding: 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        flex-wrap: wrap;
    }

    .stat-card {
        min-width: calc(50% - 8px);
    }

    .admin-table {
        font-size: 11px;
    }

    .admin-table th, .admin-table td {
        padding: 6px 8px;
    }

    .header-login {
        padding: 4px 10px;
        font-size: 11px;
    }

    .header-logout {
        font-size: 11px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */


.film-section {
}


/* Show More button */
.show-more-btn {
    display: block;
    margin: 30px auto;
    padding: 14px 48px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.show-more-btn:hover {
    background: var(--accent);
}

.hero-actors {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 8px;
}

.actor-link {
    color: #ddd;
}

.actor-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Actor Profile */
.actor-profile {
    display: flex;
    gap: 30px;
    padding: 100px 4% 30px;
    align-items: flex-start;
}

.actor-photo {
    width: 200px;
    border-radius: 8px;
    flex-shrink: 0;
}

.actor-info {
    flex: 1;
}

.actor-info h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
}

.actor-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.actor-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 16px;
    max-height: 200px;
    overflow: hidden;
}

.result-count {
    font-size: 14px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .actor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 80px;
    }
    .actor-photo {
        width: 150px;
    }
    .actor-meta {
        justify-content: center;
    }
}

/* Actor Search Results */
.actor-results {
    padding: 0 0 20px;
}

.actor-results h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 12px;
}

.actor-cards {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.actor-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 10px 16px 10px 10px;
    flex-shrink: 0;
    min-width: 200px;
}

.actor-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.actor-card-info {
    display: flex;
    flex-direction: column;
}

.actor-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
}

.actor-card-known {
    font-size: 12px;
    color: var(--text-secondary);
}

.actor-card:hover {
    background: var(--bg-hover);
}

/* ========================================
   AUTH PAGES (Login/Register)
   ======================================== */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 80px 20px 40px;
}

.auth-box {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 40px;
}

.auth-box h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-field label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-field input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    color: #fff;
    width: 100%;
}

.auth-field input:focus {
    outline: none;
    border-color: #e50914;
}

.auth-btn {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

.auth-btn:hover {
    background: #f40612;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 14px;
}

.auth-switch a {
    color: #fff;
    font-weight: 600;
}

.auth-error {
    background: rgba(229,9,20,0.15);
    color: #e50914;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.auth-success {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* ========================================
   PROFILE PAGE
   ======================================== */

.profile-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 90px 4% 40px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    flex-shrink: 0;
}

.profile-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.profile-meta {
    font-size: 13px;
    color: #888;
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 4px;
    font-size: 13px;
    color: #ccc;
    font-weight: 500;
}

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0;
}

.profile-tab {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.profile-tab:hover {
    color: #fff;
}

.profile-tab.active {
    color: #fff;
    border-bottom-color: #e50914;
}

.profile-tab.admin-tab {
    color: #e50914;
    margin-left: auto;
    text-decoration: none;
}

.profile-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.profile-empty {
    color: #666;
    font-size: 14px;
    padding: 40px 0;
    text-align: center;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.settings-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
}

.settings-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

/* Header user menu */
.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.header-login {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    margin-left: 12px;
}

.header-login:hover {
    border-color: #fff;
}

.header-logout {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    margin-left: 4px;
}

.header-logout:hover {
    color: #e50914;
}

/* ========================================
   ADMIN PANEL
   ======================================== */

.admin-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 90px 4% 40px;
}

.admin-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}

.admin-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 120px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.admin-table tr:hover {
    background: rgba(255,255,255,0.03);
}

.row-disabled td {
    opacity: 0.4;
}

.role-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
}

.role-admin {
    background: rgba(229,9,20,0.2);
    color: #e50914;
}

.role-user {
    background: rgba(255,255,255,0.08);
    color: #888;
}

.action-btn-sm {
    background: rgba(255,255,255,0.08);
    border: none;
    color: #ccc;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    margin-right: 4px;
}

.action-btn-sm:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.btn-danger {
    color: #e50914;
}

.btn-danger:hover {
    background: rgba(229,9,20,0.2);
}

.actions-cell {
    white-space: nowrap;
}

/* ========================================
   PLAYER LOGIN WALL
   ======================================== */

.player-login-wall {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wall-content {
    text-align: center;
    padding: 40px;
}

.login-wall-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.login-wall-content p {
    color: #888;
    font-size: 14px;
    margin: 0 0 20px;
}

.login-wall-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.login-wall-register {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 28px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
}

.login-wall-register:hover {
    border-color: #fff;
}
