/* =================================================================
   Anisama — Futuristic Cyberpunk Theme v4 (+ 2030 Futuristic Layer v5)
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-deep: #0a0a1a;
    --bg-section: #0e0e22;
    --bg-card: #12122e;
    --bg-elevated: #1a1a3e;
    --accent: #00d4ff;
    --accent-2: #7b2ffc;
    --accent-dim: rgba(0, 212, 255, 0.08);
    --accent-glow: rgba(0, 212, 255, 0.3);
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f472b6;
    --info: #67e8f9;
    --text-1: #e0f2fe;
    --text-2: #94a3b8;
    --text-3: #475569;
    --border: rgba(0, 212, 255, 0.08);
    --border-2: rgba(0, 212, 255, 0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--accent), 0 0 30px var(--accent-glow);
    --header-h: 64px;
    --maxw: 1400px;
    --transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* --- v5 futuristic layer tokens --- */
    --font-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
    --holo-1: #00d4ff;
    --holo-2: #7b2ffc;
    --holo-3: #ff2e9a;
    --holo-gradient: linear-gradient(115deg, var(--holo-1) 0%, var(--holo-2) 45%, var(--holo-3) 75%, var(--holo-1) 100%);
    --glass-blur: 18px;
    --grid-line: rgba(0, 212, 255, 0.07);
    --hud-size: 18px;
    --hud-thick: 2px;
    --hud-gap: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Orbitron', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-deep);
    color: var(--text-1);
    line-height: 1.55;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 5%, rgba(0, 212, 255, 0.06), transparent 35%),
        radial-gradient(circle at 85% 90%, rgba(123, 47, 252, 0.04), transparent 35%);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.05;
    background: radial-gradient(circle, #00d4ff, #7b2ffc);
    top: -200px;
    right: -200px;
    z-index: -1;
    pointer-events: none;
    animation: floatBg 30s ease-in-out infinite alternate;
}
@keyframes floatBg {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 100px) scale(1.5); }
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: var(--bg-deep); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { 
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    border-radius: 5px;
    box-shadow: 0 0 20px var(--accent-glow);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 28px 0; }
.sr-only { position: absolute; left: -9999px; }

/* ===== Header ===== */
.header { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    height: var(--header-h); 
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 21px; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    white-space: nowrap;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.1));
}
.brand__mark { 
    width: 36px; 
    height: 36px; 
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 9px; 
    display: grid; 
    place-items: center; 
    font-weight: 900; 
    color: var(--bg-deep); 
    font-size: 15px; 
    box-shadow: 0 2px 20px var(--accent-glow);
    transition: var(--transition);
}
.brand:hover .brand__mark {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 4px 30px var(--accent-glow);
}
.brand__name { 
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand__name b { 
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link { 
    padding: 8px 12px; 
    color: var(--text-2); 
    font-size: 13.5px; 
    font-weight: 500; 
    border-radius: var(--radius-sm); 
    display: inline-flex; 
    align-items: center; 
    gap: 7px; 
    transition: var(--transition); 
    white-space: nowrap;
    position: relative;
}
.nav__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav__link:hover::before,
.nav__link.is-active::before {
    width: 60%;
}
.nav__link:hover { 
    color: var(--text-1); 
    background: var(--accent-dim);
    transform: translateY(-1px);
}
.nav__link.is-active { 
    color: var(--accent); 
    background: var(--accent-dim);
}
.nav__link svg { width: 16px; height: 16px; transition: var(--transition); }
.nav__link:hover svg { filter: drop-shadow(0 0 20px var(--accent-glow)); }
.search { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.search__input { 
    width: 100%; 
    height: 38px; 
    padding: 0 14px 0 40px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-2); 
    color: var(--text-1); 
    border-radius: var(--radius-sm); 
    font-size: 13.5px; 
    outline: none; 
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
}
.search__input::placeholder { color: var(--text-3); }
.search__input:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1), 0 0 30px rgba(0, 212, 255, 0.03);
}
.search__icon { 
    position: absolute; 
    left: 13px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 16px; 
    height: 16px; 
    color: var(--accent); 
    pointer-events: none;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.search__results { 
    position: absolute; 
    top: calc(100% + 4px); 
    left: 0; 
    right: 0; 
    background: var(--bg-card); 
    border: 1px solid var(--border-2); 
    border-radius: var(--radius); 
    max-height: 400px; 
    overflow-y: auto; 
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.8), 0 0 40px rgba(0, 212, 255, 0.02);
    z-index: 200; 
    display: none;
    backdrop-filter: blur(20px);
}
.search__results.is-open { display: block; }
.search__result { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 8px 12px; 
    color: var(--text-2); 
    font-size: 13px; 
    border-bottom: 1px solid var(--border); 
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.search__result:hover, .search__result.is-active { 
    background: var(--accent-dim);
    color: var(--text-1);
    padding-left: 16px;
}
.search__result img { width: 32px; height: 18px; object-fit: cover; border-radius: 3px; }
.search__result .meta { font-size: 11px; color: var(--text-3); }
.header__actions { display: flex; gap: 6px; align-items: center; }
.btn-icon { 
    width: 38px; 
    height: 38px; 
    border-radius: var(--radius-sm); 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    color: var(--text-2); 
    display: grid; 
    place-items: center; 
    transition: var(--transition); 
    position: relative;
}
.btn-icon:hover { 
    color: var(--accent); 
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}
.btn-icon svg { width: 17px; height: 17px; transition: var(--transition); }
.btn-icon:hover svg { filter: drop-shadow(0 0 20px var(--accent-glow)); }
.btn-icon .badge { 
    position: absolute; 
    top: 4px; 
    right: 4px; 
    background: var(--danger); 
    color: var(--bg-deep); 
    font-size: 10px; 
    font-weight: 700; 
    padding: 1px 5px; 
    border-radius: 999px; 
    min-width: 16px; 
    text-align: center; 
    line-height: 1.4;
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.5);
}
.notif-dropdown { 
    position: absolute; 
    top: calc(100% + 8px); 
    right: 0; 
    width: 360px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-2); 
    border-radius: var(--radius); 
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.8);
    z-index: 300; 
    display: none; 
    max-height: 480px; 
    overflow-y: auto;
    backdrop-filter: blur(20px);
}
.notif-dropdown.is-open { display: block; }
.notif-dropdown__head { 
    padding: 12px 16px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.notif-dropdown__head h4 { font-size: 13px; font-weight: 700; color: var(--text-1); }
.notif-dropdown__head a { color: var(--accent); font-size: 12px; transition: var(--transition); }
.notif-dropdown__head a:hover { color: var(--accent-2); }
.notif-item { 
    padding: 10px 16px; 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    gap: 10px; 
    align-items: flex-start; 
    transition: var(--transition); 
}
.notif-item:hover { background: var(--accent-dim); }
.notif-item.is-unread { 
    background: rgba(0, 212, 255, 0.04);
    border-left: 2px solid var(--accent);
}
.notif-item__avatar { flex-shrink: 0; }
.notif-item__body { flex: 1; min-width: 0; }
.notif-item__text { font-size: 13px; color: var(--text-1); }
.notif-item__text b { font-weight: 600; color: var(--accent); }
.notif-item__date { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.user-chip { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    padding: 4px 12px 4px 4px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: 999px; 
    color: var(--text-2); 
    font-size: 13px; 
    font-weight: 500; 
    transition: var(--transition); 
}
.user-chip:hover { 
    border-color: var(--accent); 
    color: var(--text-1);
    box-shadow: 0 0 30px var(--accent-glow);
}
.user-chip .avatar { 
    width: 28px; 
    height: 28px; 
    border-radius: 999px; 
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-deep); 
    display: grid; 
    place-items: center; 
    font-weight: 700; 
    font-size: 13px; 
    overflow: hidden; 
}
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero { 
    position: relative; 
    min-height: 480px; 
    max-height: 70vh; 
    display: flex; 
    align-items: flex-end; 
    overflow: hidden; 
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px -20px rgba(0, 212, 255, 0.05);
}
.hero__bg { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center top; 
    z-index: 1; 
    filter: saturate(1.05) brightness(0.85); 
}
.hero__overlay { 
    position: absolute; 
    inset: 0; 
    z-index: 2; 
    background: 
        linear-gradient(90deg, var(--bg-deep) 0%, rgba(10,10,26,0.85) 30%, rgba(10,10,26,0.35) 65%, transparent 100%),
        linear-gradient(180deg, transparent 0%, transparent 50%, var(--bg-deep) 100%);
}
.hero__content { position: relative; z-index: 3; padding: 80px 0 40px; max-width: 680px; }
.hero__badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--accent); 
    padding: 5px 12px; 
    border-radius: var(--radius-sm); 
    font-size: 11px; 
    font-weight: 700; 
    letter-spacing: 0.06em; 
    text-transform: uppercase; 
    margin-bottom: 14px; 
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.02);
}
.hero__badge::before { 
    content: ''; 
    width: 7px; 
    height: 7px; 
    background: var(--accent); 
    border-radius: 50%; 
    box-shadow: 0 0 20px var(--accent);
    animation: pulse 2s infinite; 
}
@keyframes pulse { 
    0%,100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.4; transform: scale(1.4); } 
}
.hero__title { 
    font-size: clamp(34px, 5vw, 56px); 
    font-weight: 800; 
    letter-spacing: -0.025em; 
    line-height: 1.05; 
    margin-bottom: 8px; 
    color: var(--text-1);
    text-shadow: 0 2px 40px rgba(0, 212, 255, 0.05);
}
.hero__title2 { 
    font-size: 15px; 
    color: var(--text-2); 
    margin-bottom: 16px; 
    font-style: italic; 
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.hero__synopsis { 
    font-size: 14px; 
    color: var(--text-2); 
    max-width: 560px; 
    margin-bottom: 22px; 
    line-height: 1.65; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pill { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid var(--border-2); 
    padding: 3px 10px; 
    border-radius: 4px; 
    font-size: 11.5px; 
    font-weight: 500; 
    color: var(--text-2); 
    backdrop-filter: blur(8px);
}
.pill svg { width: 12px; height: 12px; }
.pill--success { background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.25); color: var(--success); }
.pill--danger { background: rgba(244, 114, 182, 0.08); border-color: rgba(244, 114, 182, 0.25); color: var(--danger); }
.pill--warning { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.25); color: var(--warning); }
.pill--primary { background: rgba(0, 212, 255, 0.08); border-color: rgba(0, 212, 255, 0.25); color: var(--accent); }
.pill--info { background: rgba(103, 232, 249, 0.08); border-color: rgba(103, 232, 249, 0.25); color: var(--info); }

