/* Run to Cup 3.8 — RTC brand shell, responsive header and light/dark theme */
:root{
  --rtc-shell:#07090b;
  --rtc-shell-2:#0f1215;
  --rtc-surface:#13171b;
  --rtc-surface-2:#191e23;
  --rtc-line:#343b42;
  --rtc-text:#f4f6f7;
  --rtc-muted:#8e979f;
  --rtc-accent:#e8edf1;
  --rtc-accent-2:#ffffff;
  --rtc-contrast:#0a0c0e;
}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#07090b;
  --panel:#12161a;
  --panel2:#191e23;
  --line:#343b42;
  --muted:#8f98a0;
  --text:#f5f7f8;
  --yellow:#e8edf1;
  --yellow2:#ffffff;
}
html[data-theme="light"]{
  color-scheme:light;
  --rtc-shell:#eef1f3;
  --rtc-shell-2:#f8f9fa;
  --rtc-surface:#ffffff;
  --rtc-surface-2:#f3f5f6;
  --rtc-line:#cfd5da;
  --rtc-text:#111417;
  --rtc-muted:#69727b;
  --rtc-accent:#20252a;
  --rtc-accent-2:#0b0d0f;
  --rtc-contrast:#ffffff;
  --bg:#eef1f3;
  --panel:#ffffff;
  --panel2:#f3f5f6;
  --line:#cfd5da;
  --muted:#69727b;
  --text:#111417;
  --yellow:#252a2f;
  --yellow2:#101214;
}
body{background:linear-gradient(180deg,var(--rtc-shell),var(--bg))!important;color:var(--text)!important;transition:background .22s ease,color .22s ease}
.main{max-width:1900px!important;padding-top:16px!important}

/* RTC full-width banner */
.rtc-banner38{position:relative;display:block;width:100%;height:clamp(118px,17vw,250px);margin:0 0 16px;padding:0;overflow:hidden;border:1px solid var(--rtc-line);border-radius:18px;background:#050607;box-shadow:0 18px 48px rgba(0,0,0,.28);cursor:pointer}
.rtc-banner38 img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 48%;transition:transform .3s ease,filter .3s ease}
.rtc-banner38:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);pointer-events:none}
.rtc-banner38:hover img{transform:scale(1.012);filter:brightness(1.06)}
.rtc-banner38:focus-visible{outline:2px solid var(--rtc-accent);outline-offset:3px}

