/* Design System & Custom Variables */
:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #121216;
    --bg-card: #1c1c24;
    --bg-header: rgba(10, 10, 12, 0.85);
    
    --accent-red: #E50914;
    --accent-red-hover: #b80710;
    --accent-glow: rgba(229, 9, 20, 0.35);
    
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --text-dim: #737373;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --font-sans: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    --mouse-x: 50vw;
    --mouse-y: 50vh;
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Helper hidden class */
.hidden {
    display: none !important;
}

/* Hide scrollbars but keep functionality */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #2b2b36;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3e3e4f;
}

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

/* Header & Navigation */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    backdrop-filter: blur(0px);
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.app-header.scrolled {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.header-container {
    width: 100%;
    padding: 0 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-glow);
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-smooth);
}

.app-logo:hover {
    transform: scale(1.03);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    border-radius: 4px;
    background-color: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red);
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    width: 25px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Search Box styling */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 8px 16px;
    width: 280px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    width: 320px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px rgba(229, 9, 20, 0.15);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
    font-size: 14px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
    width: 100%;
    font-family: var(--font-sans);
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.clear-search {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    padding: 2px;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

/* Search Grid */
.search-results-section {
    padding-top: 100px;
    padding-bottom: 40px;
    background-color: transparent;
    min-height: 40vh;
}

.section-container {
    width: 100%;
    padding: 0 4%;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-red);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* Hero Section with Dual Layers for Cinematic Cross-fade */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 4%;
    -webkit-mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    z-index: 1;
    opacity: 0;
    /* Soft cross-fade duration */
    transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-backdrop.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Layer above the active backdrop */
    z-index: 3;
    background: linear-gradient(to right, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.85) 30%, rgba(10,10,12,0.1) 70%, rgba(10,10,12,0.9) 100%),
                linear-gradient(to top, rgba(10,10,12,1) 0%, rgba(10,10,12,0.3) 50%, rgba(10,10,12,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 650px;
    margin-top: 60px;
    margin-left: 2%;
}

/* Match Badge */
.hero-badge-match {
    background-color: rgba(229, 9, 20, 0.15);
    border: 1px solid var(--accent-red);
    color: #ff3344;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
    text-transform: uppercase;
}

.hero-title {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Animations for text reveal on change */
@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-reveal {
    animation: heroTextReveal 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 500;
}

.hero-rating {
    color: #ffd700;
    font-weight: 700;
}

.hero-rating i {
    margin-right: 4px;
}

.hero-year {
    color: var(--text-muted);
}

.hero-genres {
    color: var(--text-muted);
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
    line-height: 1.6;
    min-height: 105px;
}

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

/* Premium Buttons & Outlines */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red), #9e0007);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff1e27, #b80710);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
}

.btn-outline {
    background: transparent !important;
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: white !important;
}

/* Slide Progress Indicators (Horizontal dashes) */
.hero-slide-indicators {
    display: flex;
    gap: 10px;
    margin-top: 35px;
}

.hero-indicator {
    width: 35px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-indicator-inner {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero-indicator.active {
    width: 55px;
}

/* Auto-filling progress animation inside indicators */
.hero-indicator.active .hero-indicator-inner {
    animation: heroProgress 7s linear forwards;
}

@keyframes heroProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Next Up (À Suivre) Slider Panel */
.hero-next-up {
    position: absolute;
    right: 4%;
    bottom: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
}

.next-up-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text-dim);
    border-bottom: 2px solid var(--accent-red);
    padding-bottom: 4px;
    text-transform: uppercase;
}

.next-up-cards {
    display: flex;
    gap: 15px;
}

.next-up-card {
    width: 140px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.next-up-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.next-up-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    font-size: 10px;
    font-weight: 700;
    color: white;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.next-up-card:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 0 10px var(--accent-glow);
}

.next-up-card:hover img {
    filter: brightness(1.2);
}

/* Category Rows & Carousels */
.rows-container {
    padding-bottom: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 5;
}

.movie-row {
    margin-bottom: 40px;
    padding: 0 4%;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.row-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.slider-container {
    position: relative;
    margin: 0 -10px;
}

.movie-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 30px 10px;
    margin: -15px 0;
    scrollbar-width: none;
}

