

:root {
    --bg-dark: #0b0b10;
    --bg-surface: #13131c;
    --bg-card: #1a1a28;
    --border: rgba(138,109,233,.12);
    --border-focus: rgba(138,109,233,.4);
    --glow: rgba(138,109,233,.08);
    --primary: #8a6de9;
    --primary-light: #a78bfa;
    --primary-dark: #6c4fd6;
    --secondary: #4d9f8a;
    --secondary-light: #5ec4ab;
    --text: #e2e2ef;
    --text-muted: #8a8a9e;
    --error: #f44336;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: 110px; }

body {
    font-family: 'PT Mono', monospace;
    background: var(--bg-dark); color: var(--text);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.body-menu-open { overflow: hidden; }
::selection { background: rgba(138,109,233,.3); color: #fff; }
a { text-decoration: none; color: inherit; }

.bg {
    position: fixed; inset: 0; z-index: 0; overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(30,30,48,.6), var(--bg-dark) 70%);
}
.bg-grid {
    position: absolute; inset: -50%;
    background-image:
        linear-gradient(rgba(138,109,233,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138,109,233,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.bg-glow {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35;
    animation: bgFloat 14s ease-in-out infinite;
}
.bg-glow--1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(138,109,233,.18), transparent 70%); top: -10%; left: -5%; }
.bg-glow--2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(77,159,138,.14), transparent 70%); bottom: -10%; right: -5%; animation-delay: -7s; }
.bg-glow--3 { width: 350px; height: 350px; background: radial-gradient(circle, rgba(138,109,233,.1), transparent 70%); top: 40%; left: 60%; animation-delay: -3s; }

@keyframes bgFloat {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-25px) scale(1.06); }
    66% { transform: translate(-25px,20px) scale(.94); }
}

.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background:
        linear-gradient(180deg, rgba(11,11,16,.96), rgba(11,11,16,.86)),
        radial-gradient(circle at 18% -20%, rgba(138,109,233,.24), transparent 56%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(138,109,233,.18);
    transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .3s, border-color .3s;
}
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: max(20px, calc(50% - 640px));
    right: max(20px, calc(50% - 640px));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138,109,233,.7), rgba(77,159,138,.5), transparent);
    pointer-events: none;
}
.site-header.scrolled {
    box-shadow: 0 10px 36px rgba(0,0,0,.45), 0 2px 0 rgba(138,109,233,.24);
    border-color: rgba(138,109,233,.28);
}
.site-header.header-hidden { transform: translateY(-100%); }

.header-inner {
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 clamp(14px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: 0;
}
.header-main-row {
    width: 100%;
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1vw, 14px);
    padding: 6px 0;
}
.header-nav-shell {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    padding: 7px 0 7px 8px;
    border-left: 1px solid rgba(138,109,233,.12);
}
.header-nav-meta {
    display: none;
    flex-direction: column;
    gap: 3px;
    min-width: 152px;
    padding: 6px 11px;
    border-radius: 11px;
    border: 1px solid rgba(138,109,233,.2);
    background: linear-gradient(135deg, rgba(138,109,233,.08), rgba(77,159,138,.06));
}
.header-nav-meta-title {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #d7ccff;
    line-height: 1.15;
}
.header-nav-meta-subtitle {
    font-size: .66rem;
    color: rgba(226,226,239,.68);
    line-height: 1.2;
}
.header-side {
    display: flex;
    align-items: center;
    min-width: 0;
}
.header-side--left {
    min-width: 0;
}
.header-side--right {
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
}
.header-brand-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}
.header-controls-panel {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(6px, .55vw, 10px);
    min-width: 0;
    max-width: 100%;
    padding: 4px 6px 4px 4px;
    border-radius: 18px;
    border: 1px solid rgba(138,109,233,.24);
    background:
        radial-gradient(circle at 100% 0%, rgba(94,196,171,.12), transparent 36%),
        linear-gradient(145deg, rgba(17,17,26,.94), rgba(22,21,34,.86)),
        radial-gradient(circle at 0% 0%, rgba(138,109,233,.18), transparent 58%);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 28px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
    overflow: visible;
}
.header-controls-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(167,139,250,.45), rgba(94,196,171,.28), rgba(138,109,233,.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .55;
}
.header-controls-panel::after {
    display: none;
}
.header-account {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    margin-left: 0;
    padding-left: 12px;
    border-left: none;
}
.header-account::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(167,139,250,.42), transparent);
    pointer-events: none;
}

.header-brand {
    display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0;
    max-width: 100%;
    padding: 6px 10px 6px 6px;
    border-radius: 14px;
    border: 1px solid transparent;
    transition: border-color .25s, background .25s;
}
.header-brand:hover {
    border-color: rgba(138,109,233,.24);
    background: linear-gradient(135deg, rgba(138,109,233,.12), rgba(138,109,233,.04));
}
.header-logo-wrap {
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(138,109,233,.2), rgba(77,159,138,.16));
    border: 1px solid rgba(138,109,233,.32);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
}
.header-logo {
    width: 32px; height: 32px; border-radius: 9px; object-fit: cover;
    border: 1px solid rgba(255,255,255,.24);
    transition: transform .25s, box-shadow .25s;
}
.header-logo:hover {
    transform: scale(1.06);
    box-shadow: 0 0 0 3px rgba(138,109,233,.22), 0 0 18px rgba(138,109,233,.33);
}
.header-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    gap: 2px;
}
.header-brand-badges {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}
.header-title {
    font-family: 'Press Start 2P', monospace; font-size: .62rem;
    letter-spacing: .8px; color: var(--text);
    white-space: nowrap;
    line-height: 1.35;
    padding-top: 1px;
}
.header-subtitle {
    font-size: .64rem;
    color: rgba(226,226,239,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(138,109,233,.28);
    background: rgba(138,109,233,.1);
    color: #d7ccff;
    font-size: .61rem;
    letter-spacing: .2px;
    text-transform: uppercase;
    white-space: nowrap;
}
.header-context-pill i {
    font-size: .56rem;
    color: var(--primary-light);
}
.header-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(244,67,54,.14);
    border: 1px solid rgba(244,67,54,.34);
    color: #ffb3ab;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.header-nav {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 2;
}
.header-nav::-webkit-scrollbar {
    display: none;
}
.header-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 2px;
    min-width: 0;
}
.header-nav-item {
    min-width: auto;
    flex: 0 0 auto;
}
.header-nav-link {
    position: relative;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid transparent;
    background: transparent;
    transition: color .25s, background .25s, border-color .25s, transform .2s;
    flex-shrink: 0;
}
.header-nav-link i {
    font-size: .63rem;
    opacity: .78;
    transition: opacity .25s, color .25s;
}
.header-nav-label {
    line-height: 1;
}
.header-nav-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 1px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(244,67,54,.36);
    background: rgba(244,67,54,.14);
    color: #ffb3ab;
    font-size: .56rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .25px;
    text-transform: uppercase;
}
.header-nav-live-text {
    line-height: 1;
}
.header-nav-link:hover {
    color: var(--text);
    border-color: rgba(138,109,233,.28);
    background: linear-gradient(135deg, rgba(138,109,233,.12), rgba(138,109,233,.03));
    transform: translateY(-1px);
}
.header-nav-link:hover i { opacity: 1; }
.header-nav-link::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-light));
    border-radius: 1px;
    transform: translateX(-50%); transition: width .3s cubic-bezier(.4,0,.2,1);
}
.header-nav-link:hover::after { width: 60%; }
.header-nav-link.active { color: var(--text); }
.header-nav-link.active i { opacity: 1; }
.header-nav-link.active::after {
    width: 70%;
    box-shadow: 0 0 10px rgba(138,109,233,.6), 0 0 16px rgba(77,159,138,.18);
}
.header-nav-link.active {
    border-color: rgba(138,109,233,.35);
    background: linear-gradient(135deg, rgba(138,109,233,.2), rgba(77,159,138,.08));
}

