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

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

:root {
    --bg-primary: #161617;
    --bg-secondary: #333335;
    --bg-card: #3a3a3c;
    --bg-hover: #444446;
    --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 {
    text-decoration: none;
    display: flex;
    align-items: center;
    column-gap: 50px;
    row-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) !important;
    color: var(--text-white);
}

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

.main-nav a {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 15px;
    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: 15px;
    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: 12px 20px;
    font-size: 15px;
    width: 320px;
    outline: none;
    font-family: inherit;
}

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

.search-form button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 16px 10px 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: var(--bg-primary);
    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(22,22,23,0.95) 0%, rgba(22,22,23,0.5) 50%, transparent 100%),
                linear-gradient(to top, #161617 0%, transparent 30%);

}

.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;
    column-gap: 50px;
    row-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;
    overflow: hidden;
}

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

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #e50914;
    border: none;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    z-index: 15;
    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;
}

#userGrid .film-poster {
    aspect-ratio: 2/3;
    overflow: hidden;
}

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

/* 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: 500px;
    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, #161617 0%, transparent 30%);
}

.mini-hero-content {
    position: relative;
    z-index: 2;
    margin: 0;
    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: clamp(18px, 3vw, 36px);
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mini-hero-meta {
    display: flex;
    column-gap: 50px;
    row-gap: 6px;
    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 {
    flex-wrap: wrap;
    max-width: 1200px;
    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: 15px;
    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: #ff1a25;
}

/* ========================================
   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: 48px;
    font-weight: 800;
    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;
    column-gap: 50px;
    row-gap: 6px;
    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;
    column-gap: 50px;
    row-gap: 6px;
    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;
    column-gap: 50px;
    row-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;
    column-gap: 50px;
    row-gap: 6px;
    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: 0 !important;
    margin-top: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    column-gap: 0 !important;
    row-gap: 0 !important;
}

.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: 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: -1px;
}

.source-btn:first-of-type {
    border-radius: var(--radius) 0 0 var(--radius);
    margin-left: 0;
}

.source-btn:last-of-type {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.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: #000;
    border-color: #f5c518;
    background: #f5c518;
}

.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;
}



/* 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;
    column-gap: 50px;
    row-gap: 6px;
    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: rgba(255,255,255,0.1);
    border: 1px solid 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: rgba(255,255,255,0.1);
    border: 1px solid 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 {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
    background: #1a1a1c;
    padding: 48px 4% 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-top-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-mid {
    background: #141416;
    padding: 40px 4%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-mid-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand .footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    color: #fff;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    line-height: 1.6;
    max-width: 360px;
    margin: 0;
}

.footer-nav-group h4 {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

.footer-nav-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-group ul li {
    margin-bottom: 10px;
}

.footer-nav-group ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-group ul li a:hover {
    color: #fff;
}

.footer-bottom {
    background: #101012;
    padding: 20px 4%;
}

.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    margin: 0;
}

.footer-disclaimer {
    font-style: italic;
}

/* 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: 8px;
    }

    .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 {
    align-items: center;
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 8px 0;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .main-nav.open {
        background: #0a0a0a;
        padding: 12px 16px;
        border-radius: 0 0 8px 8px;
        display: flex;
    }

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

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

    .search-form {
        width: 100%;
        order: 3;
        background: rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.12);
    }

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

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

    .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 {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

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

    .list-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .list-tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .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-bar {
        padding: 8px 3%;
    }

    .global-filter-inner {
        flex-wrap: wrap;
        border-radius: 10px;
        padding: 6px;
        gap: 0;
        background: #1e1e1e;
        border: 1px solid rgba(255,255,255,0.08);
    }

    .cdd {
        min-width: calc(33.33% - 0px);
        flex: 1 1 calc(33.33%);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .cdd:nth-last-child(2),
    .cdd:nth-last-child(3),
    .cdd:nth-last-child(4) {
        border-bottom: none;
    }

    .cdd-btn {
        font-size: 13px;
        padding: 10px 10px;
        text-align: center;
        border-radius: 0;
    }

    .filter-go-btn {
        width: 100%;
        margin-top: 0;
        padding: 12px;
        border-radius: 0 0 10px 10px;
        font-size: 14px;
        letter-spacing: 1px;
    }

    .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 {
        flex-wrap: wrap;
        gap: 0;
        border-bottom: none;
    }

    .profile-tab {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
        border-bottom: 2px solid rgba(255,255,255,0.08);
    }

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

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

    .admin-stats {
        flex-wrap: wrap;
        column-gap: 4px;
        row-gap: 4px;
    }

    .stat-card {
        min-width: calc(50% - 4px);
        flex: 1 1 calc(50% - 4px);
        padding: 14px 10px;
    }

    .stat-num {
        font-size: 22px;
    }

    .settings-box {
        padding: 16px;
    }

    .settings-grid {
        gap: 12px;
    }

    .settings-box:last-child {
        grid-column: 1 / -1;
    }

    .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;
    column-gap: 50px;
    row-gap: 6px;
    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);
}

/* ========================================
   JUSTWATCH-STYLE FILM PAGE
   ======================================== */

