:root {
    --bg-color: #141414;
    --text-color: #ffffff;
    --accent-color: #e50914; /* Netflix Red */
    --card-scale: 1.05;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    position: fixed;
    width: 100%;
    z-index: 100;
    transition: background 0.3s;
}

.navbar .logo {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: bold;
}

.navbar nav {
    display: flex;
    gap: 15px;
}

.navbar nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.navbar nav a:hover, .navbar nav a.active {
    color: #b3b3b3;
}

.search-bar{
    display:flex;
    align-items:center;
}

.search-bar form{
    display:flex;
    align-items:center;
    background:#1a1a1a;
    border:1px solid rgba(255,255,255,.12);
    border-radius:30px;
    padding:10px 16px;
    min-width:300px;
    transition:.3s;
}

.search-bar form:hover{
    border-color:rgba(255,255,255,.25);
}

.search-bar i{
    color:#999;
    margin-right:10px;
}

.search-bar input{
    background:none;
    border:none;
    outline:none;
    color:#fff;
    width:240px;
    font-size:14px;
}

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

/* Hero Section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 4%;
    position: relative;
}
.logo a{
    color:var(--accent-color);
    text-decoration:none;
    font-weight:bold;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-color), transparent);
}

.hero-content {
    max-width: 680px;
    z-index: 10;
    padding-bottom: 10px;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

.hero-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.hero-meta-row span {
    max-width: 100%;
}

.hero-category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 4px;
    background: rgba(229, 9, 20, 0.88);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0;
}

.hero-description {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 10px;
    color: #e6e6e6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-cast {
    color: #d5d5d5;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 18px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-cast strong {
    color: #fff;
}

.hero-btn {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.hero-btn:hover {
    background-color: #f40612;
}

.homepage-load-error { padding: 20px; color: #bbb; }

/* Carousel Section */
.carousel-container {
    padding: 14px 4% 10px;
    position: relative;
    margin-top: 0; /* Changed from -120px to 0 */
    z-index: 50;
}


.carousel-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.carousel-container[style] {
    margin-top: 0 !important;
}

.carousel-container > div[style*="justify-content"] {
    margin-bottom: 10px !important;
}

.carousel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.carousel-heading .carousel-title {
    margin-bottom: 0;
}

/* Parent Slider Container */
.carousel-parent {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
    width: 100%;
    /* Enables smooth native momentum scrolling on iOS and Android */
    -webkit-overflow-scrolling: touch; 
}

/* Completely hide ugly desktop scrollbars */
.carousel-track::-webkit-scrollbar {
    display: none; 
}
.carousel-track {
    scrollbar-width: none; 
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 15px;
    bottom: 15px;
    width: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(229, 9, 20, 0.8); /* Red highlight on hover */
    font-size: 24px;
}

.prev-btn, .prev-btn-recent { left: -20px; border-radius: 0 4px 4px 0; }
.next-btn, .next-btn-recent { right: -20px; border-radius: 4px 0 0 4px; }

/* Movie Cards */
.card {
    min-width: 180px;
    height: 260px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.card:hover {
    transform: scale(var(--card-scale));
    z-index: 20;
}

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

.card-category {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e50914;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    text-shadow: 0 1px 3px rgba(0,0,0,.9);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.95) 80%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 11px;
    color: #cccccc;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE BREAKPOINTS (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Screens (800px and down) */
@media (max-width: 800px) {
    .navbar {
        padding: 15px 4%;
    }
    .hero-title {
        font-size: 36px;
    }
    .search-bar input {
        width: 140px;
    }
    .search-bar input:focus {
        width: 160px;
    }
}

/* Mobile Screens (600px and down) */
@media (max-width: 600px) {
    /* Stack Navbar Layout elements cleanly */
    .navbar {
        flex-direction: column;
        gap: 12px;
        background: rgba(20, 20, 20, 0.95); /* Solid header backdrop for readability */
        padding: 15px 20px;
        position: fixed /* Un-fix header so hero content doesn't collide */
    }

    .navbar nav {
        width: 100%;
        justify-content: center;
        order: 3; /* Move links below search bar */
    }

    .search-bar {
        width: 100%;
        justify-content: center;
        order: 2;
    }

    .search-bar input, .search-bar input:focus {
        width: 100%; /* Make search bar take full width */
    }

    /* Adjust Hero Header spaces */
    .hero {
        height: 60vh;
        margin-top: 0;
    }

    .carousel-container {
        margin-top: 0;
        padding-top: 12px;
        padding-bottom: 8px;
    }

    /* Keep every homepage slider heading compact on phone screens. */
    .carousel-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Truncate description text on ultra tiny phones */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Hide arrow clickers completely on touch phones since swiping is much easier */
    .nav-btn {
        display: none !important;
    }

    .carousel-track {
        gap: 10px;
        padding: 5px 0 15px 0;
    }

    .card {
        min-width: 135px; /* Perfect dual or triple card sizing on touch grids */
        height: 200px;
    }
    
    /* Make card information persistent on mobile touchscreens since there is no "hover" state */
    .card-overlay {
        opacity: 1;
        padding: 8px;
        background: linear-gradient(transparent, rgba(0,0,0,0.85) 60%);
    }

    .card-title {
        font-size: 12px;
    }
    
    .card:hover {
        transform: none; /* Disable card grow animations on phone tap screens */
    }
}
/* ==========================================================================
   HERO CAROUSEL OVERRIDES
   ========================================================================== */
.hero {
    overflow: hidden;
    padding: 0;
}
.hero-content {
    position: relative;
    padding-bottom: 0;
}
#heroTrack .carousel-slide-card {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}
.hero .nav-btn {
    top: 0;
    bottom: 0;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}
/* ==========================================================================
   NAVIGATION CATEGORY DROPDOWN STYLES
   ========================================================================== */
.dropdown-menu-parent {
    position: relative;
    display: inline-block;
}

.dropdown-trigger-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-content-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 0;
    margin-top: 10px;
    z-index: 200;
}

