/* ==========================================================================
   HOMEPAGE, BROWSE CATALOG & SERIES CARDS STYLING (CSS3)
   ========================================================================== */

/* Hero Banner & Carousel */
.hero-slider-section {
    position: relative;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    height: 420px;
    min-height: 420px;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9, 13, 22, 0.96) 0%, rgba(9, 13, 22, 0.82) 50%, rgba(9, 13, 22, 0.4) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 36px 40px;
    max-width: 680px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 30px;
    padding: 0 14px;
    background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 14px;
    flex-shrink: 0;
    width: fit-content;
}

.hero-badge svg {
    color: #ffffff;
    fill: currentColor;
    flex-shrink: 0;
}

.hero-title {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 76px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 14px;
    height: 24px;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 66px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.hero-details-btn {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #090d16 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.hero-details-btn:hover {
    background: #f1f5f9 !important;
    border-color: #f1f5f9 !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Slider Controls */
.hero-controls {
    position: absolute;
    bottom: 20px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-prev-btn, .hero-next-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.hero-prev-btn:hover, .hero-next-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-dots {
    display: flex;
    gap: 6px;
    margin-right: 12px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   HOMEPAGE SECTION LAYOUTS
   -------------------------------------------------------------------------- */
.section-block {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
}

.section-title svg {
    color: var(--primary);
}

.section-more-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more-link:hover {
    color: var(--primary-hover);
    transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   SERIES CARDS GRID
   -------------------------------------------------------------------------- */
.series-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

@media (max-width: 1200px) {
    .series-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 992px) {
    .series-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .series-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero-slide-content { padding: 32px 20px; }
    .hero-title { font-size: 24px; }
}
@media (max-width: 480px) {
    .series-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.series-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.series-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.series-card-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #0f172a;
}

.series-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.series-card:hover .series-card-cover img {
    transform: scale(1.05);
}

.series-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge-age {
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-status {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: capitalize;
}

.badge-rank {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.88);
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.series-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.series-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.series-card:hover .series-card-title {
    color: var(--primary);
}

.series-card-genre {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.series-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    font-weight: 600;
    color: #334155;
    border-top: 1px solid var(--border-subtle);
    padding-top: 8px;
}

.series-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.series-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #334155;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   GENRES VIBRANT SHOWCASE GRID & CHIPS
   -------------------------------------------------------------------------- */
.section-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.section-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.section-more-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateX(2px);
    box-shadow: var(--shadow-sm);
}

.genres-vibrant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1100px) {
    .genres-vibrant-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .genres-vibrant-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
    .genres-vibrant-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.genre-showcase-card {
    position: relative;
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 105px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Thematic Category Background Image */
.genre-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s ease;
    filter: brightness(0.95) saturate(1.1);
    pointer-events: none;
    z-index: 1;
}

/* Vibrant Multi-stop Color Gradient Overlay */
.genre-card-glow {
    position: absolute;
    inset: 0;
    background: var(--genre-gradient);
    opacity: 0.85;
    mix-blend-mode: multiply;
    transition: opacity 0.35s ease, filter 0.35s ease;
    z-index: 2;
    pointer-events: none;
}

/* Bottom Darkening Mask for Text Contrast */
.genre-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.1) 100%);
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.genre-card-pattern {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 64px;
    height: 64px;
    opacity: 0.18;
    color: var(--genre-accent);
    pointer-events: none;
    transform: rotate(-10deg);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.genre-card-pattern svg {
    width: 54px;
    height: 54px;
}

.genre-card-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 12px;
}

.genre-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.genre-icon-pill {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.genre-icon-pill svg {
    width: 17px;
    height: 17px;
    color: var(--genre-accent);
}

.genre-series-count {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.genre-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.genre-card-title {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.genre-card-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Hover States */
.genre-showcase-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 16px 28px -6px var(--genre-glow), 0 6px 14px rgba(0, 0, 0, 0.4);
}

.genre-showcase-card:hover .genre-bg-image {
    transform: scale(1.15);
    filter: brightness(1.05) saturate(1.25);
}

.genre-showcase-card:hover .genre-card-glow {
    opacity: 0.95;
}

.genre-showcase-card:hover .genre-icon-pill {
    transform: scale(1.15) rotate(6deg);
    box-shadow: 0 0 14px var(--genre-glow);
}

.genre-showcase-card:hover .genre-card-pattern {
    transform: scale(1.3) rotate(0deg);
    opacity: 0.3;
}

.genre-showcase-card:hover .genre-card-arrow {
    transform: translateX(3px);
    background: #ffffff;
    color: #090d16;
}

/* Legacy fallback classes */
.genres-chip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 992px) {
    .genres-chip-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
    .genres-chip-grid { grid-template-columns: repeat(2, 1fr); }
}

.genre-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.genre-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.genre-card:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

.genre-card span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* --------------------------------------------------------------------------
   BROWSE FILTER BAR
   -------------------------------------------------------------------------- */
.filter-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    min-width: 80px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-pill {
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.filter-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.3);
}

/* Search results counter */
.browse-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   MOBILE MEDIA QUERY OPTIMIZATIONS FOR BROWSING & CATALOG VIEWS
   Lighthouse Touch Targets (Min 44x44px/48x48px) & Proper Intrinsic Sizing
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Filter Panel & Touch Targets (Lighthouse min 44x44px touch targets) */
    .filter-panel {
        padding: 16px 14px;
        margin-bottom: 24px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .filter-label {
        font-size: 12px;
        color: var(--primary);
        font-weight: 800;
    }

    .filter-tags {
        width: 100%;
        gap: 8px;
    }

    .filter-pill {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        text-align: center;
    }

    /* 2. Hero Carousel Controls on Mobile */
    .hero-slider-section {
        min-height: 300px;
        margin-bottom: 28px;
    }

    .hero-slider-container {
        min-height: 300px;
    }

    .hero-slide-content {
        padding: 28px 16px 64px 16px;
    }

    .hero-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    .hero-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 16px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons .btn {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-controls {
        bottom: 14px;
        right: 14px;
        gap: 10px;
    }

    .hero-prev-btn, .hero-next-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .hero-dots {
        gap: 8px;
        margin-right: 6px;
        display: flex;
        align-items: center;
    }

    .hero-dot {
        position: relative;
        width: 10px;
        height: 10px;
    }

    /* Invisible tap target expansion for carousel dots */
    .hero-dot::after {
        content: "";
        position: absolute;
        top: -14px;
        bottom: -14px;
        left: -14px;
        right: -14px;
        cursor: pointer;
    }

    .hero-dot.active {
        width: 24px;
    }

    /* 3. Intrinsic Image Sizing & Aspect Ratio Stability for Series Cards */
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .series-card {
        border-radius: var(--radius-md);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .series-card-cover {
        aspect-ratio: 3 / 4;
        width: 100%;
        contain-intrinsic-size: 300px 400px;
        content-visibility: auto;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        overflow: hidden;
        background: #0f172a;
    }

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

    .series-card-body {
        padding: 10px 8px;
    }

    .series-card-title {
        font-size: 13px;
        line-height: 1.35;
        min-height: 34px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 4px;
    }

    .series-card-genre {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .series-card-footer {
        font-size: 11px;
        padding-top: 6px;
    }

    /* 4. Genre Showcase Cards touch targets & intrinsic sizing */
    .genres-vibrant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .genre-showcase-card {
        min-height: 110px;
        padding: 12px 14px;
        box-sizing: border-box;
    }

    .genre-bg-image {
        aspect-ratio: 24 / 14;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .genre-card-title {
        font-size: 14px;
    }

    .genre-card-arrow {
        width: 28px;
        height: 28px;
    }

    /* 5. Pagination Buttons (Lighthouse min 44x44px touch target) */
    .pagination-wrapper {
        margin: 30px 0;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 14px;
        font-size: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        box-sizing: border-box;
        text-decoration: none;
    }

    /* 6. Section Header Links */
    .section-more-link, .section-more-btn {
        min-height: 44px;
        padding: 8px 14px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-slider-section {
        height: 310px;
        min-height: 310px;
        max-height: 310px;
        border-radius: var(--radius-md);
    }

    .hero-slide-content {
        padding: 20px 16px 50px 16px;
        justify-content: flex-start;
    }

    .hero-badge {
        height: 26px;
        padding: 0 10px;
        font-size: 10px;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: 18px;
        line-height: 1.25;
        max-height: 46px;
        margin-bottom: 8px;
    }

    .hero-meta {
        font-size: 11.5px;
        gap: 8px;
        margin-bottom: 12px;
        height: 20px;
    }

    .hero-desc {
        display: none; /* Hide lengthy synopsis on narrow phones to preserve viewport space */
    }

    .hero-controls {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }

    /* Enforce Lighthouse min 44x44px touch targets on carousel navigation buttons */
    .hero-prev-btn, .hero-next-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .genres-vibrant-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .genre-showcase-card {
        min-height: 110px;
        padding: 12px 14px;
    }

    .genre-bg-image {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .genre-card-title {
        font-size: 13.5px;
    }

    .series-card-title {
        min-height: 40px;
        font-size: 12.5px;
    }

    .series-card-cover {
        aspect-ratio: 3 / 4;
        width: 100%;
        contain-intrinsic-size: 180px 240px;
    }

    .series-card-cover img {
        aspect-ratio: 3 / 4;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