.movie-slider::-webkit-scrollbar {
    display: none;
}

/* Card Styling (Normal Vertical Card) */
.movie-card {
    min-width: 170px;
    width: 170px;
    aspect-ratio: 2/3;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.movie-card:hover {
    transform: scale(1.08) translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.7), 0 0 20px rgba(229, 9, 20, 0.25);
    border-color: rgba(229, 9, 20, 0.6);
    z-index: 10;
}

.movie-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.1) 100%);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
}

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

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

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.card-rating {
    color: #ffd700;
    font-weight: 700;
}

/* =======================================================
   SPECIAL LAYOUTS (To break slider monotony)
   ======================================================= */

/* SPECIAL LAYOUT 1: Rank Slider (e.g. Netflix Top 10) */
.rank-slider {
    padding: 15px 10px 15px 40px !important;
    gap: 30px !important;
}

.rank-card {
    min-width: 240px;
    width: 240px;
    aspect-ratio: 1.15/1;
    position: relative;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.rank-card img {
    width: 140px;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    margin-left: auto;
    display: block;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 2;
}

.rank-card .movie-card-overlay {
    width: 140px;
    height: 210px;
    left: auto;
    right: 0;
    border-radius: 8px;
    z-index: 5;
}

.rank-card .rank-number {
    position: absolute;
    left: -15px;
    bottom: -25px;
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    color: var(--bg-primary);
    -webkit-text-stroke: 4px rgba(255, 255, 255, 0.45);
    text-shadow: 0 0 30px rgba(0,0,0,0.9);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-smooth);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -10px;
}

.rank-card:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.rank-card:hover img,
.rank-card:hover .movie-card-overlay {
    transform: scale(1.08);
    border-color: rgba(229, 9, 20, 0.6);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(229, 9, 20, 0.25);
}

.rank-card:hover .rank-number {
    -webkit-text-stroke-color: var(--accent-red);
    filter: drop-shadow(0 0 15px var(--accent-glow));
    transform: scale(1.05);
}

.rank-card .movie-card-overlay {
    width: 140px;
    height: 210px;
    right: 0;
    left: auto;
    border-radius: 8px;
    z-index: 3;
}

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

/* SPECIAL LAYOUT 2: Wide Card (16:9 Backdrop Layout) */
.wide-slider {
    gap: 24px !important;
}

.wide-card {
    min-width: 290px;
    width: 290px;
    aspect-ratio: 16/9;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--bg-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
}

.wide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.wide-card:hover {
    transform: scale(1.06) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6), 0 0 15px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.4);
    z-index: 10;
}

.wide-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wide-card .movie-card-overlay {
    background: linear-gradient(to top, rgba(10,10,12,0.95) 0%, rgba(10,10,12,0.5) 60%, rgba(10,10,12,0.1) 100%);
    padding: 14px;
}

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

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid var(--border-glass);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.slider-container:hover .slider-control {
    opacity: 1;
    pointer-events: auto;
}

.slider-control:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.slider-control.prev {
    left: 15px;
}

.slider-control.next {
    right: 15px;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    width: 90%;
    max-width: 1050px;
    height: 85vh;
    max-height: 800px;
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(25px);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 40px rgba(229, 9, 20, 0.15);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.visible .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid var(--border-glass);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: rotate(90deg);
}

/* Modal Banner Section */
.modal-banner {
    height: 360px;
    min-height: 360px;
    position: relative;
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: flex-end;
    padding: 40px 40px 25px 40px;
}

.modal-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,22,0.1) 0%, rgba(18,18,22,0.6) 40%, rgba(18,18,22,0.95) 100%);
}

.modal-banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-tit.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 2px;
}
.flip-h {
    display: inline-block;
    transform: scaleX(-1);
}

.modal-title {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 0;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    line-height: 1.1;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 500;
}

/* Badges */
.quality-badge, .language-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.language-badge {
    border-color: rgba(13, 110, 253, 0.4);
    color: #8bb4f9;
}

.rating-badge {
    color: #ffd700;
    font-weight: 700;
}

