/* ═══════════════════════════════════════════════════════════════
   NHLStreams WordPress Theme — theme.css
   All CSS variables exactly match the original styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:ital,wght@0,700;0,800;0,900;1,800&display=swap');

/* ── CSS VARIABLES (dark default) ── */
:root {
  --theme-color: #ff0000;
  --body-color: #17171c;
  --bg-surface: #1e1e25;
  --bg-surface-alt: #262630;
  --bg-header: #1a1a21;
  --bg-sidebar: #1c1c23;
  --text-primary: #eaeaed;
  --text-secondary: #9494a0;
  --border-color: #2d2d38;
  --icon-color: #9494a0;
  --icon-hover-color: rgba(255,255,255,.06);
  --schedule-bg: #1e1e25;
  --schedule-hover-color: rgba(255,255,255,.035);
  --card-shadow: 0 1px 3px rgba(0,0,0,.2);
  --scroll-thumb: #38384a;
  --scroll-track: #1a1a21;
  --fixture-card-bg: #20202a;
  --fixture-card-border: #2d2d38;
  --bg-card: #22222b;
  --font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── LIGHT THEME ── */
.light {
  --body-color: #f7f7f8;
  --bg-surface: #ffffff;
  --bg-surface-alt: #efeff1;
  --bg-header: #ffffff;
  --bg-sidebar: #efeff1;
  --text-primary: #0e0e10;
  --text-secondary: #53535f;
  --border-color: #e5e5e5;
  --icon-color: #53535f;
  --bg-card: #ffffff;
  --icon-hover-color: rgba(0,0,0,.05);
  --schedule-bg: #ffffff;
  --schedule-hover-color: rgba(0,0,0,.03);
  --card-shadow: 0 1px 3px rgba(0,0,0,.08);
  --scroll-thumb: #d4d4d8;
  --scroll-track: #efeff1;
  --fixture-card-bg: #ffffff;
  --fixture-card-border: #e5e5e5;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--body-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar { display: none; }
body {
  margin: 0; padding: 0;
  background-color: var(--body-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; }

/* ── SPLASH SCREEN ── */
#nhl-splash {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--body-color);
  transition: opacity .35s ease, visibility .35s ease;
}
#nhl-splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }

#sp-hdr {
  position: absolute; top: 0; left: 0; right: 0; height: 50px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; padding: 0 16px; gap: 10px; z-index: 2;
}
#sp-ticker {
  position: absolute; top: 50px; left: 0; right: 0; height: 62px;
  background: var(--bg-header); border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; overflow: hidden; z-index: 2;
}
#sp-cards {
  position: absolute; top: 112px; left: 0; right: 0; bottom: 0;
  padding: 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 10px; align-content: start; overflow: hidden; z-index: 1;
}
.sp-card {
  height: 68px; border-radius: 8px;
  background: var(--fixture-card-bg); border: 1px solid var(--fixture-card-border);
  box-shadow: var(--card-shadow); overflow: hidden; position: relative;
  display: flex; align-items: center; padding: 0 14px; gap: 12px;
}
.sp-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  animation: sp-shim 1.6s ease infinite;
}
@keyframes sp-shim { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.sp-card-circ { width:36px;height:36px;border-radius:50%;flex-shrink:0;background:var(--bg-surface-alt);opacity:.4; }
.sp-card-lines { flex:1;display:flex;flex-direction:column;gap:7px; }
.sp-card-line { height:8px;border-radius:3px;background:var(--bg-surface-alt);opacity:.35; }
.sp-card-line.w60 { width:60%; }
.sp-card-line.w40 { width:40%; }
.sp-card-right { width:60px;display:flex;flex-direction:column;gap:7px;align-items:flex-end; }
.sp-card-score { width:36px;height:10px;border-radius:3px;background:var(--bg-surface-alt);opacity:.45; }
#sp-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#sp-icon { width:58px;height:58px;object-fit:contain;animation:sp-bob 2s ease-in-out infinite; }
@keyframes sp-bob { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(.92);opacity:.75} }
#sp-prog { width:160px;height:3px;border-radius:99px;background:rgba(255,0,0,.15);overflow:hidden; }
#sp-fill { height:100%;border-radius:99px;background:var(--theme-color);animation:sp-load 2.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes sp-load { from{width:0} to{width:100%} }
#sp-txt { font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-secondary); }
.sp-dd-dot { width:32px;height:10px;border-radius:3px;background:var(--bg-surface-alt);opacity:.5; }
.sp-tgame { min-width:160px;height:100%;flex-shrink:0;border-right:1px solid var(--border-color);padding:0 14px;display:flex;flex-direction:column;justify-content:center;gap:6px; }
.sp-trow { display:flex;align-items:center;gap:8px; }
.sp-tcirc { width:16px;height:16px;border-radius:50%;background:var(--bg-surface-alt);opacity:.5;flex-shrink:0; }
.sp-tbar { height:8px;border-radius:3px;background:var(--bg-surface-alt);opacity:.4; }
.sp-tbar.w40{width:40px} .sp-tbar.w24{width:24px;margin-left:auto}
#sp-ticker-dd { width:90px;height:100%;flex-shrink:0;border-right:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;padding:0 14px; }
.sp-tab { width:52px;height:20px;border-radius:4px;background:var(--bg-surface-alt);opacity:.4; }
.sp-tab:first-child{width:36px}
#sp-tabs { margin-left:auto;display:flex;align-items:center;gap:2px; }