/* Search and sports are detached from the navigation */
.rtc-search-zone38{display:grid;justify-items:center;gap:12px;margin:0 auto 14px;padding:0 12px}
.rtc-search-zone38 .global-search{width:min(720px,92vw);position:relative}
.rtc-search-zone38 .global-search-box{height:48px;border:1px solid var(--rtc-line)!important;border-radius:14px!important;background:var(--rtc-surface)!important;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.rtc-search-zone38 .global-search-box:focus-within{border-color:#aeb7bf!important;box-shadow:0 0 0 3px rgba(210,218,224,.14),0 8px 24px rgba(0,0,0,.12)!important}
.rtc-search-zone38 .global-search input{height:46px!important;color:var(--rtc-text)!important}
.rtc-search-zone38 .global-search input::placeholder{color:var(--rtc-muted)}
.rtc-search-zone38 .search-results{background:var(--rtc-surface)!important;border-color:var(--rtc-line)!important;color:var(--rtc-text)!important}
.rtc-search-zone38 .search-result{color:var(--rtc-text)!important}
.rtc-search-zone38 .search-result:hover,.rtc-search-zone38 .search-result.active{background:var(--rtc-surface-2)!important}
.rtc-sports38{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap}
.rtc-sport38{border:1px solid transparent;background:transparent;color:var(--rtc-muted);padding:8px 13px;border-radius:999px;font-weight:850;font-size:.86rem;letter-spacing:.01em}
.rtc-sport38:hover{color:var(--rtc-text);border-color:var(--rtc-line);background:var(--rtc-surface)}
.rtc-sport38.active{color:var(--rtc-contrast);background:var(--rtc-accent);border-color:var(--rtc-accent);box-shadow:0 6px 20px rgba(205,213,220,.14)}

/* Compact navbar: menu on the left, notifications/account on the right */
.global-nav{top:8px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-height:56px!important;margin:0 auto 20px!important;padding:8px 10px!important;border:1px solid var(--rtc-line)!important;border-radius:14px!important;background:color-mix(in srgb,var(--rtc-surface) 92%,transparent)!important;box-shadow:0 10px 32px rgba(0,0,0,.22)!important;backdrop-filter:blur(18px)}
.global-nav .global-brand,.global-nav .global-links,.global-nav .global-search,.global-nav #registrationTop36{display:none!important}
.global-nav .hamburger36{margin-right:auto;width:42px;height:42px;padding:0!important;border:1px solid var(--rtc-line)!important;border-radius:11px!important;background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important;font-size:1.2rem}
.global-nav .hamburger36:hover,.global-nav .hamburger36.active{border-color:#aeb7bf!important;background:var(--rtc-surface)!important;color:var(--rtc-accent-2)!important}
.global-nav .announcement-nav{margin-left:auto}
.global-nav .nav-icon{width:42px;height:42px;border-color:var(--rtc-line)!important;background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important}
.global-nav .nav-icon:hover{border-color:#aeb7bf!important;background:var(--rtc-surface)!important}
.account-menu{background:var(--rtc-surface)!important;border-color:var(--rtc-line)!important;color:var(--rtc-text)!important}
.account-role span,.account-menu button{color:var(--rtc-text)!important}.account-role small{color:var(--rtc-muted)!important}
.account-menu button:hover{background:var(--rtc-surface-2)!important;color:var(--rtc-accent-2)!important}

/* RTC drawer */
.drawer36{background:linear-gradient(180deg,var(--rtc-surface),var(--rtc-shell))!important;border-color:var(--rtc-line)!important;color:var(--rtc-text)!important}
.drawer-head36{border-color:var(--rtc-line)!important}.drawer-brand36{min-width:0}.drawer-brand36 img{width:92px!important;height:38px!important;border-radius:7px!important;object-fit:contain!important;background:#080a0b;padding:3px}.drawer-brand36 span{font-weight:950;white-space:nowrap}.drawer-close36{border-color:var(--rtc-line)!important;background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important}
.drawer-menu36{gap:5px!important}.drawer-menu36 button{color:var(--rtc-text)!important;border-radius:10px!important}.drawer-menu36 button:hover{background:var(--rtc-surface-2)!important;border-color:var(--rtc-line)!important}.drawer-menu36 button.active{background:linear-gradient(90deg,rgba(220,227,232,.14),rgba(220,227,232,.035))!important;border-color:#6f7880!important;color:var(--rtc-accent-2)!important}.drawer-menu36 .drawer-icon36{color:var(--rtc-muted)!important}.drawer-menu36 button.active .drawer-icon36{color:var(--rtc-accent-2)!important}
.drawer-section36,.drawer-section38{margin:16px 7px 7px;color:var(--rtc-muted);font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.11em}
.drawer-register36{border-color:#8a939b!important;background:linear-gradient(135deg,#edf1f4,#bcc5cc)!important;color:#0b0d0f!important;box-shadow:0 0 0 1px rgba(255,255,255,.08),0 10px 28px rgba(0,0,0,.16)!important;animation:none!important}
.drawer-footer38{margin-top:18px;padding-top:14px;border-top:1px solid var(--rtc-line)}
.drawer-footer38>span{display:block;margin:0 7px 8px;color:var(--rtc-muted);font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.11em}
.theme-toggle38{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;width:100%;height:44px;padding:4px;border:1px solid var(--rtc-line);border-radius:12px;background:var(--rtc-surface-2);overflow:hidden;cursor:pointer}
.theme-toggle38 .theme-option38{position:relative;z-index:2;display:grid;place-items:center;height:34px;color:var(--rtc-muted);font-size:1.03rem;transition:.2s}.theme-toggle38 .theme-knob38{position:absolute;z-index:1;top:4px;left:4px;width:calc(50% - 4px);height:34px;border-radius:9px;background:var(--rtc-accent);box-shadow:0 4px 12px rgba(0,0,0,.16);transition:transform .22s ease}.theme-toggle38[data-theme="light"] .theme-knob38{transform:translateX(100%)}.theme-toggle38[data-theme="dark"] .moon38,.theme-toggle38[data-theme="light"] .sun38{color:var(--rtc-contrast);font-weight:950}

/* RTC neutral/silver visual pass */
.btn{border-color:var(--rtc-line)!important;background:var(--rtc-surface-2)!important;color:var(--rtc-text)!important}.btn:hover{border-color:#8d969e!important}.btn.primary{background:var(--rtc-accent)!important;border-color:var(--rtc-accent)!important;color:var(--rtc-contrast)!important}.badge{background:var(--rtc-surface-2)!important;color:var(--rtc-accent-2)!important;border:1px solid var(--rtc-line)}
.card,.stat,.fixture,.data-summary div,.entity-option,.org-team-row,.live-control-score,.live-lineup-box,.live-note,.live-action,.live-public-stat,.row37,.ad-slot37{border-color:var(--rtc-line)!important;background:var(--rtc-surface)!important;color:var(--rtc-text)!important}
.card{box-shadow:0 16px 44px rgba(0,0,0,.16)!important}.card-head{border-color:var(--rtc-line)!important}
.field input,.field select,.field textarea,.registration-form36 input,.registration-form36 select,.registration-form36 textarea,.form37 input,.form37 select,.form37 textarea,.live-event-form select,.live-event-form input,.live-lineup-player select,.global-search-box{border-color:var(--rtc-line)!important;background:var(--rtc-shell-2)!important;color:var(--rtc-text)!important}
.inline-link,.team-link,.org-team-name{color:var(--rtc-text)!important}.inline-link:hover,.team-link:hover,.org-team-name:hover{color:var(--rtc-accent-2)!important}
*:focus-visible{outline-color:#bfc7cd!important}

/* Login and route transition branding */
.auth-screen{background:radial-gradient(circle at 50% 0,rgba(220,227,232,.12),transparent 35%),var(--rtc-shell)!important}.auth-box{background:var(--rtc-surface)!important;border-color:var(--rtc-line)!important}.auth-box .rtc-auth-logo38{width:min(190px,62vw)!important;height:66px!important;margin:0 auto!important;border-radius:12px!important;background:#07090b!important;padding:8px!important;box-shadow:none!important}.auth-box .rtc-auth-logo38 img{width:100%;height:100%;object-fit:contain}.route-transition36{background:rgba(6,8,10,.92)!important}.route-symbol36{border-color:#e2e7eb!important;color:#fff!important}.route-transition36.done .route-symbol36{border-color:#bfc7cd!important;color:#fff!important}

/* Light theme hardcoded-color cleanup */
html[data-theme="light"] body{background:linear-gradient(180deg,#f7f8f9,#e9edf0)!important;color:#111417!important}
html[data-theme="light"] .card,html[data-theme="light"] .stat,html[data-theme="light"] .fixture,html[data-theme="light"] .data-summary div,html[data-theme="light"] .entity-option,html[data-theme="light"] .org-team-row,html[data-theme="light"] .live-control-score,html[data-theme="light"] .live-lineup-box,html[data-theme="light"] .live-note,html[data-theme="light"] .live-action,html[data-theme="light"] .live-public-stat,html[data-theme="light"] .row37{background:#fff!important;color:#111417!important}
html[data-theme="light"] .field input,html[data-theme="light"] .field select,html[data-theme="light"] .field textarea,html[data-theme="light"] .registration-form36 input,html[data-theme="light"] .registration-form36 select,html[data-theme="light"] .registration-form36 textarea,html[data-theme="light"] .form37 input,html[data-theme="light"] .form37 select,html[data-theme="light"] .form37 textarea,html[data-theme="light"] .live-event-form select,html[data-theme="light"] .live-event-form input{background:#fff!important;color:#111417!important}
html[data-theme="light"] .live-scoreboard,html[data-theme="light"] .live-empty,html[data-theme="light"] .live-lineup-player,html[data-theme="light"] .live-public-player{background:#f7f8f9!important;color:#111417!important}
html[data-theme="light"] .search-result small,html[data-theme="light"] .muted,html[data-theme="light"] .title p{color:#69727b!important}
html[data-theme="light"] .account-menu .account-logout{color:#a62d39!important}

@media(max-width:760px){
  .main{padding:10px!important}.rtc-banner38{height:clamp(96px,27vw,150px);border-radius:13px;margin-bottom:12px}.rtc-search-zone38{gap:9px;margin-bottom:10px}.rtc-search-zone38 .global-search{width:100%}.rtc-sports38{gap:4px}.rtc-sport38{padding:7px 10px;font-size:.78rem}.global-nav{top:4px!important;min-height:52px!important;margin-bottom:14px!important}.global-nav .hamburger36,.global-nav .nav-icon{width:38px;height:38px}.drawer36{width:min(330px,91vw)}
}
@media(prefers-reduced-motion:reduce){.rtc-banner38 img,.theme-toggle38 .theme-knob38{transition:none!important}}
#drawer36 > .drawer-section36{display:none!important}
