/* Western Sports Network — colors from the logo: red, black, white. Turquoise marks "free" and "active". */
@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --red: #E90000;        /* logo red */
  --red-deep: #B30000;   /* hover / pressed */
  --black: #000;         /* logo black */
  --white: #fff;
  --panel: #F3F3F3;      /* quiet surface */
  --line: #DCDCDC;
  --muted: #5C5C5C;      /* 7:1 on white */
  --turq: #0E9AA7;       /* free / active */
  --radius: 6px;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-family: var(--text);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 20; background: var(--white); padding: 8px 12px; }

/* ---------- Header: logo, nav, and the zigzag band from the logo's border ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--white); }
.top::after {
  content: ""; display: block; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 0H28V5L14 14L0 5Z' fill='%23E90000'/%3E%3C/svg%3E") repeat-x;
  background-size: 28px 14px;
}
.top-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px 8px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 64px; width: auto; }
nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
nav a, .acct {
  font-weight: 800; color: var(--black); text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  font-size: 1rem;
}
nav a:hover, .acct:hover { color: var(--red); }
nav a.active, .acct.active { background: var(--black); color: var(--white); }
.acct { border: 2px solid var(--black); }

@media (max-width: 720px) {
  .top-inner { grid-template-columns: 1fr auto; grid-template-areas: "brand acct" "nav nav"; padding: 8px 12px 4px; gap: 4px 8px; }
  .brand { grid-area: brand; }
  .acct { grid-area: acct; padding: 6px 12px; font-size: .9rem; }
  nav { grid-area: nav; }
  .brand img { height: 48px; }
  nav { flex-wrap: nowrap; overflow-x: auto; justify-content: space-between; scrollbar-width: none; margin: 0 -6px; }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; padding: 8px 11px; font-size: .95rem; }
}

/* ---------- Page ---------- */
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 20px 56px; outline: none; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; margin: 36px 0 14px; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.1rem; font-weight: 800; margin: 0 0 6px; }
p { max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
.err { color: var(--red-deep); font-weight: 600; margin-top: 10px; }
.ok { color: var(--turq); font-weight: 800; }

.foot { background: var(--black); color: var(--white); text-align: center; padding: 26px 20px 30px; }
.foot p { margin: 4px auto; }
.foot .fine { color: #BDBDBD; font-size: .85rem; }
.foot a { color: var(--white); }

/* ---------- Video cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { display: block; color: var(--black); text-decoration: none; position: relative; }
.card img, .card .ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: var(--radius); background: var(--panel); }
.card .ph { background: var(--panel) url("/img/western-sports-network-logo.png") center / 40% no-repeat; }
.card .date { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--red); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.card .date .d { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; text-transform: uppercase; }
.card .date .w { font-weight: 800; margin-top: 6px; }
.card .body { padding: 10px 2px 0; }
.card .t { font-weight: 800; font-size: 1.05rem; line-height: 1.3; }
.card .s { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.card:hover .t { color: var(--red); }
.card:hover img { filter: brightness(1.06); }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 4px; font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.badge.live { background: var(--red); color: var(--white); }
.badge.lock { background: var(--black); color: var(--white); }
.badge.free { background: var(--turq); color: var(--white); }

mux-player { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; display: block; background: var(--black); }

/* ---------- "Coming soon" ---------- */
.soon { border: 3px solid var(--black); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.soon .flag { display: inline-block; background: var(--red); color: var(--white); font-weight: 800; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.soon ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.soon li { border-top: 3px solid var(--red); padding-top: 10px; }
.soon li p { margin: 0; color: var(--muted); }

/* ---------- Chips (content filters, association picker) ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; }
.chip { font: inherit; font-weight: 600; border: 2px solid var(--black); background: var(--white); color: var(--black); padding: 6px 14px; border-radius: 999px; cursor: pointer; text-decoration: none; margin: 0; }
.chip[aria-pressed="true"], .chip.on { background: var(--black); color: var(--white); }
.chip:hover { border-color: var(--red); }

/* ---------- Articles ---------- */
.article { max-width: 760px; }
.article .body p { font-size: 1.08rem; line-height: 1.65; }
.article img.hero { width: 100%; border-radius: var(--radius); margin: 8px 0 18px; }

/* ---------- Standings tables ---------- */
.standings { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 26px; }
.st h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; text-transform: uppercase; margin: 0 0 6px; }
.st table { width: 100%; border-collapse: collapse; }
.st th { text-align: left; font-size: .82rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--black); padding: 6px 8px; }
.st td { padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: .95rem; vertical-align: top; }
.st td.r { font-weight: 800; width: 3ch; }
.st td.v, .st th.v { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st tr:first-child td { background: #FFF1F1; }
.st .town { color: var(--muted); font-size: .85rem; display: block; }

/* ---------- Forms, panels, buttons ---------- */
.panel { background: var(--panel); border-radius: var(--radius); padding: 22px; max-width: 540px; }
.panel.wide { max-width: none; }
label { display: block; font-size: .9rem; font-weight: 600; margin: 14px 0 5px; }
input, textarea, select { width: 100%; padding: 10px 12px; border-radius: var(--radius); border: 2px solid #BDBDBD; background: var(--white); color: var(--black); font: inherit; }
input:focus, textarea:focus, select:focus { border-color: var(--black); outline: none; }
button, .btn {
  display: inline-block; margin-top: 16px; padding: 11px 20px; border-radius: var(--radius); border: 2px solid var(--red);
  background: var(--red); color: var(--white); font: inherit; font-weight: 800; cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); }
button.ghost { background: transparent; border-color: var(--black); color: var(--black); }
button.ghost:hover { background: var(--black); color: var(--white); }
button.small { padding: 5px 10px; margin-top: 0; font-size: .85rem; }
.paywall { text-align: center; padding: 52px 20px; background: var(--black); color: var(--white); border-radius: var(--radius); }
.paywall p { margin-left: auto; margin-right: auto; }
.paywall .muted { color: #CFCFCF; }
code, .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; word-break: break-all; background: var(--white); border: 1px solid var(--line); padding: 2px 6px; border-radius: 4px; }
.admin table { width: 100%; border-collapse: collapse; }
.admin td, .admin th { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- All-Around Pass plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 22px; margin: 8px 0 18px; }
.plan { border: 3px solid var(--black); border-radius: var(--radius); padding: 22px 24px 24px; position: relative; }
.plan.best { border-color: var(--red); }
.plan h2 { margin: 0 0 6px; }
.plan .price { font-family: var(--display); font-size: 2.8rem; line-height: 1; margin: 6px 0 8px; }
.plan .price span { font-family: var(--text); font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan .flag { position: absolute; top: -14px; right: 16px; background: var(--red); color: var(--white); font-weight: 800; padding: 3px 10px; border-radius: 4px; }
.plan button { width: 100%; }
