/* Movies & Series — Light blue, light red, black; glowy theme */
@viewport { width: device-width; }
:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-elevated: #1a1a1a;
    --text: #e8e8e8;
    --text-muted: #b0b0b0;
    /* Light red accent */
    --accent: #ff6b6b;
    --accent-hover: #ff8585;
    --accent-glow: rgba(255, 107, 107, 0.5);
    --accent-glow-strong: rgba(255, 107, 107, 0.7);
    /* Light blue secondary */
    --blue: #7dd3fc;
    --blue-glow: rgba(125, 211, 252, 0.4);
    --blue-glow-strong: rgba(125, 211, 252, 0.6);
    --border: #2a2a2a;
    --radius: 8px;
    --header-h: 56px;
    --hero-h: 70vh;
    --card-w: 140px;
    --card-h: 200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Play', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.4;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,.9), transparent);
    z-index: 100;
    transition: background .2s;
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 80px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--blue-glow));
    transition: filter 0.2s;
}

.logo:hover .logo-img {
    filter: drop-shadow(0 0 12px var(--blue-glow-strong)) drop-shadow(0 0 20px var(--blue-glow));
}

.nav-main {
    display: none;
    gap: 1.5rem;
    margin-left: auto;
}

.nav-main a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
}

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

/* Hamburger (mobile/tablet) */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 4px;
    position: relative;
    z-index: 102;
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle .menu-icon-close { display: none; }
.menu-toggle .menu-icon-open { display: block; }
.site-header.menu-open .menu-toggle .menu-icon-close { display: block; }
.site-header.menu-open .menu-toggle .menu-icon-open { display: none; }