.live-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #f44336; margin-left: 4px; vertical-align: middle;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244,67,54,.6); }
    50% { box-shadow: 0 0 0 5px rgba(244,67,54,0); }
}
.header-live-pill .live-dot,
.mobile-live-pill .live-dot,
.header-nav-live .live-dot {
    margin-left: 0;
}
.header-nav-live .live-dot {
    width: 6px;
    height: 6px;
}

.header-actions {
    display: flex; align-items: center; gap: 7px; flex-shrink: 0;
    min-width: 0;
    padding: 0;
}
.header-action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(145deg, rgba(20,20,30,.9), rgba(30,29,45,.78));
    color: #c9cae6;
    font-size: .92rem; transition: all .25s;
    border: 1px solid rgba(138,109,233,.24); cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.header-action-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(138,109,233,.34), rgba(77,159,138,.18));
    border-color: rgba(138,109,233,.46);
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 8px 18px rgba(11,11,16,.36);
}

.header-actions .btn-yt {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(140deg, #cf3f36, #9f1f1a);
    color: #fff;
    font-size: .92rem;
    transition: all .25s;
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.header-actions .btn-yt:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 20px rgba(196,48,43,.42);
    color: #fff;
}

.header-user-dropdown { position: relative; z-index: 200; }
.header-user-toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 4px 11px 4px 4px; border-radius: 11px;
    background: linear-gradient(145deg, rgba(27,27,40,.9), rgba(34,31,50,.84));
    border: 1px solid rgba(138,109,233,.3);
    color: var(--text); cursor: pointer; font-family: inherit;
    font-size: .82rem; transition: all .25s;
    max-width: 148px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.header-user-toggle:hover {
    border-color: rgba(167,139,250,.52);
    background: linear-gradient(145deg, rgba(40,36,60,.94), rgba(36,46,58,.88));
    box-shadow: 0 0 14px rgba(138,109,233,.22);
}
.header-user-dropdown.open .header-user-toggle {
    border-color: var(--primary-light);
    box-shadow: 0 0 18px rgba(138,109,233,.3);
}
.header-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-size: .72rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(138,109,233,.25);
}
.header-username {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}
.header-chevron {
    font-size: .55rem; color: var(--text-muted);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.header-user-dropdown.open .header-chevron { transform: rotate(180deg); }

.header-dropdown-menu {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 9999;
    min-width: 250px; padding: 10px;
    background: rgba(19,19,28,.96); border: 1px solid rgba(138,109,233,.24);
    border-radius: 14px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 18px 48px rgba(0,0,0,.55), 0 0 0 1px rgba(138,109,233,.09);
    opacity: 0; transform: translateY(-6px) scale(.97); pointer-events: none;
    transform-origin: top right;
    transition: opacity .2s ease, transform .25s cubic-bezier(.4,0,.2,1);
}
.header-user-dropdown.open .header-dropdown-menu {
    opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}

.header-dropdown-user {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px 13px;
}
.header-dropdown-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff; font-size: .85rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(138,109,233,.3);
}
.header-dropdown-user-info { min-width: 0; }
.header-dropdown-name {
    display: block; font-size: .88rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.header-dropdown-role {
    display: inline-block; margin-top: 2px;
    padding: 1px 7px; border-radius: 4px;
    font-size: .68rem; font-weight: 600; letter-spacing: .3px;
    background: rgba(138,109,233,.12); color: var(--primary-light);
}

.header-dropdown-divider {
    height: 1px; margin: 4px 8px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.header-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 10px;
    font-size: .84rem; color: var(--text-muted); transition: all .2s;
}
.header-dropdown-item:hover {
    background: linear-gradient(135deg, rgba(138,109,233,.14), rgba(138,109,233,.04));
    color: var(--text);
    transform: translateX(2px);
}
.header-dropdown-item i {
    width: 18px; text-align: center; font-size: .78rem;
    opacity: .7; transition: opacity .2s;
}
.header-dropdown-item:hover i { opacity: 1; }
.header-dropdown-item--danger { color: var(--text-muted); }
.header-dropdown-item--danger:hover {
    background: rgba(244,67,54,.08); color: #f44336;
}
.header-dropdown-item--danger:hover i { color: #f44336; }

.header-auth-buttons {
    display: flex; align-items: center; gap: 8px;
}
.header-auth-btn {
    padding: 7px 14px; border-radius: 10px;
    font-size: .8rem; font-weight: 500; white-space: nowrap;
    color: var(--text-muted); transition: all .25s;
    border: 1px solid rgba(138,109,233,.2);
    background: rgba(138,109,233,.06);
}
.header-auth-btn:hover {
    color: var(--text);
    background: rgba(138,109,233,.14);
    border-color: rgba(138,109,233,.35);
}
.header-auth-btn--accent {
    background: linear-gradient(135deg, rgba(138,109,233,.28), rgba(77,159,138,.18));
    color: #ddd6ff;
    border-color: rgba(138,109,233,.4);
}
.header-auth-btn--accent:hover {
    background: linear-gradient(135deg, rgba(138,109,233,.36), rgba(77,159,138,.24));
    border-color: var(--primary-light);
    color: #fff;
}

.header-hamburger {
    display: none; position: relative;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(138,109,233,.08);
    border: 1px solid rgba(138,109,233,.24);
    cursor: pointer; padding: 0;
}
.hamburger-line {
    display: block; position: absolute; left: 10px;
    width: 20px; height: 2px; background: var(--text);
    border-radius: 1px; transition: all .3s cubic-bezier(.4,0,.2,1);
}
.hamburger-line:nth-child(1) { top: 13px; }
.hamburger-line:nth-child(2) { top: 19px; }
.hamburger-line:nth-child(3) { top: 25px; }
.header-hamburger.active .hamburger-line:nth-child(1) {
    top: 19px; transform: rotate(45deg);
}
.header-hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.header-hamburger.active .hamburger-line:nth-child(3) {
    top: 19px; transform: rotate(-45deg);
}

.header-search {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    opacity: 0;
    transition:
        grid-template-rows .34s cubic-bezier(.4,0,.2,1),
        opacity .18s ease,
        border-top-width .25s,
        padding .34s cubic-bezier(.4,0,.2,1);
    border-top: 0 solid rgba(138,109,233,.2);
}
.header-search.open {
    grid-template-rows: 1fr;
    opacity: 1;
    border-top-width: 1px;
}
.header-search-inner {
    width: 100%;
    overflow: hidden;
    min-height: 0;
    max-width: 1360px;
    margin: 0 auto;
    padding: 8px 24px;
}
.header-search-form {
    display: flex; align-items: center; gap: 8px;
    height: 58px;
    border-radius: 14px;
    border: 1px solid rgba(138,109,233,.22);
    background: linear-gradient(135deg, rgba(19,19,28,.84), rgba(11,11,16,.92));
    padding: 0 12px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.header-search-form:focus-within {
    border-color: rgba(138,109,233,.5);
    box-shadow: 0 0 0 3px rgba(138,109,233,.17);
    background: linear-gradient(135deg, rgba(22,22,32,.9), rgba(12,12,18,.95));
}
.header-search-icon { color: var(--text-muted); font-size: .92rem; }
.header-search-input {
    flex: 1; background: transparent; border: none; outline: none;
    color: var(--text); font-family: inherit; font-size: .9rem;
    padding: 0 2px;
    -webkit-appearance: none;
    appearance: none;
}
.header-search-input::placeholder { color: var(--text-muted); }
.header-search-input:focus,
.header-search-input:focus-visible {
    outline: none;
    box-shadow: none;
}
.header-search-form:focus-within .header-search-icon {
    color: var(--primary-light);
}
.header-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(138,109,233,.34);
    background: linear-gradient(135deg, rgba(138,109,233,.26), rgba(77,159,138,.16));
    color: #f2ecff;
    cursor: pointer;
    transition: border-color .2s, transform .2s, color .2s;
}
.header-search-submit:hover {
    border-color: rgba(138,109,233,.55);
    color: #fff;
    transform: translateX(1px);
}
.header-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(138,109,233,.1);
    border: 1px solid rgba(138,109,233,.22);
    color: var(--text-muted);
    font-size: .88rem;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    line-height: 1; transition: color .2s;
}
.header-search-close:hover {
    color: var(--text);
    border-color: rgba(138,109,233,.38);
}
.header-brand:focus-visible,
.header-nav-link:focus-visible,
.header-action-btn:focus-visible,
.header-user-toggle:focus-visible,
.header-auth-btn:focus-visible,
.header-dropdown-item:focus-visible,
.header-hamburger:focus-visible,
.header-search-submit:focus-visible,
.header-search-close:focus-visible,
.mobile-menu-group a:focus-visible,
.mobile-menu > a:focus-visible,
.mobile-menu-brand:focus-visible,
.mobile-search-input:focus-visible,
.mobile-search-btn:focus-visible {
    outline: 2px solid rgba(167,139,250,.85);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(138,109,233,.2);
}

.header-accent-line {
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: accentSlide 4s linear infinite;
    opacity: .6;
}
@keyframes accentSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 32px; border-radius: 12px; font-size: .95rem; font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; cursor: pointer;
    box-shadow: 0 4px 20px rgba(138,109,233,.3);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
    position: relative; overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(138,109,233,.45); color: #fff;
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,.12), transparent);
    transform: translateX(-100%); transition: transform .5s;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 32px; border-radius: 12px; font-size: .95rem; font-weight: 600;
    background: rgba(138,109,233,.04); color: var(--text);
    border: 1px solid var(--border); cursor: pointer;
    transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.btn-outline:hover {
    border-color: var(--primary); background: rgba(138,109,233,.1);
    color: var(--primary-light); transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(138,109,233,.15);
}
.btn-outline.active {
    border-color: var(--primary); background: rgba(138,109,233,.15);
    color: var(--primary-light);
}