.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 11px 20px; 
    border-radius: var(--radius-sm); 
    font-size: 13.5px; 
    font-weight: 600; 
    border: 1px solid transparent; 
    transition: var(--transition); 
    cursor: pointer; 
    user-select: none; 
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.02em;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--bg-deep);
    box-shadow: 0 4px 30px var(--accent-glow);
}
.btn--primary:hover { 
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px rgba(0, 212, 255, 0.05);
}
.btn--ghost { 
    background: var(--bg-card); 
    border-color: var(--border-2); 
    color: var(--text-1); 
}
.btn--ghost:hover { 
    background: var(--bg-elevated); 
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.btn--accent { 
    background: var(--accent-dim); 
    border-color: var(--accent); 
    color: var(--accent);
}
.btn--accent:hover { 
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 30px var(--accent-glow);
}
.btn--danger { 
    background: rgba(244, 114, 182, 0.08); 
    border-color: rgba(244, 114, 182, 0.25); 
    color: var(--danger);
}
.btn--danger:hover { 
    background: var(--danger); 
    color: var(--bg-deep);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.3);
}
.btn--sm { padding: 7px 12px; font-size: 12.5px; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Carousel ===== */
.row { padding: 22px 0; }
.row__header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 16px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--border);
}
.row__title { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 15px; 
    font-weight: 700; 
    letter-spacing: 0.04em; 
    text-transform: uppercase; 
    color: var(--text-1);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.05);
}
.row__title svg { width: 20px; height: 20px; color: var(--accent); filter: drop-shadow(0 0 20px var(--accent-glow)); }
.row__see-all { 
    font-size: 12px; 
    color: var(--text-3); 
    text-transform: uppercase; 
    letter-spacing: 0.04em; 
    font-weight: 600; 
    transition: var(--transition); 
}
.row__see-all:hover { color: var(--accent); }
.row__nav { display: flex; gap: 6px; }
.row__nav button { 
    width: 32px; 
    height: 32px; 
    border-radius: var(--radius-sm); 
    background: var(--bg-elevated); 
    border: 1px solid var(--border); 
    color: var(--text-2); 
    display: grid; 
    place-items: center; 
    transition: var(--transition); 
}
.row__nav button:hover { 
    color: var(--accent); 
    border-color: var(--accent); 
    background: var(--accent-dim);
    box-shadow: 0 0 30px var(--accent-glow);
}
.row__nav svg { width: 14px; height: 14px; }
.row__scroll { 
    display: flex; 
    gap: 16px; 
    overflow-x: auto; 
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory; 
    padding: 4px 0 12px; 
    scrollbar-width: thin; 
    scrollbar-color: var(--bg-elevated) transparent; 
    -webkit-overflow-scrolling: touch; 
}
.row__scroll::-webkit-scrollbar { height: 6px; }
.row__scroll::-webkit-scrollbar-thumb { 
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.row__scroll::-webkit-scrollbar-track { background: transparent; }

/* ===== Cards ===== */
.card { 
    flex: 0 0 280px; 
    width: 280px; 
    scroll-snap-align: start; 
    cursor: pointer; 
    transition: var(--transition);
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.card:hover { 
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}
.card:hover .card__img { filter: brightness(1.1) saturate(1.1); }
.card:hover .card__overlay { opacity: 1; }
.card__poster { 
    position: relative; 
    aspect-ratio: 16 / 9; 
    overflow: hidden; 
    background: var(--bg-deep);
}
.card__img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition); 
}
.card__badges { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 4px; 
    z-index: 2; 
}
.card__badges--right {
    left: auto;
    right: 8px;
}
.card__badge { 
    font-size: 9.5px; 
    font-weight: 700; 
    padding: 3px 8px; 
    border-radius: 3px; 
    text-transform: uppercase; 
    letter-spacing: 0.04em; 
    backdrop-filter: blur(4px); 
    color: var(--bg-deep);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.card__badge::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 3px;
    background: radial-gradient(circle at center, currentColor, transparent 70%);
    opacity: 0.3;
    filter: blur(4px);
    animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ===== BADGE STYLES - Clean & Glowing ===== */
.card__badge--anime { 
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    color: #fff;
}
.card__badge--scan { 
    background: linear-gradient(135deg, #7b2ffc, #5a1fb8);
    box-shadow: 0 0 20px rgba(123, 47, 252, 0.4);
    color: #fff;
}
.card__badge--film { 
    background: linear-gradient(135deg, #f472b6, #d9468c);
    box-shadow: 0 0 20px rgba(244, 114, 182, 0.4);
    color: #fff;
}
.card__badge--oav { 
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    color: #1a1a2e;
}
.card__badge--vf { 
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    color: #0a0a1a;
}
.card__badge--vostfr { 
    background: linear-gradient(135deg, #67e8f9, #06b6d4);
    box-shadow: 0 0 20px rgba(103, 232, 249, 0.4);
    color: #0a0a1a;
}
.card__badge--manhwa { 
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    color: #fff;
}
.card__badge--manhua { 
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    color: #fff;
}
.card__badge--manga { 
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    color: #1a1a2e;
}
.card__badge--novel { 
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.4);
    color: #fff;
}
.card__badge--ongoing { 
    background: linear-gradient(135deg, #4ade80, #22c55e);
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
    color: #0a0a1a;
}
.card__badge--completed { 
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    color: #fff;
}
.card__badge--season { 
background: linear-gradient(135deg, #4257c0, #1813a0);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}
.card__badge--primary { 
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    color: #fff;
}
.card__badge--resume { 
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    color: #1a1a2e;
}
.card__badge--progress { 
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    color: #fff;
}

/* ===== LANGUAGE COUNT BADGES ===== */
.card__lang-counts {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 3;
}
.lang-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-deep);
    backdrop-filter: blur(4px);
    line-height: 1;
}
.lang-count svg {
    flex-shrink: 0;
}
.lang-count--vostfr {
    background: #E91E63;
    border: 1px solid #ff0057;
    color: #ffffff;
}
.lang-count--vf {
    background: #3F51B5;
    border: 1px solid #0027ff;
    color: #ffffff;
}
.lang-count--hour {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
    color: #1a1a2e;
}

.card__progress { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 3px; 
    background: rgba(0,0,0,0.5); 
    z-index: 2; 
}
.card__progress-bar { 
    height: 100%; 
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 20px var(--accent-glow);
}
.card__overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, transparent 0%, transparent 45%, rgba(10,10,26,0.95) 100%); 
    opacity: 0; 
    transition: var(--transition); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 3; 
}
.card__play { 
    width: 48px; 
    height: 48px; 
    border-radius: 999px; 
    background: var(--accent);
    color: var(--bg-deep); 
    display: grid; 
    place-items: center; 
    box-shadow: 0 0 40px var(--accent-glow);
    transform: scale(0.7); 
    transition: var(--transition); 
}
.card:hover .card__play { transform: scale(1); }
.card__play svg { width: 20px; height: 20px; margin-left: 2px; }
.card__info { padding: 10px 12px 0; }
.card__title { 
    font-size: 13.5px; 
    font-weight: 700; 
    color: var(--text-1); 
    margin-bottom: 4px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical; 
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.02);
}
.card__meta { 
    font-size: 11.5px; 
    color: var(--text-3); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-variant-numeric: tabular-nums; 
}
.card__meta svg { width: 11px; height: 11px; color: var(--accent); }
.card__meta-item { display: inline-flex; align-items: center; gap: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 16px; }
.grid .card { width: 100%; flex: none; }

/* ===== NEON CARD ENHANCEMENTS (from card.php) ===== */
.card--neon {
    position: relative;
    border: 1px solid rgba(0, 212, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-card);
}
.card--neon:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent), 0 0 60px var(--accent-glow);
}
.card--neon .card__poster {
    position: relative;
    overflow: hidden;
}

/* Card glow effects */
.card__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}
.card--neon:hover .card__glow {
    opacity: 1;
}
.glow-vf {
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.15), transparent 70%);
}
.glow-vostfr {
    background: radial-gradient(circle at 50% 50%, rgba(103, 232, 249, 0.15), transparent 70%);
}
.glow-scan {
    background: radial-gradient(circle at 50% 50%, rgba(123, 47, 252, 0.15), transparent 70%);
}
.glow-episode {
    background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.12), transparent 70%);
}
.glow-resume {
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.12), transparent 70%);
}

/* Holographic sweep animation */
.card__holo-sweep {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(115deg,
        transparent 25%,
        rgba(255, 255, 255, 0.10) 38%,
        rgba(0, 212, 255, 0.16) 46%,
        rgba(123, 47, 252, 0.16) 54%,
        rgba(255, 46, 154, 0.10) 62%,
        transparent 75%);
    transform: translateX(-130%);
    transition: transform 0.9s cubic-bezier(.25, .46, .45, .94);
}
.card--neon:hover .card__holo-sweep {
    transform: translateX(130%);
}

/* Scanline effect */
.card__scanline {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.005) 2px,
        rgba(0, 212, 255, 0.005) 4px
    );
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card--neon:hover .card__scanline {
    opacity: 1;
}

/* Neon card info */
.card__info--neon {
    position: relative;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-deep));
    border-top: 1px solid rgba(0, 212, 255, 0.05);
}
.card__info--neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card--neon:hover .card__info--neon::after {
    opacity: 1;
}

/* Horizontal progress bar for continue watching */
.card__progress-bar--horizontal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 212, 255, 0.1);
    overflow: hidden;
    z-index: 2;
}
.card__progress-bar--horizontal::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: translateX(-100%);
    transition: transform 0.8s ease;
    box-shadow: 0 0 20px var(--accent-glow);
}
.card--neon:hover .card__progress-bar--horizontal::after {
    transform: translateX(0%);
}