/* ── SCORE TICKER ── */
.score-ticker {
  display: flex; width: 100%; align-items: stretch;
  background: var(--bg-header); border-bottom: 1px solid var(--border-color);
  height: 62px; position: relative; z-index: 50; overflow: visible;
}
.ticker-controls { display: flex; flex-shrink: 0; align-items: stretch; }
.ticker-dropdown {
  position: relative; display: flex; cursor: pointer;
  user-select: none; align-items: center; gap: .375rem; padding: 0 14px;
  border-right: 1px solid var(--border-color); min-width: 90px; transition: background .15s;
}
.ticker-dropdown:hover { background: var(--icon-hover-color); }
.ticker-dropdown-label { white-space: nowrap; font-size: .75rem; font-weight: 700; letter-spacing: .025em; color: var(--text-primary); }
.ticker-dropdown-arrow { height: .75rem; width: .75rem; flex-shrink: 0; color: var(--text-secondary); transition: transform .2s; }
.ticker-dropdown-menu {
  position: absolute; left: 0; top: 100%; min-width: 140px;
  max-height: 360px; overflow-y: auto;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-top: 2px solid var(--theme-color); border-radius: 0 0 8px 8px;
  z-index: 999; padding: .25rem 0;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.2);
}
.ticker-dropdown-item { cursor: pointer; white-space: nowrap; padding: .5rem .75rem; font-size: .75rem; font-weight: 500; color: var(--text-secondary); transition: all .1s; }
.ticker-dropdown-item:hover { background: var(--icon-hover-color); color: var(--text-primary); }
.ticker-dropdown-item.active { color: var(--theme-color); font-weight: 700; background: rgba(255,0,0,.08); }
.ticker-scroll { flex: 1; overflow-x: auto; user-select: none; height: 100%; }
.ticker-track { display: flex; min-width: max-content; align-items: stretch; height: 100%; }
.ticker-empty { display: flex; align-items: center; justify-content: center; padding: 0 2rem; font-size: .75rem; color: var(--text-secondary); white-space: nowrap; }
.ticker-nav-btn {
  display: flex; flex-shrink: 0; cursor: pointer; align-items: center; justify-content: center;
  width: 32px; background: var(--bg-header); border: none; color: var(--text-secondary); transition: all .15s;
}
.ticker-nav-left { border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.ticker-nav-btn:not(.ticker-nav-left) { border-left: 1px solid var(--border-color); }
.ticker-nav-btn:hover { color: var(--text-primary); background: var(--icon-hover-color); }
.ticker-game {
  position: relative; display: flex; flex-direction: column; padding: 0 14px;
  border-right: 1px solid var(--border-color); min-width: 160px; height: 100%;
  gap: 0; transition: background .15s; cursor: pointer;
}
.ticker-game:hover { background: var(--schedule-hover-color); }
.ticker-game-live { border-top: 2px solid #22c55e; background: rgba(34,197,94,.04); }
.ticker-game-live:hover { background: rgba(34,197,94,.08); }
.ticker-game-ended { border-top: 2px solid #ef4444; opacity: .8; }
.ticker-game-header { display: flex; align-items: center; padding: 3px 0 1px; min-height: 16px; }
.ticker-time-badge { white-space: nowrap; font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.ticker-final-badge { font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.ticker-live-badge { font-size: 10px; font-weight: 700; color: #f87171; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.ticker-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #f87171; flex-shrink: 0; animation: live-pulse 1.5s ease-in-out infinite; }
@keyframes live-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
.ticker-game-teams { display: flex; flex-direction: column; justify-content: center; gap: 2px; flex: 1; min-width: 0; }
.ticker-team-row { display: flex; align-items: center; gap: 6px; }
.ticker-team-loser { opacity: .5; }
.ticker-team-logo { flex-shrink: 0; object-fit: contain; width: 16px; height: 16px; }
.ticker-team-abbr { font-size: .75rem; font-weight: 500; color: var(--text-primary); flex: 1; min-width: 0; }
.ticker-team-score { font-size: .75rem; font-weight: 600; color: var(--text-primary); min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.ticker-score-winner { font-weight: 800; }
.ticker-winner-arrow { flex-shrink: 0; font-size: 9px; color: var(--theme-color); width: 12px; text-align: center; margin-left: 2px; }
.ticker-winner-arrow-spacer { flex-shrink: 0; width: 12px; margin-left: 2px; }

/* ── MAIN HEADER ── */
.main-header {
  position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem;
  background: var(--bg-header); border-bottom: 1px solid var(--border-color);
  height: 50px; max-width: 100vw; overflow: visible;
}
.site-logo { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.site-logo img { width: 28px; height: 28px; object-fit: contain; }
.site-name { font-size: 1.125rem; font-weight: 800; letter-spacing: -.025em; color: var(--text-primary); font-family: 'Barlow Condensed', sans-serif; }
.footer-site-name { font-size: 1rem; font-weight: 800; color: var(--text-primary); }

/* Sport tabs */
.sport-tabs { display: flex; flex: 1; align-items: center; justify-content: center; gap: .25rem; padding: 0 1rem; overflow: visible; }
.sport-tab {
  position: relative; display: flex; cursor: pointer; align-items: center; gap: .375rem;
  white-space: nowrap; padding: .5rem .75rem; font-size: .875rem; font-weight: 500;
  transition: color .15s, background .15s; border-radius: 6px; color: var(--text-secondary);
  text-decoration: none;
}
.sport-tab:hover { color: var(--text-primary); background: var(--icon-hover-color); }
.sport-tab-active { color: var(--text-primary) !important; }
.sport-tab-active::after {
  content: ''; position: absolute; bottom: -1px; left: 8px; right: 8px;
  height: 2px; background: var(--theme-color); border-radius: 2px 2px 0 0;
}
.sport-tab-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; border-radius: 2px; }

/* Header controls */
.header-controls { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.toggle-btn {
  border-radius: .5rem; padding: .5rem;
  transition: color .15s, background .15s;
  color: var(--icon-color); background: transparent; border: none;
}
.toggle-btn:hover { background: var(--icon-hover-color); color: var(--text-primary); }
.mobile-nav-toggle {
  display: none; cursor: pointer; flex-direction: column; gap: .25rem;
  padding: .5rem; background: transparent; border: none;
}
.hamburger-line { width: 20px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all .2s; }

/* Mobile drawer */
.mobile-drawer {
  position: absolute; top: 100%; right: 0;
  background: var(--bg-surface); border: 1px solid var(--border-color);
  border-top: 2px solid var(--theme-color); border-radius: 0 0 8px 8px;
  z-index: 60; min-width: 200px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.3);
}
.mobile-drawer-content { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; letter-spacing: .05em; padding: 4px 8px; }
.mobile-drawer-item {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px;
  border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-primary);
  background: transparent; border: none; cursor: pointer; text-decoration: none;
  transition: background .15s;
}
.mobile-drawer-item:hover { background: var(--icon-hover-color); }
.mobile-drawer-item-logo { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* Search bar */
.nhl-search-bar {
  background: var(--bg-surface); border-bottom: 1px solid var(--border-color);
  padding: 10px 16px;
}
.nhl-search-inner { display: flex; align-items: center; gap: 8px; max-width: 600px; margin: 0 auto; }
.nhl-search-inner .search-field {
  flex: 1; background: var(--bg-surface-alt); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 8px 14px; font-size: 14px;
  color: var(--text-primary); font-family: var(--font-family);
}
.nhl-search-inner .search-field:focus { outline: none; border-color: var(--theme-color); }
.nhl-search-inner .search-submit {
  background: var(--theme-color); color: #fff; border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.nhl-search-close { background: transparent; border: none; color: var(--text-secondary); cursor: pointer; padding: 4px; }

/* ── HOME LAYOUT ── */
.home-layout {
  display: flex; min-height: calc(100vh - 112px);
}

/* ── LEFT TEAM SIDEBAR ── */
.team-sidebar {
  width: 200px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--bg-sidebar); border-right: 1px solid var(--border-color);
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem; border-bottom: 1px solid var(--border-color);
}
.sidebar-toggle {
  cursor: pointer; color: var(--text-secondary); border: 1px solid var(--border-color);
  background: transparent; border-radius: 4px; padding: 4px;
  display: flex; align-items: center; justify-content: center; transition: all .15s;
}
.sidebar-toggle:hover { border-color: var(--theme-color); color: var(--text-primary); }
.sidebar-channels { flex: 1; overflow-y: auto; }
.sidebar-section-title { padding: .5rem .75rem; border-bottom: 1px solid var(--border-color); font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-secondary); letter-spacing: .05em; }

/* Team sidebar items (injected by JS) */
.sidebar-team-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  cursor: pointer; color: var(--text-secondary); font-size: 12px; font-weight: 500;
  border-left: 2px solid transparent; transition: all .15s; text-decoration: none;
}
.sidebar-team-item:hover { background: var(--icon-hover-color); color: var(--text-primary); }
.sidebar-team-item.active { border-left-color: var(--theme-color); color: var(--text-primary); background: rgba(255,0,0,.06); }
.sidebar-team-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* ── SCHEDULE MAIN ── */
.schedule-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.schedule-content-wrap { padding: 16px 20px 0; }
.section-header-row {
  margin-bottom: 1rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 8px;
}
.schedule-heading {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1rem; font-weight: 700; color: var(--text-primary);
}
.schedule-season-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-secondary); margin-top: 2px;
}
.schedule-controls { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; }
.sc-date-btn {
  display: flex; align-items: center; gap: .5rem; padding: 0 .75rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .025em; min-height: 30px;
  color: var(--text-primary); background: var(--bg-surface);
  border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; transition: all .15s;
  font-family: var(--font-family);
}
.sc-date-btn:hover { border-color: var(--theme-color); }
.sc-tz-btn {
  display: flex; align-items: center; gap: .375rem; border-radius: .25rem;
  padding: 0 .75rem; font-size: .75rem; font-weight: 500; min-height: 30px;
  color: var(--text-secondary); background: var(--bg-surface-alt);
  border: 1px solid var(--border-color); cursor: pointer; transition: all .15s;
  font-family: var(--font-family);
}
.sc-tz-btn:hover { color: var(--text-primary); }
.schedule-content-area { min-height: 10px; position: relative; padding: 0 20px 20px; }
.schedule-section { margin-bottom: 1.5rem; }
.tp-schedule-list { display: flex; flex-direction: column; gap: 6px; }

/* ── FIXTURE CARDS ── */
.fixture-card {
  overflow: hidden; border-radius: .5rem;
  background: var(--fixture-card-bg); border: 1px solid var(--fixture-card-border);
  box-shadow: var(--card-shadow); transition: background .15s ease, transform .1s ease;
}
.fixture-card:hover { background: var(--schedule-hover-color); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.fixture-pinned { border-color: rgba(234,179,8,.3) !important; background: linear-gradient(135deg,rgba(234,179,8,.04),transparent 60%); }
.fixture-full {
  display: grid; grid-template-columns: 1fr 140px 1fr auto;
  align-items: center; gap: 6px; padding: 10px 14px; position: relative;
}
.fixture-team { min-width: 0; flex: 1; }
.fixture-team-away { text-align: right; }
.fixture-team-home { text-align: left; }
.fixture-team-link { display: flex; align-items: center; gap: .75rem; }
.fixture-team-link-home { justify-content: flex-start; }
.fixture-team-link:not(.fixture-team-link-home) { justify-content: flex-end; }
.fixture-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .875rem; font-weight: 600; color: var(--text-primary); }
.fixture-team-logo { height: 2.25rem; width: 2.25rem; flex-shrink: 0; object-fit: contain; transition: transform .15s ease; }
.fixture-card:hover .fixture-team-logo { transform: scale(1.1); }
.fixture-center { display: flex; flex-shrink: 0; flex-direction: column; align-items: center; gap: .125rem; min-width: 140px; }
.fixture-date { font-size: 10px; text-transform: uppercase; color: var(--text-secondary); }
.fixture-time { font-size: 10px; font-weight: 600; color: var(--text-secondary); }
.fixture-score { font-size: 1.05rem; font-weight: 800; color: var(--text-secondary); min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fixture-score-winner { color: var(--text-primary); }
.fixture-live-status { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #22c55e; }
.fixture-views {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 10px; background: rgba(234,88,12,.12);
  color: #f97316; font-size: 10px; font-weight: 700; white-space: nowrap;
}
.fixture-actions { display: flex; flex-shrink: 0; align-items: center; gap: .5rem; min-width: 140px; justify-content: flex-end; }
.btn-watch {
  display: inline-flex; align-items: center; border-radius: 4px;
  padding: .375rem .75rem; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; transition: all .15s;
  background: var(--theme-color); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-family);
}
.btn-watch:hover { filter: brightness(1.15); transform: scale(1.02); }
.btn-watch-sm { border-radius: 4px; padding: .25rem .5rem; font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--theme-color); color: #fff; }

/* Fixture live indicator */
.fixture-card .fixture-live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; color: #22c55e;
  background: rgba(34,197,94,.1); padding: 2px 8px; border-radius: 10px;
}

/* ── RIGHT SIDEBAR ── */
.right-sidebar {
  width: 320px; flex-shrink: 0; overflow-y: auto;
  background: var(--bg-sidebar); border-left: 1px solid var(--border-color);
}
.tp-sidebar-right { display: flex; flex-direction: column; }
.tp-sidebar-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  font-size: .88rem; font-weight: 700; color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; background: var(--bg-surface); z-index: 2;
}

/* Standings table */
.tp-standings-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.tp-standings-table th {
  padding: 6px 8px; text-align: left; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
.tp-standings-table td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,.04); }
.tp-standings-table tr:hover td { background: var(--icon-hover-color); }
.tp-standings-table .team-col { display: flex; align-items: center; gap: 6px; }
.tp-standings-table .team-col img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* ── WATCH LAYOUT ── */
.watch-layout {
  display: flex; height: calc(100vh - 112px);
}
.watch-sidebar {
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--bg-surface); border-right: 1px solid var(--border-color); overflow: hidden;
}
.watch-sidebar-collapsed { width: 60px; }
.watch-sidebar-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px; font-weight: 700; color: var(--text-primary);
  flex-shrink: 0; height: 38px;
}
.watch-sidebar-list { flex: 1; overflow-y: auto; padding: 6px 6px 24px; display: flex; flex-direction: column; gap: 4px; }
.watch-sidebar-game {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--text-secondary); transition: all .15s; border: 1px solid transparent;
}
.watch-sidebar-game:hover { background: var(--icon-hover-color); color: var(--text-primary); }
.watch-sidebar-game.active { background: rgba(255,0,0,.08); border-color: var(--theme-color); color: var(--text-primary); }
.watch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; background: var(--body-color); }
.watch-row { display: flex; width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.watch-player-scroll { flex: 1; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; }
.watch-player {
  position: relative; display: flex; flex-direction: column;
  background: #000; flex-shrink: 0;
}
.watch-below-player { background: var(--bg-surface); border-top: 1px solid var(--border-color); }

/* Player tabs */
.player-tab-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 .5rem; background: #0a0a0a; border-bottom: 2px solid var(--theme-color);
}
.player-tabs { margin: 0; display: flex; list-style: none; align-items: center; gap: 0; padding: 0; overflow-x: auto; }
.player-tab {
  cursor: pointer; border: none; padding: .625rem 1rem; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; transition: all .15s; color: #888; background: transparent;
  font-family: var(--font-family); white-space: nowrap; flex-shrink: 0;
}
.player-tab-active { color: #fff !important; background: var(--theme-color) !important; }
.player-iframe-wrap { position: relative; width: 100%; padding-top: 56.25%; }
.player-iframe-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Watch tab bar */
.w-tab-bar {
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 0 8px; background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color); height: 38px; flex-shrink: 0;
}
.w-tabs { display: flex; align-items: stretch; height: 100%; gap: 0; flex: 1; overflow: hidden; }
.w-tab {
  cursor: pointer; display: inline-flex; align-items: center; border: none;
  border-top: 2px solid transparent; padding: 0 10px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; background: transparent; color: var(--text-secondary);
  transition: all .15s; font-family: var(--font-family);
}
.w-tab-on { color: var(--text-primary); background: var(--bg-surface-alt); border-top: 2px solid var(--theme-color); }
.w-tab:hover:not(.w-tab-on) { color: var(--text-primary); background: var(--icon-hover-color); }
.w-tab-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ef4444; margin-right: 5px; animation: w-tab-pulse 1.8s ease-in-out infinite; }
@keyframes w-tab-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }

/* Match bar */
.w-match-bar {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding: 14px 20px; background: var(--bg-surface);
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
}

/* Chat */
.w-chat {
  flex-shrink: 0; width: 320px; border-left: 1px solid var(--border-color);
  background: var(--body-color); overflow: hidden; display: flex; flex-direction: column; min-height: 0;
}
.w-chat-inner { display: flex; flex-direction: column; flex: 1; width: 100%; min-height: 0; overflow: hidden; }
.w-chat-tab-header {
  display: flex; align-items: center; height: 38px;
  border-bottom: 1px solid var(--border-color); background: var(--bg-surface); flex-shrink: 0;
}
.w-chat-tab-title {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  font-size: 12px; font-weight: 700; color: var(--text-primary); flex: 1;
}
.w-chat-close {
  flex-shrink: 0; margin-left: auto; margin-right: 8px;
  background: transparent; border: none; color: var(--text-secondary); cursor: pointer;
  padding: 4px; border-radius: 4px; transition: all .15s;
}
.w-chat-close:hover { color: var(--text-primary); background: var(--icon-hover-color); }
.w-chat-body { flex: 1; overflow: hidden; min-height: 0; display: flex; flex-direction: column; }
.w-chat-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 2rem; text-align: center; color: var(--text-secondary); gap: 8px; font-size: 12px;
}
.w-scoreboard {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; text-align: center;
}

