/* ==========================================================================
   ProspectRow 11U — site styles
   TEAM COLORS: change everything in this one block.
   Sampled from the team logo (PR 11u BASEBALL):
     teal #01B2BA · orange #F65506 · stitch red #F20808 · ink #020203 · white #FEFDFD
   ========================================================================== */
:root {
  --teal: #01b2ba;          /* primary: logo background */
  --teal-dark: #017a80;     /* darker teal for text/links on white (AA contrast) */
  --teal-light: #e3f6f7;    /* tinted panels */
  --orange: #f65506;        /* primary accent: logo letters */
  --orange-dark: #c94405;   /* hover / text-safe orange */
  --stitch: #f20808;        /* baseball stitching red (small accents only) */
  --ink: #0d1416;           /* near-black text (logo outline is #020203) */
  --white: #ffffff;
  --paper: #f7fafa;         /* page background */
  --muted: #5b6b6e;
  --line: #d6e3e4;

  --radius: 14px;
  --shadow: 0 2px 10px rgb(2 2 3 / 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Impact, var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: .3em 0; }
h2 { font-size: 1.35rem; margin: 1.6em 0 .6em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 10; }

/* ---------- Header / nav ---------- */
.site-header { background: var(--teal); color: var(--white); border-bottom: 4px solid var(--orange); }
.site-header .bar { max-width: 960px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--white); background: var(--teal); }
.brand span { font-family: var(--font-display); font-size: 1.2rem; text-shadow: 1px 1px 0 var(--ink); }
.brand b { color: var(--orange); -webkit-text-stroke: .5px var(--ink); }
nav.main { width: 100%; overflow-x: auto; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
nav.main a {
  display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--white);
  text-decoration: none; font-weight: 700; white-space: nowrap;
}
nav.main a:hover { background: rgb(2 2 3 / .18); color: var(--white); }
nav.main a[aria-current="page"] { background: var(--white); color: var(--ink); }
nav.main a.live { background: var(--orange); }
nav.main a.live::before { content: "●"; color: var(--white); margin-right: .35em; font-size: .75em; vertical-align: .1em; }
@media (min-width: 720px) { nav.main { width: auto; } }

/* ---------- Hero ---------- */
.hero {
  background: var(--teal); color: var(--white); border-radius: var(--radius); padding: 1.5rem 1.25rem;
  display: grid; gap: 1.25rem; align-items: center; box-shadow: var(--shadow); position: relative; overflow: hidden;
  border: 3px solid var(--ink);
}
.hero::after { /* stitching accent */
  content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%;
  border: 3px dashed rgb(242 8 8 / .45); pointer-events: none;
}
.hero img { width: min(260px, 70%); margin: 0 auto; display: block; filter: drop-shadow(0 4px 8px rgb(2 2 3 / .25)); }
.hero h1 { color: var(--white); text-shadow: 2px 2px 0 var(--ink); }
.hero h1 b { color: var(--orange); }
.hero p { font-size: 1.1rem; margin: .25rem 0 1rem; }
@media (min-width: 720px) { .hero { grid-template-columns: 260px 1fr; padding: 2rem; } .hero img { width: 100%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--orange); color: var(--white); border: 2px solid var(--ink);
  font: 800 1rem var(--font); padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.btn:hover { background: var(--orange-dark); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--ink); }
.btn.secondary:hover { background: var(--teal-light); color: var(--ink); }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.next-game { border-left: 8px solid var(--orange); }
.next-game .label { text-transform: uppercase; font-weight: 800; letter-spacing: .08em; color: var(--orange-dark); font-size: .8rem; }
.next-game .matchup { font-family: var(--font-display); font-size: 1.4rem; margin: .2rem 0; }
.muted { color: var(--muted); }
.notice {
  background: #fff4ec; border: 1px dashed var(--orange); border-radius: 10px; padding: .6rem .9rem; font-size: .95rem;
}

/* ---------- Tables (schedule) ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
th { background: var(--ink); color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
tr:nth-child(even) td { background: var(--teal-light); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; background: var(--teal); color: var(--ink); }
.tag.away { background: var(--orange); color: var(--white); }

/* ---------- Roster ---------- */
.roster { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.roster li { background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); text-align: center; padding: 1rem .5rem; box-shadow: 3px 3px 0 var(--teal); }
.roster .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--orange); -webkit-text-stroke: 1px var(--ink); line-height: 1; }
.roster .name { font-weight: 800; margin-top: .3rem; }
.roster .pos { color: var(--muted); font-size: .85rem; }

/* ---------- Live / login ---------- */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; border: 3px solid var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.no-live { text-align: center; padding: 2.5rem 1rem; background: var(--teal-light); border-radius: var(--radius); border: 2px dashed var(--teal); }
.no-live .ball { font-size: 3rem; }
.auth-box { max-width: 420px; margin: 1.5rem auto; text-align: center; }
.auth-box img { width: 120px; border-radius: 50%; border: 3px solid var(--ink); }
.auth-box form { text-align: left; margin-top: 1rem; }
label { display: block; font-weight: 700; margin-bottom: .3rem; }
input[type=password], input[type=text] {
  width: 100%; font-size: 1.05rem; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 10px; margin-bottom: .9rem;
}
input:focus { outline: 3px solid var(--teal); border-color: var(--teal-dark); }
.error { background: #fdecec; border: 1px solid var(--stitch); color: #8c0606; border-radius: 10px; padding: .6rem .9rem; margin-top: 1rem; }
.live-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .8rem; }
.inline-form { display: inline; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe9ea; text-align: center; padding: 1.25rem 1rem; font-size: .9rem; border-top: 4px solid var(--teal); }
.site-footer a { color: var(--teal); }

/* ---------- Utilities (no inline styles: the CSP blocks them) ---------- */
.mt { margin-top: 1rem; }
.m0 { margin: 0; }
.full { width: 100%; }
.small { font-size: .9rem; }

/* ---------- Tweaks ---------- */
h1, h2, h3, .brand span, .matchup, .roster .num { font-weight: 900; }
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card h3 { color: var(--teal-dark); margin-top: 0; }
a.card:hover { border-color: var(--orange); }
@media (max-width: 480px) {
  nav.main ul { flex-wrap: wrap; justify-content: center; }
  nav.main a { padding: .4rem .65rem; font-size: .95rem; }
}
.hero > * { position: relative; z-index: 1; }

/* Live page: upcoming stream + admin callback */
.no-live .upcoming { font-size: 1.05rem; }
.ok { color: var(--teal-dark); font-weight: 700; }