/* 3D tilt card */
.card--tilt {
    --rx: 0deg;
    --ry: 0deg;
    transform: perspective(900px) rotateX(var(--ry)) rotateY(var(--rx));
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ===== NEON ROW HEADERS ===== */
.row__header--neon {
    border-bottom: 2px solid rgba(0, 212, 255, 0.08);
    position: relative;
}
.row__header--neon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 20px var(--accent-glow);
}
.row__title--neon {
    position: relative;
}
.row__title-icon {
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.row__title-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.row__header--neon:hover .row__title-glow {
    opacity: 1;
}
.row__nav--neon button {
    position: relative;
    overflow: hidden;
}
.row__nav--neon button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.row__nav--neon button:hover::before {
    opacity: 0.1;
}
.row__scroll--neon::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 3px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.row__scroll--neon::-webkit-scrollbar-track {
    background: rgba(0, 212, 255, 0.02);
}

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding: 14px 0 0; font-size: 12.5px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; }
.breadcrumbs li { color: var(--text-3); }
.breadcrumbs a { color: var(--text-2); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--border-2); padding: 0 8px; }
.breadcrumbs .is-current { color: var(--text-1); font-weight: 500; }

/* ===== Page head ===== */
.page-head { padding: 18px 0 24px; }
.page-head h1 { 
    font-size: 28px; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    margin-bottom: 6px; 
    color: var(--text-1);
    text-shadow: 0 2px 40px rgba(0, 212, 255, 0.02);
}
.page-head p { color: var(--text-2); font-size: 14px; }

/* ===== Filters ===== */
.filters { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    align-items: flex-end; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 14px 16px; 
    margin-bottom: 22px;
}
.filters__group { display: flex; flex-direction: column; gap: 4px; }
.filters__label { 
    font-size: 10.5px; 
    color: var(--text-3); 
    text-transform: uppercase; 
    letter-spacing: 0.06em; 
    font-weight: 600; 
}
.filters__select, .filters__input { 
    background: var(--bg-deep); 
    border: 1px solid var(--border-2); 
    color: var(--text-1); 
    padding: 8px 12px; 
    border-radius: var(--radius-sm); 
    font-size: 13px; 
    outline: none; 
    min-width: 140px; 
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
}
.filters__select:focus, .filters__input:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.03);
}

/* ===== Tabs ===== */
.tabs { 
    display: flex; 
    gap: 6px; 
    overflow-x: auto; 
    padding-bottom: 6px; 
    margin-bottom: 20px; 
    scrollbar-width: thin; 
    scrollbar-color: var(--bg-elevated) transparent; 
}
.tab { 
    padding: 8px 16px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-sm); 
    color: var(--text-2); 
    font-size: 13px; 
    font-weight: 500; 
    white-space: nowrap; 
    cursor: pointer; 
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
}
.tab:hover { 
    color: var(--text-1); 
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.tab.is-active { 
    background: var(--accent-dim);
    color: var(--accent); 
    border-color: var(--accent);
}

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span { 
    min-width: 36px; 
    height: 36px; 
    padding: 0 10px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-sm); 
    color: var(--text-2); 
    font-size: 13px; 
    font-weight: 500; 
    transition: var(--transition); 
    font-variant-numeric: tabular-nums; 
}
.pagination a:hover { 
    color: var(--accent); 
    border-color: var(--accent); 
    background: var(--accent-dim);
    box-shadow: 0 0 30px var(--accent-glow);
}
.pagination .is-active { 
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-deep); 
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.pagination .is-disabled { opacity: 0.35; pointer-events: none; }

/* ===== Detail hero ===== */
.detail-hero { 
    position: relative; 
    min-height: 380px; 
    display: flex; 
    align-items: flex-end; 
    overflow: hidden; 
    padding: 24px 0 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.detail-hero__bg { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    filter: blur(18px) brightness(0.4); 
    transform: scale(1.1); 
    z-index: 1; 
}
.detail-hero__bg::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, rgba(10,10,26,0.6) 0%, var(--bg-deep) 100%); 
}
.detail-hero__inner { 
    position: relative; 
    z-index: 2; 
    display: grid; 
    grid-template-columns: 320px 1fr; 
    gap: 28px; 
    width: 100%; 
}
.detail-hero__cover { 
    width: 320px; 
    aspect-ratio: 16 / 9; 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    border: 1px solid var(--border-2); 
    box-shadow: 0 16px 48px -8px rgba(0,0,0,0.8), 0 0 30px rgba(0, 212, 255, 0.02);
}
.detail-hero__cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__info { min-width: 0; }
.detail-hero__title { 
    font-size: clamp(28px, 4vw, 42px); 
    font-weight: 800; 
    letter-spacing: -0.025em; 
    line-height: 1.1; 
    margin-bottom: 4px;
    text-shadow: 0 2px 40px rgba(0, 212, 255, 0.02);
}
.detail-hero__title2 { 
    color: var(--text-2); 
    font-size: 15px; 
    font-style: italic; 
    margin-bottom: 14px; 
}
.detail-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; align-items: center; }
.detail-hero__synopsis-block { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 18px 20px; 
    margin-bottom: 20px;
}
.detail-hero__synopsis { 
    color: var(--text-2); 
    font-size: 14px; 
    line-height: 1.7; 
    max-height: 120px; 
    overflow: hidden; 
    position: relative; 
    transition: max-height 0.4s ease; 
}
.detail-hero__synopsis.is-expanded { max-height: 2000px; }
.detail-hero__synopsis::after { 
    content: ''; 
    position: absolute; 
    inset: auto 0 0 0; 
    height: 40px; 
    background: linear-gradient(180deg, transparent, var(--bg-card)); 
    pointer-events: none; 
}
.detail-hero__synopsis.is-expanded::after { display: none; }
.detail-hero__synopsis-toggle { 
    margin-top: 10px; 
    font-size: 12px; 
    color: var(--accent); 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
    transition: var(--transition);
}
.detail-hero__synopsis-toggle:hover { color: var(--text-1); }
.detail-hero__genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.genre-tag { 
    background: var(--bg-card); 
    border: 1px solid var(--border-2); 
    color: var(--text-2); 
    padding: 5px 12px; 
    border-radius: 999px; 
    font-size: 11.5px; 
    font-weight: 500; 
    transition: var(--transition); 
}
.genre-tag:hover { 
    background: var(--accent-dim); 
    border-color: var(--accent); 
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.detail-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ===== Rating (10 stars) ===== */
.rating-stars { display: inline-flex; gap: 2px; align-items: center; }
.rating-stars .star { 
    width: 18px; 
    height: 18px; 
    color: var(--bg-elevated); 
    cursor: pointer; 
    transition: var(--transition); 
}
.rating-stars .star.is-on { color: var(--warning); filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3)); }
.rating-stars .star:hover { 
    color: var(--warning); 
    transform: scale(1.15);
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.4));
}
.rating-stars--readonly .star { cursor: default; }
.rating-stars--readonly .star:hover { transform: none; }
.rating-summary { font-size: 12.5px; color: var(--text-2); margin-left: 8px; }
.rating-summary b { color: var(--text-1); }