/* Focus mode toggle (mobile) */
.w-focus-toggle {
  display: none; align-items: center; gap: 6px; margin: 5px 8px;
  padding: 7px 14px; border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg-surface); color: var(--text-primary); font-size: 12px;
  font-weight: 600; cursor: pointer; transition: all .15s; flex-shrink: 0;
  font-family: var(--font-family);
}

/* ── TEAM/SPORT BANNER ── */
.tp-banner {
  border-radius: 14px; overflow: hidden; margin-bottom: 20px;
  border: 1px solid var(--border-color); background: var(--bg-surface); position: relative;
}
.tp-banner-bg { display: flex; align-items: center; gap: 20px; padding: 28px 24px; position: relative; z-index: 1; }
.tp-banner-logo { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.25)); flex-shrink: 0; }
.tp-banner-text { flex: 1; }
.tp-banner-name { font-size: 1.6rem; font-weight: 900; color: var(--text-primary); margin: 0 0 8px; letter-spacing: -.02em; font-family: 'Barlow Condensed', sans-serif; }
.tp-banner-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

/* ── NEWS GRID ── */
.nhl-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 10px; }
.nhl-news-card { cursor: pointer; }
.nhl-news-link { text-decoration: none; }

/* SEO Content section */
.seo-content { background: var(--bg-surface); border-top: 1px solid var(--border-color); }