/* Top section: info left, poster right */
.jw-top {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.jw-info {
    flex: 1;
}

.jw-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.jw-year {
    font-weight: 400;
    color: #888;
}

.jw-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 50px;
    row-gap: 6px;
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
    align-items: center;
}

.jw-rating {
    color: #f5c518;
    font-weight: 700;
}

.jw-imdb {
    background: #a30b0b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
}

.jw-trailer {
    background: #e50914;
    color: #fff;
    padding: 2px 10px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    margin-left: 4px;
}
.jw-trailer:hover {
    background: #ff1520;
}

.jw-genres {
    display: flex;
    column-gap: 50px;
    row-gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.jw-genres a {
    padding: 4px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    font-size: 12px;
    color: #ccc;
    font-weight: 500;
}

.jw-genres a:hover {
    border-color: #e50914;
    color: #fff;
}

.jw-overview {
    font-size: 15px;
    color: #bbb;
    line-height: 1.6;
    margin: 0 0 16px;
    max-width: 650px;
}

.jw-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.jw-trailer-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.jw-trailer-btn:hover {
    background: rgba(255,255,255,0.2);
}

.jw-poster {
    width: 200px;
    flex-shrink: 0;
}

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

/* Where to Watch */
.where-to-watch {
    margin: 0 0 30px;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}

.where-to-watch h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.watch-group {
    margin-bottom: 20px;
}

.watch-group h3 {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 10px;
}

.provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 6px;
}

@media (max-width: 768px) {
    .provider-grid {
        grid-template-columns: 1fr;
    }
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-radius: 0;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.provider-card:hover {
    background: rgba(255,255,255,0.03);
}

.provider-card img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    flex-shrink: 0;
}

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

.provider-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.provider-type {
    font-size: 12px;
    color: #888;
    display: block;
    margin-top: 2px;
}

.provider-action {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    background: #f5c518;
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.provider-card:hover .provider-action {
    background: #ffda44;
}

.provider-unavailable {
    opacity: 1;
    pointer-events: auto;
}

.provider-unavailable img {
    filter: none;
}

.provider-unavailable .provider-action {
    display: none;
}

.watch-unavailable {
    color: #666;
    font-size: 14px;
    padding: 12px 0;
}

.provider-free-online {
    text-decoration: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: transparent;
}

.provider-free-online:hover {
    background: rgba(255,255,255,0.03);
}

.provider-free-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #8b0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* Film details section */
.jw-details {
    margin-bottom: 30px;
}

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

.jw-detail-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.jw-detail-value {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

/* Trailer modal */
.trailer-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

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

.trailer-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
}

.trailer-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 5001;
}

.trailer-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .jw-top {
        flex-direction: column-reverse;
        gap: 16px;
    }
    .jw-poster {
        width: 140px;
    }
    .jw-info h1 {
        font-size: 22px;
    }
}

/* Watch page */
.watch-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 4% 40px;
    background: #161617;
    border-radius: 12px;
    margin-top: 68px;
}

.watch-header {
    margin-bottom: 16px;
}