/* ===== NEON RATING STARS ===== */
.rating-stars--neon .star {
    filter: drop-shadow(0 0 5px transparent);
    transition: all 0.3s ease;
}
.rating-stars--neon .star.is-on {
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
}
.rating-stars--neon .star:hover {
    filter: drop-shadow(0 0 25px rgba(251, 191, 36, 0.6));
    transform: scale(1.15);
}
.rating-summary--neon {
    color: var(--text-2);
}
.rating-summary--neon b {
    color: var(--warning);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

/* ===== Episode list ===== */
.episode-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.episode { 
    display: flex; 
    gap: 12px; 
    align-items: center; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 10px 12px; 
    transition: var(--transition); 
}
.episode:hover { 
    background: var(--bg-elevated); 
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.episode__num { 
    flex: 0 0 44px; 
    width: 44px; 
    height: 44px; 
    border-radius: var(--radius-sm); 
    background: var(--accent-dim);
    border: 1px solid var(--accent); 
    color: var(--accent); 
    display: grid; 
    place-items: center; 
    font-weight: 700; 
    font-size: 15px; 
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.02);
}
.episode__info { flex: 1; min-width: 0; }
.episode__title { 
    font-size: 13.5px; 
    font-weight: 600; 
    color: var(--text-1); 
    margin-bottom: 3px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.episode__meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 10px; font-variant-numeric: tabular-nums; }
.episode__play { 
    width: 34px; 
    height: 34px; 
    border-radius: 999px; 
    background: var(--bg-elevated); 
    color: var(--accent); 
    display: grid; 
    place-items: center; 
    transition: var(--transition); 
}
.episode:hover .episode__play { 
    background: var(--accent); 
    color: var(--bg-deep);
    box-shadow: 0 0 30px var(--accent-glow);
}
.episode__play svg { width: 13px; height: 13px; margin-left: 2px; }

/* ===== Player ===== */
.player-page { padding: 20px 0 60px; }
.player-wrap { 
    position: relative; 
    background: var(--bg-deep); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.8), 0 0 40px rgba(0, 212, 255, 0.02);
    border: 1px solid var(--border); 
}
.player-wrap iframe, .player-wrap video { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    display: block; 
    background: var(--bg-deep); 
    border: none; 
}
.player-wrap .player-empty { 
    aspect-ratio: 16 / 9; 
    display: grid; 
    place-items: center; 
    color: var(--text-3); 
}
.player-servers { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
.player-servers__label { 
    font-size: 12px; 
    color: var(--text-3); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    font-weight: 600; 
    margin-right: 6px; 
}
.server-btn { 
    padding: 8px 14px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-2); 
    border-radius: var(--radius-sm); 
    color: var(--text-2); 
    font-size: 12.5px; 
    font-weight: 600; 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    font-family: 'Orbitron', sans-serif;
}
.server-btn:hover { 
    border-color: var(--accent); 
    color: var(--text-1);
    box-shadow: 0 0 30px var(--accent-glow);
}
.server-btn.is-active { 
    background: var(--accent-dim);
    border-color: var(--accent); 
    color: var(--accent);
}
.server-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.player-info { margin-top: 24px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.player-info__main h1 { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 6px; 
    letter-spacing: -0.02em;
    text-shadow: 0 2px 40px rgba(0, 212, 255, 0.02);
}
.player-info__main .meta { color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.player-info__main .meta a { color: var(--accent); transition: var(--transition); }
.player-info__main .meta a:hover { color: var(--accent-2); }
.player-info__main .synopsis { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.player-info__side { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 16px; 
}
.player-info__side h3 { 
    font-size: 13px; 
    font-weight: 700; 
    margin-bottom: 12px; 
    color: var(--text-1); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}
.episode-nav { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.lang-switch { display: flex; gap: 8px; margin-bottom: 14px; }
.lang-switch button { 
    flex: 1; 
    padding: 9px; 
    background: var(--bg-card); 
    border: 1px solid var(--border-2); 
    border-radius: var(--radius-sm); 
    color: var(--text-2); 
    font-size: 12.5px; 
    font-weight: 600; 
    transition: var(--transition);
    font-family: 'Orbitron', sans-serif;
}
.lang-switch button.is-active { 
    background: var(--accent-dim);
    border-color: var(--accent); 
    color: var(--accent);
}
.lang-switch button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Reader ===== */
.reader { background: var(--bg-deep); min-height: 100vh; }
.reader__bar { 
    position: sticky; 
    top: 0; 
    z-index: 50; 
    background: rgba(10,10,26,0.92); 
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); 
    padding: 12px 24px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
    flex-wrap: wrap; 
}
.reader__title { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-1); 
}
.reader__title span { color: var(--accent); }
.reader__title a { color: var(--text-2); transition: var(--transition); }
.reader__title a:hover { color: var(--accent); }
.reader__nav { display: flex; gap: 6px; }
.reader__images { max-width: 900px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.reader__images img { width: 100%; height: auto; display: block; }
.reader__empty { text-align: center; padding: 80px 20px; color: var(--text-2); }
.reader__empty svg { width: 48px; height: 48px; color: var(--text-3); margin: 0 auto 12px; }

/* ===== Planning ===== */
.planning-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.planning-day { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    overflow: hidden; 
}
.planning-day.is-today { 
    border-color: var(--accent); 
    box-shadow: 0 0 30px var(--accent-glow);
}
.planning-day__head { 
    padding: 12px 16px; 
    background: var(--bg-elevated); 
    border-bottom: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}
.planning-day__head h3 { font-size: 14px; font-weight: 700; text-transform: capitalize; color: var(--text-1); }
.planning-day__head .today-pill { 
    background: var(--accent); 
    color: var(--bg-deep); 
    font-size: 9.5px; 
    font-weight: 700; 
    padding: 2px 7px; 
    border-radius: 999px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px var(--accent-glow);
}
.planning-day__list { padding: 6px; display: flex; flex-direction: column; gap: 2px; min-height: 80px; }
.planning-item { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    padding: 7px; 
    border-radius: var(--radius-sm); 
    transition: var(--transition); 
}
.planning-item:hover { 
    background: var(--accent-dim);
    transform: translateX(2px);
}
.planning-item__cover { 
    flex: 0 0 105px; 
    width: 56px; 
    height: 32px; 
    border-radius: 4px; 
    overflow: hidden; 
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.planning-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.planning-item__info { flex: 1; min-width: 0; }
.planning-item__title { 
    font-size: 12.5px; 
    font-weight: 600; 
    color: var(--text-1); 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.planning-item__meta { 
    font-size: 10.5px; 
    color: var(--text-3); 
    display: flex; 
    gap: 5px; 
    margin-top: 2px; 
    align-items: center; 
}
.planning-item__time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--bg-deep);
    border: 1px solid var(--border-2);
    color: var(--accent);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    flex-shrink: 0;
}
.planning-item__time svg {
    width: 11px;
    height: 11px;
}
.planning-day.is-today .planning-item__time {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Stats ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 18px; 
    position: relative; 
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.stat-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    right: 0; 
    width: 80px; 
    height: 80px; 
    background: radial-gradient(circle, var(--accent-glow), transparent 70%); 
    opacity: 0.15; 
    pointer-events: none; 
}
.stat-card__label { 
    font-size: 11px; 
    color: var(--text-3); 
    text-transform: uppercase; 
    letter-spacing: 0.06em; 
    margin-bottom: 6px; 
    font-weight: 600; 
}
.stat-card__value { 
    font-size: 26px; 
    font-weight: 800; 
    letter-spacing: -0.02em; 
    color: var(--text-1); 
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.02);
}
.stat-card__icon { 
    position: absolute; 
    top: 14px; 
    right: 14px; 
    color: var(--accent); 
    opacity: 0.3;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}
.stat-card__icon svg { width: 22px; height: 22px; }

/* ===== Comments ===== */
.comments { margin-top: 40px; }
.comments__head { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 18px; 
    padding-bottom: 10px; 
    border-bottom: 2px solid var(--border); 
}
.comments__head h2 { 
    font-size: 16px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.04em; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    color: var(--text-1);
}
.comments__head h2 .count { 
    background: var(--bg-elevated); 
    color: var(--text-2); 
    font-size: 12px; 
    padding: 2px 8px; 
    border-radius: 999px; 
    font-weight: 600; 
}
.comment-form { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 14px; 
    margin-bottom: 22px; 
}
.comment-form textarea { 
    width: 100%; 
    min-height: 80px; 
    background: var(--bg-deep); 
    border: 1px solid var(--border-2); 
    color: var(--text-1); 
    padding: 10px 12px; 
    border-radius: var(--radius-sm); 
    font-size: 13.5px; 
    resize: vertical; 
    outline: none; 
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.comment-form textarea:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 30px var(--accent-glow);
}
.comment-form__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 12px; }
.comment-form__hint { font-size: 11.5px; color: var(--text-3); }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 14px 16px;
    transition: var(--transition);
}
.comment:hover {
    border-color: var(--border-2);
}
.comment__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment__avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 999px; 
    overflow: hidden; 
    flex-shrink: 0;
    border: 1px solid var(--border-2);
}
.comment__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment__avatar .letter { 
    width: 100%; 
    height: 100%; 
    display: grid; 
    place-items: center; 
    color: var(--bg-deep); 
    font-weight: 700; 
    font-size: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.comment__author { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.comment__author a { color: var(--accent); transition: var(--transition); }
.comment__author a:hover { color: var(--accent-2); }
.comment__date { font-size: 11.5px; color: var(--text-3); }
.comment__body { font-size: 13.5px; color: var(--text-2); line-height: 1.6; word-wrap: break-word; }
.comment__body.is-spoiler { 
    background: rgba(0,0,0,0.4); 
    color: transparent; 
    cursor: pointer; 
    padding: 4px 8px; 
    border-radius: 4px; 
    transition: var(--transition); 
}
.comment__body.is-spoiler:hover, .comment__body.is-spoiler.is-revealed { 
    color: var(--text-2); 
    background: rgba(251, 191, 36, 0.06);
}
.comment__actions { display: flex; gap: 14px; margin-top: 10px; font-size: 12px; }
.comment__actions button { 
    color: var(--text-3); 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
}
.comment__actions button:hover, .comment__actions button.is-active { 
    color: var(--accent); 
}
.comment__actions button.is-liked { color: var(--danger); }
.comment__replies { 
    margin-top: 12px; 
    padding-left: 42px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    border-left: 2px solid var(--border); 
    margin-left: 16px; 
}
.comment__reply { 
    background: var(--bg-deep); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-sm); 
    padding: 10px 12px; 
    font-size: 13px; 
}
.comment__reply .comment__head { margin-bottom: 4px; }

/* ===== NEON COMMENTS ===== */
.comments__head--neon {
    border-bottom: 2px solid rgba(0, 212, 255, 0.08);
    position: relative;
}
.comments__head--neon::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 20px var(--accent-glow);
}
.comments__head-icon {
    filter: drop-shadow(0 0 10px var(--accent-glow));
}
.comment--neon {
    border: 1px solid rgba(0, 212, 255, 0.05);
    transition: all 0.4s ease;
}
.comment--neon:hover {
    border-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.02);
}
.comment__reply--neon {
    border-left: 2px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s ease;
}
.comment__reply--neon:hover {
    border-left-color: var(--accent);
}
.comment-form--neon textarea {
    transition: all 0.4s ease;
}
.comment-form--neon textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ===== Reviews ===== */
.reviews { margin-top: 40px; }
.review { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 18px; 
    margin-bottom: 14px;
    transition: var(--transition);
}
.review:hover {
    border-color: var(--border-2);
}
.review__head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.review__author { flex: 1; }
.review__author-name { font-size: 14px; font-weight: 600; color: var(--text-1); }
.review__author-name a { color: var(--accent); transition: var(--transition); }
.review__author-name a:hover { color: var(--accent-2); }
.review__date { font-size: 12px; color: var(--text-3); }
.review__score { 
    background: var(--accent-dim); 
    border: 1px solid var(--accent); 
    color: var(--accent); 
    padding: 6px 10px; 
    border-radius: var(--radius-sm); 
    font-weight: 700; 
    font-size: 14px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.review__title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-1); }