.section { position: relative; z-index: 1; padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}
.section-title {
    font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 12px;
}
.section-title i { color: var(--primary-light); }

.page-header {
    position: relative; z-index: 1;
    padding: 120px 24px 60px; text-align: center;
}
.page-header-inner {
    max-width: 900px; margin: 0 auto;
    animation: fadeUp .6s cubic-bezier(.16,1,.3,1) both;
}
.page-header-icon {
    width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 8px 24px rgba(138,109,233,.3);
}
.page-header-title {
    font-family: 'Press Start 2P', monospace; font-size: 1.5rem;
    line-height: 1.5; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header-desc {
    color: var(--text-muted); font-size: 1rem; line-height: 1.7;
    max-width: 600px; margin: 0 auto;
}
.page-header-back {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: .88rem; margin-bottom: 16px;
    transition: color .25s;
}
.page-header-back:hover { color: var(--primary-light); }

.content-card {
    background: linear-gradient(160deg, rgba(26,26,40,.8), rgba(19,19,28,.9));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; position: relative;
    transition: transform .4s cubic-bezier(.175,.885,.32,1.275), box-shadow .4s, border-color .3s;
    animation: cardIn .6s cubic-bezier(.16,1,.3,1) both;
}
.content-card:nth-child(1) { animation-delay: .05s; }
.content-card:nth-child(2) { animation-delay: .1s; }
.content-card:nth-child(3) { animation-delay: .15s; }
.content-card:nth-child(4) { animation-delay: .2s; }
.content-card:nth-child(5) { animation-delay: .25s; }
.content-card:nth-child(6) { animation-delay: .3s; }

.content-card:hover {
    transform: translateY(-8px); border-color: rgba(138,109,233,.5);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

.content-card-thumb {
    position: relative; padding-bottom: 56.25%; background: var(--bg-surface); overflow: hidden;
}
.content-card-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.content-card:hover .content-card-thumb img { transform: scale(1.05); }

.content-card-thumb-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--primary); opacity: .5;
}

.content-card-badge {
    position: absolute; top: 12px; left: 12px;
    padding: 4px 10px; border-radius: 6px;
    font-size: .72rem; font-weight: 600;
    background: rgba(138,109,233,.85); color: #fff;
    backdrop-filter: blur(8px);
}
.content-card-badge--success { background: rgba(76,175,80,.85); }
.content-card-badge--warning { background: rgba(255,152,0,.85); }
.content-card-badge--live { background: rgba(244,67,54,.85); }

.content-card-body { padding: 16px; }
.content-card-title {
    font-size: .92rem; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 6px;
}
.content-card-subtitle {
    font-size: .8rem; color: var(--primary-light); margin-bottom: 4px;
}
.content-card-desc {
    font-size: .8rem; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.content-card-meta {
    display: flex; align-items: center; gap: 12px; margin-top: 10px;
    font-size: .75rem; color: var(--text-muted);
}
.content-card-meta i { color: var(--primary-light); }

.content-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.card-link {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 12px; padding: 10px 16px; border-radius: 8px;
    font-size: .85rem; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transition: transform .25s, box-shadow .25s;
}
.card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(138,109,233,.35); color: #fff;
}
.card-link--secondary {
    background: linear-gradient(135deg, #ff6b6b, #cc5555);
}
.card-link--secondary:hover {
    box-shadow: 0 4px 16px rgba(255,107,107,.35);
}

.filter-bar {
    position: relative; z-index: 1;
    padding: 24px; border-radius: 14px; margin-bottom: 32px;
    background: linear-gradient(160deg, rgba(26,26,40,.8), rgba(19,19,28,.9));
    backdrop-filter: blur(16px); border: 1px solid var(--border);
}
.filter-form {
    display: flex; gap: 16px; align-items: end; flex-wrap: wrap;
}
.filter-group { flex: 1; min-width: 200px; }
.filter-label {
    display: block; margin-bottom: 8px;
    font-size: .82rem; color: var(--text-muted); font-weight: 500;
}
.filter-select {
    width: 100%; padding: 10px 14px; border-radius: 8px;
    background: rgba(15,15,22,.6); border: 1px solid var(--border);
    color: var(--text); font-size: .88rem; font-family: inherit;
    transition: border-color .25s, box-shadow .25s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a9e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.filter-select:focus {
    outline: none; border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--glow);
}
.filter-btn {
    padding: 10px 20px; border-radius: 8px; font-size: .88rem; font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; cursor: pointer; white-space: nowrap;
    transition: transform .2s, box-shadow .2s;
}
.filter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(138,109,233,.3);
}
.filter-btn--reset {
    background: rgba(244,67,54,.15); color: #f44336;
    border: 1px solid rgba(244,67,54,.3);
}
.filter-btn--reset:hover {
    background: rgba(244,67,54,.25);
    box-shadow: 0 4px 12px rgba(244,67,54,.2);
}
.filter-count {
    text-align: center; margin-bottom: 24px;
    font-size: .88rem; color: var(--text-muted);
}
.filter-count strong { color: var(--primary-light); }