.watch-back {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.watch-back:hover {
    color: #fff;
}

/* ========================================
   AD BANNERS
   ======================================== */

.ad-banner {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

/* Hero ad — positioned right side */
.hero-ad {
    position: absolute;
    right: 4%;
    bottom: 40px;
    z-index: 3;
    opacity: 0.9;
}

.hero-content {
    position: relative;
}

/* Film detail ad — right column */
.film-detail-ad {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.native-ad-row {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 4%;
}

@media (max-width: 768px) {
    .hero-ad {
        display: none;
    }
    .film-detail-ad {
        display: none;
    }
}

/* ========================================
   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: #f5c518;
    color: #000;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}

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

.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;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.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%;
    flex-shrink: 0;
    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: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

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

.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;
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 90px 20px 60px;
}

.legal-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.legal-updated {
    font-size: 0.8125rem;
    color: #888;
    font-style: italic;
    margin: 0 0 28px;
}

.legal-page h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.legal-page h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ddd;
    margin: 20px 0 8px;
}

.legal-page p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #bbb;
    margin-bottom: 14px;
    text-align: justify;
}

.legal-page ul, .legal-page ol {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 14px;
}

.legal-page li {
    margin-bottom: 6px;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #bbb;
}

.legal-page strong {
    color: #fff;
    font-weight: 700;
}

.legal-page a {
    color: #f5c518;
}

/* ========================================
   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;
    column-gap: 50px;
    row-gap: 6px;
    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;
}

/* 3-card streaming layout */
.provider-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.provider-card-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.provider-card-box .provider-card {
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
}

.provider-grid-flat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 4px;
}

@media (max-width: 1024px) {
    .provider-cards-row {
        grid-template-columns: 1fr 1fr;
    }
    .provider-grid-flat {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .provider-cards-row {
        grid-template-columns: 1fr;
    }
    .provider-grid-flat {
        grid-template-columns: 1fr;
    }
}

/* Watch page - film info below player */
.watch-film-info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 24px 0;
}

.watch-film-info .watch-title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.watch-film-info .watch-year {
    color: #999;
    font-weight: 400;
}

.watch-film-info .watch-meta {
    display: flex;
    gap: 16px;
    color: #e5e5e5;
    font-size: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.watch-film-info .watch-rating {
    color: #f5c518;
    font-weight: 600;
}

.watch-film-info .watch-overview {
    color: #e5e5e5;
    font-size: 15px;
    line-height: 1.7;
    margin: 16px 0;
    max-width: 1200px;
}

.watch-film-info .watch-director,
.watch-film-info .watch-cast {
    color: #ccc;
    font-size: 14px;
    margin: 6px 0;
    line-height: 1.5;
}

.watch-film-info .watch-director strong,
.watch-film-info .watch-cast strong {
    color: #fff;
    margin-right: 6px;
}

/* Watch page - poster layout */
.watch-info-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.watch-info-text {
    flex: 1;
    min-width: 0;
}

.watch-poster {
    flex-shrink: 0;
    width: 180px;
}

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

@media (max-width: 768px) {
    .watch-info-inner {
        flex-direction: column-reverse;
        align-items: center;
    }
    .watch-poster {
        width: 140px;
    }
}

/* === WHERE TO WATCH — 3-column layout === */
.wtw-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin: 0 0 30px;
}

.wtw-col {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
}

.wtw-col h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.wtw-group {
    margin-bottom: 16px;
}

.wtw-group h3 {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px;
}

.wtw-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.wtw-row:hover {
    background: rgba(255,255,255,0.03);
}

.wtw-row:last-child {
    border-bottom: none;
}

.wtw-row img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.wtw-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    min-width: 0;
}

.wtw-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wtw-btn-stream { background: #e50914; color: #fff; font-weight: 700; }






    background: #2ecc40;
    color: #000;
}

a.wtw-btn-rent, span.wtw-btn-rent { background: #f5c518 !important; color: #000 !important; font-weight: 700 !important; border: none !important; }

a.wtw-btn-buy, span.wtw-btn-buy { background: #f5c518 !important; color: #000 !important; font-weight: 700 !important; border: none !important; }

.wtw-btn-demo {
    background: #e50914;
    color: #fff;
}

.wtw-row:hover .wtw-btn-stream { background: #ff1a25; }
.wtw-row:hover .wtw-btn-free { background: #3ddb4f; }
.wtw-row:hover .wtw-btn-demo { background: #ff1a25; }

.wtw-unavailable {
    opacity: 1;
}

.wtw-unavailable img {
    filter: none;
}

.wtw-unavailable .wtw-name {
    color: rgba(255,255,255,1);
}

.wtw-unavailable:hover {
    background: none;
}

.wtw-demo {
    text-decoration: none;
}

.wtw-demo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #8b0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.wtw-actor-row {
    text-decoration: none;
    cursor: pointer;
}

.wtw-actor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.wtw-checking {
    color: #666;
    font-size: 13px;
    padding: 12px 0;
}

/* Tablet: 2 kolone, Cast ide ispod */
@media (max-width: 1024px) {
    .wtw-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile: 1 kolona */
@media (max-width: 640px) {
    .wtw-columns {
        grid-template-columns: 1fr;
    }
}
/* === END WHERE TO WATCH === */

/* === CAST CARDS with photos === */
.cast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cast-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.cast-card:hover {
    background: rgba(255,255,255,0.05);
}

.cast-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cast-no-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.cast-info {
    min-width: 0;
}

.cast-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-character {
    display: block;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

@media (max-width: 1200px) {
    .cast-grid {
        grid-template-columns: 1fr;
    }
}
/* === END CAST CARDS === */

/* === CAST LIST — wide single-column cards === */
.cast-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cast-card-wide {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 10px;
    border-radius: 8px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.cast-card-wide:last-child {
    border-bottom: none;
}

.cast-card-wide:hover {
    background: rgba(255,255,255,0.05);
}

.cast-card-wide img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cast-wide-info {
    min-width: 0;
    flex: 1;
}

.cast-wide-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.cast-wide-role {
    display: block;
    font-size: 11px;
    color: #ccc;
    margin-top: 3px;
}

.cast-wide-dept {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* === END CAST LIST === */

/* === CAST META + BIO === */
.cast-wide-meta {
    display: block;
    font-size: 9px;
    color: #bbb;
    margin-top: 3px;
}

.cast-wide-bio {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 11px;
    color: #ddd;
    margin-top: 4px;
    line-height: 1.5;
}
/* === END CAST META === */

/* === ACTORS PAGE === */
.actors-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
}

.actors-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,8,8,0.5) 0%, rgba(8,8,8,0.9) 100%);
}

.actors-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

.actors-hero-content h1 {
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.actors-hero-content p {
    font-size: 18px;
    color: #ccc;
    margin: 0 0 24px;
    line-height: 1.5;
}

.browse-page .browse-header {
    align-items: center;
}

@media (max-width: 900px) {
    .browse-page .browse-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .browse-page .list-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    .browse-page .list-tab {
        padding: 6px 14px;
        font-size: 13px;
    }
}

.actors-search-form {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 420px;
    background: rgba(255,255,255,0.12);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.actors-search-form input {
    flex: 1;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: #fff;
    outline: none;
}

.actors-search-form input::placeholder {
    color: #888;
}

.actors-search-form input:focus {
    background: transparent;
}

.actors-search-form button {
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    background: #e50914;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    margin: 4px 4px 4px 0;
    white-space: nowrap;
}

.actors-search-form button:hover {
    background: #ff1a25;
}

.actors-search-bar {
    padding: 30px 40px 0;
}

.actors-search-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 14px;
    color: #999;
}

.actors-search-info a {
    color: #e50914;
    text-decoration: none;
}

.actors-page {
    padding: 30px 40px 60px;
}

.actors-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    overflow: hidden;
}

.actor-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s;
}

.actor-row:hover {
    background: rgba(255,255,255,0.04);
}

.actor-row img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.actor-row-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.actor-row-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actor-row-meta {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 3px;
    line-height: 1.4;
}

.actor-row-pop {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

/* Pagination */
.actors-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.page-btn:hover {
    background: rgba(255,255,255,0.15);
}

.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

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

.page-num.active {
    color: #fff;
    background: #e50914;
    font-weight: 700;
}

.page-dots {
    color: #555;
    font-size: 14px;
}

@media (max-width: 900px) {
    .actors-hero { height: 320px; }
    .actors-hero-content h1 { font-size: 32px; }
    .actors-page { padding: 20px; }
}

@media (max-width: 600px) {
    .actors-hero { height: 280px; }
    .actors-hero-content h1 { font-size: 26px; }
    .actors-search-bar { padding: 20px 16px 0; }
    .actors-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .actors-page { padding: 16px 12px; }
    .actor-row { padding: 12px 10px; gap: 12px; }
    .actor-row img { width: 56px; height: 56px; }
}
/* === END ACTORS PAGE === */

/* === COMPACT FOOTER === */
.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 40px 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    color: #fff;
}

.footer-brand p {
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}

.footer-links a {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-sep {
    color: #333;
    font-size: 13px;
}
/* === END COMPACT FOOTER === */

/* Episode Tracking */
.ep-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    width: auto;
}
.episode-list > .ep-item .episode-btn {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
}
.ublock-cta {
    margin: 16px 0 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}
.ublock-cta a {
    color: #fbbf24;
    font-weight: 700;
    margin: 0 6px;
    text-decoration: none;
}
.ublock-cta a:hover {
    text-decoration: underline;
}
.sp-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    margin-top: 4px;
}
.sp-label + .season-tabs,
.sp-label + .episode-grid {
    margin-bottom: 12px;
}
.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.episode-grid .episode-btn {
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    min-width: 52px;
    padding: 10px 16px;
}
.ep-check {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}
.ep-check:hover {
    color: rgba(255,255,255,0.7);
}
.ep-check.watched {
    color: #e50914;
}
.ep-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.ep-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.ep-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: #e50914;
    border-radius: 2px;
}
.ep-progress-text {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.ep-mark-all {
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}
.ep-mark-all:hover {
    background: rgba(229,9,20,0.3);
}

/* Custom Lists Dropdown */
.list-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.list-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    min-width: 220px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}
.list-dropdown.open {
    display: block;
}
.list-dropdown-items {
    max-height: 200px;
    overflow-y: auto;
}
.list-dropdown-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    color: #ccc;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.list-dropdown-item:hover {
    background: rgba(255,255,255,0.05);
}
.list-dropdown-item.in-list {
    color: #e50914;
}
.list-dropdown-item.in-list::before {
    content: '\2713 ';
}
.list-dropdown-empty {
    padding: 10px 14px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.list-dropdown-new {
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px;
    gap: 6px;
}
.list-dropdown-new input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
}
.list-dropdown-new button {
    background: #e50914;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

/* Lists Page */
.lists-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    margin-top: 4px;
}
.lists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 4%;
    max-width: var(--max-width);
    margin: 20px auto;
}
.list-card {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
}
.list-card:hover {
    border-color: rgba(229,9,20,0.3);
}
.list-card-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 160px;
    overflow: hidden;
}
.list-card-posters img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.list-card-info {
    padding: 14px 16px;
}
.list-card-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.list-card-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}
.list-card-count {
    font-size: 12px;
    color: #e50914;
    font-weight: 600;
}
.back-to-lists {
    display: inline-block;
    margin-top: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
}
.back-to-lists:hover {
    color: #fff;
}
@media (max-width: 900px) {
    .lists-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .lists-grid { grid-template-columns: 1fr; }
}

