/* ==========================================================================
   AI MOVIE — HOMEPAGE / CATALOG STYLES (index.css)
   Search bar & preview dropdown, Discovery tabs, Clean Header, Filter toolbar
   ========================================================================== */

/* --------------------------------------------------------------------------
   Search Bar (Header)
   -------------------------------------------------------------------------- */
.search-form {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 520px;
    position: relative;
    min-width: 0;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.65rem 2.8rem 0.65rem 2.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}

.search-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.search-submit-btn {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #0B0E14;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.search-submit-btn:hover {
    transform: translateY(-50%) scale(1.08);
    background: #60A5FA;
}

/* Live Search Preview Dropdown */
.search-preview-card {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    padding: 0.85rem;
    display: none;
    z-index: 200;
}

.preview-content {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.preview-poster {
    width: 55px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Catalog Discovery Tabs
   -------------------------------------------------------------------------- */
.catalog-tabs-container {
    position: relative;
    margin-bottom: 1.25rem;
}

.catalog-tabs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    scrollbar-width: none;
}

.catalog-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.52rem 1.05rem;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #38BDF8 0%, #0284C7 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

/* --------------------------------------------------------------------------
   Streamlined Catalog Header & Controls Bar
   Clean, compact, no huge text walls pushing movies off screen
   -------------------------------------------------------------------------- */
.catalog-header {
    background: linear-gradient(135deg, rgba(20, 26, 36, 0.75) 0%, rgba(11, 14, 20, 0.85) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem 1.35rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.catalog-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.catalog-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.catalog-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    max-width: 680px;
    line-height: 1.4;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.sort-select {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Genre Pills Bar
   -------------------------------------------------------------------------- */
.genre-pills-wrapper {
    position: relative;
    margin-bottom: 1.35rem;
}

.genre-pills {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
}

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

.pill {
    padding: 0.32rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pill:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
    background: var(--bg-card);
}

.pill.active {
    color: #FFFFFF;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.3);
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-subtle);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.empty-desc {
    color: var(--text-secondary);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Mobile Adaptivity for Homepage (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    /* Header layout for mobile */
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
        align-items: center;
    }

    .brand {
        grid-column: 1 / 2;
    }

    .header-nav-actions {
        grid-column: 2 / 3;
        display: flex;
        align-items: center;
        gap: 0.35rem;
    }

    .search-form {
        grid-column: 1 / -1;
        max-width: 100%;
        width: 100%;
    }

    .search-input {
        padding: 0.55rem 2.5rem 0.55rem 2.2rem;
        font-size: 16px; /* Prevents auto-zoom on mobile */
    }

    .search-icon {
        left: 0.8rem;
        width: 14px;
        height: 14px;
    }

    .search-submit-btn {
        right: 0.3rem;
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    /* Tabs & Filters */
    .catalog-tabs {
        margin-bottom: 0.75rem;
        padding-bottom: 0.35rem;
        gap: 0.4rem;
    }

    .tab-btn {
        padding: 0.38rem 0.78rem;
        font-size: 0.78rem;
        gap: 0.35rem;
    }

    .tab-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
    }

    /* Catalog Header */
    .catalog-header {
        padding: 0.75rem 0.85rem;
        border-radius: var(--radius-md);
        margin-bottom: 0.85rem;
        gap: 0.55rem;
    }

    .catalog-title {
        font-size: 1.05rem;
    }

    .catalog-subtitle {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .catalog-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .sort-form {
        width: 100%;
        justify-content: space-between;
    }

    .sort-select {
        font-size: 0.75rem;
        padding: 0.32rem 0.55rem;
        flex: 1;
        max-width: 220px;
    }

    .genre-pills-wrapper {
        margin-bottom: 0.85rem;
    }

    .genre-pills {
        gap: 0.35rem;
        padding-bottom: 0.3rem;
    }

    .pill {
        padding: 0.28rem 0.6rem;
        font-size: 0.72rem;
    }

    .empty-state {
        padding: 2.25rem 1rem;
    }

    .empty-icon {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   AI MOVIE — HERO SHOWCASE & CURATED DISCOVERY SHELVES
   Designed by Senior UI/UX Designer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Showcase Banner
   -------------------------------------------------------------------------- */
.hero-showcase {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 3.5rem;
    min-height: 480px;
    background: #0B0E14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: flex-end;
}

.hero-backdrop-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.02);
    transition: transform 10s ease-out;
}

.hero-showcase:hover .hero-backdrop-img {
    transform: scale(1.06);
}

.hero-vignette-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, #0B0E14 0%, rgba(11, 14, 20, 0.92) 42%, rgba(11, 14, 20, 0.5) 70%, rgba(11, 14, 20, 0.15) 100%),
        linear-gradient(0deg, #0B0E14 0%, rgba(11, 14, 20, 0.8) 35%, transparent 75%),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3.25rem 3.5rem;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.95rem;
    background: rgba(168, 85, 247, 0.16);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: var(--radius-full);
    color: #E9D5FF;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-self: flex-start;
}

.hero-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 10px #38BDF8;
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-logo-img {
    max-height: 85px;
    max-width: 360px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.85));
    margin-bottom: 0.25rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-meta-tag {
    padding: 0.25rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: #E2E8F0;
    backdrop-filter: blur(8px);
}

.hero-tagline {
    font-size: 1.05rem;
    font-style: italic;
    color: #94A3B8;
    line-height: 1.4;
    margin: 0;
}

.hero-description {
    font-size: 0.95rem;
    color: #CBD5E1;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-genres-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero-genre-pill {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-full);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-hero-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.85rem;
    background: linear-gradient(135deg, #38BDF8 0%, #2563EB 100%);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 10px 25px -4px rgba(56, 189, 248, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-watch:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 32px -4px rgba(56, 189, 248, 0.65);
    color: #FFFFFF;
}

.btn-hero-watch .play-icon {
    font-size: 1.05rem;
}

.btn-hero-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    background: rgba(30, 41, 59, 0.75);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.btn-hero-info:hover {
    background: rgba(51, 65, 85, 0.85);
    border-color: rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.85rem 1.35rem;
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.btn-hero-secondary.saved {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86EFAC;
    cursor: default;
}

/* --------------------------------------------------------------------------
   Curated Shelf Sections & Headers
   -------------------------------------------------------------------------- */
.shelf-section {
    position: relative;
    margin-bottom: 3.5rem;
}

.shelf-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.shelf-title-group {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.shelf-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.shelf-section:hover .shelf-badge-icon {
    transform: scale(1.08) rotate(4deg);
}

/* Icon theme styles */
.shelf-badge-icon.theme-top10 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.25);
}

.shelf-badge-icon.theme-theaters {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.2);
}

.shelf-badge-icon.theme-streaming {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.2);
}

.shelf-badge-icon.theme-gold {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.2) 0%, rgba(217, 119, 6, 0.2) 100%);
    border: 1px solid rgba(245, 197, 24, 0.45);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.25);
}