/* Modal Body Layout */
.modal-body-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    flex-grow: 1;
    overflow-y: auto;
    background-color: transparent;
}

.modal-details-side {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid var(--border-glass);
}

.modal-synopsis {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.modal-info-block {
    font-size: 14px;
}

.info-label {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 8px;
}

.modal-info-block span:not(.info-label) {
    color: var(--text-muted);
}

.modal-actions-bar {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    width: 60%;
}

.modal-actions-bar .btn {
    flex-grow: 1;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 10px;
}

/* Custom Dropdown select */
.player-controls-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group.hidden {
    display: none !important;
}

.control-group label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.custom-select {
    background: #1c1c24;
    border: 1px solid var(--border-glass);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-select:focus {
    border-color: var(--accent-red);
}

.tv-selectors {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.selector-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Modal Player Section */
.modal-player-side {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-glass);
    gap: 24px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent-red);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
}

.tabs-content {
    flex-grow: 1;
    position: relative;
}

.tab-pane {
    display: none;
    height: 100%;
}

.tab-pane.active {
    display: block;
}

/* Video Containers */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    border: 1px solid var(--border-glass);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 2;
}

.player-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0e0e13;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.player-placeholder i {
    font-size: 50px;
    color: var(--accent-red);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.player-placeholder i:hover {
    transform: scale(1.1);
    color: var(--accent-red-hover);
}

.play-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,9,20,0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(229,9,20,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229,9,20,0); }
}

.youtube-color {
    color: #ff0000 !important;
}

/* Modal Similar Section */
.modal-similar-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
}

.modal-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
}

.similar-grid .movie-card {
    min-width: unset;
    width: 100%;
}

/* Toast Notification Styling */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-red);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}
.custom-select:focus {
    border-color: var(--accent-red);
}
/* Footer Section */
.app-footer {
    background-color: transparent;
    border-top: none;
    padding: 20px 4% 20px;
}

.footer-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 25px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.footer-right {
    position: absolute;
    top: 0;
    bottom: -20px;
    right: 0;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-left {
        align-items: center;
    }
    .footer-right {
        position: static;
        margin-top: 15px;
        height: 150px;
    }
}


.footer-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-glow);
    font-family: 'Outfit', sans-serif;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-disclaimer {
    max-width: 800px;
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 15px 25px;
    border-radius: 8px;
}

.footer-disclaimer i {
    color: #ff9f1c;
    margin-right: 5px;
}

.footer-credits {
    font-size: 13px;
    color: var(--text-dim);
}