/* Offcanvas: mobile/tablet sliding panel (nav + lang + auth inside) */
@media (max-width: 991px) {
    .offcanvas {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.97);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1.5rem 1rem;
        gap: 0;
        z-index: 100;
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0.25s;
        pointer-events: none;
    }
    .site-header.menu-open .offcanvas {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .offcanvas .nav-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding: 0;
        background: transparent;
        position: static;
        gap: 0;
    }
    .offcanvas .nav-main a {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .offcanvas .nav-main a:last-child { border-bottom: none; }
    .offcanvas .nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    .offcanvas .nav-right .lang-switcher {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    .offcanvas .nav-right a,
    .offcanvas .nav-right .nav-link {
        display: block;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .offcanvas .nav-right a:last-child,
    .offcanvas .nav-right .nav-link:last-of-type { border-bottom: none; }
    .offcanvas .nav-right .profile-link,
    .offcanvas .nav-right .icon-link {
        justify-content: flex-start;
    }
}
body.menu-open { overflow: hidden; }

/* Desktop: offcanvas unwraps so nav-main + nav-right sit in header */
@media (min-width: 992px) {
    .menu-toggle { display: none; }
    .offcanvas {
        display: contents;
        position: static;
        transform: none;
        visibility: visible;
        background: transparent;
        padding: 0;
        overflow: visible;
        pointer-events: auto;
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right .nav-link {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.nav-right .nav-link:hover {
    color: var(--text);
}

/* Language switcher (EN | SW) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.lang-switcher .lang-link {
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.lang-switcher .lang-link:hover {
    color: var(--text);
}
.lang-switcher .lang-link.active {
    color: var(--blue);
    font-weight: 600;
}
.lang-switcher .lang-sep {
    opacity: 0.6;
    user-select: none;
}
.lang-switcher-auth {
    margin-left: auto;
    margin-right: 12px;
}

.profile-link {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(255, 107, 107, 0.2);
    transition: box-shadow 0.2s, transform 0.2s;
}

.profile-link:hover {
    box-shadow: 0 0 20px var(--accent-glow-strong), 0 0 40px var(--accent-glow);
}

.icon-link {
    font-size: 1.2rem;
    opacity: .9;
}

/* Remix Icons spacing (no emojis) */
.btn i[class^="ri-"],
.section-head h2 i[class^="ri-"],
.card-meta i[class^="ri-"],
.hero-meta .rating i[class^="ri-"],
.watch-meta i[class^="ri-"] {
    margin-right: 0.25em;
    vertical-align: -0.15em;
}
.remove-link i[class^="ri-"],
.icon-btn i[class^="ri-"] {
    font-size: 1.1em;
}

.btn-sm {
    padding: 6px 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(255, 107, 107, 0.15);
    transition: box-shadow 0.2s, background 0.2s;
}

.btn-sm:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 18px var(--accent-glow-strong), 0 0 36px var(--accent-glow);
}

.btn-sign-in {
    background: var(--blue);
    color: #0a0a0a;
    box-shadow: 0 0 12px var(--blue-glow), 0 0 24px rgba(125, 211, 252, 0.2);
}
.btn-sign-in:hover {
    background: #99dcfd;
    box-shadow: 0 0 18px var(--blue-glow-strong), 0 0 36px var(--blue-glow);
}

@media (min-width: 992px) {
    .nav-main { display: flex; }
    .site-header { padding: 0 24px; }
    .nav-right {
        margin-left: 1rem;
        padding-left: 1rem;
        border-left: 1px solid rgba(255, 255, 255, 0.25);
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: var(--hero-h);
    display: flex;
    align-items: flex-end;
    padding: 0 24px 8%;
    margin-top: var(--header-h);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-placeholder {
    background: #0a0a0a;
    background-size: cover;
    background-position: center;
}

.hero-default-bg {
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide .hero-featured {
    z-index: 0;
}

.hero-slide .hero-overlay {
    z-index: 1;
}

.hero-slide .hero-content {
    z-index: 2;
}

.hero-featured {
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.6) 40%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    max-width: 600px;
}

.hero-genres {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 4px;
}

.hero-meta {
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 8%;
    left: 24px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.hero-dots .dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.hero-dots .dot:hover {
    background: rgba(255,255,255,.5);
}

.hero-dots .dot.active {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(255, 107, 107, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .1s;
}

.btn:hover {
    opacity: .95;
}

@media (pointer: fine) {
    .btn:active { transform: scale(0.98); }
}
@media (hover: none) {
    .btn, .pill, .card { min-height: 44px; }
    .card { min-height: auto; }
    .card .card-poster { min-height: 120px; }
}

.btn-watch,
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(255, 107, 107, 0.2);
    transition: box-shadow 0.2s, background 0.2s, transform 0.2s;
}

.btn-watch:hover,
.btn-primary:hover {
    box-shadow: 0 0 22px var(--accent-glow-strong), 0 0 45px var(--accent-glow);
}

.btn-add {
    background: rgba(125, 211, 252, 0.15);
    color: var(--blue);
    border: 1px solid rgba(125, 211, 252, 0.5);
    box-shadow: 0 0 12px var(--blue-glow);
    transition: box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-add:hover {
    background: rgba(125, 211, 252, 0.25);
    border-color: var(--blue);
    box-shadow: 0 0 18px var(--blue-glow-strong), 0 0 30px var(--blue-glow);
}

@media (min-width: 768px) {
    .hero { padding: 0 48px 10%; }
    .hero-content { padding: 0 24px; }
    .hero-dots { left: 48px; }
}

/* Sections */
.section {
    padding: 32px 0 40px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 20px 16px;
    margin-bottom: 4px;
}

.section-head h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.section-filters {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.section-filters .filter {
    cursor: pointer;
}

.section-filters .filter.active {
    color: var(--accent);
    font-weight: 500;
    text-shadow: 0 0 10px var(--accent-glow);
}

.genre-pills {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

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

.pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}

.pill:hover,
.pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(255, 107, 107, 0.2);
}

.pill:hover {
    box-shadow: 0 0 16px var(--accent-glow-strong), 0 0 32px var(--accent-glow);
}

/* Carousel */
.carousel-wrap {
    position: relative;
    padding: 0 20px 8px;
}

@media (min-width: 768px) {
    .carousel-wrap { padding: 0 28px 12px; }
}

.carousel-prev,
.carousel-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,.6);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

@media (min-width: 768px) {
    .carousel-prev, .carousel-next {
    display: flex;
    box-shadow: 0 0 12px var(--blue-glow);
    transition: box-shadow 0.2s;
}

.carousel-prev:hover, .carousel-next:hover {
    box-shadow: 0 0 20px var(--blue-glow-strong), 0 0 35px var(--blue-glow);
}
}

.carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
}

.carousel::-webkit-scrollbar {
    display: none;
}

/* Cards */
.card {
    flex: 0 0 var(--card-w);
    scroll-snap-align: start;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: transform .2s;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--blue-glow), 0 0 40px rgba(125, 211, 252, 0.15);
}

.card-poster {
    aspect-ratio: 2/3;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 14px 12px;
}

.card-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    :root {
        --card-w: 160px;
        --card-h: 240px;
    }
    .card { flex: 0 0 var(--card-w); }
}

/* Video section */
.video-section {
    padding-top: 32px;
}

.video-player-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.section-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 14px var(--accent-glow), 0 0 28px rgba(255, 107, 107, 0.2);
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.auth-page .site-header {
    position: relative;
    background: var(--bg);
}

.auth-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-box h1 {
    font-size: 1.75rem;
    margin: 0 0 24px;
}

.auth-box form {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-box input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
}

.auth-box input::placeholder {
    color: var(--text-muted);
}

.auth-box .btn {
    width: 100%;
    justify-content: center;
    padding: 14px;
}

.auth-box .error {
    color: var(--accent);
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

.auth-footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
    transition: text-shadow 0.2s;
}

.auth-footer a:hover {
    text-shadow: 0 0 12px var(--accent-glow-strong);
}

/* Subscribe / Packages */
/* Page-centered: 70% width, centered */
.page-centered {
    width: 70%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .page-centered {
        width: 92%;
    }
}

.packages-page {
    padding: calc(var(--header-h) + 40px) 24px 56px;
}

.packages-page.page-centered {
    width: 70%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .packages-page.page-centered {
        width: 92%;
    }
}

.packages-page h1 {
    font-size: 1.75rem;
    margin: 0 0 12px;
    text-align: center;
}

.packages-page .subtitle {
    color: var(--text-muted);
    margin: 0 0 24px;
}

/* Subscription dashboard (member with/without active plan) */
.subscription-dashboard {
    margin-bottom: 40px;
}
.subscription-dashboard .section-title {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--text);
}
.subscription-dashboard .section-title:first-child {
    margin-top: 0;
}
.current-plan-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.current-plan-card .plan-info h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}
.current-plan-card .plan-meta {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.current-plan-card .plan-actions .btn-renew {
    flex-shrink: 0;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge.active {
    background: rgba(0, 200, 100, 0.2);
    color: #4ade80;
}
.badge.inactive {
    background: rgba(255, 107, 107, 0.15);
    color: var(--text-muted);
}
.sub-no-active {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 16px;
}
.payment-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.payment-history-table th,
.payment-history-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.payment-history-table th {
    color: var(--text-muted);
    font-weight: 600;
}
.subscription-dashboard .table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
    text-align: center;
}

.packages-grid {
    display: grid;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 600px) {
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.package-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.package-card .price {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0 0 12px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.package-card .desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

.package-card .btn {
    width: 100%;
    justify-content: center;
}

.packages-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.packages-footer a {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

.required-notice {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.required-notice.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: #22c55e;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Mock payment modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}
.modal-overlay[hidden] {
    display: none !important;
}

.modal {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 400px;
    width: 100%;
}

.modal h3 {
    margin: 0 0 16px;
}

.modal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.modal .form-row {
    margin-bottom: 12px;
}

.modal input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
}

.modal .btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

/* Watch page */
.watch-page {
    padding: calc(var(--header-h) + 16px) 16px 48px;
}

.watch-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

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

/* Small loading box on top of video */
.watch-loading-box {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    pointer-events: none;
}
.watch-loading-box.is-hidden {
    display: none;
}
.watch-loader-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: watch-spin 0.9s linear infinite;
    flex-shrink: 0;
}
.watch-loader-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}
@keyframes watch-spin {
    to { transform: rotate(360deg); }
}

/* Series: placeholder when no episode selected */
.watch-series-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    color: var(--text-muted);
    pointer-events: none;
}
.watch-series-placeholder .ri-movie-2-line {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}
.watch-series-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

/* Series: season tabs and episodes */
.watch-seasons-section {
    margin-bottom: 24px;
}
.watch-seasons-title {
    font-size: 1.1rem;
    margin: 0 0 12px;
}
.watch-season-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.watch-season-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.watch-season-tab:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
}
.watch-season-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-glow);
}
.watch-episodes-panel {
    display: none;
}
.watch-episodes-panel.active {
    display: block;
}
.watch-episodes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.watch-episode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.watch-episode-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.watch-episode-btn .ri-play-circle-line {
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--accent);
}