/* Google OAuth Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #1f1f1f;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.google-btn:hover { background: #f0f0f0; }
.google-btn svg { flex-shrink: 0; }
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #888;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #333;
}
.auth-divider span { padding: 0 16px; }
.cf-turnstile {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

/* User Rating Stars */
.user-rating-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    flex-wrap: wrap;
}
.ur-label {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}
.ur-stars {
    display: flex;
    gap: 2px;
    cursor: pointer;
}
.ur-star {
    font-size: 22px;
    color: #333;
    transition: color 0.15s;
    user-select: none;
}
.ur-star.active { color: #f5c518; }
.ur-star.hover { color: #ffd84d; }
.ur-star:hover ~ .ur-star { color: #333; }
.ur-value {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.ur-community {
    font-size: 12px;
    color: #888;
}

/* Rated card badge */
.rated-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.rated-card .film-card {
    display: block;
    width: 100%;
}

.rated-card .film-poster {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.rated-card .film-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rated-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e50914;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Unavailable streaming provider */
.wtw-row.wtw-unavailable {
    opacity: 1;
}

/* Inactive Watch button - gray outline */
.wtw-btn-inactive {
    background: transparent;
    border: 1px solid #555;
    color: #555;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* FORCE rent/buy yellow */
.wtw-btn.wtw-btn-rent,
a.wtw-btn.wtw-btn-rent,
span.wtw-btn.wtw-btn-rent {
    background: #f5c518 !important;
    color: #000 !important;
    border: none !important;
}
.wtw-btn.wtw-btn-buy,
a.wtw-btn.wtw-btn-buy,
span.wtw-btn.wtw-btn-buy {
    background: #f5c518 !important;
    color: #000 !important;
    border: none !important;
}

/* Mobile nav - login/logout in hamburger */
.nav-mobile-only { display: none !important; }
@media (max-width: 768px) {
    .nav-mobile-only { display: block !important; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px; margin-top: 4px; }
    .header-logout { display: none !important; }
}

/* Mobile header: logo center, avatar+hamburger right, search below */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; position: relative; }
    .logo {
    text-decoration: none; order: 1; flex: 1; text-align: center; }
    .header-avatar { order: 2; }
    .mobile-toggle { order: 3; }
    .header-logout { display: none !important; }
    .search-wrap { order: 4; width: 100%; }
    .main-nav {
    align-items: center; order: 5; width: 100%; }
}

/* Mobile: Sign In + avatar right, same size as hamburger */
@media (max-width: 768px) {
    .header-login, .header-avatar { order: 2; margin-left: auto; }
    .header-login { padding: 6px 12px; font-size: 13px; }
    .mobile-toggle { font-size: 28px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
}

/* Mobile hero: text left-aligned, director+CTA one line */
@media (max-width: 768px) {
    .hero-content { text-align: left !important; padding-left: 16px !important; padding-right: 16px !important; }
    .hero-card-info { text-align: left !important; }
    .hero-badge { text-align: left !important; display: block; }
    .hero-text { text-align: left !important; max-width: 100% !important; }
    .hero-left { text-align: left !important; }
    .hero-meta { justify-content: flex-start !important; }
    .hero-bottom-row { gap: 10px; font-size: 13px; }
    .hero-bottom-row { flex-wrap: nowrap; white-space: nowrap; }
    .hero-director { white-space: nowrap; }
}

/* Network page tabs (All / Currently Airing) */
.network-tabs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.network-tabs a {
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.06);
    border: 1px solid transparent;
    transition: background .15s, color .15s;
}
.network-tabs a:hover { color: var(--text-white); background: rgba(255,255,255,0.12); }
.network-tabs a.active {
    background: #e50914;
    color: #fff;
    border-color: #e50914;
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin: 16px 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 4px 4px 0 0;
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
}
.admin-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.admin-tab.active { color: #fff; border-bottom-color: #e50914; }

/* Admin stats — multi-column grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 10px;
}
/* Row 1: 3 sections (span 2 cols each) — Genres, Networks, Rating+Decade */
.stats-grid > *:nth-child(-n+3) { grid-column: span 2; }
/* Row 2: 2 sections (span 3 cols each) — Last 30 years, Recently added */
.stats-grid > *:nth-child(n+4) { grid-column: span 3; }
.stats-grid .admin-section { margin: 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 16px; }
.stats-grid .admin-section h2 { font-size: 15px; margin-bottom: 8px; }
.stats-grid .admin-table { font-size: 12px; }
.stats-grid .admin-table th, .stats-grid .admin-table td { padding: 6px 8px; }

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: 1fr; } .stats-grid > * { grid-column: auto !important; }
}

.stats-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.stats-col .admin-section { margin: 0; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 16px; }
.stats-col .admin-section h2 { font-size: 15px; margin-bottom: 8px; }
.stats-col .admin-table { font-size: 12px; }
.stats-col .admin-table th, .stats-col .admin-table td { padding: 6px 8px; }

/* Hero poster wall (homepage Netflix-style) */
.hero-wall {
    position: relative;
    overflow: hidden;
    min-height: 784px;
    padding: 80px 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    margin-top: 0;
}
.hero-wall { perspective: 1400px; perspective-origin: 50% 30%; }
.hero-poster-wall {
    position: absolute;
    left: -10%;
    top: -15%;
    width: 120%;
    height: 130%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transform: rotateX(8deg) rotateZ(-4deg) scale(1.1);
    transform-origin: center center;
    will-change: transform;
}
.hero-wall .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.55) 25%, rgba(0,0,0,0.82) 45%, rgba(0,0,0,0.82) 65%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
.hero-wall .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.hero-text-center {
    width: 100%;
    text-align: center;
    max-width: 900px;
    padding: 0 16px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-text-center > * { width: 100%; }
.hero-text-center h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9), 0 0 40px rgba(0,0,0,0.6);
}
.hero-subtitle {
    font-size: clamp(15px, 1.4vw, 19px);
    color: #fff;
    margin: 0 0 32px;
    line-height: 1.5;
    text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.5);
}
.hero-btn-primary {
    display: inline-block;
    background: rgba(229,9,20,0.85);
    color: #fff !important;
    padding: 16px 44px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.7);
    text-decoration: none;
    letter-spacing: 1px;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(229,9,20,0.35);
}
.hero-btn-primary:hover {
    background: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,9,20,0.5);
}
.hero-ad-corner {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    transform: scale(0.85);
    transform-origin: top right;
    opacity: 0.92;
}
@media (max-width: 900px) {
    .hero-wall { min-height: 644px; padding: 60px 4%; }
    
    .hero-ad-corner { display: none; }
}
@media (max-width: 600px) {
    .hero-wall { min-height: 532px; padding: 48px 4%; }
    
    .hero-text-center h1 { font-size: 20px; line-height: 1.2; padding: 0 8px; }
    .hero-subtitle { font-size: 14px; margin-bottom: 22px; }
    .hero-btn-primary { padding: 13px 28px; font-size: 14px; }
}

