/* OBB TV ana sitesi — yönetilen menü için responsive görünüm. */
#header.site-header {
    height: 92px;
    padding: 0 var(--page);
    gap: 24px;
    flex-wrap: nowrap;
    align-items: center;
}
.site-menu-panel { display: contents; }
#header .site-menu-toggle { display: none; }
#header .main-nav { position: static; flex: 0 0 auto; height: 100%; overflow: visible; }
#header .header-actions { flex: 0 0 auto; }
.site-menu-backdrop[hidden] { display: none; }
.site-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: #0009;
    cursor: default;
}
body.site-menu-open { overflow: hidden; }
#header.is-menu-open { z-index: 40; background: #0b0d0e; }
#header.is-menu-compact { height: 80px; }
#header.is-menu-compact .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff09;
    color: var(--ink);
    font-size: 13px;
}
#header .site-menu-toggle:hover { background: #ffffff14; border-color: #ffffff40; }
.site-menu-icon { width: 20px; display: grid; gap: 5px; }
.site-menu-icon span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s, opacity .18s; }
[aria-expanded="true"] .site-menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
[aria-expanded="true"] .site-menu-icon span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .site-menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#header.is-menu-compact .site-menu-panel {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    padding: 16px var(--page) calc(22px + env(safe-area-inset-bottom));
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #0e1112;
    border-block: 1px solid var(--line);
    box-shadow: 0 20px 45px #0007;
}
#header.is-menu-compact.is-menu-open .site-menu-panel { display: block; }
#header.is-menu-compact .main-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    height: auto;
    white-space: normal;
}
#header.is-menu-compact .main-nav a {
    height: auto;
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 7px;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.5;
}
#header.is-menu-compact .main-nav a:hover { background: #ffffff09; }
#header.is-menu-compact .main-nav a.active { color: var(--accent); background: #c6ee9110; }
#header.is-menu-compact .main-nav a.active::after { display: none; }
#header.is-menu-compact .header-actions {
    width: 100%;
    height: auto;
    margin: 16px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    gap: 14px !important;
    flex-wrap: wrap;
}
#header.is-menu-compact #account-actions { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
#header.is-menu-compact .header-actions .profile { display: inline-flex; align-items: center; justify-content: center; }
#header.is-menu-compact .live-button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; min-height: 44px; }
#header.is-menu-compact .join-button { white-space: normal; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
#header.is-menu-compact .icon-button { min-width: 44px; width: 44px !important; height: 44px; }
/* Ölçüm aynı bağlantıları kullanır; kopya menü ve farklı yetki listesi oluşturmaz. */
#header .site-menu-panel.is-menu-measuring {
    display: flex !important;
    position: fixed !important;
    inset: 0 auto auto 0 !important;
    width: max-content !important;
    height: 92px !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 24px !important;
    border: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: visible !important;
}
#header .is-menu-measuring .main-nav { flex-direction: row !important; align-items: center !important; width: max-content !important; height: 92px !important; gap: 20px !important; }
#header .is-menu-measuring .main-nav a { padding: 0 !important; min-height: 0 !important; white-space: nowrap !important; font-size: 12px !important; }
#header .is-menu-measuring .header-actions { width: max-content !important; margin: 0 !important; padding: 0 !important; border: 0 !important; flex-wrap: nowrap !important; gap: 13px !important; }
#header .is-menu-measuring #account-actions { flex-wrap: nowrap !important; }
@media (max-width: 580px) {
    #header.is-menu-compact { height: 72px; }
    #header.is-menu-compact .site-menu-panel { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); }
}
@media (prefers-reduced-motion: reduce) { .site-menu-icon span { transition: none; } }