.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; margin-top: 48px; flex-wrap: wrap;
    position: relative; z-index: 1;
}
.page-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 8px;
    font-size: .85rem; font-weight: 500;
    background: rgba(26,26,40,.8); border: 1px solid var(--border);
    color: var(--text-muted); transition: all .25s;
    backdrop-filter: blur(8px);
}
.page-link:hover {
    border-color: var(--primary); color: var(--primary-light);
    background: rgba(138,109,233,.1);
}
.page-link.active {
    border-color: var(--primary); color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.page-info {
    padding: 10px 18px; font-size: .85rem; color: var(--primary-light);
}

.videos-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.video-card {
    background: linear-gradient(160deg, rgba(26,26,40,.8), rgba(19,19,28,.9));
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; cursor: pointer; position: relative;
    transition: transform .4s cubic-bezier(.175,.885,.32,1.275), box-shadow .4s, border-color .3s;
    animation: cardIn .6s cubic-bezier(.16,1,.3,1) both;
}
.video-card:nth-child(1) { animation-delay: .05s; }
.video-card:nth-child(2) { animation-delay: .1s; }
.video-card:nth-child(3) { animation-delay: .15s; }
.video-card:nth-child(4) { animation-delay: .2s; }
.video-card:nth-child(5) { animation-delay: .25s; }
.video-card:nth-child(6) { animation-delay: .3s; }

.video-card:hover {
    transform: translateY(-8px); border-color: rgba(138,109,233,.5);
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.video-card.active { border-color: var(--primary); box-shadow: 0 0 30px rgba(138,109,233,.2); }

.video-thumb {
    position: relative; padding-bottom: 56.25%; background: var(--bg-surface); overflow: hidden;
}
.video-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }

.video-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,11,16,.7) 0%, transparent 50%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.video-card:hover .video-thumb-overlay { opacity: 1; }

.play-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(138,109,233,.9); display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
    transform: scale(.8); transition: transform .3s;
    box-shadow: 0 4px 20px rgba(138,109,233,.4);
}
.video-card:hover .play-btn { transform: scale(1); }

.video-card-body { padding: 16px; }
.video-card-title {
    font-size: .92rem; font-weight: 600; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 6px;
}
.video-card-desc {
    font-size: .8rem; color: var(--text-muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.empty-state {
    text-align: center; padding: 80px 24px;
    animation: fadeUp .6s ease both;
}
.empty-state-icon {
    font-size: 4rem; margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.empty-state h3 { font-size: 1.3rem; margin-bottom: 12px; }
.empty-state p { color: var(--text-muted); max-width: 400px; margin: 0 auto 24px; line-height: 1.6; }

.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    padding: 52px 24px 24px;
    color: rgba(214, 219, 234, .72);
    font-size: .85rem;
    border-top: 1px solid rgba(138, 109, 233, .2);
    background:
        linear-gradient(90deg, rgba(138, 109, 233, .08), transparent 28%, rgba(77, 159, 138, .08)),
        linear-gradient(180deg, rgba(15, 16, 24, .92), rgba(9, 10, 15, .98));
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: max(24px, calc(50% - 600px));
    right: max(24px, calc(50% - 600px));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138, 109, 233, .72), rgba(77, 159, 138, .58), transparent);
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--primary-light); }
.site-footer a:focus-visible,
.site-footer button:focus-visible {
    outline: 2px solid rgba(167, 139, 250, .72);
    outline-offset: 3px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.3fr) repeat(3, minmax(150px, .75fr));
    gap: 28px;
    align-items: start;
}
.footer-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 12px;
    padding: 2px 0 2px 22px;
    border-left: 1px solid rgba(205, 211, 232, .1);
}
.footer-col--brand {
    padding-left: 0;
    padding-right: 18px;
    border-left: 0;
}
.footer-brand-intro {
    display: grid;
    gap: 8px;
}
.footer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 8px;
    border: 1px solid rgba(77, 159, 138, .24);
    background: rgba(77, 159, 138, .08);
    color: #a8e5d5;
    font-family: 'PT Mono', monospace;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.footer-kicker i {
    font-size: .72rem;
}
.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(77, 159, 138, .26);
    background: rgba(77, 159, 138, .1);
    color: #b9eadc;
    font-family: 'PT Mono', monospace;
    font-size: .72rem;
    letter-spacing: .03em;
}
.footer-meta-pill i {
    font-size: .7rem;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}
.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(167, 139, 250, .34);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}
.footer-brand span {
    font-family: 'Press Start 2P', monospace;
    font-size: .6rem;
    color: var(--text);
    letter-spacing: .02em;
    line-height: 1.5;
}
.footer-desc {
    max-width: 50ch;
    color: rgba(218, 224, 239, .74);
    line-height: 1.68;
    font-size: .9rem;
}
.footer-highlights {
    list-style: none;
    display: grid;
    gap: 8px;
    max-width: 52ch;
}
.footer-highlights li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    color: rgba(214, 219, 234, .7);
    font-size: .81rem;
    line-height: 1.5;
}
.footer-highlights li i {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(77, 159, 138, .1);
    color: #93dac8;
    font-size: .72rem;
}
.footer-primary-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, .42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)),
        rgba(126, 105, 230, .18);
    color: var(--text) !important;
    font-size: .8rem;
    font-weight: 700;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-primary-link i {
    font-size: .86rem;
}
.footer-primary-link:hover {
    border-color: rgba(167, 139, 250, .72);
    background: rgba(126, 105, 230, .26);
    transform: translateY(-1px);
}
.footer-heading {
    font-family: 'PT Mono', monospace;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(240, 242, 252, .88);
}
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-nav a {
    color: rgba(214, 219, 234, .68);
    font-size: .85rem;
    line-height: 1.45;
    transition: color .2s ease, transform .2s ease;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 4px 0;
    border-radius: 6px;
}
.footer-nav a::before {
    display: none;
}
.footer-nav a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}
.footer-social-note {
    max-width: 30ch;
    color: rgba(214, 219, 234, .68);
    font-size: .8rem;
    line-height: 1.58;
}
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-social-link {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 4px 8px 4px 4px;
    border-radius: 8px;
    border: 1px solid rgba(205, 211, 232, .1);
    background: rgba(255, 255, 255, .025);
    color: rgba(230, 234, 246, .78);
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-social-link:hover {
    border-color: rgba(167, 139, 250, .36);
    background: rgba(126, 105, 230, .12);
    color: #f4f2ff;
    transform: translateY(-1px);
}
.footer-social-icon {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(126, 105, 230, .12);
    color: var(--primary-light);
    font-size: .95rem;
}
.footer-social-link--youtube .footer-social-icon {
    background: rgba(255, 84, 84, .12);
    color: #ff8f8f;
}
.footer-social-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}
.footer-social-text strong {
    color: rgba(244, 246, 255, .9);
    font-size: .82rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
.footer-social-text small {
    color: rgba(214, 219, 234, .58);
    font-size: .72rem;
    line-height: 1.2;
}
.footer-bottom {
    max-width: 1200px;
    margin: 34px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(205, 211, 232, .1);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    color: rgba(214, 219, 234, .66);
    font-size: .8rem;
}
.footer-copyright {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    line-height: 1.5;
}
.footer-copyright span + span::before {
    content: "·";
    margin-right: 10px;
    color: rgba(167, 139, 250, .5);
}
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
}
.footer-legal a {
    color: rgba(214, 219, 234, .66);
    font-size: .78rem;
    transition: color .2s ease;
}
.footer-legal a:hover {
    color: var(--primary-light);
}
.footer-bottom-link {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 8px;
    border: 1px solid rgba(167, 139, 250, .28);
    background: rgba(255, 255, 255, .03);
    color: rgba(238, 241, 248, .78);
    font-family: inherit;
    font-size: .77rem;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}
