/*
Theme Name: OnTVSports Guide
Theme URI: https://ontvsports.com/
Description: Clean, fast White & Soft Ash responsive sports TV guide, live updates, team squads, prediction polls, and blog theme.
Version: 1.1.0
Author: OnTVSports
*/

:root {
  --bg-ash: #dde4ec;
  --bg-card: #ffffff;
  --bg-muted: #f8fafc;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-light: #64748b;
  --brand-green: #059669;
  --brand-blue: #2563eb;
  --live-red: #dc2626;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 10px 28px rgba(15, 23, 42, 0.11), 0 4px 10px rgba(15, 23, 42, 0.05);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-ash);
  color: var(--text-main);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.ontv-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* Sticky Header */
.ontv-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
body.admin-bar .ontv-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .ontv-header { top: 46px; }
}
.ontv-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px;
}
.ontv-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  text-decoration: none !important; line-height: 1;
}
.ontv-brand-logo {
  height: 36px; width: auto; display: block; object-fit: contain;
}
.ontv-brand-slogan {
  font-size: 0.67rem; font-weight: 700; color: #475569;
  letter-spacing: 0.02em; white-space: nowrap;
}
@media (max-width: 640px) {
  .ontv-brand-logo { height: 30px; }
  .ontv-brand-slogan { font-size: 0.6rem; }
}
.ontv-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ontv-nav a {
  color: var(--text-sub); font-weight: 700; font-size: 0.86rem;
  padding: 6px 11px; border-radius: 8px;
}
.ontv-nav a:hover, .ontv-nav a.active {
  background: var(--bg-ash); color: var(--text-main); text-decoration: none;
}
.ontv-header-tools { display: flex; align-items: center; gap: 8px; }
.ontv-tz-select {
  border: 1px solid #cbd5e1; background: var(--bg-ash);
  color: var(--text-main); border-radius: 10px; padding: 6px 10px;
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.ontv-menu-toggle {
  display: none; border: 1px solid var(--border); background: #fff;
  padding: 6px 10px; border-radius: 8px; font-weight: 700; cursor: pointer;
}

.ontv-main { padding: 20px 0 44px; min-height: 75vh; }

/* 1. Crisp Spotlight Hero Card */
.ontv-clean-home { display: flex; flex-direction: column; gap: 20px; }
.ontv-spotlight {
  background: var(--bg-card); border: 1px solid #dce0e5; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.ontv-spotlight.is-live { border-left: 4px solid var(--live-red); }
.ontv-spotlight-bar {
  background: linear-gradient(90deg, #0f172a, #1e293b, #064e3b);
  color: #fff; padding: 10px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ontv-spotlight-label { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 700; }
.ontv-spotlight-time { font-size: 0.82rem; font-weight: 700; color: #6ee7b7; }
.ontv-spotlight-body {
  padding: 18px 20px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; align-items: center;
}
.ontv-spot-teams {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center;
}
.ontv-spot-team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ontv-spot-team img { width: 68px; height: 50px; object-fit: contain; border-radius: 6px; }
.ontv-spot-team strong { font-size: 0.96rem; line-height: 1.25; }
.ontv-spot-score { font-size: 0.92rem; font-weight: 700; color: var(--brand-green); }
.ontv-spot-vs { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ontv-spot-vs span {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-ash); border: 2px solid #f97316;
  color: #f97316; font-weight: 700; font-size: 0.72rem; display: grid; place-items: center;
}
.ontv-spot-vs small { font-size: 0.72rem; color: var(--text-light); max-width: 140px; }
.ontv-spot-side {
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ontv-spot-tv-hdr {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700; color: var(--brand-green); text-transform: uppercase; margin-bottom: 8px;
}
.ontv-link-btn { border: none; background: none; color: var(--text-main); font-size: 0.76rem; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.ontv-spot-note { font-size: 0.78rem; color: var(--text-sub); margin-bottom: 8px; font-weight: 600; }

/* 2. Clean Two-Column Layout */
.ontv-grid-2col { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }

/* Left Main Schedule Panel */
.ontv-panel {
  background: var(--bg-card); border: 1px solid #dce0e5; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.ontv-panel-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ontv-view-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ontv-view-tab {
  border: 1px solid var(--border); background: var(--bg-ash); color: var(--text-sub);
  padding: 7px 14px; border-radius: 10px; font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.ontv-view-tab.active { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.ontv-search-sm {
  border: 1px solid #cbd5e1; background: var(--bg-ash); border-radius: 10px;
  padding: 7px 12px; font-size: 0.84rem; width: 230px; max-width: 100%;
}

.ontv-controls-bar {
  padding: 10px 16px; background: var(--bg-muted); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ontv-status-bar {
  padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ontv-status-tabs {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px;
  background: var(--bg-ash); border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap;
}
.ontv-status-tab {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent;
  background: transparent; color: var(--text-sub); padding: 7px 14px; border-radius: 9px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all .15s;
}
.ontv-status-tab:hover { color: var(--text-main); background: rgba(255,255,255,0.7); }
.ontv-status-tab .ontv-tab-cnt {
  background: rgba(15, 23, 42, 0.08); color: inherit; font-size: 0.72rem;
  font-weight: 700; padding: 1px 7px; border-radius: 999px;
}
.ontv-status-tab[data-status-tab="live"].active {
  background: #fef2f2; color: #dc2626; border-color: #fecaca; box-shadow: 0 1px 2px rgba(220,38,38,0.08);
}
.ontv-status-tab[data-status-tab="live"].active .ontv-tab-cnt { background: #dc2626; color: #fff; }
.ontv-status-tab[data-status-tab="upcoming"].active {
  background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; box-shadow: 0 1px 2px rgba(37,99,235,0.08);
}
.ontv-status-tab[data-status-tab="upcoming"].active .ontv-tab-cnt { background: #2563eb; color: #fff; }
.ontv-status-tab[data-status-tab="finished"].active {
  background: #ecfdf5; color: #059669; border-color: #a7f3d0; box-shadow: 0 1px 2px rgba(5,150,105,0.08);
}
.ontv-status-tab[data-status-tab="finished"].active .ontv-tab-cnt { background: #059669; color: #fff; }
.ontv-status-note { font-size: 0.75rem; font-weight: 600; color: var(--text-light); }
.ontv-live-clock {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: 10px;
  padding: 6px 11px; min-width: 215px;
}
.ontv-clock-row {
  display: flex; align-items: center; justify-content: space-between; gap: 7px;
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
.ontv-clock-date { font-size: 0.76rem; font-weight: 700; color: var(--text-sub); white-space: nowrap; }
.ontv-clock-sep { color: var(--text-light); font-size: 0.72rem; }
.ontv-clock-time { font-size: 0.84rem; font-weight: 700; color: var(--text-main); white-space: nowrap; }
.ontv-sec-track {
  width: 100%; height: 3px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.ontv-sec-fill {
  height: 100%; background: linear-gradient(90deg, #059669, #2563eb);
  border-radius: 999px; transition: width 0.25s linear;
}
.ontv-empty-box {
  padding: 28px 16px; text-align: center; color: var(--text-sub);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ontv-empty-box p { margin: 0; font-size: 0.88rem; font-weight: 600; }
.ontv-date-tabs { display: flex; gap: 6px; overflow-x: auto; }
.ontv-date-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ontv-date-btn.active { background: var(--brand-green); color: #fff; border-color: var(--brand-green); }
.ontv-sport-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ontv-pill {
  border: 1px solid var(--border); background: #fff; color: var(--text-sub);
  padding: 5px 11px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.ontv-pill.active { background: var(--text-main); color: #fff; border-color: var(--text-main); }

.ontv-pill[data-sport-filter="football"],
.ontv-pill[data-team-sport-filter="football"] { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }
.ontv-pill[data-sport-filter="football"]:hover,
.ontv-pill[data-sport-filter="football"].active,
.ontv-pill[data-team-sport-filter="football"].active { background: #0284c7; border-color: #0369a1; color: #fff; }

.ontv-pill[data-sport-filter="cricket"],
.ontv-pill[data-team-sport-filter="cricket"] { background: #dcfce7; border-color: #86efac; color: #15803d; }
.ontv-pill[data-sport-filter="cricket"]:hover,
.ontv-pill[data-sport-filter="cricket"].active,
.ontv-pill[data-team-sport-filter="cricket"].active { background: #16a34a; border-color: #15803d; color: #fff; }

.ontv-pill[data-sport-filter="nfl"],
.ontv-pill[data-team-sport-filter="nfl"] { background: #ffedd5; border-color: #fdba74; color: #c2410c; }
.ontv-pill[data-sport-filter="nfl"]:hover,
.ontv-pill[data-sport-filter="nfl"].active,
.ontv-pill[data-team-sport-filter="nfl"].active { background: #ea580c; border-color: #c2410c; color: #fff; }

.ontv-pill[data-sport-filter="nba"],
.ontv-pill[data-team-sport-filter="nba"] { background: #ede9fe; border-color: #c4b5fd; color: #6d28d9; }
.ontv-pill[data-sport-filter="nba"]:hover,
.ontv-pill[data-sport-filter="nba"].active,
.ontv-pill[data-team-sport-filter="nba"].active { background: #7c3aed; border-color: #6d28d9; color: #fff; }

.ontv-pill[data-sport-filter="formula"],
.ontv-pill[data-team-sport-filter="formula"] { background: #ffe4e6; border-color: #fda4af; color: #be123c; }
.ontv-pill[data-sport-filter="formula"]:hover,
.ontv-pill[data-sport-filter="formula"].active,
.ontv-pill[data-team-sport-filter="formula"].active { background: #e11d48; border-color: #be123c; color: #fff; }

/* Compact Floating Match Cards */
.ontv-rows-wrap {
  display: flex; flex-direction: column; gap: 11px;
  padding: 14px; background: #f8fafc;
}
#ontv-view-tv.ontv-rows-wrap { padding: 0; gap: 0; background: #fff; }
.ontv-row {
  display: grid; grid-template-columns: 134px 1fr; align-items: center; gap: 14px;
  padding: 13px 16px; border: 1px solid #e2e8f0; border-radius: 13px;
  background: #fff; box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ontv-row:hover {
  background: #fafbfc; box-shadow: var(--shadow-hover); transform: translateY(-2px);
}
.ontv-row-live { border-left: 4px solid var(--live-red) !important; }
.ontv-row-upcoming { border-left: 4px solid var(--brand-blue) !important; }
.ontv-row-finished { border-left: 4px solid #cbd5e1 !important; }

/* 5 Distinct Light Sport Row Highlights */
.ontv-row[data-sport*="football"] { background: #eff6ff; border-color: #bfdbfe; }
.ontv-row[data-sport*="football"]:hover { background: #e0f2fe; }
.ontv-row[data-sport*="football"] .ontv-sport-mini { background: #dbeafe; color: #0369a1; border-color: #93c5fd; }

.ontv-row[data-sport*="cricket"] { background: #ecfdf5; border-color: #a7f3d0; }
.ontv-row[data-sport*="cricket"]:hover { background: #d1fae5; }
.ontv-row[data-sport*="cricket"] .ontv-sport-mini { background: #dcfce7; color: #15803d; border-color: #86efac; }

.ontv-row[data-sport*="nfl"] { background: #fff4e6; border-color: #fed7aa; }
.ontv-row[data-sport*="nfl"]:hover { background: #ffedd5; }
.ontv-row[data-sport*="nfl"] .ontv-sport-mini { background: #ffedd5; color: #c2410c; border-color: #fdba74; }

.ontv-row[data-sport*="nba"] { background: #f5f0ff; border-color: #ddd6fe; }
.ontv-row[data-sport*="nba"]:hover { background: #ede9fe; }
.ontv-row[data-sport*="nba"] .ontv-sport-mini { background: #ede9fe; color: #6d28d9; border-color: #c4b5fd; }

.ontv-row[data-sport*="formula"] { background: #fff0f2; border-color: #fecdd3; }
.ontv-row[data-sport*="formula"]:hover { background: #ffe4e6; }
.ontv-row[data-sport*="formula"] .ontv-sport-mini { background: #ffe4e6; color: #be123c; border-color: #fda4af; }

.ontv-row-time { text-align: left; }
.ontv-ko-time { font-weight: 700; font-size: 0.85rem; color: var(--text-main); margin-top: 3px; }
.ontv-ko-date { font-size: 0.7rem; color: var(--text-light); }
.ontv-match-timer {
  display: inline-block; margin-top: 4px; padding: 2px 7px; border-radius: 6px;
  font-size: 0.67rem; font-weight: 700; line-height: 1.3; white-space: normal; word-break: break-word;
}
.ontv-timer-live { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.ontv-timer-up { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.ontv-row-match { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.ontv-row-meta { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--text-sub); font-weight: 600; min-width: 0; flex-wrap: wrap; }
.ontv-row-tourn-txt {
  background: #fff; color: #0f172a; border: 1px solid #cbd5e1;
  padding: 2px 9px; border-radius: 6px; font-size: 0.73rem; font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px;
}
.ontv-round-chip {
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
  padding: 2px 9px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}
.ontv-session-chip {
  background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1;
  padding: 2px 9px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; white-space: nowrap;
  max-width: 240px; overflow: hidden; text-overflow: ellipsis;
}
.ontv-tourn-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.ontv-fix-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 9px; background: #fff; border: 1px solid var(--border); padding: 3px; flex-shrink: 0; }
.ontv-sport-mini {
  background: var(--bg-ash); color: var(--text-main); border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.69rem; text-transform: uppercase; flex-shrink: 0;
}
.ontv-row-body-split { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ontv-row-teams { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; max-width: 440px; }
.ontv-row-team { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ontv-row-team-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ontv-row-team img.ontv-flag-rect {
  width: 38px; height: 25px; object-fit: cover; border-radius: 5px; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}
.ontv-row-team img.ontv-crest-logo,
.ontv-row-team img {
  width: 34px; height: 28px; object-fit: contain; border-radius: 4px; flex-shrink: 0;
}
.ontv-mini-fallback {
  width: 36px; height: 26px; background: var(--bg-ash);
  border-radius: 4px; font-size: 0.72rem; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.ontv-row-tname { font-weight: 700; font-size: 0.91rem; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ontv-row-score {
  font-size: 0.82rem; font-weight: 700; color: #047857;
  background: #ffffff; border: 1px solid #bbf7d0; border-radius: 6px;
  padding: 1px 8px; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ontv-vs-sep { font-size: 0.76rem; color: var(--text-light); font-weight: 700; }

.ontv-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ontv-tv-stack { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.ontv-tv-more {
  background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1;
  border-radius: 6px; padding: 2px 6px; font-size: 0.7rem; font-weight: 700;
}
.ontv-team-rec {
  font-size: 0.68rem; font-weight: 700; color: #475569;
  background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; padding: 0 5px; white-space: nowrap;
}
.ontv-row-highlights {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  border-top: 1px dashed rgba(15, 23, 42, 0.09); padding-top: 8px; margin-top: 1px;
}
.ontv-hl-pill {
  background: #fff; color: #334155; border: 1px solid #e2e8f0;
  border-radius: 6px; padding: 2px 8px; font-size: 0.71rem; font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.ontv-hl-stat { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; font-weight: 700; }
.ontv-hl-venue { color: #475569; }
.ontv-fmt-pill {
  font-size: 0.69rem; font-weight: 700; padding: 2px 9px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap;
}
.ontv-fmt-t20  { background: #fae8ff; color: #86198f; border: 1px solid #f0abfc; }
.ontv-fmt-t10  { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }
.ontv-fmt-odi  { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }
.ontv-fmt-test { background: #ffe4e6; color: #9f1239; border: 1px solid #fda4af; }
.ontv-fmt-fc   { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.ontv-fmt-foot { background: #e0e7ff; color: #3730a3; border: 1px solid #c7d2fe; }
.ontv-panel-foot {
  padding: 12px 16px; background: #fff; text-align: center;
  border: 1px solid #e2e8f0; border-radius: 12px; margin-top: 2px;
}
.ontv-more-link { font-size: 0.85rem; font-weight: 700; color: var(--brand-blue); }

/* Right Sidebar Cards */
.ontv-sidebar-col { display: flex; flex-direction: column; gap: 16px; }
.ontv-side-card {
  background: var(--bg-card); border: 1px solid #dce0e5; border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.ontv-side-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}
.ontv-side-head h3 { margin: 0; font-size: 0.92rem; font-weight: 700; }
.ontv-side-head a { font-size: 0.78rem; font-weight: 700; }
.ontv-side-polls { display: flex; flex-direction: column; gap: 12px; }
.ontv-poll-match-title { font-size: 0.8rem; font-weight: 700; color: var(--text-main); margin-bottom: 5px; }

.ontv-side-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ontv-side-team-pill {
  display: flex; align-items: center; gap: 7px; padding: 6px 8px;
  background: var(--bg-muted); border: 1px solid var(--border); border-radius: 9px;
  font-size: 0.76rem; font-weight: 700; color: var(--text-main);
}
.ontv-side-team-pill img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.ontv-side-team-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ontv-side-posts { display: flex; flex-direction: column; gap: 10px; }
.ontv-side-post-link { display: block; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9; color: var(--text-main); }
.ontv-side-post-link:last-child { border-bottom: none; padding-bottom: 0; }
.ontv-side-post-link strong { display: block; font-size: 0.82rem; line-height: 1.35; }
.ontv-side-post-link small { font-size: 0.72rem; color: var(--text-light); }

/* Badges, Buttons, Polls, Cards (shared across subpages) */
.ontv-badge { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.ontv-badge-live { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ontv-badge-up { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.ontv-badge-done { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.ontv-tv-pill {
  background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0;
  border-radius: 7px; padding: 3px 8px; font-size: 0.74rem; font-weight: 700; white-space: nowrap;
}
.ontv-guide-btn {
  border: 1px solid #cbd5e1; background: #fff; color: var(--text-main);
  padding: 5px 10px; border-radius: 8px; font-size: 0.76rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.ontv-guide-btn:hover { background: var(--bg-ash); }

.ontv-poll-box { border-top: 1px dashed var(--border); padding-top: 9px; }
.ontv-side-polls .ontv-poll-box:first-child { border-top: none; padding-top: 0; }
.ontv-poll-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
.ontv-poll-hint { color: var(--text-light); font-weight: 600; }
.ontv-voted-chip { background: #ecfdf5; color: #15803d; padding: 1px 7px; border-radius: 999px; font-size: 0.68rem; }
.ontv-poll-btns { display: flex; gap: 6px; }
.ontv-vote-btn {
  flex: 1; border: 1px solid var(--border); background: #fff; color: var(--text-main);
  padding: 6px 8px; border-radius: 8px; font-weight: 700; font-size: 0.78rem; cursor: pointer;
}
.ontv-vote-btn:hover { background: var(--text-main); color: #fff; border-color: var(--text-main); }
.ontv-poll-bars { display: flex; flex-direction: column; gap: 4px; }
.ontv-bar-row { display: grid; grid-template-columns: 52px 1fr 36px; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; }
.ontv-bar-track { height: 7px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.ontv-bar-fill { height: 100%; border-radius: 999px; transition: width .35s ease; }
.ontv-fill-home { background: var(--brand-blue); }
.ontv-fill-draw { background: #94a3b8; }
.ontv-fill-away { background: var(--brand-green); }

/* Full Subpage Styles */
.ontv-hero-bar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.ontv-hero-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 700; }
.ontv-hero-sub { margin: 0; color: var(--text-sub); font-size: 0.9rem; }
.ontv-filter-shell {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.ontv-sub-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ontv-search, .ontv-select { border: 1px solid var(--border); background: var(--bg-muted); border-radius: 9px; padding: 8px 12px; font-size: 0.88rem; min-width: 220px; }

.ontv-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.ontv-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 11px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ontv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ontv-card.ontv-status-live { border-left: 4px solid var(--live-red); }
.ontv-card.ontv-status-upcoming { border-left: 4px solid var(--brand-blue); }
.ontv-card.ontv-status-finished { border-left: 4px solid #94a3b8; }
.ontv-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ontv-card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-sub); }
.ontv-sport-tag { background: #f1f5f9; color: var(--text-main); padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; }
.ontv-tourney { font-weight: 600; }
.ontv-teams-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: var(--bg-muted); border-radius: 12px; padding: 10px 12px; }
.ontv-team { display: flex; align-items: center; gap: 8px; }
.ontv-team-away { justify-content: flex-end; text-align: right; }
.ontv-logo-wrap { width: 38px; height: 38px; border-radius: 9px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.ontv-logo-wrap img { width: 30px; height: 30px; object-fit: contain; }
.ontv-flag-fallback { font-weight: 700; font-size: 0.8rem; }
.ontv-team-name { font-weight: 700; font-size: 0.88rem; }
.ontv-team-score { font-weight: 700; font-size: 0.84rem; color: var(--brand-green); }
.ontv-center-time { text-align: center; }
.ontv-score-note { font-size: 0.8rem; color: var(--text-sub); background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 5px 10px; font-weight: 600; }
.ontv-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ontv-tv-list { display: flex; gap: 5px; flex-wrap: wrap; }

/* Tables */
.ontv-tv-table-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ontv-table-responsive { width: 100%; overflow-x: auto; }
.ontv-tv-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.ontv-tv-table th { background: var(--bg-muted); text-align: left; padding: 10px 12px; font-size: 0.72rem; text-transform: uppercase; color: var(--text-light); border-bottom: 1px solid var(--border); }
.ontv-tv-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
.ontv-time-cell { font-weight: 700; white-space: nowrap; }
.ontv-channel-chip { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 0.76rem; white-space: nowrap; }
.ontv-region-tag { background: #f1f5f9; color: var(--text-sub); padding: 2px 7px; border-radius: 6px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; }
.ontv-dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live-red); margin-right: 5px; }

/* Teams Directory */
.ontv-teams-layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.ontv-teams-sidebar, .ontv-team-detail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.ontv-teams-nav { display: flex; flex-direction: column; gap: 5px; max-height: 580px; overflow-y: auto; }
.ontv-team-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-main); border: 1px solid transparent; }
.ontv-team-nav-item img { width: 26px; height: 26px; object-fit: contain; }
.ontv-team-nav-item strong { display: block; font-size: 0.85rem; }
.ontv-team-nav-item small { color: var(--text-light); font-size: 0.72rem; }
.ontv-team-nav-item.active, .ontv-team-nav-item:hover { background: var(--bg-ash); border-color: var(--border); text-decoration: none; }
.ontv-team-header { display: flex; align-items: center; gap: 14px; }
.ontv-team-header img { width: 52px; height: 52px; object-fit: contain; }

/* Blog & Article */
.ontv-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ontv-post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; transition: transform .15s ease, box-shadow .15s ease; }
.ontv-post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.ontv-post-card h3 { margin: 0; font-size: 1.05rem; }
.ontv-post-meta { font-size: 0.76rem; color: var(--text-light); font-weight: 600; }
.ontv-article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); max-width: 860px; margin: 0 auto; }
.ontv-article-card h1 { margin-top: 0; font-size: 1.75rem; }
.ontv-article-body { font-size: 1rem; color: #1e293b; }

.ontv-live-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin-bottom: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-weight: 700; font-size: 0.86rem; box-shadow: var(--shadow); }
.ontv-updated-at { color: var(--text-light); font-weight: 600; font-size: 0.78rem; }

/* Modal */
.ontv-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: none; align-items: center; justify-content: center; z-index: 999; padding: 16px; }
.ontv-modal.open { display: flex; }
.ontv-modal-box { background: #fff; border-radius: 16px; max-width: 700px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,0.22); }
.ontv-modal-hdr { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 14px; }
.ontv-modal-close { border: 1px solid var(--border); background: var(--bg-muted); border-radius: 8px; padding: 4px 10px; font-weight: 700; cursor: pointer; }

/* Footer */
.ontv-footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-sub); font-size: 0.84rem; box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04); }
.ontv-footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ontv-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .ontv-grid-2col { grid-template-columns: 1fr; }
  .ontv-spotlight-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ontv-row { grid-template-columns: 1fr; gap: 8px; }
  .ontv-row-body-split { flex-direction: column; align-items: stretch; gap: 10px; }
  .ontv-row-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .ontv-teams-layout { grid-template-columns: 1fr; }
  .ontv-cards-grid { grid-template-columns: 1fr; }
  .ontv-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding-top: 8px; }
  .ontv-nav.open { display: flex; }
  .ontv-menu-toggle { display: inline-block; }
}

/* ontv schedule card v2 (2026-11-24): status line + tidy mobile card */
.ontv-row-status {
  font-size: 0.76rem; font-weight: 600; line-height: 1.4; color: #334155;
  background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px; padding: 5px 9px; margin-top: 2px;
}
.ontv-row-status-live { color: #9f1239; border-color: #fecdd3; background: #fff1f2; }
.ontv-row-status-finished { color: #065f46; border-color: #a7f3d0; background: #f0fdf4; }
@media (max-width: 760px) {
  .ontv-rows-wrap { padding: 10px; gap: 10px; }
  .ontv-row { padding: 12px 12px 11px; gap: 9px; border-radius: 14px; }
  .ontv-row:hover { transform: none; }
  .ontv-row-time { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
  .ontv-row-time .ontv-ko-time { margin-top: 0; font-size: 0.9rem; }
  .ontv-row-time .ontv-ko-date { font-size: 0.74rem; }
  .ontv-row-time .ontv-ko-date::before { content: "\00b7"; margin-right: 6px; color: #94a3b8; }
  .ontv-row-time .ontv-match-timer { margin-top: 0; margin-left: auto; }
  .ontv-row-match { gap: 8px; }
  .ontv-row-meta { gap: 5px; row-gap: 5px; }
  .ontv-row-tourn-txt { max-width: 100%; flex: 0 1 auto; border: 0; background: transparent; box-shadow: none;
    padding: 0; font-size: 0.84rem; }
  .ontv-round-chip { white-space: normal; }
  .ontv-row-teams { max-width: none; gap: 8px; }
  .ontv-row-team { align-items: flex-start; }
  .ontv-row-team-id { gap: 9px; flex: 1 1 auto; }
  .ontv-row-tname { font-size: 0.95rem; white-space: normal; line-height: 1.25; }
  .ontv-row-team img { width: 26px; height: 26px; }
  .ontv-row-score { font-size: 0.86rem; white-space: normal; text-align: right; max-width: 52%; line-height: 1.3; }
  .ontv-row-actions { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .ontv-tv-stack { justify-content: flex-start; flex: 1 1 auto; min-width: 0; }
  .ontv-tv-pill { white-space: normal; }
  .ontv-guide-btn { padding: 7px 11px; border-radius: 9px; }
  .ontv-row-highlights { padding-top: 7px; }
  .ontv-hl-pill { font-size: 0.7rem; }
}

/* no sideways scroll on phones: grid columns may shrink below their content (long team names) */
.ontv-side-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ontv-side-team-pill { min-width: 0; }
@media (max-width: 960px) {
  .ontv-grid-2col { grid-template-columns: minmax(0, 1fr); }
  .ontv-grid-2col > * { min-width: 0; }
}

/* mobile header one row + card details (2026-11-24) */
@media (max-width: 760px) {
  .ontv-header-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .ontv-brand { order: 1; font-size: 1.05rem; min-width: 0; white-space: nowrap; }
  .ontv-header-tools { order: 2; margin-left: auto; }
  .ontv-menu-toggle { order: 3; padding: 6px 10px; font-size: 0.85rem; }
  .ontv-nav { order: 4; }
  .ontv-nav.open { position: absolute; left: 0; right: 0; top: 100%; width: auto; background: #fff;
    padding: 10px 16px; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12); z-index: 50; }
  .ontv-tz-select { max-width: 112px; padding: 6px 8px; font-size: 0.78rem; }
  .ontv-row-meta .ontv-sport-mini { font-size: 0.66rem; padding: 2px 7px; }
  .ontv-row-tname { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; word-break: normal; overflow-wrap: normal; }
  .ontv-row-score { white-space: normal; text-align: right; flex: 0 1 auto; max-width: 62%; font-size: 0.84rem; }
}

/* status tabs one row on phones (Upcoming / Live / Result) */
@media (max-width: 760px) {
  .ontv-status-bar { padding-left: 8px; padding-right: 8px; }
  .ontv-status-tabs { flex-wrap: nowrap; gap: 4px; width: 100%; }
  .ontv-status-tab { flex: 1 1 auto; min-width: 0; padding: 7px 6px; font-size: 0.78rem; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
  .ontv-status-tab img.emoji { display: none !important; }
  .ontv-status-tab .ontv-tab-cnt { font-size: 0.68rem; padding: 0 5px; margin: 0; }
}

/* score on one line on phones; the team name gives way (wraps at spaces, then ellipsis) */
@media (max-width: 760px) {
  .ontv-row-team { gap: 8px; }
  .ontv-row-team-id { flex: 1 1 auto; min-width: 0; }
  .ontv-row-tname { overflow: hidden; text-overflow: ellipsis; }
  .ontv-row-score { white-space: nowrap; max-width: none; flex: 0 0 auto; font-size: 0.8rem; padding: 1px 7px; }
}

/* light divider lines on phones: under the league line and under the teams */
@media (max-width: 760px) {
  .ontv-row-meta { padding-bottom: 8px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
  .ontv-row-teams { padding-bottom: 9px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
}

/* date divider between match cards (assets/date-sep.js) */
.ontv-date-sep {
  display: flex; align-items: center; gap: 10px; margin: 8px 2px 0;
  font-size: 0.78rem; font-weight: 700; color: #334155;
}
.ontv-date-sep:first-child { margin-top: 0; }
.ontv-date-sep::before, .ontv-date-sep::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
}
.ontv-date-sep span {
  flex: 0 0 auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 4px 12px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06); white-space: nowrap;
}
.ontv-date-sep b { color: #2563eb; font-weight: 800; }
.ontv-date-sep-today span { border-color: #bbf7d0; background: #f0fdf4; }
.ontv-date-sep-today b { color: #059669; }

/* long score drops below the team name (still one line) instead of squeezing the name */
@media (max-width: 760px) {
  .ontv-row-team { flex-wrap: wrap; row-gap: 3px; }
  .ontv-row-team-id { flex: 1 1 auto; min-width: min(100%, 150px); }
  .ontv-row-score { margin-left: auto; }
}

/* date row removed from the home Upcoming tab (the list has date dividers) */
#ontv-home-date-tabs { display: none !important; }

/* menu icons */
.ontv-nav a { display: inline-flex; align-items: center; gap: 6px; }
.ontv-nav-ic { flex-shrink: 0; opacity: .75; }
.ontv-nav a:hover .ontv-nav-ic, .ontv-nav a.active .ontv-nav-ic { opacity: 1; }
.ontv-nav a[href$="/live-updates/"] .ontv-nav-ic { color: #dc2626; opacity: 1; }
@media (max-width: 1000px) and (min-width: 769px) { .ontv-nav a { gap: 4px; } }

/* sidebar on every page (ontv-sidebar.php) */
.ontv-page-grid { margin-top: 0; }
.ontv-page-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ontv-page-main > .ontv-article-card { margin: 0; }
.ontv-page-main .ontv-blog-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ===== ONE sport palette for the whole site =====
   Colour tells the visitor the sport: football blue, cricket green, NBA purple, NFL orange, F1 red-pink.
   Everything (theme rows/cards, home TV tab, fixtures, teams, live board, channel directory) reads --sp*.
   Match status is shown by badges (red ● LIVE), never by the sport colour. */
:root {
  --c-football: #0284c7; --c-football-tx: #0369a1; --c-football-bg: #e0f2fe; --c-football-bd: #7dd3fc; --c-football-soft: #f0f9ff;
  --c-cricket: #16a34a; --c-cricket-tx: #15803d; --c-cricket-bg: #dcfce7; --c-cricket-bd: #86efac; --c-cricket-soft: #f0fdf4;
  --c-nba: #7c3aed; --c-nba-tx: #6d28d9; --c-nba-bg: #ede9fe; --c-nba-bd: #c4b5fd; --c-nba-soft: #f5f3ff;
  --c-nfl: #ea580c; --c-nfl-tx: #c2410c; --c-nfl-bg: #ffedd5; --c-nfl-bd: #fdba74; --c-nfl-soft: #fff7ed;
  --c-f1: #e11d48; --c-f1-tx: #be123c; --c-f1-bg: #ffe4e6; --c-f1-bd: #fda4af; --c-f1-soft: #fff1f2;
  --c-tennis: #65a30d; --c-tennis-tx: #4d7c0f; --c-tennis-bg: #ecfccb; --c-tennis-bd: #bef264; --c-tennis-soft: #f7fee7;
  --c-golf: #0d9488; --c-golf-tx: #0f766e; --c-golf-bg: #ccfbf1; --c-golf-bd: #5eead4; --c-golf-soft: #f0fdfa;
  --c-horse-racing: #92400e; --c-horse-racing-tx: #78350f; --c-horse-racing-bg: #fdecd8; --c-horse-racing-bd: #e7b48a; --c-horse-racing-soft: #fff8f1;
  --c-rugby: #ca8a04; --c-rugby-tx: #a16207; --c-rugby-bg: #fef9c3; --c-rugby-bd: #fde047; --c-rugby-soft: #fefce8;
  --c-combat: #4338ca; --c-combat-tx: #3730a3; --c-combat-bg: #e0e7ff; --c-combat-bd: #a5b4fc; --c-combat-soft: #eef2ff;
  --c-multi: #475569; --c-multi-tx: #334155; --c-multi-bg: #f1f5f9; --c-multi-bd: #cbd5e1; --c-multi-soft: #f8fafc;
}
[data-sport*="football"],
[data-sport-filter="football"],
[data-team-sport-filter="football"],
[data-ontvr-sport="football"],
[data-ontvt-sport="football"],
[data-sp="football"] { --sp: var(--c-football); --sp-tx: var(--c-football-tx); --sp-bg: var(--c-football-bg); --sp-bd: var(--c-football-bd); --sp-soft: var(--c-football-soft); }
[data-sport*="cricket"],
[data-sport-filter="cricket"],
[data-team-sport-filter="cricket"],
[data-ontvr-sport="cricket"],
[data-ontvt-sport="cricket"],
[data-sp="cricket"] { --sp: var(--c-cricket); --sp-tx: var(--c-cricket-tx); --sp-bg: var(--c-cricket-bg); --sp-bd: var(--c-cricket-bd); --sp-soft: var(--c-cricket-soft); }
[data-sport*="nba"],
[data-sport-filter="nba"],
[data-team-sport-filter="nba"],
[data-ontvr-sport="nba"],
[data-ontvt-sport="nba"],
[data-sp="nba"],
[data-sp="basketball"] { --sp: var(--c-nba); --sp-tx: var(--c-nba-tx); --sp-bg: var(--c-nba-bg); --sp-bd: var(--c-nba-bd); --sp-soft: var(--c-nba-soft); }
[data-sport*="nfl"],
[data-sport-filter="nfl"],
[data-team-sport-filter="nfl"],
[data-ontvr-sport="nfl"],
[data-ontvt-sport="nfl"],
[data-sp="nfl"],
[data-sp="american-football"] { --sp: var(--c-nfl); --sp-tx: var(--c-nfl-tx); --sp-bg: var(--c-nfl-bg); --sp-bd: var(--c-nfl-bd); --sp-soft: var(--c-nfl-soft); }
[data-sport*="formula"],
[data-sport-filter="formula"],
[data-team-sport-filter="formula"],
[data-ontvr-sport="formula-1"],
[data-ontvt-sport="formula-1"],
[data-sp="formula-1"],
[data-sp="motorsport"] { --sp: var(--c-f1); --sp-tx: var(--c-f1-tx); --sp-bg: var(--c-f1-bg); --sp-bd: var(--c-f1-bd); --sp-soft: var(--c-f1-soft); }
[data-sp="tennis"] { --sp: var(--c-tennis); --sp-tx: var(--c-tennis-tx); --sp-bg: var(--c-tennis-bg); --sp-bd: var(--c-tennis-bd); --sp-soft: var(--c-tennis-soft); }
[data-sp="golf"] { --sp: var(--c-golf); --sp-tx: var(--c-golf-tx); --sp-bg: var(--c-golf-bg); --sp-bd: var(--c-golf-bd); --sp-soft: var(--c-golf-soft); }
[data-sp="horse-racing"] { --sp: var(--c-horse-racing); --sp-tx: var(--c-horse-racing-tx); --sp-bg: var(--c-horse-racing-bg); --sp-bd: var(--c-horse-racing-bd); --sp-soft: var(--c-horse-racing-soft); }
[data-sp="rugby"] { --sp: var(--c-rugby); --sp-tx: var(--c-rugby-tx); --sp-bg: var(--c-rugby-bg); --sp-bd: var(--c-rugby-bd); --sp-soft: var(--c-rugby-soft); }
[data-sp="combat-sports"] { --sp: var(--c-combat); --sp-tx: var(--c-combat-tx); --sp-bg: var(--c-combat-bg); --sp-bd: var(--c-combat-bd); --sp-soft: var(--c-combat-soft); }
[data-sp="multi-sport"] { --sp: var(--c-multi); --sp-tx: var(--c-multi-tx); --sp-bg: var(--c-multi-bg); --sp-bd: var(--c-multi-bd); --sp-soft: var(--c-multi-soft); }

/* match rows and cards: the left strip is the sport (status classes used to set it) */
.ontv-row[data-sport], .ontv-card[data-sport] { border-left-color: var(--sp, #cbd5e1) !important; }
/* sport words/tags take their sport's colour wherever a sport is known */
[data-sport] .ontv-sport-mini, [data-sport] .ontv-sport-tag,
[data-ontvr-sport] .ontv-sport-mini { background: var(--sp-bg, #f1f5f9); color: var(--sp-tx, #334155); border: 1px solid var(--sp-bd, #e2e8f0); }

/* ===== non-sport chips are neutral, so only the sport colour means "which sport" =====
   (status, countdown, format, TV channel, stat chips used blue/green/purple = football/cricket/NBA).
   Red stays only for LIVE. html body prefix: wins over plugin <style> blocks printed later. */
html body .ontv-badge-up, html body .ontv-match-timer.ontv-timer-up,
html body .ontv-fmt-pill, html body .ontv-round-chip,
html body .ontv-tv-pill, html body .ontv-channel-chip,
html body .ontv-hl-pill.ontv-hl-stat,
html body .ontv-row-status-finished, html body .ontv-row-status-upcoming {
  background: #f1f5f9; color: #334155; border-color: #e2e8f0;
}
html body .ontv-row-status-finished { font-weight: 700; }
/* TV chips on home TV tab, fixtures, live board */
html body .ontvr-ch { background: #f8fafc; border-color: #e2e8f0; color: #1e293b; }
html body .ontvr-tvn, html body .ontvf-lbl { color: #334155; }
/* live board: countdown, winner, result line */
html body .ontvl-when small { color: #64748b; }
html body .ontvl-team.is-win .ontvl-score { color: #0f172a; }
html body .ontvl-rtext { color: #334155; }
/* teams: "players →" button */
html body .ontvt-card .ontvt-n:not(.is-none) { background: #0f172a; color: #fff; }

/* sidebar team pills never widen the page: long names shorten with … */
.ontv-sidebar-col .ontv-side-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ontv-sidebar-col .ontv-side-team-pill { min-width: 0; overflow: hidden; }
.ontv-sidebar-col .ontv-side-team-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* blog pictures */
.ontv-post-hero { margin: 6px 0 18px; }
.ontv-post-hero img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; display: block; }
.ontv-post-thumb { display: block; margin: -16px -16px 10px; }
.ontv-post-thumb img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px 14px 0 0; display: block; }

/* streaming apps on match rows (fuchsia = streaming, as on /streaming/) */
.ontv-tv-pill.ontv-app-pill { background: #fdf4ff; border-color: #f5d0fe; color: #86198f; }

/* featured match: upcoming badge + starts-in countdown */
.ontv-spot-up { margin-left: 2px; }
.ontv-spot-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ontv-spot-cd { font-size: .76rem; font-weight: 800; color: #fde68a; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 600px) { .ontv-spot-right { gap: 6px; } .ontv-spot-cd { font-size: .7rem; padding: 2px 7px; } }

/* article tables (blog posts, info pages) */
.ontv-article-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 22px; font-size: .92rem;
  border: 1px solid #dce0e5; border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.ontv-article-body table thead th { background: #0f172a; color: #fff; font-weight: 800; text-align: left; padding: 11px 14px; white-space: nowrap; font-size: .82rem; letter-spacing: .02em; }
.ontv-article-body table td { padding: 10px 14px; border-top: 1px solid #e8ebef; vertical-align: top; line-height: 1.45; min-width: 140px; }
.ontv-article-body table tbody tr:nth-child(even) td { background: #f8fafc; }
.ontv-article-body table tbody tr:hover td { background: #eef6ff; }
.ontv-article-body table td:first-child { font-weight: 800; color: #0f172a; white-space: nowrap; min-width: 0; }
@media (min-width: 761px) { .ontv-article-body table { display: table; } }
.ontv-article-body h2 { margin: 28px 0 10px; font-size: 1.35rem; line-height: 1.3; }
.ontv-article-body h3 { margin: 20px 0 8px; font-size: 1.1rem; }
.ontv-article-body p, .ontv-article-body li { line-height: 1.7; }
.ontv-article-body ul { padding-left: 22px; }

/* ===== post highlight blocks (one meaning per colour: blue = info/where to watch, amber = watch out, green = good to know / free) ===== */
.ontv-article-body .ontv-key{background:linear-gradient(135deg,#0f172a,#1e3a5f);color:#e2e8f0;border-radius:16px;padding:18px 20px;margin:8px 0 22px}
.ontv-article-body .ontv-key h2,.ontv-article-body .ontv-key strong{color:#fff}
.ontv-article-body .ontv-key h2{margin:0 0 10px;font-size:1.05rem;letter-spacing:.04em;text-transform:uppercase}
.ontv-article-body .ontv-key ul{margin:0;padding-left:20px}.ontv-article-body .ontv-key li{margin:4px 0}
.ontv-article-body .ontv-key a{color:#7dd3fc}
.ontv-article-body .ontv-callout{border-radius:12px;padding:12px 16px;margin:14px 0;border:1px solid;display:flex;gap:10px;align-items:flex-start;line-height:1.6}
.ontv-article-body .ontv-callout>span:first-child{font-size:1.2rem;line-height:1.3}
.ontv-article-body .ontv-callout p{margin:0}
.ontv-article-body .ontv-callout.info{background:#eff6ff;border-color:#bfdbfe;color:#1e3a8a}
.ontv-article-body .ontv-callout.warn{background:#fffbeb;border-color:#fde68a;color:#78350f}
.ontv-article-body .ontv-callout.good{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.ontv-article-body .ontv-country{border:1px solid #dce0e5;border-left:5px solid var(--c,#0284c7);border-radius:14px;padding:4px 18px 14px;margin:18px 0;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.05)}
.ontv-article-body .ontv-country h2,.ontv-article-body .ontv-country h3{display:flex;align-items:center;gap:10px}
.ontv-article-body .ontv-country h2 img,.ontv-article-body .ontv-country h3 img{width:34px;height:23px;object-fit:cover;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.ontv-article-body .ontv-watch{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 10px}
.ontv-article-body .ontv-watch b{font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b;margin-right:2px}
.ontv-article-body .ontv-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;font-size:.84rem;font-weight:700;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8!important;text-decoration:none!important}
.ontv-article-body .ontv-chip.app{background:#fdf4ff;border-color:#f5d0fe;color:#a21caf!important}
.ontv-article-body .ontv-chip.free{background:#ecfdf5;border-color:#a7f3d0;color:#047857!important}
.ontv-article-body a.ontv-chip:hover{filter:brightness(.95)}
.ontv-article-body details.ontv-faq{border:1px solid #dce0e5;border-radius:12px;padding:0 16px;margin:10px 0;background:#fff}
.ontv-article-body details.ontv-faq summary{cursor:pointer;font-weight:800;padding:12px 0;list-style:none}
.ontv-article-body details.ontv-faq summary::-webkit-details-marker{display:none}
.ontv-article-body details.ontv-faq summary::after{content:"+";float:right;color:#64748b;font-size:1.2rem;line-height:1}
.ontv-article-body details.ontv-faq[open] summary::after{content:"–"}
.ontv-article-body details.ontv-faq p{margin:0 0 12px}

/* blog list: landscape cards (picture left, text right; stacked on phones) */
.ontv-page-main .ontv-blog-grid { grid-template-columns: 1fr; gap: 16px; }
.ontv-blog-grid .ontv-post-card { display: grid; grid-template-columns: minmax(240px, 46%) 1fr; background: linear-gradient(90deg, #0f172a 0, #0f172a 46%, var(--bg-card) 46%); grid-auto-rows: min-content; column-gap: 22px; row-gap: 8px; padding: 0; overflow: hidden; align-content: start; }
.ontv-blog-grid .ontv-post-card > :not(.ontv-post-thumb) { grid-column: 2; padding-right: 20px; }
.ontv-blog-grid .ontv-post-card > .ontv-post-meta { padding-top: 20px; }
.ontv-blog-grid .ontv-post-card > a:last-child { padding-bottom: 20px; }
.ontv-blog-grid .ontv-post-card h3 { font-size: 1.25rem; line-height: 1.3; }
.ontv-blog-grid .ontv-post-thumb { grid-column: 1; grid-row: 1 / span 4; margin: 0; align-self: center; }
.ontv-blog-grid .ontv-post-thumb img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: contain; border-radius: 0; }
.ontv-blog-grid .ontv-post-card:not(:has(.ontv-post-thumb)) > * { grid-column: 1 / -1; padding-left: 20px; }
@media (max-width: 700px) {
  .ontv-blog-grid .ontv-post-card { grid-template-columns: 1fr; background: var(--bg-card); }
  .ontv-blog-grid .ontv-post-thumb { background: #0f172a; }
  .ontv-blog-grid .ontv-post-card > :not(.ontv-post-thumb) { grid-column: 1; padding: 0 16px; }
  .ontv-blog-grid .ontv-post-card > .ontv-post-meta { padding-top: 4px; }
  .ontv-blog-grid .ontv-post-card > a:last-child { padding-bottom: 16px; }
  .ontv-blog-grid .ontv-post-thumb { grid-row: auto; }
  .ontv-blog-grid .ontv-post-thumb img { height: auto; }
}