/* Dropdown link items */
.dropdown-content-panel a {
    color: #ffffff !important;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px !important;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

/* Hover effects inside dropdown menu */
.dropdown-content-panel a:hover {
    background-color: var(--accent-color);
    color: #ffffff !important;
}

/* Show the dropdown menu when hovering over the parent wrapper container */
.dropdown-menu-parent:hover .dropdown-content-panel {
    display: block;
}

/* Mobile Responsive adjustment to ensure links don't get squished */
@media (max-width: 600px) {
    .dropdown-content-panel {
        position: static;
        transform: none;
        width: 100%;
        background-color: #222;
        box-shadow: none;
        border: none;
        margin-top: 5px;
    }
    .dropdown-menu-parent:hover .dropdown-content-panel {
        display: flex;
        flex-direction: column;
    }
}
/* Pagination buttons hover shifts styling rules declarations sets */
#pagination-controls button:not(:disabled):hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

.footer-notice {
    max-width: 850px;
    margin: 0 auto 25px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-notice i {
    color: #e50914;
    font-size: 18px;
    margin-top: 2px;
}

.footer-notice p {
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
}
@media (max-width: 768px) {

    .footer-notice {
        padding: 14px;
        gap: 10px;
    }

    .footer-notice p {
        font-size: 12px;
        line-height: 1.6;
    }

    .footer-notice i {
        font-size: 16px;
    }
}

/* ========================================================================== 
   PROFESSIONAL HEADER REFRESH
   ========================================================================== */
.site-header {
    --header-border: rgba(255, 255, 255, 0.11);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    justify-content: initial;
    gap: 12px;
    width: calc(100% - 32px);
    left: 16px;
    top: 14px;
    padding: 10px 14px;
    border: 1px solid var(--header-border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(14, 18, 28, 0.93), rgba(6, 7, 10, 0.78));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 5000;
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 128, 255, 0.22), transparent 34%, rgba(229, 9, 20, 0.18));
    opacity: 0.55;
}

.brand-lockup,
.header-navigation-actions,
.nav-panel,
.mobile-nav-button,
.header-actions {
    position: relative;
    z-index: 1;
}

.brand-lockup {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    line-height: 0;
}

.brand-logo {
    display: block;
    width: 220px;
    height: 68px;
    object-fit: cover;
    object-position: center 42%;
}

.nav-panel {
    position: absolute;
    z-index: 5001;
    left: 0;
    top: calc(100% + 10px);
    display: none;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 12, 18, 0.97);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.mobile-nav-toggle:checked ~ .nav-panel {
    display: flex;
}