.watch-recommended {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.watch-recommended h2 {
    font-size: 1.25rem;
    margin: 0 0 16px;
}

.watch-recommended .carousel-wrap {
    margin: 0 -16px;
}

.watch-info h1 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.watch-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.watch-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.watch-cast {
    margin-top: 16px;
    font-size: 0.9rem;
}

.watch-cast strong {
    color: var(--text);
}

/* My List */
.mylist-page {
    padding: calc(var(--header-h) + 24px) 16px 48px;
}

.mylist-page h1 {
    font-size: 1.5rem;
    margin: 0 0 24px;
}

.mylist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 600px) {
    .mylist-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .mylist-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mylist-grid .card {
    flex: none;
    width: 100%;
}

.mylist-grid .card-poster {
    aspect-ratio: 2/3;
}

.card-wrap {
    position: relative;
}

.mylist-grid .remove-link {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 1;
}

.mylist-grid .remove-link:hover {
    background: var(--accent);
}

/* Browse (movies/series) */
.browse-page {
    padding: calc(var(--header-h) + 24px) 16px 48px;
}

.browse-page h1 {
    font-size: 1.5rem;
    margin: 0 0 20px;
}

.browse-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.browse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 600px) {
    .browse-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .browse-grid { grid-template-columns: repeat(4, 1fr); }
}

