/* Final header polish loaded after main.css to bypass stale CDN cache. */
.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: 76px;
}
.site-header.scrolled .header-main-row {
    min-height: 70px;
}
.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: 42px;
    padding: 6px 9px;
    border-color: rgba(138,109,233,.18);
    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: 5px;
}
.header-nav-link {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 9px;
    color: rgba(226,226,239,.7);
    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,.46);
    background:
        linear-gradient(180deg, rgba(138,109,233,.28), rgba(138,109,233,.14)),
        rgba(255,255,255,.02);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        0 6px 16px rgba(0,0,0,.16);
}
.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;
}

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

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

@media (max-width: 1200px) {
    .header-main-row {
        min-height: 70px;
    }
    .header-controls-panel {
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .header-account {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-action-btn,
    .header-actions .btn-yt,
    .header-hamburger {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }
    .header-action-btn--search {
        gap: 0;
    }
    .header-action-btn--search .header-action-hint {
        display: none;
    }
}