.beat-icon {
    color: var(--accent-red);
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* =======================================================
   RESPONSIVE DESIGN (100% Mobile Ready)
   ======================================================= */
@media (max-width: 1024px) {
    .modal-body-grid {
        grid-template-columns: 1fr;
    }
    .modal-details-side {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
    .modal-container {
        height: 100vh;
        max-height: 100vh;
        width: 100vw;
        border-radius: 0;
    }
    .modal-close {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation on Mobile */
    .app-header {
        padding: 12px 0;
        background: var(--bg-header);
        backdrop-filter: blur(20px);
    }
    .header-container {
        padding: 0 4%;
        flex-direction: column;
        gap: 12px;
    }
    .header-left {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .app-logo {
        font-size: 22px;
    }
    .main-nav ul {
        gap: 18px;
    }
    .nav-link {
        font-size: 14px;
    }
    .header-right {
        width: 100%;
        gap: 10px;
    }
    .search-box {
        width: 100%;
        padding: 6px 12px;
    }
    .search-box:focus-within {
        width: 100%;
    }
    
    /* Search Results mobile alignment */
    .search-results-section {
        padding-top: 140px;
    }
    
    /* Hero mobile adaptation */
    .hero-section {
        height: auto;
        min-height: 500px;
        padding-top: 140px;
        padding-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .hero-content {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }
    .hero-title {
        font-size: 28px;
        margin-bottom: 8px;
    }
    .hero-meta {
        justify-content: center;
        gap: 10px;
        font-size: 13px;
        margin-bottom: 12px;
    }
    .hero-description {
        font-size: 13px;
        margin-bottom: 20px;
        -webkit-line-clamp: 3;
    }
    .hero-actions {
        justify-content: center;
        gap: 10px;
    }
    .hero-slide-indicators {
        justify-content: center;
        margin-top: 25px;
    }
    
    /* Next Up hide or stack on small mobile screens */
    .hero-next-up {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 30px;
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    .next-up-cards {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .next-up-card {
        width: 130px;
        height: 75px;
    }
    
    /* Rows & Sliders on Mobile */
    .rows-container {
        margin-top: 20px;
    }
    .movie-row {
        margin-bottom: 28px;
    }
    .row-title {
        font-size: 16px;
    }
    .movie-slider {
        gap: 12px;
    }
    
    /* Card sizes scaling on mobile */
    .movie-card {
        min-width: 120px;
        width: 120px;
    }
    .wide-card {
        min-width: 200px;
        width: 200px;
    }
    .rank-card {
        min-width: 165px;
        width: 165px;
        aspect-ratio: 1.25/1;
    }
    .rank-card img {
        width: 95px;
        height: 142px;
    }
    .rank-card .rank-number {
        font-size: 110px;
        bottom: -15px;
        left: -10px;
        -webkit-text-stroke-width: 3px;
    }
    .rank-slider {
        padding-left: 20px !important;
        gap: 15px !important;
    }
    
    /* Details Modal Mobile Adaptation */
    .modal-banner {
        height: 180px;
        min-height: 180px;
        padding: 15px 20px;
    }
    .modal-title {
        font-size: 22px;
        margin-bottom: 6px;
    }
    .modal-meta {
        gap: 8px;
        font-size: 12px;
        flex-wrap: wrap;
    }
    .modal-details-side {
        padding: 20px;
        gap: 15px;
    }
    .modal-synopsis {
        font-size: 14px;
    }
    .modal-actions-bar {
        flex-direction: column;
        gap: 10px;
    }
    .modal-player-side {
        padding: 15px 20px;
    }
    .video-container {
        border-radius: 8px;
    }
    
    /* Hide slider controls on mobile, allow direct touch swipe */
    .slider-control {
        display: none !important;
    }
    
    /* Search grid on mobile */
    .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 12px;
    }
}
/* ==========================================
   PAGE VIEWS (DMCA & RANDOM)
   ========================================== */
.page-view {
    padding: 100px 5% 50px;
    min-height: 80vh;
    animation: fadeIn 0.5s ease;
}

.page-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.page-header.center-align {
    text-align: center;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.02);
}

.badge i {
    color: var(--accent-red);
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(90deg, #ff4d4d, #e50914, #8b0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-orange {
    background: linear-gradient(90deg, #ffffff, #ff4d4d, #e50914);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

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

.cards-grid.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.info-card {
    background: rgba(25, 25, 30, 0.4);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 24px;
    padding: 50px 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(10px);
}

.info-card.interactive {
    cursor: pointer;
}

.info-card.interactive:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    background: rgba(35, 35, 45, 0.7);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 25px;
}

.card-icon.center-icon {
    display: block;
    text-align: center;
    font-size: 48px;
    margin-bottom: 30px;
    color: white;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: white;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.center-text {
    text-align: center;
}

.center-text.upper {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .cards-grid, .cards-grid.three-cols {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 2.5rem;
    }
}
/* ==========================================
   SERVER STATUS (FOOTER)
   ========================================== */
.server-status-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0 20px;
}

.server-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.server-box i {
    color: var(--text-main);
    font-size: 0.9rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #555;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.status-indicator.online {
    background-color: #00e676;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.status-indicator.offline {
    background-color: #ff1744;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.status-indicator.pending {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.server-box a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.server-box a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* ==========================================
   DYNAMIC SPOTLIGHT BACKGROUND
   ========================================== */
/* Faint global grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Glowing grid and squares following the mouse */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -9;
    pointer-events: none;
    /* Soft red glow inside squares, bright red lines */
    background-color: rgba(229, 9, 20, 0.04);
    background-image: 
        linear-gradient(rgba(229, 9, 20, 0.4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(229, 9, 20, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    /* The mask hides this bright layer except directly under the mouse */
    -webkit-mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black, transparent 70%);
    mask-image: radial-gradient(circle 350px at var(--mouse-x) var(--mouse-y), black, transparent 70%);
}

/* Marianne Badge */
.internet-libre-badge {
    display: flex;
    align-items: flex-end;
    height: 100%;
    opacity: 0.8;
    transition: var(--transition);
    cursor: default;
}

.internet-libre-badge:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 77, 77, 0.4));
}

.marianne-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
}

/* CUSTOM NATIVE PLAYER (XILFTEN) */
.native-player-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.native-player-wrapper.hidden {
    display: none !important;
}
#native-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.native-player-wrapper:hover .custom-controls, .custom-controls.active {
    opacity: 1;
}
.progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}
.progress-bar {
    height: 100%;
    background: var(--accent-red);
    width: 0%;
    border-radius: 5px;
    position: relative;
}
.progress-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -5px;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}
.progress-container:hover .progress-bar::after {
    opacity: 1;
}
.controls-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}
.controls-left, .controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ctrl-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.ctrl-btn:hover {
    color: var(--accent-red);
    transform: scale(1.1);
}
.time-display {
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
}
.volume-slider-container {
    width: 80px;
    display: flex;
    align-items: center;
}
#ctrl-vol-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--accent-red);
}
.video-spinner {
    position: absolute;
    font-size: 3rem;
    color: var(--accent-red);
    z-index: 25;
}