.browse-grid .card {
    flex: none;
    width: 100%;
}

/* Admin */
.admin-body {
    background: var(--bg-elevated);
}

.admin-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
}

.admin-header .logo .logo-img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--blue-glow));
}

.admin-nav a {
    margin-left: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--accent);
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.admin-main h1 {
    font-size: 1.5rem;
    margin: 0 0 24px;
}

.admin-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: -8px 0 20px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-revenue-stats {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.admin-stat-revenue {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-stat-value {
    font-size: 1.25rem;
}

.admin-stat-hint {
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-stat-hint.hint-up {
    color: #22c55e;
}

.admin-stat-hint.hint-down {
    color: #ef4444;
}

.admin-stat-hint.hint-muted {
    color: var(--text-muted);
    font-weight: 400;
}

.admin-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-quicklinks .btn {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 500;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
    transition: box-shadow 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 0 18px rgba(220, 38, 38, 0.6);
}

.admin-user-actions {
    white-space: nowrap;
}

.admin-inline-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 8px;
    margin-bottom: 4px;
}

.admin-inline-form select {
    min-width: 100px;
    padding: 6px 8px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-card h2 {
    font-size: 1.15rem;
    margin: 0 0 16px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-muted);
}

.empty-state p {
    margin: 0 0 16px;
}

/* Member dashboard */
.member-body {
    background: var(--bg);
}

.member-main {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 32px) 24px 48px;
}

.member-main h1 {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.member-welcome {
    color: var(--text-muted);
    margin: 0 0 28px;
    font-size: 1rem;
}

.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.member-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.member-card h2 {
    font-size: 1.1rem;
    margin: 0 0 12px;
}

.member-card .detail {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 16px;
    line-height: 1.4;
}

.member-card .status {
    font-weight: 600;
    margin: 0 0 4px;
}

.member-card .status.active {
    color: #22c55e;
}

.member-card .status.inactive {
    color: var(--text-muted);
}

.member-card .btn {
    margin-right: 8px;
    margin-bottom: 4px;
}