.review__body { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.review__actions { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; }
.review__actions button { 
    color: var(--text-3); 
    transition: var(--transition); 
    display: inline-flex; 
    align-items: center; 
    gap: 4px;
}
.review__actions button.is-liked { color: var(--accent); }

/* ===== NEON REVIEWS ===== */
.review--neon {
    border: 1px solid rgba(0, 212, 255, 0.05);
    transition: all 0.4s ease;
}
.review--neon:hover {
    border-color: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.02);
    transform: translateX(4px);
}
.review__score--neon {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

/* ===== Auth forms ===== */
.auth-page { min-height: 80vh; display: grid; place-items: center; padding: 24px; }
.auth-card { 
    width: 100%; 
    max-width: 400px; 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 32px; 
    box-shadow: 0 20px 60px -10px rgba(0,0,0,0.7), 0 0 40px rgba(0, 212, 255, 0.02);
}
.auth-card__title { 
    text-align: center; 
    font-size: 22px; 
    font-weight: 800; 
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-card__subtitle { text-align: center; color: var(--text-2); font-size: 13px; margin-bottom: 22px; }
.form-group { margin-bottom: 14px; }
.form-label { 
    display: block; 
    font-size: 11.5px; 
    color: var(--text-3); 
    margin-bottom: 5px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
    font-weight: 600; 
}
.form-input { 
    width: 100%; 
    background: var(--bg-deep); 
    border: 1px solid var(--border-2); 
    color: var(--text-1); 
    padding: 11px 13px; 
    border-radius: var(--radius-sm); 
    font-size: 13.5px; 
    outline: none; 
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}
.form-input:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.06), 0 0 30px var(--accent-glow);
}
.form-error { 
    background: rgba(244, 114, 182, 0.06); 
    border: 1px solid rgba(244, 114, 182, 0.25); 
    color: var(--danger); 
    padding: 9px 12px; 
    border-radius: var(--radius-sm); 
    font-size: 12.5px; 
    margin-bottom: 14px; 
}
.form-success { 
    background: rgba(74, 222, 128, 0.06); 
    border: 1px solid rgba(74, 222, 128, 0.25); 
    color: var(--success); 
    padding: 9px 12px; 
    border-radius: var(--radius-sm); 
    font-size: 12.5px; 
    margin-bottom: 14px; 
}
.form-checkbox { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 13px; 
    color: var(--text-2); 
    margin-bottom: 14px; 
    cursor: pointer; 
}
.form-checkbox input { accent-color: var(--accent); }
.btn-google { 
    background: rgba(255,255,255,0.05);
    color: var(--text-1); 
    border-color: var(--border-2);
}
.btn-google:hover { 
    background: rgba(255,255,255,0.08);
    border-color: var(--accent);
}
.btn-google svg { width: 18px; height: 18px; }

/* ===== Profile ===== */
.profile-header { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 28px; 
    display: flex; 
    align-items: center; 
    gap: 22px; 
    margin-bottom: 24px; 
    position: relative; 
    overflow: hidden;
}
.profile-banner { 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    opacity: 0.06; 
    filter: blur(20px); 
    z-index: 0; 
}
.profile-header > * { position: relative; z-index: 1; }
.profile-avatar { 
    width: 96px; 
    height: 96px; 
    border-radius: 999px; 
    overflow: hidden; 
    box-shadow: 0 8px 40px -4px var(--accent-glow);
    flex-shrink: 0;
    border: 2px solid var(--border-2);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .letter { 
    width: 100%; 
    height: 100%; 
    display: grid; 
    place-items: center; 
    color: var(--bg-deep); 
    font-weight: 800; 
    font-size: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.profile-info { flex: 1; min-width: 0; }
.profile-info h1 { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 4px;
    text-shadow: 0 2px 40px rgba(0, 212, 255, 0.02);
}
.profile-info .bio { 
    color: var(--text-2); 
    font-size: 13.5px; 
    margin-bottom: 8px; 
    line-height: 1.5; 
}
.profile-info .stats { 
    display: flex; 
    gap: 18px; 
    font-size: 12.5px; 
    color: var(--text-3); 
    flex-wrap: wrap; 
}
.profile-info .stats b { 
    color: var(--text-1); 
    font-size: 14px; 
    font-weight: 700; 
}
.profile-info .stats a { 
    color: var(--text-2); 
    transition: var(--transition); 
}
.profile-info .stats a:hover { color: var(--accent); }

.badges-list { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-item { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 12px 16px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    min-width: 200px;
    transition: var(--transition);
}
.badge-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.badge-item--bronze { border-color: rgba(180,83,9,0.2); background: rgba(180,83,9,0.03); }
.badge-item--silver { border-color: rgba(148,163,184,0.2); background: rgba(148,163,184,0.03); }
.badge-item--gold { border-color: rgba(251,191,36,0.2); background: rgba(251,191,36,0.03); }
.badge-item--special { border-color: rgba(123,47,252,0.2); background: rgba(123,47,252,0.03); }
.badge-item__icon { 
    width: 36px; 
    height: 36px; 
    border-radius: 999px; 
    display: grid; 
    place-items: center; 
    font-size: 18px; 
}
.badge-item--bronze .badge-item__icon { background: #92400e; }
.badge-item--silver .badge-item__icon { background: #475569; }
.badge-item--gold .badge-item__icon { background: #b45309; }
.badge-item--special .badge-item__icon { background: var(--accent-2); }
.badge-item__info h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; color: var(--text-1); }
.badge-item__info p { font-size: 11px; color: var(--text-3); }

/* ===== User list ===== */
.user-list-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 16px; 
    transition: var(--transition); 
}
.user-list-card:hover { 
    border-color: var(--accent); 
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.user-list-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-1); }
.user-list-card p { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; line-height: 1.5; }
.user-list-card .meta { display: flex; gap: 12px; font-size: 11.5px; color: var(--text-3); }
.user-list-card .meta b { color: var(--text-1); }

/* ===== Footer ===== */
.footer { 
    border-top: 1px solid var(--border); 
    background: var(--bg-deep); 
    padding: 40px 0 24px; 
    margin-top: 60px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 30px; }
.footer__col h4 { 
    font-size: 11.5px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.06em; 
    margin-bottom: 14px; 
    color: var(--text-1);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.02);
}
.footer__col p { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin-bottom: 8px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 6px; }
.footer__col a { 
    color: var(--text-2); 
    font-size: 13px; 
    transition: var(--transition); 
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 16px; 
    flex-wrap: wrap; 
    padding-top: 20px; 
    border-top: 1px solid var(--border); 
    font-size: 12px; 
    color: var(--text-3); 
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand .mark { 
    width: 28px; 
    height: 28px; 
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 7px; 
    display: grid; 
    place-items: center; 
    font-weight: 900; 
    color: var(--bg-deep); 
    font-size: 12px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.footer__social { display: flex; gap: 6px; }
.footer__social a { 
    width: 32px; 
    height: 32px; 
    border-radius: var(--radius-sm); 
    background: var(--bg-card); 
    border: 1px solid var(--border); 
    color: var(--text-2); 
    display: grid; 
    place-items: center; 
    transition: var(--transition); 
}
.footer__social a:hover { 
    color: var(--accent); 
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.footer__social svg { width: 14px; height: 14px; }

/* ===== Empty / toast ===== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--text-3); opacity: 0.5; }
.empty h3 { font-size: 17px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.empty p { font-size: 13.5px; }
.empty code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 12px; }
.toast { 
    position: fixed; 
    bottom: 24px; 
    right: 24px; 
    background: var(--bg-card); 
    border: 1px solid var(--accent); 
    color: var(--text-1); 
    padding: 12px 18px; 
    border-radius: var(--radius); 
    box-shadow: 0 8px 32px -4px rgba(0,0,0,0.6), 0 0 40px var(--accent-glow);
    z-index: 1000; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    animation: slide-in .3s cubic-bezier(.25,.46,.45,.94); 
}
.toast--error { border-color: var(--danger); box-shadow: 0 8px 32px -4px rgba(0,0,0,0.6), 0 0 40px rgba(244, 114, 182, 0.15); }
.toast--success { border-color: var(--success); box-shadow: 0 8px 32px -4px rgba(0,0,0,0.6), 0 0 40px rgba(74, 222, 128, 0.15); }
@keyframes slide-in { from { transform: translateY(30px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

/* ===== Scroll reveal (for data-reveal) ===== */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.25, .46, .45, .94);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .player-info { grid-template-columns: 1fr; }
    .detail-hero__inner { grid-template-columns: 260px 1fr; }
    .detail-hero__cover { width: 260px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
    .nav { display: none; }
    .nav.is-open { 
        display: flex; 
        position: absolute; 
        top: var(--header-h); 
        left: 0; 
        right: 0; 
        background: var(--bg-deep); 
        border-bottom: 1px solid var(--border); 
        flex-direction: column; 
        padding: 12px; 
        gap: 2px;
        backdrop-filter: blur(20px);
    }
    .nav.is-open .nav__link { padding: 12px; }
    .menu-toggle { display: grid; }
    .search { max-width: none; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero__title { font-size: 30px; }
    .hero__content { padding: 40px 0 28px; }
    .detail-hero__inner { grid-template-columns: 1fr; }
    .detail-hero__cover { width: 100%; max-width: 320px; margin: 0 auto; }
    .episode-list { grid-template-columns: 1fr; }
    .planning-grid { grid-template-columns: 1fr; }
    .card { flex-basis: 200px; width: 200px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 10px; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-info .stats { justify-content: center; }
    .card--neon:hover {
        transform: translateY(-4px) scale(1.01);
    }
    .card__glow {
        opacity: 0.3;
    }
    .card__scanline {
        opacity: 0.3;
    }
    .bg-cyber-grid { display: none; }
    .cursor-glow { display: none; }
}
@media (max-width: 480px) {
    .hero { min-height: 440px; }
    .hero__title { font-size: 24px; }
    .hero__synopsis { font-size: 13px; }
    .btn { padding: 10px 14px; font-size: 12.5px; }
    .page-head h1 { font-size: 22px; }
    .card { flex-basis: 150px; width: 150px; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .notif-dropdown { position: fixed; left: 8px; right: 8px; width: auto; }
}

/* ===== Additional futuristic elements ===== */

/* Section header */
.section-h2 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-1);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.02);
}
.section-h2__count {
    background: var(--bg-elevated);
    color: var(--text-2);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    margin-left: 4px;
}

/* Season grid */
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.season-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-1);
}
.season-card:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.season-card__num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.season-card__num--scan {
    background: rgba(123, 47, 252, 0.1);
    border-color: rgba(123, 47, 252, 0.3);
    color: var(--accent-2);
    font-size: 22px;
}
.season-card__info {
    flex: 1;
    min-width: 0;
}
.season-card__title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.season-card__meta {
    font-size: 12px;
    color: var(--text-3);
    display: flex;
    gap: 10px;
    align-items: center;
}
.season-card__meta svg {
    width: 12px;
    height: 12px;
    color: var(--accent);
}
.season-card__arrow {
    width: 18px;
    height: 18px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: var(--transition);
}
.season-card:hover .season-card__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Compact detail hero */
.detail-hero--compact {
    min-height: 280px;
    padding: 20px 0 24px;
}
.detail-hero__inner--compact {
    grid-template-columns: 220px 1fr;
    gap: 24px;
}
.detail-hero__cover--sm {
    width: 220px;
}
.detail-hero__pretitle {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
}
.detail-hero__pretitle a:hover {
    text-decoration: underline;
}
.detail-hero__title--md {
    font-size: clamp(24px, 3vw, 32px);
}

/* Episode grid */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px 14px;
}
.episode-card {
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.episode-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-hover);
}
.episode-card:hover .episode-card__thumb {
    border-color: var(--accent);
}
.episode-card:hover .episode-card__play {
    opacity: 1;
    transform: scale(1);
}
.episode-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-deep);
}
.episode-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.episode-card:hover .episode-card__thumb img {
    transform: scale(1.03);
    filter: brightness(1.05);
}
.episode-card__num {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10,10,26,0.8);
    color: var(--text-1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-2);
}
.episode-card__badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}
.episode-card__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(10,10,26,0.5);
    opacity: 0;
    transition: var(--transition);
}
.episode-card__play svg {
    width: 40px;
    height: 40px;
    color: var(--bg-deep);
    background: var(--accent);
    border-radius: 999px;
    padding: 11px;
    box-shadow: 0 0 40px var(--accent-glow);
    transform: scale(0.7);
    transition: var(--transition);
}
.episode-card:hover .episode-card__play svg {
    transform: scale(1);
}
.episode-card__info {
    padding: 10px 12px 12px;
}
.episode-card__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.episode-card__date {
    font-size: 11.5px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* Chapter list */
.chapter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}
.chapter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-1);
}
.chapter-item:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 0 30px var(--accent-glow);
}
.chapter-item__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(123, 47, 252, 0.1);
    border: 1px solid rgba(123, 47, 252, 0.3);
    color: var(--accent-2);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
}
.chapter-item__info {
    flex: 1;
    min-width: 0;
}
.chapter-item__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-1);
    margin-bottom: 2px;
}
.chapter-item__meta {
    font-size: 11.5px;
    color: var(--text-3);
    display: flex;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}