/* ── FOOTER ── */
.site-footer {
  position: relative; padding: 1.5rem 1rem; text-align: center;
  background: var(--bg-header); border-top: 1px solid var(--border-color);
}
.footer-content { margin: 0 auto; max-width: 48rem; }
.footer-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.footer-logo-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-nav { margin: 12px 0; }
.footer-nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer-nav-list a { font-size: .8rem; color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.footer-nav-list a:hover { color: var(--theme-color); }
.footer-copyright { margin-top: 1rem; font-size: .75rem; color: var(--text-secondary); }
.footer-disclaimer { font-size: .7rem; color: var(--text-secondary); opacity: .6; margin-top: 6px; }
.footer-domains { margin-top: 12px; }
.footer-domains-divider { width: 100%; height: 1px; background: var(--border-color); margin-bottom: 10px; }
.footer-domains-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.footer-domain-link { font-size: .72rem; color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.footer-domain-link:hover { color: var(--theme-color); }
.footer-domains-sep { font-size: 8px; color: var(--text-secondary); opacity: .5; }

/* Sidebar widgets */
.sidebar-widget { margin-bottom: 16px; }
.sidebar-widget-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); padding: 8px 14px; border-bottom: 1px solid var(--border-color); margin: 0; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* Notification banner */
.notification-banner {
  margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between;
  border-radius: .5rem; padding: 1rem 1.25rem; gap: 12px;
  font-size: 13.5px; font-weight: 500; line-height: 1.5;
  border: 1px solid var(--border-color); background: var(--bg-surface);
}
.notification-banner-link { flex-shrink: 0; font-weight: 600; font-size: 12px; text-decoration: underline; text-underline-offset: 2px; }

/* Pagination */
.nav-links { display: flex; justify-content: center; gap: 8px; padding: 20px; }
.page-numbers {
  padding: 6px 12px; border-radius: 6px; font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border-color);
  text-decoration: none; transition: all .15s;
}
.page-numbers.current, .page-numbers:hover { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }

/* Comments */
.comments-area { padding: 20px; background: var(--bg-surface); border-top: 1px solid var(--border-color); }
.comment-form input, .comment-form textarea {
  width: 100%; background: var(--bg-surface-alt); border: 1px solid var(--border-color);
  border-radius: 6px; padding: 8px 12px; color: var(--text-primary);
  font-family: var(--font-family); font-size: .875rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--theme-color); }
.comment-form .submit {
  background: var(--theme-color); color: #fff; border: none; border-radius: 6px;
  padding: 8px 20px; font-weight: 700; cursor: pointer; font-family: var(--font-family);
}

/* Selection color */
::selection { background: var(--theme-color); color: #fff; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .sport-tabs { display: none; }
  .mobile-nav-toggle { display: flex !important; }
  .right-sidebar { display: none; }
  .main-header { padding: 0 8px; }
  .w-chat { display: none; }
  .home-layout { height: calc(100vh - 112px); }
}

@media (max-width: 768px) {
  .score-ticker { height: 42px; overflow-x: auto; }
  .home-layout { height: auto; flex-direction: column; }
  .team-sidebar { display: none; }
  .schedule-main { width: 100%; }
  .schedule-content-wrap { padding: 12px 12px 0; }
  .schedule-content-area { padding: 0 12px 12px; }
  .fixture-full { grid-template-columns: 1fr 100px 1fr auto; gap: 4px; padding: 8px 10px; }
  .fixture-team-logo { width: 28px; height: 28px; }
  .fixture-actions { min-width: auto; }
  .watch-layout { height: auto; flex-direction: column; }
  .watch-sidebar { display: none; }
  .w-chat { width: 100%; max-height: 300px; border-left: none; border-top: 1px solid var(--border-color); }
  .w-focus-toggle { display: inline-flex; }
  .nhl-news-grid { grid-template-columns: 1fr; }
  .sp-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .score-ticker { height: 38px; }
  .main-header { height: 44px; }
  .fixture-full { grid-template-columns: 1fr 80px 1fr; gap: 4px; padding: 7px 8px; }
  .fixture-actions { display: none; }
  .tp-banner-bg { padding: 14px; gap: 10px; }
  .tp-banner-logo { width: 48px; height: 48px; }
  .tp-banner-name { font-size: 1.1rem; }
  .site-name { font-size: .95rem; }
}