.footer-bottom-link:hover {
    border-color: rgba(167, 139, 250, .58);
    background: rgba(126, 105, 230, .12);
    color: var(--text);
    transform: translateY(-1px);
}

.info-page-main {
    position: relative;
    z-index: 1;
}
.info-page-hero .page-header-inner {
    max-width: 760px;
}
.info-page-kicker {
    width: fit-content;
    margin: 0 auto 12px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(77, 159, 138, .24);
    background: rgba(77, 159, 138, .08);
    color: #a8e5d5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.info-page-section {
    padding-top: 0;
}
.info-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 24px;
    align-items: start;
}
.info-page-copy,
.info-page-actions {
    border-radius: 8px;
    border: 1px solid rgba(205, 211, 232, .1);
    background: rgba(16, 18, 26, .82);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}
.info-page-copy {
    display: grid;
    gap: 18px;
    padding: 24px;
}
.info-page-panel h2,
.info-page-actions h2 {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 12px;
}
.info-page-panel ul {
    display: grid;
    gap: 10px;
    list-style: none;
}
.info-page-panel li {
    position: relative;
    padding-left: 18px;
    color: rgba(218, 224, 239, .76);
    font-size: .9rem;
    line-height: 1.65;
}
.info-page-panel li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(77, 159, 138, .85);
}
.info-page-actions {
    position: sticky;
    top: 112px;
    padding: 18px;
}
.info-page-link-list {
    display: grid;
    gap: 8px;
}
.info-page-link-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 10px 7px 7px;
    border-radius: 8px;
    border: 1px solid rgba(205, 211, 232, .1);
    background: rgba(255, 255, 255, .03);
    color: rgba(230, 234, 246, .78);
    font-size: .84rem;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.info-page-link-list a:hover {
    border-color: rgba(167, 139, 250, .36);
    background: rgba(126, 105, 230, .12);
    color: var(--text);
    transform: translateY(-1px);
}
.info-page-link-list i:first-child {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: rgba(77, 159, 138, .1);
    color: #a8e5d5;
    font-size: .78rem;
}

.scroll-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(138,109,233,.3);
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .3s, transform .3s;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(138,109,233,.4); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
    padding: 12px 24px; border-radius: 10px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text); font-size: .88rem; z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    opacity: 0; transition: all .4s cubic-bezier(.16,1,.3,1);
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(76,175,80,.4); }
.toast.error { border-color: rgba(244,67,54,.4); }

.mobile-menu {
    display: flex; position: fixed; top: 74px; left: 0; right: 0; bottom: 0; z-index: 99;
    background:
        linear-gradient(180deg, rgba(11,11,16,.98), rgba(19,19,28,.98)),
        radial-gradient(circle at 90% -12%, rgba(138,109,233,.2), transparent 52%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(138,109,233,.22);
    border-bottom: 1px solid var(--border);
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
    flex-direction: column; gap: 10px; overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .26s ease, transform .26s ease, visibility 0s linear .26s;
}
.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}
.mobile-menu > * {
    opacity: 0; transform: translateX(-16px);
    transition: opacity .3s ease, transform .3s ease;
    transition-delay: calc(var(--item-index, 0) * 50ms);
}
.mobile-menu.open > * { opacity: 1; transform: translateX(0); }
.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    padding: 6px 8px;
    border-radius: 12px;
    border: 1px solid rgba(138,109,233,.24);
    background: rgba(138,109,233,.08);
}
.mobile-menu-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(138,109,233,.34);
    flex-shrink: 0;
}
.mobile-menu-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-menu-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mobile-menu-brand-title {
    font-family: 'Press Start 2P', monospace;
    font-size: .54rem;
    line-height: 1.3;
    white-space: nowrap;
}
.mobile-menu-brand-subtitle {
    margin-top: 1px;
    font-size: .64rem;
    letter-spacing: .35px;
    text-transform: uppercase;
    color: rgba(226,226,239,.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-menu-brand:hover {
    border-color: rgba(138,109,233,.42);
    background: rgba(138,109,233,.14);
}
.mobile-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(244,67,54,.36);
    background: rgba(244,67,54,.14);
    color: #ffb3ab;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
}
.mobile-menu-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mobile-menu-group a,
.mobile-menu > a {
    padding: 12px 14px; border-radius: 10px; color: var(--text-muted); font-size: .9rem;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
    background: rgba(138,109,233,.04);
}
.mobile-menu-group a i,
.mobile-menu > a i { width: 20px; text-align: center; opacity: .78; transition: opacity .2s; }
.mobile-menu-group a:hover,
.mobile-menu > a:hover {
    background: rgba(138,109,233,.12);
    color: var(--text);
    border-color: rgba(138,109,233,.28);
}
.mobile-menu-group a:hover i,
.mobile-menu > a:hover i { opacity: 1; }
.mobile-menu-group a.active,
.mobile-menu > a.active {
    background: linear-gradient(135deg, rgba(138,109,233,.2), rgba(77,159,138,.08));
    color: var(--text);
    border-color: rgba(138,109,233,.42);
}
.mobile-menu-group a.active i,
.mobile-menu > a.active i {
    opacity: 1;
    color: var(--primary-light);
}
.mobile-menu-divider {
    height: 1px; background: var(--border); margin: 4px 0 0;
}
.mobile-menu-user {
    padding: 11px 14px; font-size: .88rem; color: var(--primary-light); font-weight: 600;
    display: flex; align-items: center; gap: 10px;
    border-radius: 10px;
    background: rgba(138,109,233,.09);
    border: 1px solid rgba(138,109,233,.26);
}
.mobile-menu-user i { width: 20px; text-align: center; }

.mobile-search-form {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(138,109,233,.2);
    background: rgba(19,19,28,.9);
}
.mobile-search-input {
    flex: 1; padding: 10px 12px; border-radius: 8px;
    background: rgba(15,15,22,.6); border: 1px solid rgba(138,109,233,.18);
    color: var(--text); font-family: inherit; font-size: .88rem;
    outline: none; transition: border-color .25s;
}
.mobile-search-input:focus { border-color: var(--border-focus); }
.mobile-search-input::placeholder { color: var(--text-muted); }
.mobile-search-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; border: none; cursor: pointer; font-size: .88rem;
}

/* Header refresh */
.site-header {
    overflow: visible;
}
.site-header.scrolled {
    background:
        linear-gradient(180deg, rgba(10,10,16,.98), rgba(13,13,20,.92)),
        radial-gradient(circle at 18% -20%, rgba(138,109,233,.24), transparent 56%);
}
.site-header.scrolled .header-main-row {
    min-height: 72px;
    padding: 4px 0;
}