.chapter-item__arrow {
    width: 16px;
    height: 16px;
    color: var(--text-3);
    flex-shrink: 0;
    transition: var(--transition);
}
.chapter-item:hover .chapter-item__arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 520px;
    max-height: 80vh;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
}
.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
}
.hero-slider__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.hero-slider__slide .hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 1;
    transform: scale(1.05);
    filter: saturate(1.05) brightness(0.85);
}
.hero-slider__slide .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, var(--bg-deep) 0%, rgba(10,10,26,0.85) 30%, rgba(10,10,26,0.35) 65%, transparent 100%),
        linear-gradient(180deg, transparent 0%, transparent 50%, var(--bg-deep) 100%);
}
.hero-slider__slide .hero__content {
    position: relative;
    z-index: 3;
    padding: 80px 0 48px;
    max-width: 680px;
}
.hero-slider__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border-2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}
.hero-slider__dot.is-active {
    background: var(--accent);
    width: 24px;
    box-shadow: 0 0 20px var(--accent-glow);
}
.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(10,10,26,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    opacity: 0;
}
.hero-slider:hover .hero-slider__arrow {
    opacity: 1;
}
.hero-slider__arrow:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}
.hero-slider__arrow svg {
    width: 22px;
    height: 22px;
}
.hero-slider__arrow--prev {
    left: 24px;
}
.hero-slider__arrow--next {
    right: 24px;
}
@media (max-width: 768px) {
    .hero-slider { min-height: 460px; }
    .hero-slider__track { min-height: 460px; }
    .hero-slider__arrow { display: none; }
    .hero-slider__slide .hero__content { padding: 40px 0 28px; }
    .hero-slider__slide .hero__title { font-size: 28px; }
    .hero-slider__dot { width: 6px; height: 6px; }
    .hero-slider__dot.is-active { width: 18px; }
}