.shelf-badge-icon.theme-recent {
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.2);
}

.shelf-badge-icon.theme-series {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 18px rgba(168, 85, 247, 0.25);
}

.shelf-badge-icon.theme-scifi {
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.25);
}

.shelf-badge-icon.theme-thriller {
    background: rgba(20, 184, 166, 0.18);
    border: 1px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 18px rgba(20, 184, 166, 0.25);
}

.shelf-badge-icon.theme-comedy {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.25);
}

.shelf-badge-icon.theme-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(56, 189, 248, 0.25) 100%);
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.shelf-title-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.shelf-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.02em;
}

.shelf-count-pill {
    padding: 0.15rem 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
}

.shelf-subtitle {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin: 0.2rem 0 0 0;
    line-height: 1.4;
}

.shelf-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shelf-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    text-decoration: none;
    transition: all 0.2s ease;
}

.shelf-view-all-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--accent-blue);
    color: #FFFFFF;
    transform: translateX(2px);
}

.shelf-nav-arrows {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.shelf-arrow-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.shelf-arrow-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #0B0E14;
    transform: scale(1.1);
}

.shelf-arrow-btn:active {
    transform: scale(0.95);
}

.shelf-arrow-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Shelf Track (Horizontal Rail)
   -------------------------------------------------------------------------- */
.shelf-track-container {
    position: relative;
    width: 100%;
}

.shelf-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.65rem 0.25rem 1.6rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shelf-track::-webkit-scrollbar {
    display: none;
}

.shelf-track .movie-card {
    flex: 0 0 210px;
    width: 210px;
    min-width: 210px;
    max-width: 210px;
    scroll-snap-align: start;
}

/* --------------------------------------------------------------------------
   Top 10 Ranked Rail (Oversized Netflix / Apple TV+ Typography)
   -------------------------------------------------------------------------- */
.shelf-track .movie-card.top10-card {
    flex: 0 0 240px;
    width: 240px;
    min-width: 240px;
    max-width: 240px;
    margin-left: 2.2rem;
    overflow: visible;
}