.header-nav-shell {
    padding: 0;
    border-left: none;
}
.header-nav-shell-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 6px 8px;
    border-radius: 18px;
    border: 1px solid rgba(138,109,233,.18);
    background:
        linear-gradient(145deg, rgba(17,17,26,.72), rgba(22,21,34,.5)),
        radial-gradient(circle at 0% 0%, rgba(138,109,233,.14), transparent 54%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.header-nav-shell-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(125deg, rgba(167,139,250,.22), rgba(94,196,171,.12), transparent 65%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: .85;
}
.header-nav-meta {
    display: none;
    min-width: 0;
}

.header-brand {
    padding-right: 12px;
}
.header-brand-copy {
    min-width: 0;
}
.header-subtitle {
    max-width: 180px;
}
.header-brand-badges {
    gap: 4px;
}
.header-context-pill,
.header-live-pill {
    padding: 2px 6px;
}
.header-context-pill {
    font-size: .58rem;
}
.header-live-pill {
    font-size: .6rem;
}

.header-actions {
    gap: 8px;
    padding: 0;
}
.header-action-btn,
.header-actions .btn-yt {
    width: 40px;
    min-width: 40px;
    gap: 0;
    padding: 0;
    justify-content: center;
}
.header-action-btn--search {
    min-width: 40px;
    justify-content: center;
}
.header-action-label,
.header-action-hint {
    display: none;
}
.header-action-label {
    font-size: .77rem;
    font-weight: 700;
    line-height: 1;
}
.header-action-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: rgba(226,226,239,.72);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
}

.header-user-toggle {
    min-height: 44px;
    padding: 6px 12px 6px 8px;
}
.header-user-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.header-user-role {
    display: none;
    font-size: .62rem;
    line-height: 1.2;
    color: rgba(226,226,239,.66);
    white-space: nowrap;
}
.header-username {
    display: inline-block;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-auth-buttons {
    align-items: center;
    gap: 8px;
}
.header-auth-caption {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(226,226,239,.56);
}

.header-search {
    padding: 0;
}
.header-search.open {
    padding: 0 0 14px;
}
.header-search-inner {
    width: 100%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 clamp(14px, 2vw, 24px);
}
.header-search-panel {
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(138,109,233,.2);
    background:
        linear-gradient(145deg, rgba(15,15,22,.96), rgba(21,21,31,.92)),
        radial-gradient(circle at 0% 0%, rgba(138,109,233,.14), transparent 54%);
    box-shadow: 0 16px 44px rgba(0,0,0,.34);
    transform: translateY(-12px);
    opacity: 0;
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .22s ease;
}
.header-search.open .header-search-panel {
    transform: translateY(0);
    opacity: 1;
}
.header-search-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.header-search-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.header-search-eyebrow {
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #d7ccff;
}
.header-search-caption {
    color: rgba(226,226,239,.72);
    font-size: .77rem;
}
.header-search-form {
    width: 100%;
    min-height: 52px;
}
.header-search-submit {
    width: auto;
    min-width: 48px;
    gap: 8px;
    padding: 0 16px;
}
.header-search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.header-search-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(138,109,233,.22);
    background: rgba(138,109,233,.08);
    color: rgba(226,226,239,.86);
    font-size: .74rem;
    font-weight: 600;
    transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.header-search-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(138,109,233,.42);
    background: rgba(138,109,233,.16);
    color: var(--text);
}
.header-search-chip:focus-visible,
.mobile-menu-panel > a:focus-visible,
.mobile-menu-close:focus-visible {
    outline: 2px solid rgba(167,139,250,.85);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(138,109,233,.2);
}

/* Header hierarchy polish */
.site-header {
    background:
        linear-gradient(180deg, rgba(9,9,14,.96), rgba(11,11,17,.9)),
        radial-gradient(circle at 18% -24%, rgba(138,109,233,.16), transparent 58%);
    border-bottom-color: rgba(138,109,233,.12);
}
.site-header::before {
    opacity: .52;
}
.site-header.scrolled {
    background:
        linear-gradient(180deg, rgba(9,9,14,.98), rgba(11,11,17,.94)),
        radial-gradient(circle at 18% -24%, rgba(138,109,233,.14), transparent 58%);
    border-color: rgba(138,109,233,.16);
    box-shadow: 0 10px 30px rgba(0,0,0,.38);
}
.header-main-row {
    min-height: 74px;
}
.site-header.scrolled .header-main-row {
    min-height: 68px;
}
.header-brand {
    gap: 13px;
    padding: 5px 9px 5px 5px;
    border-color: transparent;
}
.header-brand:hover {
    border-color: rgba(167,139,250,.18);
    background: rgba(255,255,255,.035);
}
.header-logo-wrap {
    border-color: rgba(167,139,250,.28);
    background: linear-gradient(135deg, rgba(138,109,233,.16), rgba(77,159,138,.12));
    box-shadow: none;
}
.header-logo:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(138,109,233,.18);
}
.header-title {
    font-size: .67rem;
    letter-spacing: .7px;
}
.header-subtitle {
    max-width: 210px;
    color: rgba(226,226,239,.66);
}
.header-brand-badges {
    margin-top: 3px;
}
.header-context-pill {
    display: none;
}
.header-nav-shell-inner {
    min-height: 40px;
    padding: 5px 8px;
    border-color: rgba(138,109,233,.14);
    background: rgba(15,15,24,.6);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.header-nav-shell-inner::before {
    display: none;
}
.header-nav-list {
    gap: 4px;
}
.header-nav-link {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 9px;
    color: rgba(226,226,239,.64);
    gap: 6px;
    transition: color .2s, background .2s, border-color .2s;
}
.header-nav-link i {
    width: 13px;
    text-align: center;
    color: rgba(226,226,239,.55);
    opacity: 1;
}
.header-nav-link:hover {
    color: var(--text);
    border-color: rgba(167,139,250,.18);
    background: rgba(138,109,233,.09);
    transform: none;
}
.header-nav-link:hover i {
    color: rgba(226,226,239,.9);
}
.header-nav-link::after {
    display: none;
}
.header-nav-link.active {
    color: #f1efff;
    border-color: rgba(167,139,250,.3);
    background:
        linear-gradient(180deg, rgba(138,109,233,.18), rgba(138,109,233,.11)),
        rgba(255,255,255,.02);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.header-nav-link.active i {
    color: var(--primary-light);
}
.header-nav-live {
    border-color: rgba(244,67,54,.28);
    background: rgba(244,67,54,.1);
}
.header-controls-panel {
    gap: 6px;
    padding: 4px;
    border-radius: 16px;
    border-color: rgba(138,109,233,.16);
    background: rgba(15,15,24,.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.header-controls-panel::before,
.header-controls-panel::after {
    display: none;
}
.header-account {
    padding-left: 10px;
}
.header-account::before {
    top: 7px;
    bottom: 7px;
    background: rgba(167,139,250,.22);
}
.header-actions {
    gap: 6px;
}
.header-action-btn,
.header-actions .btn-yt {
    width: 36px;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    border-color: rgba(138,109,233,.16);
    background: rgba(255,255,255,.045);
    color: rgba(226,226,239,.78);
    box-shadow: none;
}
.header-action-btn:hover,
.header-actions .btn-yt:hover {
    color: #fff;
    border-color: rgba(167,139,250,.3);
    background: rgba(138,109,233,.12);
    transform: none;
    box-shadow: none;
}
.header-action-btn--search {
    width: 54px;
    min-width: 54px;
    gap: 7px;
}
.header-action-label,
.header-actions .btn-yt .header-action-label {
    display: none;
}
.header-action-hint {
    display: none;
}
.header-action-btn--search .header-action-hint {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 7px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(226,226,239,.68);
    font-size: .62rem;
    line-height: 1;
}
.header-actions .btn-yt i {
    color: #ff5f57;
}
.header-actions .btn-yt:hover i {
    color: #ff756d;
}
.header-user-toggle {
    min-height: 36px;
    padding: 4px 9px 4px 5px;
    border-radius: 11px;
    border-color: rgba(138,109,233,.17);
    background: rgba(255,255,255,.04);
    box-shadow: none;
}
.header-user-toggle:hover,
.header-user-dropdown.open .header-user-toggle {
    border-color: rgba(167,139,250,.3);
    background: rgba(138,109,233,.09);
    box-shadow: none;
}
.header-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6f7fe8, #5ec4ab);
    box-shadow: none;
}
.header-username {
    color: rgba(226,226,239,.9);
}
.header-chevron {
    color: rgba(226,226,239,.5);
}
.header-auth-caption {
    color: rgba(226,226,239,.5);
}
.header-auth-btn {
    border-color: rgba(138,109,233,.16);
    background: rgba(255,255,255,.04);
}
.header-auth-btn--accent {
    border-color: rgba(167,139,250,.28);
    background: rgba(138,109,233,.15);
}
.header-dropdown-menu {
    border-color: rgba(138,109,233,.18);
    background: rgba(15,15,24,.97);
    box-shadow: 0 18px 42px rgba(0,0,0,.48);
}
.header-search-panel {
    border-color: rgba(138,109,233,.16);
    background:
        linear-gradient(145deg, rgba(13,13,20,.97), rgba(18,18,27,.95)),
        radial-gradient(circle at 0% 0%, rgba(138,109,233,.1), transparent 54%);
}
.header-accent-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138,109,233,.55), rgba(94,196,171,.38), transparent);
    opacity: .46;
    animation: none;
}