/* ===== Empty state neon ===== */
.empty--neon svg {
    filter: drop-shadow(0 0 20px var(--accent-glow));
    opacity: 0.3;
}
.empty--neon p {
    background: linear-gradient(90deg, var(--text-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =================================================================
   2030 FUTURISTIC LAYER — HUD frames, holographic text/buttons,
   glassmorphism, ambient grid/particles, cursor glow, HUD ticker
   ================================================================= */
@keyframes holoShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Holographic gradient text */
.text-holo {
    background: var(--holo-gradient);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: holoShift 6s ease-in-out infinite;
}

/* Glitch text (usage: <span class="text-glitch" data-text="ANIMOFLIX">ANIMOFLIX</span>) */
.text-glitch {
    position: relative;
    display: inline-block;
}
.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    opacity: 0;
}
.text-glitch::before { color: var(--holo-1); -webkit-text-fill-color: var(--holo-1); }
.text-glitch::after { color: var(--holo-3); -webkit-text-fill-color: var(--holo-3); }
.text-glitch:hover::before {
    opacity: 0.8;
    animation: glitchTop 0.5s steps(2, end) infinite;
}
.text-glitch:hover::after {
    opacity: 0.8;
    animation: glitchBottom 0.5s steps(2, end) infinite reverse;
}
@keyframes glitchTop {
    0%   { transform: translate(0, 0); clip-path: inset(0 0 60% 0); }
    50%  { transform: translate(-3px, -1px); clip-path: inset(0 0 40% 0); }
    100% { transform: translate(2px, 1px); clip-path: inset(20% 0 20% 0); }
}
@keyframes glitchBottom {
    0%   { transform: translate(0, 0); clip-path: inset(60% 0 0 0); }
    50%  { transform: translate(3px, 1px); clip-path: inset(40% 0 0 0); }
    100% { transform: translate(-2px, -1px); clip-path: inset(20% 0 20% 0); }
}

/* HUD corner-bracket frame (pure CSS, zero extra markup) */
.hud-frame {
    position: relative;
    background-image:
        linear-gradient(90deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(180deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(90deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(180deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(270deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(180deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(270deg, var(--accent) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(0deg, var(--accent) var(--hud-thick), transparent var(--hud-thick));
    background-repeat: no-repeat;
    background-size:
        var(--hud-size) var(--hud-thick), var(--hud-thick) var(--hud-size),
        var(--hud-size) var(--hud-thick), var(--hud-thick) var(--hud-size),
        var(--hud-size) var(--hud-thick), var(--hud-thick) var(--hud-size),
        var(--hud-size) var(--hud-thick), var(--hud-thick) var(--hud-size);
    background-position:
        top var(--hud-gap) left var(--hud-gap), top var(--hud-gap) left var(--hud-gap),
        top var(--hud-gap) right var(--hud-gap), top var(--hud-gap) right var(--hud-gap),
        bottom var(--hud-gap) left var(--hud-gap), bottom var(--hud-gap) left var(--hud-gap),
        bottom var(--hud-gap) right var(--hud-gap), bottom var(--hud-gap) right var(--hud-gap);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    transition: filter 0.3s ease;
}
.hud-frame:hover { filter: drop-shadow(0 0 14px var(--accent-glow)); }
.hud-frame--sm { --hud-size: 12px; --hud-gap: 6px; }
.hud-frame--lg { --hud-size: 28px; --hud-gap: 16px; --hud-thick: 3px; }
.hud-frame--accent2 {
    filter: drop-shadow(0 0 6px rgba(123, 47, 252, 0.35));
    background-image:
        linear-gradient(90deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(180deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(90deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(180deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(270deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(180deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(270deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick)),
        linear-gradient(0deg, var(--accent-2) var(--hud-thick), transparent var(--hud-thick));
}
.hud-frame[data-hud-label]::after {
    content: attr(data-hud-label);
    position: absolute;
    top: 0;
    left: var(--hud-gap);
    transform: translateY(-50%);
    background: var(--bg-deep);
    padding: 0 6px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
}

/* Glassmorphism panel with animated gradient ring */
.glass-panel {
    position: relative;
    background: rgba(18, 18, 46, 0.5);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    border-radius: var(--radius);
    isolation: isolate;
}
.glass-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--holo-gradient);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: holoShift 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Holographic border button */
.btn--holo {
    position: relative;
    background: var(--bg-card);
    color: var(--text-1);
    z-index: 0;
}
.btn--holo::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -2;
    border-radius: inherit;
    background: var(--holo-gradient);
    background-size: 300% 300%;
    animation: holoShift 4s linear infinite;
}
.btn--holo::after {
    content: '';
    position: absolute;
    inset: 1.5px;
    z-index: -1;
    border-radius: inherit;
    background: var(--bg-card);
    transition: background 0.25s ease;
}
.btn--holo:hover::after { background: rgba(18, 18, 46, 0.65); }

/* Ambient cyber grid floor (place as first child of a relatively-positioned hero) */
.bg-cyber-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.bg-cyber-grid::before {
    content: '';
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: -15%;
    height: 160%;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(480px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, black 15%, transparent 78%);
    -webkit-mask-image: linear-gradient(to top, black 15%, transparent 78%);
}

/* Ambient particle canvas mount point */
.bg-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Cursor glow (JS-driven, fixed element appended to body) */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

/* HUD ticker / system readout */
.hud-ticker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.hud-ticker::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.hud-ticker .cursor-blink {
    display: inline-block;
    width: 7px;
    color: var(--accent);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Cyber loader (dual counter-rotating rings) */
.cyber-loader {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-block;
}
.cyber-loader::before,
.cyber-loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.cyber-loader::before {
    border-top-color: var(--accent);
    border-right-color: var(--accent);
    animation: spin 0.9s linear infinite;
}
.cyber-loader::after {
    inset: 8px;
    border-bottom-color: var(--accent-2);
    border-left-color: var(--accent-2);
    animation: spin 1.3s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Neon toggle switch */
.toggle--neon {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle--neon input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}
.toggle--neon .track {
    position: absolute;
    inset: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    transition: var(--transition);
}
.toggle--neon .thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-2);
    transition: var(--transition);
}
.toggle--neon input:checked ~ .track {
    background: var(--accent-dim);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.toggle--neon input:checked ~ .thumb {
    left: 23px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

@media (max-width: 768px) {
    .bg-cyber-grid { display: none; }
    .cursor-glow { display: none; }
}

/* ===== Motion & accessibility floor ===== */
@media (prefers-reduced-motion: reduce) {
    .text-holo,
    .glass-panel::before,
    .btn--holo::before,
    .hud-ticker::before,
    .cyber-loader::before,
    .cyber-loader::after {
        animation: none !important;
    }
    .text-glitch:hover::before,
    .text-glitch:hover::after { animation: none !important; opacity: 0 !important; }
    .card--tilt { transform: none !important; }
    .card__holo-sweep { transition: none !important; }
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =================================================================
   HOLOGRAM COVER PROJECTOR (v2 — WIDE / LANDSCAPE) — for fiche.php
   Designed for horizontal covers (1280x720 / 16:9).
   Add this block to the end of your main stylesheet.
   ================================================================= */

/* Ambient floating particles inside the hero background */
.bg-ambient-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.bg-ambient-particles span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    opacity: 0;
    animation-name: ambientFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@keyframes ambientFloat {
    0%   { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    12%  { opacity: 0.55; }
    50%  { transform: translateY(-34px) translateX(14px) scale(1.1); opacity: 0.75; }
    88%  { opacity: 0.4; }
    100% { transform: translateY(-70px) translateX(-10px) scale(0.8); opacity: 0; }
}

/* Wrapper for the whole cinematic hero panel (replaces .detail-hero__inner) */
.hero-panel {
    position: relative;
    z-index: 2;
    padding-top: 28px;
}

/* Full-width hologram projector for landscape covers */
.cover-hologram--wide {
    position: relative;
    width: 100%;
}
.cover-hologram--wide .cover-hologram__glow {
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: var(--radius-lg);
    background: var(--holo-gradient);
    background-size: 300% 300%;
    filter: blur(22px);
    opacity: 0.5;
    animation: holoShift 5s ease-in-out infinite;
}
.cover-hologram--wide .cover-hologram__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 62vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-2);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(0, 212, 255, 0.15),
        0 0 80px rgba(0, 212, 255, 0.1);
    background: var(--bg-deep);
}
.cover-hologram--wide .cover-hologram__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.03);
}
/* Sweeping hologram scanline over the cover */
.cover-hologram__scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.22) 48%, transparent 56%);
    background-size: 100% 240%;
    background-position: 0 -70%;
    animation: coverScan 3.8s linear infinite;
    mix-blend-mode: screen;
}
@keyframes coverScan {
    0%   { background-position: 0 -70%; }
    100% { background-position: 0 170%; }
}
/* Faint holographic scanline texture, static */
.cover-hologram__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 212, 255, 0.05) 0px,
        rgba(0, 212, 255, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.45;
}
/* Bottom vignette so the panel blends into the overlapping glass info card */
.cover-hologram__vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 26, 0.55) 85%, rgba(10, 10, 26, 0.85) 100%);
}
/* Projector base — pulsing rings under the panel */
.cover-hologram__base {
    position: relative;
    height: 0;
    z-index: 0;
}
.cover-hologram__base::before,
.cover-hologram__base::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%) scale(0.6);
    width: 60%;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: ringPulse 2.8s ease-out infinite;
}
.cover-hologram__base::after {
    width: 38%;
    animation-delay: 1.4s;
}
@keyframes ringPulse {
    0%   { transform: translateX(-50%) scale(0.55); opacity: 0.55; }
    75%  { opacity: 0.1; }
    100% { transform: translateX(-50%) scale(1.6); opacity: 0; }
}
/* Small particles drifting up off the bottom edge of the panel */
.cover-hologram__particles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 160px;
    pointer-events: none;
    z-index: 0;
}
.cover-hologram__particles span {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 2px #fff;
    opacity: 0;
    animation-name: particleRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes particleRise {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    12%  { opacity: 1; }
    85%  { opacity: 0.5; }
    100% { transform: translateY(-160px) scale(1); opacity: 0; }
}

/* Glass info card that overlaps the bottom of the hologram panel */
.hero-panel__info {
    position: relative;
    z-index: 5;
    margin: -64px 16px 0;
    padding: 28px 32px 26px;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .hero-panel__info { margin: -48px 8px 0; padding: 22px 22px 20px; }
}
@media (max-width: 768px) {
    .cover-hologram--wide .cover-hologram__frame { max-height: none; }
    .hero-panel__info { margin: -32px 0 0; padding: 18px 18px 16px; }
    .cover-hologram__particles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cover-hologram--wide .cover-hologram__glow,
    .cover-hologram__scan,
    .cover-hologram__base::before,
    .cover-hologram__base::after,
    .cover-hologram__particles span,
    .bg-ambient-particles span {
        animation: none !important;
    }
    .cover-hologram__base::before,
    .cover-hologram__base::after { opacity: 0.3; }
}

/* =================================================================
   HOLOGRAM COVER PROJECTOR (v2 — WIDE / LANDSCAPE) — for fiche.php
   Designed for horizontal covers (1280x720 / 16:9).
   Add this block to the end of your main stylesheet.
   ================================================================= */

/* Ambient floating particles inside the hero background */
.bg-ambient-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.bg-ambient-particles span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    opacity: 0;
    animation-name: ambientFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@keyframes ambientFloat {
    0%   { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    12%  { opacity: 0.55; }
    50%  { transform: translateY(-34px) translateX(14px) scale(1.1); opacity: 0.75; }
    88%  { opacity: 0.4; }
    100% { transform: translateY(-70px) translateX(-10px) scale(0.8); opacity: 0; }
}

/* Wrapper for the whole cinematic hero panel (replaces .detail-hero__inner) */
.hero-panel {
    position: relative;
    z-index: 2;
    padding-top: 28px;
}

/* Full-width hologram projector for landscape covers */
.cover-hologram--wide {
    position: relative;
    width: 100%;
}
.cover-hologram--wide .cover-hologram__glow {
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: var(--radius-lg);
    background: var(--holo-gradient);
    background-size: 300% 300%;
    filter: blur(22px);
    opacity: 0.5;
    animation: holoShift 5s ease-in-out infinite;
}
.cover-hologram--wide .cover-hologram__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 62vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-2);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(0, 212, 255, 0.15),
        0 0 80px rgba(0, 212, 255, 0.1);
    background: var(--bg-deep);
}
.cover-hologram--wide .cover-hologram__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.03);
}
/* Sweeping hologram scanline over the cover */
.cover-hologram__scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.22) 48%, transparent 56%);
    background-size: 100% 240%;
    background-position: 0 -70%;
    animation: coverScan 3.8s linear infinite;
    mix-blend-mode: screen;
}
@keyframes coverScan {
    0%   { background-position: 0 -70%; }
    100% { background-position: 0 170%; }
}
/* Faint holographic scanline texture, static */
.cover-hologram__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 212, 255, 0.05) 0px,
        rgba(0, 212, 255, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.45;
}
/* Bottom vignette so the panel blends into the overlapping glass info card */
.cover-hologram__vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 26, 0.55) 85%, rgba(10, 10, 26, 0.85) 100%);
}
/* Projector base — pulsing rings under the panel */
.cover-hologram__base {
    position: relative;
    height: 0;
    z-index: 0;
}
.cover-hologram__base::before,
.cover-hologram__base::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%) scale(0.6);
    width: 60%;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: ringPulse 2.8s ease-out infinite;
}
.cover-hologram__base::after {
    width: 38%;
    animation-delay: 1.4s;
}
@keyframes ringPulse {
    0%   { transform: translateX(-50%) scale(0.55); opacity: 0.55; }
    75%  { opacity: 0.1; }
    100% { transform: translateX(-50%) scale(1.6); opacity: 0; }
}
/* Small particles drifting up off the bottom edge of the panel */
.cover-hologram__particles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 160px;
    pointer-events: none;
    z-index: 0;
}
.cover-hologram__particles span {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 2px #fff;
    opacity: 0;
    animation-name: particleRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes particleRise {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    12%  { opacity: 1; }
    85%  { opacity: 0.5; }
    100% { transform: translateY(-160px) scale(1); opacity: 0; }
}

/* Glass info card that overlaps the bottom of the hologram panel */
.hero-panel__info {
    position: relative;
    z-index: 5;
    margin: -64px 16px 0;
    padding: 28px 32px 26px;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .hero-panel__info { margin: -48px 8px 0; padding: 22px 22px 20px; }
}
@media (max-width: 768px) {
    .cover-hologram--wide .cover-hologram__frame { max-height: none; }
    .hero-panel__info { margin: -32px 0 0; padding: 18px 18px 16px; }
    .cover-hologram__particles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cover-hologram--wide .cover-hologram__glow,
    .cover-hologram__scan,
    .cover-hologram__base::before,
    .cover-hologram__base::after,
    .cover-hologram__particles span,
    .bg-ambient-particles span {
        animation: none !important;
    }
    .cover-hologram__base::before,
    .cover-hologram__base::after { opacity: 0.3; }
}

/* =================================================================
   COMPACT VARIANT — for saison.php (detail-hero--compact)
   ================================================================= */
.hero-panel--compact {
    padding-top: 16px;
}
.cover-hologram--sm .cover-hologram__frame {
    max-height: 34vh;
}
.hero-panel__info--compact {
    margin: -40px 16px 0;
    padding: 18px 24px 20px;
}
@media (max-width: 1024px) {
    .hero-panel__info--compact { margin: -32px 8px 0; padding: 16px 18px 18px; }
}
@media (max-width: 768px) {
    .cover-hologram--sm .cover-hologram__frame { max-height: none; }
    .hero-panel__info--compact { margin: -24px 0 0; padding: 14px 16px 16px; }
}
/* =================================================================
   HOLOGRAM COVER PROJECTOR (v2 — WIDE / LANDSCAPE) — for fiche.php
   Designed for horizontal covers (1280x720 / 16:9).
   Add this block to the end of your main stylesheet.
   ================================================================= */

/* Ambient floating particles inside the hero background */
.bg-ambient-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}
.bg-ambient-particles span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    opacity: 0;
    animation-name: ambientFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@keyframes ambientFloat {
    0%   { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
    12%  { opacity: 0.55; }
    50%  { transform: translateY(-34px) translateX(14px) scale(1.1); opacity: 0.75; }
    88%  { opacity: 0.4; }
    100% { transform: translateY(-70px) translateX(-10px) scale(0.8); opacity: 0; }
}

/* Wrapper for the whole cinematic hero panel (replaces .detail-hero__inner) */
.hero-panel {
    position: relative;
    z-index: 2;
    padding-top: 28px;
}

/* Full-width hologram projector for landscape covers */
.cover-hologram--wide {
    position: relative;
    width: 100%;
}
.cover-hologram--wide .cover-hologram__glow {
    position: absolute;
    inset: -3px;
    z-index: 0;
    border-radius: var(--radius-lg);
    background: var(--holo-gradient);
    background-size: 300% 300%;
    filter: blur(22px);
    opacity: 0.5;
    animation: holoShift 5s ease-in-out infinite;
}
.cover-hologram--wide .cover-hologram__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 62vh;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-2);
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(0, 212, 255, 0.15),
        0 0 80px rgba(0, 212, 255, 0.1);
    background: var(--bg-deep);
}
.cover-hologram--wide .cover-hologram__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.03);
}
/* Sweeping hologram scanline over the cover */
.cover-hologram__scan {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.22) 48%, transparent 56%);
    background-size: 100% 240%;
    background-position: 0 -70%;
    animation: coverScan 3.8s linear infinite;
    mix-blend-mode: screen;
}
@keyframes coverScan {
    0%   { background-position: 0 -70%; }
    100% { background-position: 0 170%; }
}
/* Faint holographic scanline texture, static */
.cover-hologram__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 212, 255, 0.05) 0px,
        rgba(0, 212, 255, 0.05) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.45;
}
/* Bottom vignette so the panel blends into the overlapping glass info card */
.cover-hologram__vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 26, 0.55) 85%, rgba(10, 10, 26, 0.85) 100%);
}
/* Projector base — pulsing rings under the panel */
.cover-hologram__base {
    position: relative;
    height: 0;
    z-index: 0;
}
.cover-hologram__base::before,
.cover-hologram__base::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translateX(-50%) scale(0.6);
    width: 60%;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    animation: ringPulse 2.8s ease-out infinite;
}
.cover-hologram__base::after {
    width: 38%;
    animation-delay: 1.4s;
}
@keyframes ringPulse {
    0%   { transform: translateX(-50%) scale(0.55); opacity: 0.55; }
    75%  { opacity: 0.1; }
    100% { transform: translateX(-50%) scale(1.6); opacity: 0; }
}
/* Small particles drifting up off the bottom edge of the panel */
.cover-hologram__particles {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 160px;
    pointer-events: none;
    z-index: 0;
}
.cover-hologram__particles span {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent), 0 0 2px #fff;
    opacity: 0;
    animation-name: particleRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes particleRise {
    0%   { transform: translateY(0) scale(0.5); opacity: 0; }
    12%  { opacity: 1; }
    85%  { opacity: 0.5; }
    100% { transform: translateY(-160px) scale(1); opacity: 0; }
}