.primary-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.site-header .primary-nav a,
.site-header .dropdown-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    width: 100%;
    padding: 0 13px;
    border-radius: 12px;
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-header .primary-nav a:hover,
.site-header .dropdown-menu-parent:hover .dropdown-trigger-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.site-header .profile-nav-link {
    margin-bottom: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(11, 124, 255, 0.78));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.site-header .profile-nav-link:hover { background: linear-gradient(135deg, #f20d1a, #1688ff); }

/* Lightweight home and account controls replace the former image logo. */
.header-shortcuts {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-navigation-actions {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-navigation-actions .mobile-nav-button {
    position: static;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.site-header .header-icon-link {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-header .header-icon-link:hover,
.site-header .header-icon-link:focus-visible {
    color: #ffffff;
    border-color: rgba(45, 150, 255, 0.75);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.92), rgba(11, 124, 255, 0.78));
    transform: translateY(-1px);
}

.site-header .header-icon-link.profile-nav-link {
    margin-bottom: 0;
    box-shadow: none;
}

.site-header .browse-nav-link {
    border-color: rgba(45, 150, 255, 0.38);
    background: linear-gradient(135deg, rgba(15, 91, 181, 0.42), rgba(229, 9, 20, 0.28));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dropdown-chevron {
    font-size: 11px;
    opacity: 0.68;
}

.site-header .dropdown-content-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 5px;
    min-width: 340px;
    left: 0;
    top: calc(100% + 12px);
    transform: translateY(4px);
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 20, 0.96);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.site-header .dropdown-menu-parent:hover .dropdown-content-panel,
.site-header .dropdown-menu-parent:focus-within .dropdown-content-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header .dropdown-content-panel a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 11px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 13px !important;
    font-weight: 700;
}

.site-header .dropdown-content-panel a:hover {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.95), rgba(0, 128, 255, 0.72));
    color: #ffffff !important;
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(135deg, #e50914, #0b7cff);
    box-shadow: 0 12px 26px rgba(229, 9, 20, 0.22);
}

.site-header .search-bar form {
    position: relative;
    min-width: 270px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header .search-bar form:focus-within {
    border-color: rgba(45, 150, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(45, 150, 255, 0.18);
}

.site-header .search-bar input {
    width: 210px;
    color: #ffffff;
}

.header-search-submit {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #bfc7d5;
    background: transparent;
    cursor: pointer;
}

.header-search-submit:hover,
.header-search-submit:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    outline: 0;
}

.site-header .search-bar .header-search-submit i { margin: 0; color: inherit; }

.header-search-form {
    position: relative;
}

.header-search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(390px, calc(100vw - 32px));
    max-height: min(480px, calc(100vh - 110px));
    overflow-y: auto;
    padding: 8px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(13, 15, 22, 0.98);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(16px);
    z-index: 350;
}

.header-search-form.is-searching .header-search-suggestions {
    display: grid;
    gap: 7px;
}

.header-search-card,
.header-search-empty {
    width: 100%;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    text-align: left;
}

.header-search-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 8px;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.header-search-card:hover,
.header-search-card:focus,
.header-search-card.is-active {
    outline: 0;
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-1px);
}

.header-search-poster {
    width: 46px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 7px;
    background: #101010;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.header-search-details {
    min-width: 0;
}

.header-search-title {
    display: block;
    margin-bottom: 5px;
    overflow: hidden;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.3;
}

.header-search-meta span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-play {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(229, 9, 20, 0.92);
    font-size: 10px;
}

.header-search-empty {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.mobile-nav-toggle {
    display: none;
}

.mobile-nav-button {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

@media (max-width: 980px) {
    .site-header {
        gap: 12px;
    }

    .header-cta span {
        display: none;
    }

    .site-header .search-bar form {
        min-width: 220px;
    }

    .site-header .search-bar input {
        width: 165px;
    }
}

@media (max-width: 760px) {
    .site-header {
        width: calc(100% - 20px);
        left: 10px;
        top: 10px;
        padding: 9px 10px;
        border-radius: 16px;
        flex-direction: row !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .brand-logo {
        width: 190px;
        height: 58px;
    }

    .nav-panel {
        left: 0;
        right: 0;
        width: auto;
    }

    .primary-nav,
    .header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .site-header .primary-nav a,
    .site-header .dropdown-trigger-btn,
    .header-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .site-header .dropdown-content-panel {
        position: static;
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
        margin-top: 6px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        box-shadow: none;
    }

    .site-header .search-bar,
    .site-header .search-bar form,
    .site-header .search-bar input {
        width: 100%;
        min-width: 0;
    }
}

/* Mobile app-bar: menu left, HydraPH center, searchable icon right */
.mobile-search-toggle,
.mobile-browse-button,
.mobile-search-button,
.mobile-search-form {
    display: none;
}

@media (min-width: 761px) {
    .site-header .mobile-browse-button { display: none !important; }
}

.site-header .nav-panel {
    justify-content: flex-start;
}

.site-header .primary-nav {
    flex-wrap: nowrap;
}

/* Keep the hamburger navigation compact at every screen size. */
.site-header .nav-panel .primary-nav {
    gap: 0;
}

.site-header .nav-panel .primary-nav a {
    min-height: 28px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
}

@media (max-width: 1180px) {
    .site-header .primary-nav a {
        padding: 0 10px;
        font-size: 13px;
    }

    .site-header .search-bar form {
        min-width: 220px;
    }

    .site-header .search-bar input {
        width: 165px;
    }
}

@media (max-width: 760px) {
    .site-header {
        display: grid !important;
        grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
        justify-content: initial;
    }

    .mobile-nav-button {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .brand-lockup {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        min-width: 0;
        max-width: 100%;
    }

    .header-shortcuts {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }

    .header-navigation-actions {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .brand-logo {
        width: 142px;
        height: 44px;
    }

    .header-actions {
        display: none;
    }

    .mobile-search-button {
        position: relative;
        z-index: 1;
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
        display: inline-grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
        cursor: pointer;
    }

    .site-header .mobile-browse-button {
        position: relative;
        z-index: 1;
        grid-column: 3;
        grid-row: 1;
        display: inline-grid !important;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(45, 150, 255, 0.42);
        border-radius: 12px;
        color: #ffffff;
        background: linear-gradient(135deg, rgba(15, 91, 181, 0.48), rgba(229, 9, 20, 0.34));
        text-decoration: none;
    }

    .mobile-search-toggle:checked ~ .mobile-search-button {
        border-color: rgba(45, 150, 255, 0.7);
        box-shadow: 0 0 0 3px rgba(45, 150, 255, 0.18);
    }

    .mobile-search-form {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        z-index: 1;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 0 14px;
        border-radius: 15px;
        border: 1px solid rgba(45, 150, 255, 0.35);
        background: rgba(10, 12, 18, 0.98);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    }

    .mobile-search-toggle:checked ~ .mobile-search-form {
        display: flex;
    }

    .mobile-search-form i {
        color: rgba(255, 255, 255, 0.62);
    }

    .mobile-search-form input {
        width: 100%;
        min-width: 0;
        background: transparent;
        border: 0;
        outline: 0;
        color: #ffffff;
        font-size: 14px;
    }

    .mobile-search-form input::placeholder {
        color: rgba(255, 255, 255, 0.48);
    }

    .mobile-search-form .header-search-suggestions {
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(420px, calc(100vh - 150px));
    }

    .nav-panel {
        grid-column: 1 / -1;
    }

    .primary-nav {
        gap: 0;
    }

    .site-header .primary-nav a {
        min-height: 28px;
        padding-top: 0;
        padding-bottom: 0;
        line-height: 1;
    }
}

/* ========================================================================== 
   BROWSE / DISCOVER PAGE
   ========================================================================== */
.browse-page { background: #090b10; color: #fff; }
.browse-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 132px 0 86px; }
.browse-hero { position: relative; overflow: hidden; padding: 34px 38px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: radial-gradient(circle at 84% 18%, rgba(22,127,255,.33), transparent 28%), radial-gradient(circle at 92% 98%, rgba(229,9,20,.35), transparent 34%), linear-gradient(125deg,#171c2c,#0c0d13 65%); box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.browse-hero::after { content: ''; position: absolute; right: -52px; bottom: -90px; width: 260px; height: 260px; border: 34px solid rgba(255,255,255,.05); border-radius: 50%; }
.browse-kicker { position: relative; z-index: 1; margin: 0 0 9px; color: #80bfff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.browse-kicker i { color: #ff5963; margin-right: 7px; }
.browse-hero h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(28px,4vw,45px); letter-spacing: -.035em; }
.browse-hero > p:last-child { position: relative; z-index: 1; max-width: 550px; margin: 11px 0 0; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.55; }
.browse-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 27px 0 18px; }
.genre-scroller { display: flex; gap: 9px; overflow-x: auto; padding: 3px; scrollbar-width: thin; }
.genre-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.78); background: rgba(255,255,255,.045); font: 700 13px 'Segoe UI',sans-serif; cursor: pointer; transition: .2s ease; }
.genre-chip:hover { color: #fff; border-color: rgba(94,173,255,.72); background: rgba(34,125,227,.16); }
.genre-chip.is-active { color: #fff; border-color: transparent; background: linear-gradient(105deg,#e50914,#a51e94 52%,#126ed3); box-shadow: 0 8px 20px rgba(160,24,92,.28); }
.genre-loading,.browse-result-count { margin: 0; color: rgba(255,255,255,.52); font-size: 13px; white-space: nowrap; }
.browse-result-count { flex: 0 0 auto; text-align: right; }
.browse-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(172px,1fr)); gap: 18px; min-height: 250px; }
.browse-card { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; color: #fff; background: #151821; box-shadow: 0 12px 27px rgba(0,0,0,.23); text-decoration: none; transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease; }
.browse-card:hover,.browse-card:focus-visible { z-index: 1; transform: translateY(-5px); border-color: rgba(92,169,255,.72); box-shadow: 0 20px 38px rgba(0,0,0,.45),0 0 0 2px rgba(229,9,20,.19); outline: 0; }
.browse-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.browse-card:hover img { transform: scale(1.055); }
.browse-card-shade { position: absolute; inset: 0; background: linear-gradient(transparent 38%,rgba(4,5,9,.92)); }
.browse-card-info { position: absolute; right: 0; bottom: 0; left: 0; padding: 34px 12px 12px; }
.browse-card-info strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.browse-card-info small { display: block; overflow: hidden; margin-top: 5px; color: rgba(255,255,255,.68); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.browse-card-info b { color: #ee3b45; padding: 0 3px; }
.browse-loading,.browse-empty { grid-column: 1 / -1; display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.62); text-align: center; }
.browse-loading i,.browse-empty i { color: #ff4d58; font-size: 27px; }.browse-empty strong { color: #fff; font-size: 17px; }.browse-empty span { font-size: 13px; }
.browse-pagination { display: flex; justify-content: center; align-items: center; gap: 7px; padding-top: 35px; }
.browse-page-button { display: inline-grid; min-width: 40px; height: 40px; place-items: center; padding: 0 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; background: rgba(255,255,255,.06); font: 800 13px 'Segoe UI',sans-serif; cursor: pointer; transition: .18s ease; }
.browse-page-button:hover:not(:disabled),.browse-page-button.is-current { border-color: #e50914; background: #e50914; }.browse-page-button:disabled { opacity: .35; cursor: not-allowed; }.browse-ellipsis { color: rgba(255,255,255,.48); }
@media (max-width: 760px) { .browse-shell { width: calc(100% - 28px); padding-top: 94px; }.browse-hero { padding: 25px 21px; border-radius: 18px; }.browse-hero h1 { font-size: 29px; }.browse-toolbar { display: block; padding: 19px 0 13px; }.genre-scroller { margin: 0 -3px; padding-bottom: 8px; }.browse-result-count { margin: 5px 3px 0; text-align: left; }.browse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }.browse-card { border-radius: 10px; }.browse-card-info { padding: 28px 9px 9px; }.browse-card-info strong { font-size: 12px; }.browse-card-info small { font-size: 10px; }.browse-pagination { padding-top: 25px; }.browse-page-button { min-width: 37px; height: 37px; } }

/* Hero click reliability */
.hero::after {
    pointer-events: none;
    z-index: 1;
}

.hero-slider-engine {
    position: relative;
    z-index: 2;
}

.hero-content {
    pointer-events: auto;
}

.hero-btn {
    text-decoration: none;
    position: relative;
    z-index: 5;
}

/* Movie suggestions and community comments */
.suggested-section, .comments-section { max-width: 1200px; margin: 50px auto 0; padding: 38px 4% 0; border-top: 1px solid rgba(255,255,255,.1); }
.suggested-heading, .comments-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:22px; }
.section-kicker { display:block; margin-bottom:7px; color:#ff5761; font-size:11px; font-weight:800; letter-spacing:1.5px; }
.suggested-heading h2, .comments-heading h2 { margin:0; color:#fff; font-size:25px; letter-spacing:-.4px; }
.suggested-heading h2 i, .comments-heading h2 i { margin-right:9px; color:#e50914; }
.suggested-count, .comments-total { color:rgba(255,255,255,.58); font-size:13px; white-space:nowrap; }
.suggested-grid { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:14px; }
.suggested-card { position:relative; min-width:0; aspect-ratio:2 / 3; overflow:hidden; border:1px solid rgba(255,255,255,.09); border-radius:8px; background:#1a1a1a; cursor:pointer; box-shadow:0 8px 18px rgba(0,0,0,.22); transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.suggested-card:hover { z-index:2; transform:scale(1.035); border-color:rgba(255,255,255,.38); box-shadow:0 18px 36px rgba(0,0,0,.5); }
.suggested-card img { width:100%; height:100%; display:block; object-fit:cover; transition:transform .35s ease; }
.suggested-card:hover img { transform:scale(1.06); }
.suggested-card-overlay { position:absolute; inset:auto 0 0; padding:32px 13px 12px; background:linear-gradient(transparent,rgba(0,0,0,.92)); }
.suggested-card-title { overflow:hidden; color:#fff; font-size:14px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.suggested-card-meta { display:flex; align-items:center; gap:7px; margin-top:4px; color:rgba(255,255,255,.7); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.suggested-card-meta span { width:3px; height:3px; flex:0 0 auto; border-radius:50%; background:#e50914; }
.comments-section { margin-top:44px; padding-bottom:20px; }
.comment-composer { padding:17px; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.025)); }
.comment-signin, .comment-form, .comment-card { display:flex; align-items:flex-start; gap:13px; }
.comment-avatar { display:grid; place-items:center; width:38px; height:38px; flex:0 0 38px; border-radius:50%; color:#fff; background:linear-gradient(135deg,#e50914,#147ee8); font-size:13px; font-weight:800; }
.comment-signin { align-items:center; }.comment-signin strong { display:block; color:#fff; font-size:14px; }.comment-signin p { margin:3px 0 0; color:rgba(255,255,255,.62); font-size:12px; }
.comment-signin-button { margin-left:auto; padding:10px 13px; border-radius:9px; color:#fff; background:#e50914; font-size:12px; font-weight:800; text-decoration:none; white-space:nowrap; }
.comment-input-wrap { width:100%; }.comment-form textarea { width:100%; min-height:88px; box-sizing:border-box; resize:vertical; padding:12px; border:1px solid rgba(255,255,255,.13); border-radius:10px; outline:0; color:#fff; background:rgba(0,0,0,.25); font:14px/1.45 'Segoe UI',sans-serif; }.comment-form textarea:focus { border-color:#1688ff; box-shadow:0 0 0 3px rgba(22,136,255,.16); }
.comment-form-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:9px; color:rgba(255,255,255,.48); font-size:11px; }.comment-form button { border:0; padding:9px 12px; border-radius:9px; color:#fff; background:linear-gradient(135deg,#e50914,#ba0710); font:800 12px 'Segoe UI',sans-serif; cursor:pointer; }.comment-form button:disabled { opacity:.55; cursor:wait; }
.comments-list { display:grid; gap:12px; margin-top:16px; }.comment-card { padding:16px; border:1px solid rgba(255,255,255,.08); border-radius:13px; background:rgba(255,255,255,.035); }.comment-author-row { display:flex; align-items:center; gap:10px; }.comment-author-row strong { color:#fff; font-size:14px; }.comment-author-row time { color:rgba(255,255,255,.46); font-size:11px; }.comment-content p { margin:7px 0 0; color:rgba(255,255,255,.81); font-size:14px; line-height:1.55; }.comments-empty { padding:28px; border:1px dashed rgba(255,255,255,.15); border-radius:13px; color:rgba(255,255,255,.58); text-align:center; }.comments-empty i { color:#e50914; font-size:22px; }.comments-empty p { margin:8px 0 0; font-size:13px; }
.comments-more { margin-top:16px; text-align:center; }.comments-more button { border:1px solid rgba(255,255,255,.2); padding:10px 16px; border-radius:9px; color:#fff; background:rgba(255,255,255,.07); font:800 12px 'Segoe UI',sans-serif; cursor:pointer; }.comments-more button:hover { background:rgba(255,255,255,.14); }.comments-more button:disabled { opacity:.55; cursor:wait; }
.movie-action-bar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:20px 0 24px; }.movie-action-button { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(255,255,255,.16); padding:11px 15px; border-radius:10px; color:#fff; background:rgba(255,255,255,.07); font:800 13px 'Segoe UI',sans-serif; cursor:pointer; text-decoration:none; transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease; }.movie-action-button:hover { transform:translateY(-1px); background:rgba(255,255,255,.13); border-color:rgba(255,255,255,.32); }.movie-action-button:disabled { opacity:.6; cursor:wait; transform:none; }.watchlist-action { border-color:rgba(229,9,20,.55); background:linear-gradient(135deg,#e50914,#b60710); }.watchlist-action:hover { background:linear-gradient(135deg,#f71622,#cf0a14); }.watchlist-action.is-saved { border-color:rgba(77,205,135,.5); background:rgba(77,205,135,.15); color:#a8f2c4; }.download-action { border-color:rgba(86,171,255,.52); background:linear-gradient(135deg,rgba(31,122,214,.92),rgba(45,72,164,.92)); box-shadow:0 8px 22px rgba(20,103,205,.18); }.download-action:hover { color:#fff; border-color:rgba(128,201,255,.9); background:linear-gradient(135deg,#258ce8,#465fd0); box-shadow:0 10px 26px rgba(20,103,205,.32); }.download-action i { color:#d9efff; }.share-action i { color:#79baff; }.movie-action-status { color:rgba(255,255,255,.62); font-size:12px; }
.continue-watching-section { margin-top:28px; }.continue-watching-card { position:relative; }.continue-watching-chip { position:absolute; z-index:2; right:8px; bottom:9px; max-width:calc(100% - 16px); overflow:hidden; padding:6px 8px; border-radius:7px; color:#fff; background:rgba(9,13,20,.86); font-size:10px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }.continue-watching-chip i { color:#ff5a62; }
.player-collection-section{max-width:1200px;margin:34px auto 0;padding:28px 4% 0;border-top:1px solid rgba(255,255,255,.1)}.player-collection-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}.player-collection-heading h2{margin:0;color:#fff;font-size:21px}.player-collection-heading h2 i{color:#e50914}.player-collection-heading h2 a{color:#fff;text-decoration:none}.player-collection-heading h2 a:hover,.player-collection-heading h2 a:focus-visible{color:#ff6971}.player-collection-heading h2 span{margin-left:6px;color:rgba(255,255,255,.55);font-size:13px;font-weight:500}.collection-selector-label{color:rgba(255,255,255,.62);font-size:12px}.collection-selector{margin-left:6px;border:1px solid rgba(255,255,255,.18);border-radius:6px;background:#202020;color:#fff;padding:6px}.player-collection-slider-wrap{display:flex;align-items:center;gap:9px}.player-collection-track{display:flex;min-width:0;gap:9px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x proximity;padding:7px 2px 10px;scrollbar-width:thin;scrollbar-color:#4a4a4a transparent}.collection-slider-card{position:relative;display:block;flex:0 0 92px;aspect-ratio:2/3;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:7px;background:#1a1a1a;color:#fff;text-decoration:none;scroll-snap-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.collection-slider-card img{width:100%;height:100%;display:block;object-fit:cover}.collection-slider-card:hover,.collection-slider-card:focus-visible{z-index:2;transform:translateY(-3px);border-color:rgba(255,255,255,.6);outline:none}.collection-slider-card.is-current{flex-basis:106px;transform:scale(1.04);border:2px solid #e50914;box-shadow:0 0 18px rgba(229,9,20,.48);cursor:default}.collection-order,.collection-current-label,.collection-slider-title{position:absolute;left:0;right:0;color:#fff;text-shadow:0 1px 4px #000}.collection-order{top:0;padding:5px 6px;background:linear-gradient(rgba(0,0,0,.72),transparent);font-size:10px;font-weight:800}.collection-current-label{bottom:0;padding:6px 4px;background:#e50914;font-size:9px;font-weight:900;letter-spacing:.5px;text-align:center;text-transform:uppercase}.collection-slider-title{bottom:0;padding:20px 6px 6px;background:linear-gradient(transparent,rgba(0,0,0,.95));font-size:10px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.collection-scroll-button{display:grid;flex:0 0 32px;width:32px;height:32px;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:#222;color:#fff;cursor:pointer}.collection-scroll-button:hover,.collection-scroll-button:focus-visible{border-color:#e50914;background:#e50914;outline:none}
/* Public collection cards and dynamic poster collages. */
.collections-page{min-height:100vh;background:#141414;color:#fff;font-family:'Segoe UI',sans-serif}.collections-main,.collection-main{max-width:1200px;margin:auto;padding:110px 4% 70px}.collections-heading{margin-bottom:28px}.collections-heading h1{margin:0;font-size:34px}.collections-heading h1 i{color:#e50914}.collections-heading p{color:rgba(255,255,255,.65)}.collections-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.collection-card{overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#1b1b1b;color:#fff;text-decoration:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.collection-card:hover,.collection-card:focus-visible{transform:translateY(-3px);border-color:rgba(229,9,20,.65);box-shadow:0 16px 30px rgba(0,0,0,.3);outline:none}.collection-collage{display:grid;width:100%;aspect-ratio:16/9;overflow:hidden;background:#222;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}.collection-collage img{width:100%;height:100%;object-fit:cover}.collection-collage.count-1{display:block}.collection-collage.count-1 img{width:100%;height:100%}.collection-collage.count-2{grid-template-columns:repeat(2,1fr);grid-template-rows:1fr}.collection-collage.count-3 img:first-child{grid-row:span 2}.collection-placeholder{display:grid;place-items:center;grid-column:1/-1;grid-row:1/-1;color:#777;font-size:42px;background:linear-gradient(135deg,#282828,#101010)}.collection-card-copy{padding:15px}.collection-card-copy h2{margin:0;font-size:18px}.collection-card-copy p,.collection-count{margin:6px 0 0;color:#aaa;font-size:13px}.collections-empty{padding:55px 20px;border:1px dashed rgba(255,255,255,.2);border-radius:12px;color:#aaa;text-align:center}.collections-empty i{color:#e50914;font-size:30px}.collection-back{display:inline-flex;gap:8px;margin-bottom:22px;color:#bbb;text-decoration:none}.collection-back:hover{color:#fff}.collection-hero{display:grid;grid-template-columns:minmax(220px,360px) minmax(0,1fr);gap:30px;align-items:center;padding-bottom:38px;border-bottom:1px solid rgba(255,255,255,.1)}.collection-hero-collage{border-radius:12px;border:1px solid rgba(255,255,255,.12);box-shadow:0 15px 30px rgba(0,0,0,.3)}.collection-hero h1{margin:0;font-size:36px}.collection-description{max-width:650px;color:#d0d0d0;line-height:1.6}.start-marathon{display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:11px 16px;border:1px solid #e50914;border-radius:7px;background:#e50914;color:#fff;font-weight:800;text-decoration:none}.start-marathon:hover{background:#fa1722}.start-marathon:disabled{opacity:.5;cursor:not-allowed}.collection-movies{padding-top:34px}.collection-movies h2{font-size:23px}.collection-movie-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.collection-movie-card{display:grid;grid-template-columns:35px 55px minmax(0,1fr);align-items:center;gap:10px;min-width:0;padding:8px;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:#1b1b1b;color:#fff;text-decoration:none}.collection-movie-card:hover,.collection-movie-card:focus-visible{border-color:#e50914;outline:none}.collection-movie-card img{width:55px;height:78px;object-fit:cover;border-radius:4px;background:#111}.collection-position{color:#ff5761;font-weight:900;text-align:center}.collection-movie-card h3{overflow:hidden;margin:0;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.collection-movie-card p{overflow:hidden;margin:5px 0 0;color:#aaa;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.collections-empty.compact{padding:25px}
@media (max-width: 980px) { .suggested-grid { grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; } }
@media (max-width: 680px) { .suggested-section, .comments-section { margin-top:34px; padding-top:28px; } .suggested-heading h2, .comments-heading h2 { font-size:21px; } .suggested-count { display:none; } .suggested-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:7px; } .suggested-card-overlay { padding:20px 7px 6px; } .suggested-card-title { font-size:10px; } .suggested-card-meta { display:none; } .comment-signin { flex-wrap:wrap; }.comment-signin-button { margin-left:51px; }.comment-form-footer { align-items:flex-end; }.comment-form-footer span { max-width:55%; } }
@media(max-width:700px){.player-collection-section{margin-top:28px;padding-top:22px}.player-collection-heading{align-items:flex-start;flex-direction:column;gap:8px}.player-collection-heading h2{font-size:18px}.collection-slider-card{flex-basis:76px}.collection-slider-card.is-current{flex-basis:88px}.collection-scroll-button{display:none}.collections-main,.collection-main{padding-top:92px}.collections-grid,.collection-movie-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.collection-hero{grid-template-columns:1fr;gap:20px}.collection-hero-collage{max-width:420px}.collection-hero h1,.collections-heading h1{font-size:28px}.collection-movie-card{grid-template-columns:28px 45px minmax(0,1fr);gap:7px}.collection-movie-card img{width:45px;height:65px}.collection-movie-card h3{font-size:12px}}

@media (max-width: 800px) {
    .hero-content {
        max-width: 88%;
    }

    .hero-meta-row {
        gap: 6px;
        font-size: 12px;
    }

    .hero-cast {
        font-size: 12px;
        margin-bottom: 14px;
    }
}

@media (max-width: 600px) {
    .hero-content {
        max-width: 92%;
    }

    .hero-title {
        margin-bottom: 8px;
    }

    .hero-meta-row {
        margin-bottom: 8px;
    }

    .hero-category-pill {
        min-height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }

    .hero-cast {
        -webkit-line-clamp: 1;
    }
}

/* Full-poster collection cards mirror the Browse page layout. */
.collection-hero{display:block;padding-bottom:38px;border-bottom:1px solid rgba(255,255,255,.1)}
.collection-movie-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(172px,1fr));gap:18px}
.collection-movie-card{position:relative;display:block;aspect-ratio:2/3;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:#151821;color:#fff;box-shadow:0 12px 27px rgba(0,0,0,.23);text-decoration:none;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.collection-movie-card:hover,.collection-movie-card:focus-visible{z-index:1;transform:translateY(-5px);border-color:rgba(92,169,255,.72);box-shadow:0 20px 38px rgba(0,0,0,.45),0 0 0 2px rgba(229,9,20,.19);outline:0}
.collection-movie-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.collection-movie-card:hover img{transform:scale(1.055)}
.collection-movie-shade{position:absolute;inset:0;background:linear-gradient(transparent 38%,rgba(4,5,9,.92))}
.collection-movie-info{position:absolute;right:0;bottom:0;left:0;padding:34px 12px 12px}
.collection-movie-info strong{display:block;overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.collection-movie-info small{display:block;overflow:hidden;margin-top:5px;color:rgba(255,255,255,.68);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.collection-movie-info b{padding:0 3px;color:#ee3b45}
.collection-position{position:absolute;top:9px;left:9px;z-index:2;display:grid;min-width:28px;height:28px;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(9,11,16,.72);box-shadow:0 4px 12px rgba(0,0,0,.35);color:#fff;font-size:12px;font-weight:800;backdrop-filter:blur(6px)}
@media(max-width:700px){.collection-movie-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.collection-movie-card{border-radius:10px}.collection-movie-info{padding:28px 9px 9px}.collection-movie-info strong{font-size:12px}.collection-movie-info small{font-size:10px}}


/* Compact responsive "Next Episode" notice */
.next-episode-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: min(100%, 620px);
    margin: 10px 0 0;
    padding: 10px 13px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.055);
    box-sizing: border-box;
    color: #fff;
    font: 600 12px/1.35 'Segoe UI', sans-serif;
}
.next-episode-main {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    min-width: 0;
}
.next-episode-label {
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.next-episode-code {
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}
.next-episode-title {
    color: rgba(255,255,255,.78);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}
.next-episode-release {
    flex: 0 0 auto;
    color: rgba(255,255,255,.58);
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
}
@media (max-width: 640px) {
    .next-episode-notice {
        display: flex;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
        padding: 9px 11px;
        gap: 8px;
        border-radius: 9px;
        justify-content: space-between;
    }
    .next-episode-main {
        min-width: 0;
        flex: 1 1 auto;
        gap: 5px;
    }
    .next-episode-title {
        max-width: 42vw;
    }
    .next-episode-release {
        text-align: right;
        max-width: 45%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* Homepage Movie Collections slider
   Uses the same .collection-card/collage design as collections.php,
   but matches the dimensions of the normal homepage movie cards. */
.homepage-collections-section .homepage-collections-track {
    align-items: stretch;
}

.homepage-collection-card {
    flex: 0 0 180px;
    width: 180px;
    height: 260px;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    border: 0;
    background: #1b1b1b;
    box-shadow: 0 4px 10px rgba(0,0,0,.4);
}

.homepage-collection-card:hover,
.homepage-collection-card:focus-visible {
    transform: scale(var(--card-scale));
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

.homepage-collection-card .collection-collage {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    height: auto;
    border-radius: 0;
}

.homepage-collection-card .collection-card-copy {
    flex: 0 0 58px;
    min-height: 58px;
    padding: 8px 9px;
    overflow: hidden;
}

.homepage-collection-card .collection-card-copy h2 {
    margin: 0;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-collection-card .collection-card-copy p {
    margin: 4px 0 0;
    overflow: hidden;
    color: #aaa;
    font-size: 10px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.homepage-section-see-all {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.homepage-section-see-all:hover {
    color: #fff;
}

@media (max-width: 600px) {
    .homepage-collection-card {
        flex-basis: 135px;
        width: 135px;
        height: 200px;
    }

    .homepage-collection-card .collection-card-copy {
        flex-basis: 45px;
        min-height: 45px;
        padding: 6px 7px;
    }

    .homepage-collection-card .collection-card-copy h2 {
        font-size: 10px;
    }

    .homepage-collection-card .collection-card-copy p {
        margin-top: 3px;
        font-size: 9px;
    }

    .homepage-section-see-all {
        font-size: 12px;
    }
}