.mobile-menu {
    inset: 0;
    top: 0;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
}
.mobile-menu.open {
    transform: none;
}
.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7,7,12,.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .26s ease;
}
.mobile-menu.open .mobile-menu-backdrop {
    opacity: 1;
}
.mobile-menu-panel {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 18px 18px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 22px;
    border: 1px solid rgba(138,109,233,.24);
    background:
        linear-gradient(180deg, rgba(11,11,16,.98), rgba(19,19,28,.98)),
        radial-gradient(circle at 90% -12%, rgba(138,109,233,.2), transparent 52%);
    box-shadow: 0 28px 70px rgba(0,0,0,.45);
    transform: translateY(-12px) scale(.985);
    opacity: 0;
    transition: opacity .26s ease, transform .26s ease;
}
.mobile-menu.open .mobile-menu-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.mobile-menu-panel > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
    transition-delay: calc(var(--item-index, 0) * 50ms);
}
.mobile-menu.open .mobile-menu-panel > * {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-top {
    align-items: flex-start;
}
.mobile-menu-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(138,109,233,.24);
    background: rgba(138,109,233,.08);
    color: var(--text);
    cursor: pointer;
}
.mobile-menu-current {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(138,109,233,.2);
    background: linear-gradient(135deg, rgba(138,109,233,.1), rgba(77,159,138,.06));
}
.mobile-menu-current-label,
.mobile-menu-section-title {
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #d7ccff;
}
.mobile-menu-current-value {
    font-size: .92rem;
    font-weight: 700;
    color: var(--text);
}
.mobile-menu-section-title {
    padding: 2px 2px 0;
}

.mobile-menu-group a,
.mobile-menu-panel > a {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    background: rgba(138,109,233,.04);
}
.mobile-menu-group a i,
.mobile-menu-panel > a i {
    width: 20px;
    text-align: center;
    opacity: .78;
    transition: opacity .2s;
}
.mobile-menu-group a:hover,
.mobile-menu-panel > a:hover {
    background: rgba(138,109,233,.12);
    color: var(--text);
    border-color: rgba(138,109,233,.28);
}
.mobile-menu-group a:hover i,
.mobile-menu-panel > a:hover i {
    opacity: 1;
}
.mobile-menu-group a.active,
.mobile-menu-panel > a.active {
    background: linear-gradient(135deg, rgba(138,109,233,.2), rgba(77,159,138,.08));
    color: var(--text);
    border-color: rgba(138,109,233,.42);
}
.mobile-menu-group a.active i,
.mobile-menu-panel > a.active i {
    opacity: 1;
    color: var(--primary-light);
}

.mobile-menu-account-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(138,109,233,.26);
    background: rgba(138,109,233,.09);
}
.mobile-menu-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(138,109,233,.28), rgba(77,159,138,.16));
    border: 1px solid rgba(138,109,233,.34);
    color: var(--text);
    font-weight: 700;
}
.mobile-menu-account-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mobile-menu-account-name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
}
.mobile-menu-account-role {
    font-size: .74rem;
    color: rgba(226,226,239,.68);
}

@media (max-width: 1720px) {
    .header-subtitle,
    .header-brand-badges,
    .header-auth-caption {
        display: none;
    }
    .header-brand {
        padding-right: 8px;
    }
}

@media (max-width: 1500px) {
    .header-username,
    .header-chevron {
        display: none;
    }
    .header-user-toggle {
        padding-right: 8px;
    }
}

@media (max-width: 1200px) {
    .mobile-menu-panel {
        top: max(10px, env(safe-area-inset-top));
        left: 10px;
        right: 10px;
        max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    html { scroll-padding-top: 96px; }

    .site-header.scrolled .header-main-row {
        min-height: 68px;
    }
    .header-search-panel {
        padding: 12px;
        border-radius: 18px;
    }
    .header-search-top {
        align-items: flex-start;
    }
    .header-search-form {
        min-height: 50px;
        padding-right: 6px;
    }
    .header-search-submit {
        padding: 0 12px;
    }
    .header-search-submit span {
        display: none;
    }
    .mobile-menu-panel {
        left: 8px;
        right: 8px;
        padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
        border-radius: 18px;
    }
    .mobile-menu-top-actions {
        gap: 6px;
    }
    .mobile-live-pill {
        font-size: .6rem;
        padding: 4px 7px;
    }
}

.shorts-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.shorts-grid .content-card-thumb {
    padding-bottom: 0; aspect-ratio: 9/16; max-height: 320px;
}
.shorts-grid .content-card-thumb img {
    position: static; width: 100%; height: 100%;
}

@keyframes live-blink { 50% { opacity: .3; } }

.season-buttons {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 24px;
}
.season-buttons .btn-outline {
    padding: 10px 20px; font-size: .85rem;
}

.detail-meta {
    display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.detail-meta-item {
    padding: 10px 18px; border-radius: 10px;
    background: rgba(26,26,40,.7); border: 1px solid var(--border);
    font-size: .85rem;
}
.detail-meta-item strong { color: var(--text); margin-right: 6px; }
.detail-meta-item span { color: var(--primary-light); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, var(--primary), var(--secondary));
    border-radius: 5px; border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(145deg, var(--secondary), var(--primary)); }

@media (max-width: 1500px) {
    .header-inner { padding: 0 14px; }
    .header-subtitle { display: none; }
    .header-live-pill { display: none; }
    .header-actions { gap: 6px; }
    .header-controls-panel { gap: 6px; padding: 4px 5px 4px 4px; border-radius: 16px; }
    .header-account { padding-left: 10px; }
    .header-user-toggle { max-width: 140px; }
    .header-username { max-width: 70px; }
    .header-auth-btn { padding: 6px 10px; font-size: .74rem; }
}

@media (max-width: 1700px) {
    .header-username { max-width: 64px; }
}

@media (max-width: 1850px) {
    .header-user-toggle { padding-right: 8px; }
}

@media (max-width: 1200px) {
    .header-inner { padding: 0 12px; }
    .header-main-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 70px;
    }
    .header-nav-shell { display: none; }
    .header-title { display: none; }
    .header-context-pill { display: none; }
    .header-brand-badges { display: none; }
    .header-brand { padding-right: 8px; }
    .header-side--right { gap: 6px; }
    .header-controls-panel {
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }
    .header-controls-panel::before,
    .header-controls-panel::after {
        display: none;
    }
    .header-account { display: none; }
    .header-hamburger { display: block; }
    .header-username { display: none; }
    .header-chevron { display: none; }
    .header-auth-buttons { display: none; }
    .mobile-menu { top: 70px; }

    .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }
}

