:root {
    --primary: #00d664;
    --bg-color: #050505;
}

body {
    background-color: var(--bg-color);
    color: white;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    transition: background-color 0.3s;
}

/* ─── Curseurs Personnalisés ─── */
body.cursor-green {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300d664" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V5"/><path d="M5 12l7-7 7 7"/></svg>') 12 12, auto;
}
body.cursor-red {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23E50914" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V5"/><path d="M5 12l7-7 7 7"/></svg>') 12 12, auto;
}
body.cursor-blue {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2300A8E1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 19V5"/><path d="M5 12l7-7 7 7"/></svg>') 12 12, auto;
}

/* ─── Hero ─── */
.hero-gradient {
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 80%),
                linear-gradient(to right, var(--bg-color) 0%, transparent 80%);
}

/* ─── Scrollbars ─── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.season-scroll::-webkit-scrollbar { height: 6px; }
.season-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.season-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.season-scroll::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── Season Tabs ─── */
.season-tab {
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.5;
    flex-shrink: 0;
}
.season-tab.season-active {
    opacity: 1;
    color: var(--primary);
}
.season-tab.season-active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* ─── Logo ─── */
.logo-img {
    width: 120px;
    object-fit: contain;
}

/* ─── Player ─── */
#player-overlay { display: none; z-index: 5000; background: black; }
.drive-frame { width: 100%; height: 100%; border: none; }

/* ─── Animations ─── */
.fade-in { animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: black;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-align: center;
    width: max-content;
    max-width: 90vw;
}

/* ─── Liste / Grille ─── */
.view-list { display: flex; flex-direction: column; }
.view-list .episode-card { display: flex; flex-direction: row; height: 100px; }
.view-list .episode-card .aspect-video { width: 35%; max-width: 160px; flex-shrink: 0; }
.view-list .episode-card .p-4 { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }

/* ─── Barre de progression ─── */
.progress-bar-container {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.2);
}
.progress-bar {
    height: 100%;
    background: red;
    width: 0%;
    transition: width 0.3s;
}

/* ─── #19 Stagger animation épisodes ─── */
.episode-card { animation-fill-mode: both; }

/* ─── #23 Drag & Drop ─── */
[draggable="true"] { cursor: grab; }
[draggable="true"]:active { cursor: grabbing; }
[draggable="true"].dragging { opacity: 0.5; border: 1px dashed var(--primary); }

/* ─── Drawer filtres saison ─── */
.drawer-filter-btn {
    color: #71717a;
    transition: all 0.15s;
}
.drawer-filter-btn:hover {
    color: white;
    border-color: #52525b;
}
.drawer-filter-active {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    background: rgba(0, 214, 100, 0.08);
}

/* ─── Barre de progression carte ─── */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
}
.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 0 2px 0 0;
}

/* ─── View List ─── */
.view-list {
    display: flex;
    flex-direction: column;
}
.view-list .episode-card {
    display: flex;
    flex-direction: row;
    height: 90px;
}
.view-list .episode-card > div:first-child {
    width: 140px;
    min-width: 140px;
    aspect-ratio: unset;
    height: 100%;
}
.view-list .episode-card > div:last-child {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