/* Glass info card that overlaps the bottom of the hologram panel */
.hero-panel__info {
    position: relative;
    z-index: 5;
    margin: -64px 16px 0;
    padding: 28px 32px 26px;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .hero-panel__info { margin: -48px 8px 0; padding: 22px 22px 20px; }
}
@media (max-width: 768px) {
    .cover-hologram--wide .cover-hologram__frame { max-height: none; }
    .hero-panel__info { margin: -32px 0 0; padding: 18px 18px 16px; }
    .cover-hologram__particles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cover-hologram--wide .cover-hologram__glow,
    .cover-hologram__scan,
    .cover-hologram__base::before,
    .cover-hologram__base::after,
    .cover-hologram__particles span,
    .bg-ambient-particles span {
        animation: none !important;
    }
    .cover-hologram__base::before,
    .cover-hologram__base::after { opacity: 0.3; }
}

/* =================================================================
   COMPACT VARIANT — for saison.php (detail-hero--compact)
   ================================================================= */
.hero-panel--compact {
    padding-top: 16px;
}
.cover-hologram--sm .cover-hologram__frame {
    max-height: 34vh;
}
.hero-panel__info--compact {
    margin: -40px 16px 0;
    padding: 18px 24px 20px;
}
@media (max-width: 1024px) {
    .hero-panel__info--compact { margin: -32px 8px 0; padding: 16px 18px 18px; }
}
@media (max-width: 768px) {
    .cover-hologram--sm .cover-hologram__frame { max-height: none; }
    .hero-panel__info--compact { margin: -24px 0 0; padding: 14px 16px 16px; }
}

/* =================================================================
   MODERN PLAYER PAGE — for episode.php
   ================================================================= */

/* HUD status bar above the player */
.player-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px 14px;
    flex-wrap: wrap;
}
.player-hud-bar__sep {
    color: var(--text-3);
    margin: 0 2px;
    opacity: 0.6;
}
.player-hud-bar .hud-ticker a {
    color: var(--accent);
    transition: var(--transition);
}
.player-hud-bar .hud-ticker a:hover {
    color: var(--text-1);
    text-shadow: 0 0 20px var(--accent-glow);
}
.lang-chip {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}
.lang-chip--vf {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: var(--success);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.15);
}
.lang-chip--vostfr {
    background: rgba(103, 232, 249, 0.1);
    border: 1px solid rgba(103, 232, 249, 0.35);
    color: var(--info);
    box-shadow: 0 0 15px rgba(103, 232, 249, 0.15);
}

/* Player shell wrapping the iframe/video */
.player-shell {
    position: relative;
    padding: 10px;
    border-radius: var(--radius-lg);
}
.player-shell__glow {
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: inherit;
    background: var(--holo-gradient);
    background-size: 300% 300%;
    filter: blur(20px);
    opacity: 0.4;
    animation: holoShift 6s ease-in-out infinite;
}
.player-shell .player-wrap {
    position: relative;
    border-radius: var(--radius);
    margin: 0;
    box-shadow: none;
    border: 1px solid var(--border-2);
}
.player-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--bg-deep);
    color: var(--text-2);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
}
.player-loading.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.player-theatre-toggle {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 6;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(10, 10, 26, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-2);
    color: var(--text-1);
    display: grid;
    place-items: center;
    transition: var(--transition);
    opacity: 0;
}
.player-shell:hover .player-theatre-toggle {
    opacity: 1;
}
.player-theatre-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.player-theatre-toggle svg {
    width: 17px;
    height: 17px;
}
.player-theatre-toggle .icon-collapse { display: none; }
.player-page.is-theatre .player-theatre-toggle .icon-expand { display: none; }
.player-page.is-theatre .player-theatre-toggle .icon-collapse { display: block; }
.player-page.is-theatre .player-theatre-toggle { opacity: 1; }

/* Toolbar row (lang switch + servers) */
.player-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}
.lang-switch--neon {
    margin-bottom: 0;
    flex: 1 1 260px;
    max-width: 420px;
}
.lang-switch--neon button.is-active {
    box-shadow: 0 0 20px var(--accent-glow);
}
.player-servers--neon {
    margin: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
}
.player-servers--neon .server-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.player-servers--neon .server-btn.is-active {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Prev / all / next navigation bar */
.episode-nav--bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    margin-bottom: 4px;
}
.episode-nav--bar .btn {
    flex: 0 1 auto;
}
.episode-nav--bar .btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}
.episode-nav__all {
    flex: 0 0 auto;
}
.key-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    opacity: 0.6;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 5px;
    margin-left: 2px;
}
@media (max-width: 640px) {
    .key-hint { display: none; }
    .episode-nav--bar { flex-wrap: wrap; }
    .episode-nav--bar .btn { flex: 1 1 auto; justify-content: center; }
    .episode-nav__all { order: 3; width: 100%; justify-content: center; }
}

/* Episode sidebar list */
.ep-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}
.ep-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-2);
    border-left: 2px solid transparent;
    transition: var(--transition);
}
.ep-list__item:hover {
    background: var(--accent-dim);
    color: var(--text-1);
    transform: translateX(2px);
}
.ep-list__item.is-active {
    background: var(--accent-dim);
    border-left-color: var(--accent);
    color: var(--text-1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05) inset;
}
.ep-list__num {
    flex: 0 0 26px;
    font-weight: 700;
    text-align: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--text-3);
}
.ep-list__item.is-active .ep-list__num {
    color: var(--accent);
}
.ep-list__title {
    flex: 1;
    font-size: 12.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ep-list__badges {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}
.ep-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.ep-dot--vf { background: var(--success); box-shadow: 0 0 6px var(--success); }
.ep-dot--vostfr { background: var(--info); box-shadow: 0 0 6px var(--info); }

/* Theatre mode */
.player-page.is-theatre .player-info__side {
    display: none;
}
.player-page.is-theatre .player-info {
    grid-template-columns: 1fr;
}
.player-page.is-theatre .player-shell {
    max-width: 1200px;
    margin: 0 auto;
}
.player-page.is-theatre .player-toolbar,
.player-page.is-theatre .episode-nav--bar {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
    .player-shell__glow { animation: none !important; }
}
.ep-badges {
    position: absolute;
    left: 3px;
    bottom: 3px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.pill.sub {
    background: rgb(26 167 232 / 66%);
}
.pill.dub {
    background: rgba(210, 75, 110, .92);
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    color: #fff;
    line-height: 1.2;
    border-radius: 4px;
}