/* WP Admin bar adjustment */
.admin-bar .main-header { top: 32px; }
.admin-bar .score-ticker { top: 82px; }
@media screen and (max-width: 782px) {
  .admin-bar .main-header { top: 46px; }
  .admin-bar .score-ticker { top: 96px; }
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px,1px,1px,1px); position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
.screen-reader-text:focus {
  clip: auto !important; background: var(--bg-surface); border-radius: 4px;
  display: block; font-size: 14px; font-weight: 700; height: auto; width: auto;
  padding: 12px 16px; position: static; z-index: 100000;
}

/* ── NAV LINKS (header) ── */
.nav-link {
  display: inline-flex; align-items: center; padding: .5rem .75rem;
  font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  border-radius: 6px; transition: color .15s, background .15s; text-decoration: none;
}
.nav-link:hover { color: var(--text-primary); background: var(--icon-hover-color); }
.nav-link-active { color: var(--text-primary) !important; }
.nav-link-active::after { content:''; display:block; position:absolute; bottom:-1px; left:8px; right:8px; height:2px; background:var(--theme-color); border-radius:2px 2px 0 0; }

/* ── SIDEBAR TEAM NAME (hidden when collapsed) ── */
.sidebar-team-name { font-size:12px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── STREAM ITEM HOVER ── */
.stream-item:hover { background: var(--schedule-hover-color) !important; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* ── SCHEDULE EMPTY ── */
.schedule-empty { padding:2.5rem; text-align:center; color:var(--text-secondary); font-size:13px; }