@media (max-width: 900px) {
    .videos-grid,
    .content-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header-title { font-size: 1.2rem; }
    .filter-form { flex-direction: column; }
    .filter-group { min-width: 0; }

    .site-footer {
        padding-top: 46px;
    }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
    .footer-col--brand {
        grid-column: auto;
    }
    .footer-col {
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(205, 211, 232, .1);
    }
    .footer-col--brand {
        padding-top: 0;
        border-top: 0;
    }
    .footer-social-note {
        max-width: none;
    }
    .footer-bottom {
        margin-top: 28px;
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 14px;
    }
    .footer-legal {
        justify-content: flex-start;
    }
    .info-page-grid {
        grid-template-columns: 1fr;
    }
    .info-page-actions {
        position: static;
    }
}

@media (max-width: 640px) {
    .header-brand {
        padding: 6px 8px 6px 4px;
    }
    .header-logo-wrap {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .header-logo {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }
    .header-action-btn,
    .header-actions .btn-yt,
    .header-hamburger {
        width: 36px;
        height: 36px;
    }
    .videos-grid,
    .content-grid { grid-template-columns: 1fr; }
    .shorts-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-primary, .btn-outline { padding: 13px 24px; font-size: .9rem; }
    .section { padding: 48px 16px; }
    .site-footer {
        padding: 42px 16px 20px;
    }
    .site-footer::before {
        left: 16px;
        right: 16px;
    }
    .footer-col {
        gap: 11px;
    }
    .footer-kicker {
        font-size: .66rem;
    }
    .footer-meta-pill {
        width: 100%;
        justify-content: center;
        font-size: .7rem;
    }
    .footer-heading {
        margin-bottom: 12px;
    }
    .footer-nav a {
        font-size: .84rem;
        width: 100%;
    }
    .footer-primary-link {
        width: 100%;
        justify-content: center;
    }
    .footer-bottom {
        align-items: stretch;
        gap: 10px;
    }
    .footer-copyright {
        display: grid;
        gap: 3px;
    }
    .footer-copyright span + span::before {
        display: none;
    }
    .footer-legal {
        display: grid;
        gap: 8px;
    }
    .footer-bottom-link {
        width: 100%;
        justify-content: center;
    }
    .footer-social { align-items: stretch; }
    .info-page-kicker {
        margin-left: auto;
        margin-right: auto;
        font-size: .66rem;
    }
    .info-page-copy,
    .info-page-actions {
        padding: 16px;
    }
    .info-page-link-list a {
        grid-template-columns: 28px minmax(0, 1fr) auto;
    }

    .page-header { padding: 100px 20px 40px; }
    .page-header-title { font-size: 1rem; }
    .page-header-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .season-buttons .btn-outline { padding: 8px 14px; font-size: .8rem; }
    .pagination { gap: 4px; }
    .page-link { padding: 8px 12px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .header-nav-link,
    .header-action-btn,
    .header-user-toggle,
    .header-dropdown-menu,
    .mobile-menu,
    .mobile-menu > *,
    .live-dot,
    .header-accent-line {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== Shared cinematic player chrome ===== */
.wt-player-embed--cinema {
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 18%, rgba(138,109,233,.26), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(77,159,138,.18), transparent 24%),
        linear-gradient(160deg, #04050a 0%, #0a0d15 58%, #05070c 100%);
}
.wt-player-embed--cinema::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(138,109,233,.12);
    box-shadow:
        inset 0 0 24px rgba(138,109,233,.08),
        inset 0 -80px 120px rgba(4,6,10,.28);
    background:
        linear-gradient(180deg, rgba(138,109,233,.08), rgba(138,109,233,0) 24%),
        linear-gradient(180deg, rgba(6,8,12,0) 50%, rgba(6,8,12,.18) 100%);
    pointer-events: none;
    z-index: 1;
}
.wt-player-embed--cinema::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(0,0,0,0) 46%, rgba(0,0,0,.2) 100%),
        linear-gradient(180deg, rgba(3,4,8,.08), rgba(3,4,8,.26));
    pointer-events: none;
    z-index: 1;
}
.wt-player-embed--cinema video,
.wt-player-embed--cinema iframe {
    filter: saturate(1.04) contrast(1.03);
}

.da-player-stage {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    transition: opacity .24s ease, transform .24s ease;
}
.da-player-stage__top {
    display: none;
}
.da-player-stage__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(6,8,12,.42);
    color: rgba(243,245,255,.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.da-player-stage__pill i {
    color: rgba(184,164,255,.92);
}
.da-player-stage__pill--accent {
    border-color: rgba(138,109,233,.4);
    background: linear-gradient(135deg, rgba(138,109,233,.24), rgba(76,151,192,.18));
    color: #fff;
}
.da-player-stage__pill--accent i {
    color: #f0e7ff;
}
.da-player-stage__bottom {
    position: absolute;
    left: 18px;
    right: auto;
    bottom: 84px;
    width: min(420px, calc(100% - 36px));
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(138,109,233,.14);
    background:
        linear-gradient(180deg, rgba(8,10,16,.72), rgba(8,10,16,.84)),
        radial-gradient(circle at top left, rgba(138,109,233,.12), transparent 48%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 14px 32px rgba(0,0,0,.24);
}
.da-player-stage__eyebrow {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(218,210,255,.72);
}
.da-player-stage__title {
    display: block;
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.32;
    text-shadow: 0 8px 18px rgba(0,0,0,.22);
}
.da-player-stage__meta {
    color: rgba(228,232,245,.66);
    font-size: .74rem;
    line-height: 1.42;
    max-width: 42ch;
}

.wt-player-embed--cinema.dap-hide-controls:not(.dap-paused-state) .da-player-stage,
.wt-player-embed--cinema:not(.dap-paused-state) .da-player-stage {
    opacity: 0;
    transform: translateY(10px);
}
.wt-player-embed--cinema:hover .da-player-stage,
.wt-player-embed--cinema:focus-within .da-player-stage,
.wt-player-embed--cinema.dap-paused-state .da-player-stage {
    opacity: 1;
    transform: translateY(0);
}
.wt-player-embed--cinema.dap-mini-mode .da-player-stage,
.wt-player-embed--cinema:fullscreen .da-player-stage,
.wt-player-embed--cinema:-webkit-full-screen .da-player-stage {
    display: none !important;
}

@media (max-width: 760px) {
    .wt-player-embed--cinema::before {
        inset: 0;
        border-radius: inherit;
    }
    .da-player-stage__bottom {
        left: 12px;
        right: auto;
        bottom: 72px;
        width: min(360px, calc(100% - 24px));
        padding: 11px 12px;
        border-radius: 14px;
    }
    .da-player-stage__title {
        font-size: .88rem;
    }
    .da-player-stage__meta {
        font-size: .73rem;
        line-height: 1.4;
    }
}

@media (max-width: 560px) {
    .da-player-stage__bottom {
        display: none;
    }
}