.top10-rank-num {
    position: absolute;
    bottom: -15px;
    left: -28px;
    font-size: 6.2rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #0B0E14;
    -webkit-text-stroke: 2.5px rgba(255, 255, 255, 0.45);
    text-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
    pointer-events: none;
    z-index: 5;
    user-select: none;
    transition: all 0.25s ease;
}

.top10-card:hover .top10-rank-num {
    -webkit-text-stroke: 2.5px var(--accent-blue);
    text-shadow: 0 0 35px rgba(56, 189, 248, 0.65);
    transform: scale(1.06) translateX(-3px);
}

/* --------------------------------------------------------------------------
   Ambient Section Dividers (Cinematic Glow)
   -------------------------------------------------------------------------- */
.shelf-divider {
    height: 1px;
    width: 100%;
    margin: 3.5rem 0;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.25) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 80%);
}

.shelf-divider.glow-theaters {
    background: radial-gradient(ellipse at center, rgba(239, 68, 68, 0.25) 0%, rgba(239, 68, 68, 0.05) 50%, transparent 80%);
}

.shelf-divider.glow-gold {
    background: radial-gradient(ellipse at center, rgba(245, 197, 24, 0.25) 0%, rgba(245, 197, 24, 0.05) 50%, transparent 80%);
}

.shelf-divider.glow-purple {
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.25) 0%, rgba(168, 85, 247, 0.05) 50%, transparent 80%);
}

/* --------------------------------------------------------------------------
   Mid-Page Interactive AI Assistant Spotlight Banner
   -------------------------------------------------------------------------- */
.ai-spotlight-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin: 4rem 0;
    padding: 2.75rem 3rem;
    background: linear-gradient(135deg, rgba(20, 26, 36, 0.92) 0%, rgba(35, 20, 52, 0.85) 100%);
    border: 1px solid rgba(168, 85, 247, 0.38);
    box-shadow: 0 20px 50px -10px rgba(168, 85, 247, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ai-spotlight-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.ai-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ai-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0.85rem;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-radius: var(--radius-full);
    color: #E9D5FF;
    font-size: 0.82rem;
    font-weight: 700;
    align-self: flex-start;
}

.ai-powered-by {
    font-size: 0.72rem;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.15);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-full);
}

.ai-banner-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.02em;
}

.ai-banner-desc {
    font-size: 0.95rem;
    color: #CBD5E1;
    margin: 0;
    max-width: 650px;
    line-height: 1.55;
}

.ai-prompt-chips {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.prompt-chip {
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: #E2E8F0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prompt-chip:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.5);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.ai-banner-cta-row {
    margin-top: 0.5rem;
}

.btn-ai-consult {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.65rem;
    background: linear-gradient(135deg, #A855F7 0%, #6366F1 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.92rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 8px 24px -4px rgba(168, 85, 247, 0.45);
    transition: all 0.2s ease;
}

.btn-ai-consult:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(168, 85, 247, 0.65);
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Mobile Responsive Adjustments for Hero & Shelves
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-showcase {
        min-height: 380px;
        margin-bottom: 2.25rem;
    }

    .hero-content {
        padding: 1.5rem;
        gap: 0.75rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-logo-img {
        max-height: 55px;
        max-width: 240px;
    }

    .hero-description {
        font-size: 0.84rem;
        -webkit-line-clamp: 2;
    }

    .btn-hero-watch {
        padding: 0.65rem 1.25rem;
        font-size: 0.88rem;
    }

    .btn-hero-info, .btn-hero-secondary {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .shelf-section {
        margin-bottom: 2.5rem;
    }

    .shelf-header {
        margin-bottom: 0.85rem;
    }

    .shelf-badge-icon {
        width: 36px;
        height: 36px;
        font-size: 1.15rem;
    }

    .shelf-title {
        font-size: 1.15rem;
    }

    .shelf-subtitle {
        font-size: 0.76rem;
    }

    .shelf-nav-arrows {
        display: none; /* Hide arrows on touch mobile, swipe works natively */
    }

    .shelf-track .movie-card {
        flex: 0 0 160px;
        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .shelf-track .movie-card.top10-card {
        flex: 0 0 175px;
        width: 175px;
        min-width: 175px;
        max-width: 175px;
        margin-left: 1.6rem;
    }

    .top10-rank-num {
        font-size: 4.5rem;
        left: -20px;
        bottom: -10px;
    }

    .ai-spotlight-banner {
        padding: 1.5rem;
        margin: 2.5rem 0;
    }

    .ai-banner-title {
        font-size: 1.35rem;
    }
}