/* PLAYER OVERLAYS (Badge + Navigation) */
.player-top-bar {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 1rem;
    z-index: 25;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.native-player-wrapper:hover .player-top-bar {
    opacity: 1;
}
.quality-badge, .source-counter {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}
.quality-badge {
    color: var(--accent-red);
    border-color: rgba(255, 77, 77, 0.3);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    transition: all 0.3s ease;
}
.native-player-wrapper:hover .nav-arrow:not(.hidden) {
    opacity: 1;
}
.nav-arrow:hover {
    background: var(--accent-red);
    transform: translateY(-50%) scale(1.1);
}
.nav-arrow-left {
    left: 20px;
}
.nav-arrow-right {
    right: 20px;
}

/* AUDIO AND SUBTITLE MENUS */
.track-menu-container {
    position: relative;
    display: inline-block;
}
.track-menu-container.hidden {
    display: none !important;
}
.track-dropdown {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.track-menu-container:hover .track-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.track-dropdown::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(15, 15, 15, 0.95) transparent transparent transparent;
}
.track-option {
    background: transparent;
    border: none;
    color: #ccc;
    padding: 0.5rem 1rem;
    text-align: left;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.track-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.track-option.active {
    background: var(--accent-red);
    color: #fff;
    font-weight: 600;
}

/* AUTO-HIDE CONTROLS ON IDLE */
.native-player-wrapper.idle {
    cursor: none;
}
.native-player-wrapper.idle .custom-controls,
.native-player-wrapper.idle .player-top-bar,
.native-player-wrapper.idle .nav-arrow {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}

/* PLAYER ERROR OVERLAY */
.player-error-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 77, 77, 0.3);
    padding: 2rem;
    border-radius: 12px;
    z-index: 25;
    color: #fff;
    max-width: 80%;
}
.player-error-overlay.hidden {
    display: none !important;
}
.player-error-overlay i {
    font-size: 3rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}
.player-error-overlay p {
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: 'Outfit', sans-serif;
    margin: 0;
}

/* MAKE PLAYER PLACEHOLDER CLICKABLE */
.player-placeholder {
    cursor: pointer;
    transition: background 0.3s ease;
}
.player-placeholder:hover {
    background: rgba(30,30,30,0.8);
}

.flip-h { display: inline-block; transform: scaleX(-1); }

/* Skeleton Loaders */
.skeleton-card {
    background: linear-gradient(90deg, #181818 25%, #282828 50%, #181818 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.skeleton-card::before {
    content: '';
    display: block;
    padding-bottom: 150%; /* 2:3 aspect ratio */
}
.wide-card.skeleton-card::before {
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes slideInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