/* Streaming services bar (homepage, above global filter) */
.streaming-bar-section {
    padding: 24px 4% 32px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.streaming-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.streaming-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px 24px 18px;
    text-align: center;
}
.streaming-card-label {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.streaming-card-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.streaming-bar-label {
    display: none;
}
.streaming-bar + .streaming-bar {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.streaming-row-tag {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-right: 4px;
    align-self: center;
}
.streaming-logo {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    background: #0d0d0d;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.streaming-bar-free .streaming-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}
.streaming-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.streaming-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.streaming-all {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    margin-left: 4px;
}
.streaming-all:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
@media (max-width: 600px) {
    .streaming-bar-section { padding: 14px 3% 24px; }
    .streaming-bar {
        gap: 10px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 4px 4px;
        -webkit-overflow-scrolling: touch;
    }
    .streaming-bar + .streaming-bar { margin-top: 14px; padding-top: 14px; }
    .streaming-logo { width: 42px; height: 42px; }
    .streaming-bar-free .streaming-logo { width: 40px; height: 40px; }
    .streaming-all { height: 42px; padding: 0 12px; font-size: 11px; }
    .streaming-row-tag { font-size: 9px; }
}

/* ===== FORCE HERO TITLE CENTER (override) ===== */
.hero-wall .hero-content {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hero-wall .hero-text-center {
    display: inline-block !important;
    width: auto !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    text-align: center !important;
    float: none !important;
    position: static !important;
}
.hero-wall .hero-text-center .hero-btn-primary { display: inline-block !important; width: auto !important; max-width: 280px !important; }
.hero-wall .hero-text-center h1,
.hero-wall .hero-text-center p,
.hero-wall .hero-text-center .hero-btn-primary {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== STREAMING BAR — single combined row ===== */
.streaming-bar-combined {
    flex-wrap: nowrap;
    max-width: 1300px;
    gap: 10px;
}
.streaming-bar-combined .streaming-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}
.streaming-divider {
    display: inline-block;
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    margin: 0 6px;
}
@media (max-width: 1100px) {
    .streaming-bar-combined { flex-wrap: wrap; }
}

/* Coming Soon player */
.coming-soon-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #0a0a0a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.coming-soon-content {
    text-align: center;
    padding: 40px;
}
.coming-soon-icon {
    font-size: 48px;
    color: rgba(255,255,255,0.2);
    margin-bottom: 16px;
}
.coming-soon-content h3 {
    font-size: 28px;
    color: #fff;
    margin: 0 0 12px;
    font-weight: 700;
}
.coming-soon-content p {
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    margin: 0 0 24px;
}
.coming-soon-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #e50914;
    color: #fff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.3);
}
.coming-soon-btn:hover {
    background: #f40612;
}


/* ===== STREAMING CARDS MOBILE ===== */
@media (max-width: 768px) {
    .streaming-cards {
        flex-direction: column;
        gap: 12px;
        padding: 0 3%;
    }
    .streaming-card {
        padding: 12px 14px 14px;
        border-radius: 12px;
    }
    .streaming-card-label {
        font-size: 10px;
        margin-bottom: 10px;
    }
    .streaming-card-logos {
        flex-wrap: wrap;
        gap: 8px;
    }
    .streaming-logo {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .streaming-all {
        height: 42px;
        padding: 0 14px;
        font-size: 11px;
    }
}
