/* Public Vipers site (teams + players). Poster look: deep green, emerald, orange band, big condensed type. */
:root {
    --bg: #050f0a; --forest: #0f2e21; --panel: #0b1f17; --em: #1fbf6f; --mint: #7ef0b0; --white: #f5faf7; --mute: #86a899;
    --or: #ff7a1a; --gold: #f5c542; --line: #173d2c;
    --display: 'Barlow Condensed', 'Arial Narrow', 'DIN Alternate', sans-serif;
    --body: 'Barlow', system-ui, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--body); font-size: 1rem; line-height: 1.45; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.x { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }

/* ---------- header / footer ---------- */
.vh { position: sticky; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 12px 4vw; background: #050f0aee; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.vh .logo { font-size: 1.9rem; line-height: 1; letter-spacing: .06em; }
.vh .logo b { color: inherit; }
.vh nav { display: flex; gap: 22px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; letter-spacing: .18em; text-transform: uppercase; }
.vh nav a { color: var(--mute); padding: 6px 0; border-bottom: 2px solid transparent; }
.vh nav a:hover, .vh nav a.on { color: var(--white); border-color: var(--em); }
.vf { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 34px 4vw; margin-top: 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- home hero: six strips spelling VIPERS ---------- */
.strips { display: grid; grid-template-columns: repeat(6, 1fr); height: min(82vh, 760px); min-height: 460px; }
.strip { position: relative; overflow: hidden; border-right: 2px solid var(--bg); }
.strip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); transition: transform .8s, filter .5s; }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #050f0aee 5%, #050f0a55 45%, #0f2e2188); }
.strip:hover img { transform: scale(1.08); filter: saturate(1.2); }
.strip b { position: absolute; z-index: 2; left: 50%; bottom: 5vh; transform: translateX(-50%); font-size: clamp(4.5rem, 16vw, 15rem); line-height: .8; color: #f5faf7e6; text-shadow: 0 8px 40px #000a; transition: .4s; }
.strip:hover b { color: var(--em); }
.strip:nth-child(even) { margin-top: 5vh; } .strip:nth-child(odd) { margin-bottom: 5vh; }
.strips .tag { position: absolute; z-index: 6; left: 4vw; top: 22px; text-shadow: 0 1px 10px #000; font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--mint); }
.strips { position: relative; }

/* ---------- moments: a random mix of action shots ---------- */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.mt { position: relative; }
.mlike { position: absolute; right: 8px; bottom: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 99px; border: 1px solid #ffffff40; background: #050f0acc; color: #fff; font: 600 .95rem system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(4px); transition: transform .15s, border-color .15s; }
.mlike .ic { font-size: 1.25rem; line-height: 1; }
.mlike.on { border-color: var(--em, #1fbf6f); }
.mlike.pop { transform: scale(1.18); }
@media (prefers-reduced-motion: reduce) { .mlike { transition: none; } }
.moments img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: block; }
.shuffle { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; color: var(--mint); font: inherit; cursor: pointer; margin-top: 14px; }
.shuffle:hover { border-color: var(--em); }
@media (max-width: 900px) { .moments { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .moments { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

.band { background: var(--or); color: #1a0b00; padding: 12px 0; overflow: hidden; white-space: nowrap; }
.band div { display: inline-block; animation: marq 30s linear infinite; font-size: 2rem; }
.band span { margin: 0 26px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.stat { background: var(--bg); padding: 26px 4vw; text-align: center; }
.stat b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; color: var(--white); }
.stat b.gold { color: var(--gold); } .stat b { white-space: nowrap; }
.stat span { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }

/* ---------- sections ---------- */
.sec { padding: 54px 4vw 10px; max-width: 1400px; margin: 0 auto; }
.sec h2 { font-size: clamp(2rem, 6vw, 4rem); line-height: .95; margin-bottom: 6px; }
.sec h2 em { font-style: normal; color: var(--em); }
.sec .lede { color: var(--mute); max-width: 560px; margin-bottom: 22px; }
.eyebrow { font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--mute); }
/* home page: every section opens with a banner (dark green, emerald edge, faint stripes, a small orange diamond like the marquee),
   a big title and one plain sentence saying what the section is */
.sec.big { max-width: none; padding: 0; margin: 56px 0 0; scroll-margin-top: 100px; }
.sh { position: relative; overflow: hidden; background: linear-gradient(100deg, #1a6b46 0%, #0f3a28 55%, #0b2a1d 100%); border-top: 2px solid var(--em); border-bottom: 2px solid #0b2a1d; box-shadow: 0 10px 40px #0008; }
.sh::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 65%; background: repeating-linear-gradient(135deg, #7ef0b028 0 2px, transparent 2px 16px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.sh::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--em); }
.sh-in { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 28px 4vw 26px calc(4vw + 10px); }
.sh .eyebrow { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 600; letter-spacing: .28em; color: #d8ffe9; }
.sh .eyebrow::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--or); transform: rotate(45deg); }
.sh h2 { font-size: clamp(2.9rem, 12.5vw, 7.4rem); line-height: .86; margin: 6px 0 10px; color: #fff; text-shadow: 0 4px 24px #0009; }
.sh .lede { margin: 0; max-width: 620px; font-size: 1.05rem; color: #cfe8db; }
.sec-in { max-width: 1400px; margin: 0 auto; padding: 24px 4vw 0; }
.bigbtn { display: flex; align-items: center; gap: 16px; margin-top: 22px; min-height: 76px; padding: 14px 20px; border-radius: 16px; background: linear-gradient(100deg, #164d36, #0f2e21); border: 2px solid var(--em); box-shadow: 0 6px 22px #1fbf6f33; color: var(--white); transition: background .15s, border-color .15s, transform .15s; }
.bigbtn svg { width: 38px; height: 38px; flex: none; fill: none; stroke: var(--em); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bigbtn b { display: block; font-size: 1.7rem; line-height: 1; letter-spacing: .04em; }
.bigbtn small { display: block; margin-top: 3px; font-size: .9rem; color: #bfe3d0; }
.bigbtn .go { margin-left: auto; font-style: normal; font-size: 2rem; line-height: 1; color: var(--em); }
.bigbtn:hover { background: linear-gradient(100deg, #1b5c40, #123828); box-shadow: 0 8px 28px #1fbf6f55; } .bigbtn:active { transform: scale(.985); }
@media (min-width: 700px) { .bigbtn { max-width: 520px; } }
/* quick-jump bar: sticky under the header, highlights the section you are in */
.jump { position: sticky; top: 53px; z-index: 40; display: flex; gap: 8px; overflow-x: auto; padding: 10px 4vw; background: #050f0af5; border-bottom: 1px solid var(--line); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--mute); font: 600 1rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.jump a:hover, .jump a.on { color: #03170d; background: var(--em); border-color: var(--em); }
@media (prefers-reduced-motion: reduce) { .bigbtn { transition: none; } }.more { display: inline-block; margin-top: 8px; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; border: 1px solid var(--em); padding: 9px 18px; border-radius: 99px; color: var(--mint); }
.more:hover { background: var(--em); color: var(--bg); }

/* ---------- team cards ---------- */
.season { margin-top: 36px; }
.season h3 { font-size: clamp(1.4rem, 4vw, 2.2rem); line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.season h3 small { font-family: var(--body); font-weight: 400; font-size: .85rem; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--forest); border: 1px solid var(--line); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card.nophoto { background: #000; }   /* no team photo: the white-on-black logo on a black tile, above the text */
.card.nophoto::after { background: linear-gradient(0deg, #050f0af2 12%, #050f0acc 40%, #050f0a55 58%, transparent 72%); }
.card.nophoto img { inset: 0; height: 100%; object-fit: cover; }
.card:hover img { transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #050f0af2 8%, #050f0a33 55%, transparent); }
.card .in { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px 16px; }
.card .div { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--mint); }
.card .name { font-size: 2.1rem; line-height: .95; color: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: #0f2e21cc; border: 1px solid var(--line); color: var(--white); white-space: nowrap; }
.chip.gold { background: var(--gold); color: #2a1d00; border-color: var(--gold); font-weight: 700; }
.chip.podium { background: #1fbf6f33; border-color: var(--em); color: var(--mint); }
.crown { position: absolute; z-index: 3; top: 10px; right: 12px; font-size: 1.6rem; filter: drop-shadow(0 2px 6px #000a); }

/* ---------- filters ---------- */
.bar { position: sticky; top: 53px; z-index: 40; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 4vw; background: #050f0af2; border-bottom: 1px solid var(--line); }
.bar input, .bar select { background: var(--panel); border: 1px solid var(--line); color: var(--white); font: inherit; padding: 9px 14px; border-radius: 99px; min-width: 0; }
.bar input { flex: 1 1 200px; max-width: 360px; } .bar input:focus, .bar select:focus { outline: 2px solid var(--em); border-color: transparent; }
.bar .count { color: var(--mute); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; margin-left: auto; }

/* ---------- team page ---------- */
.thero { position: relative; max-width: 1400px; margin: 0 auto; }
.thero .pic { aspect-ratio: 16 / 9; max-height: 62vh; width: 100%; overflow: hidden; background: var(--forest); position: relative; }
.thero .pic img { width: 100%; height: 100%; object-fit: cover; }
.thero .pic.nophoto { background: #000; }
.thero .pic.nophoto img { height: 100%; object-fit: cover; }
.thero .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, #050f0a55 45%, transparent); }
.thero .ttl { position: relative; margin-top: -120px; padding: 0 4vw; z-index: 2; }
.ttl .crumb { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mint); }
.ttl h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: .88; }
.ttl .sub { color: var(--mute); margin-top: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 10px; } }
.roster { list-style: none; border-top: 1px solid var(--line); }
.roster li { border-bottom: 1px solid var(--line); }
.roster a { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; padding: 11px 6px; }
.roster a:hover { background: linear-gradient(90deg, #1fbf6f22, transparent); }
.roster .no { font-size: 2rem; line-height: 1; color: var(--mint); text-align: right; }
.roster .nm { font-size: 1.05rem; }
.roster .rl { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.matches { border-top: 1px solid var(--line); }
.mrow { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.mrow .when { font-size: 1.4rem; line-height: 1; color: var(--mint); } .mrow .when small { display: block; font-family: var(--body); font-weight: 400; font-size: .7rem; letter-spacing: .15em; color: var(--mute); }
.mrow .opp small { display: block; color: var(--mute); font-size: .8rem; }
.mrow .watchrow { margin-top: 4px; } .mrow .watch { display: inline-block; margin-right: 12px; color: var(--mint); font-size: .8rem; text-decoration: none; } .mrow .watch:hover { text-decoration: underline; }
.res { font-family: var(--display); font-weight: 700; font-size: 1.1rem; min-width: 70px; text-align: center; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); }
.res.W { background: var(--em); color: #03170d; border-color: var(--em); } .res.L { background: #e5604f; color: #1c0603; border-color: #e5604f; } .res.S { color: var(--mute); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.empty { color: var(--mute); padding: 26px 0; }

/* ---------- players ---------- */
.plist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 22px 4vw; max-width: 1400px; margin: 0 auto; }
@media (max-width: 900px) { .plist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plist { grid-template-columns: 1fr; } }
.pcard { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; height: 84px; overflow: hidden; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.pcard:hover { border-color: var(--em); background: #0f2e21; }
.pcard .no { font-size: 2.1rem; line-height: 1; color: var(--mint); text-align: center; }
.pcard .nm { font-size: 1.1rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .nm .sn { color: var(--mint); font-size: .95rem; margin-left: 4px; }
.pcard .face { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--em); background: #050f0a; display: block; }
.pcard .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard .meta { display: block; font-size: .78rem; color: var(--mute); letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard .t { color: var(--gold); }
.phero { padding: 46px 4vw 8px; max-width: 1400px; margin: 0 auto; }
.phero h1 { font-size: clamp(3rem, 11vw, 7rem); line-height: .88; }
.phero .sub { color: var(--mute); margin-top: 6px; }
/* player page: the text on the left, a baseball card on the right (placeholder art for now) */
.pheroflex { display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.pheroflex .ptext { flex: 1; min-width: 0; }
.bcard { position: relative; flex: none; width: 270px; aspect-ratio: 5 / 7; border-radius: 18px; overflow: hidden; border: 2px solid var(--em); background: var(--panel); box-shadow: 0 0 0 4px #050f0a, 0 0 0 5px var(--line), 0 18px 50px #000a; }
.bc-action img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.bc-action { position: absolute; inset: 0 0 24% 0; background: radial-gradient(ellipse at 50% 42%, #14402d 0%, #0b1f17 60%, #050f0a 100%); }
.bc-action img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bc-face { position: absolute; z-index: 3; left: 12px; bottom: calc(24% - 38px); width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 3px solid var(--em); background: #050f0a; box-shadow: 0 6px 18px #000a; }
.bc-face img.real { position: static; width: 100%; height: 100%; object-fit: cover; }
.bc-face img { position: absolute; max-width: none; width: 130%; height: auto; left: -15%; top: -24%; display: block; }   /* head and shoulders cropped to the circle, centred on the face */
.bc-no { position: absolute; top: 10px; right: 12px; font-size: 2.2rem; line-height: 1; color: var(--em); text-shadow: 0 2px 12px #000; }
.bc-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 12px 8px 112px; height: 24%; background: linear-gradient(0deg, #050f0a, #0b1f17); border-top: 2px solid var(--em); font-size: 1.35rem; line-height: 1.05; display: flex; align-items: center; z-index: 2; }
@media (max-width: 700px) { .pheroflex { flex-direction: column-reverse; align-items: stretch; gap: 22px; } .bcard { align-self: center; width: min(250px, 70vw); } }
.timeline { border-top: 1px solid var(--line); }
.trow { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 16px 6px; border-bottom: 1px solid var(--line); }
.trow:hover { background: linear-gradient(90deg, #1fbf6f22, transparent); }
.trow .yr { font-size: 2.2rem; line-height: 1; color: var(--mint); }
.trow .tn { font-size: 1.6rem; line-height: 1; }
.trow .ts { color: var(--mute); font-size: .85rem; margin-top: 3px; }
.trow .no { font-size: 2rem; color: var(--em); }

@media (max-width: 700px) {
    .vh { padding: 10px 4vw; } .vh .logo { font-size: 1.6rem; } .vh nav { gap: 14px; font-size: 1rem; letter-spacing: .12em; }
    .strips { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; height: 78vh; min-height: 460px; }
    .strip:nth-child(even), .strip:nth-child(odd) { margin: 0; } .strip { border-bottom: 2px solid var(--bg); }
    /* phone hero: a photo mosaic with ONE wordmark across it, instead of six cramped letters */
    .strips { height: 70vh; min-height: 440px; max-height: 620px; }
    .strip b { display: none; }
    .strip::after { background: linear-gradient(0deg, #050f0aee 0%, #050f0a88 55%, #0f2e2166); }
    .strips::before { content: "Vipers"; position: absolute; z-index: 5; left: 0; right: 0; top: 46%; transform: translateY(-50%); text-align: center; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 31vw; line-height: .85; letter-spacing: .02em; color: #f5faf7; text-shadow: 0 6px 36px #000c; pointer-events: none; }
    .strips .tag { left: 0; right: 0; top: auto; bottom: 22px; width: auto; text-align: center; z-index: 6; font-size: .72rem; letter-spacing: .3em; }
    .bar { top: 47px; } .bar .count { margin-left: 0; width: 100%; }
    .cards { grid-template-columns: 1fr; }
    .mrow { grid-template-columns: 84px 1fr auto; gap: 10px; } .mrow .when small { white-space: nowrap; letter-spacing: .08em; }
    .stats { grid-template-columns: repeat(2, 1fr); } .stat { padding: 22px 4vw; } .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .trow { grid-template-columns: 56px 1fr auto; }
    .thero .ttl { margin-top: -70px; }
}

/* ---------- home: fun facts ---------- */
.mrow .rnd { display: inline-block; margin-bottom: 3px; padding: 1px 9px; border-radius: 6px; background: #f5c34233; border: 1px solid #f5c34288; color: #f5c342; font-size: .8rem; letter-spacing: .12em; }
.lore { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lc { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--em); border-radius: 14px; padding: 16px 18px 18px; }
.lc .kick { font-size: .8rem; letter-spacing: .24em; color: var(--or); margin-bottom: 6px; }
.lc h3 { font-size: 1.7rem; line-height: 1; margin-bottom: 10px; color: #fff; }
.lc h3 em { font-style: normal; color: var(--em); }
.lc p { color: #cfe3d8; font-size: 1rem; line-height: 1.55; margin-top: 8px; }
.lc p b { color: var(--mint); font-weight: 700; }
.lc.wide { grid-column: 1 / -1; }
.lc.hero { background: linear-gradient(120deg, #11442f, #0c2a1e); border-color: var(--em); }
.lc.hero h3 { font-size: clamp(2rem, 7vw, 3.4rem); }
.lc p.big { font-size: clamp(1.2rem, 4.5vw, 1.7rem); line-height: 1.25; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { padding: 5px 13px; border-radius: 99px; background: #1fbf6f22; border: 1px solid #1fbf6f66; color: var(--mint); font-weight: 600; font-size: .9rem; }
.chips.nums span { font-family: var(--display); font-size: 1.3rem; letter-spacing: .06em; padding: 4px 14px; border-radius: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 8px; }
.fact .fh { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.fact .fi { font-size: 2rem; line-height: 1; }
.fact .ft { font-size: 1.5rem; line-height: 1; }
.fact .fb { font-size: .8rem; color: var(--mute); margin-top: 2px; }
.fact .fl { list-style: none; counter-reset: n; }
.fact .fl li { counter-increment: n; border-top: 1px solid var(--line); }
.fact .fl li > a, .fact .fl li > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: baseline; padding: 9px 2px; }
.fact .fl li > a:hover { background: linear-gradient(90deg, #1fbf6f22, transparent); }
.fact .fl b { font-weight: 600; } .fact .fl span { color: var(--mute); font-size: .82rem; text-align: right; }
.fact .fl li:first-child b { color: var(--mint); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }
/* ---------- team picture: clean (no text on it) + optional name tags ---------- */
.thero .pic.hasphoto { max-width: calc(62vh * 16 / 9); margin: 14px auto 0; border-radius: 12px; }
.thero .pic.hasphoto::after { display: none; }
.thero .pic.hasphoto img { object-fit: fill; }
.thero .pic.hasphoto ~ .ttl { margin-top: 18px; }
/* names on the team picture: each tagged person is an invisible hover zone (face and chest); the name shows when you point at them */
.ptags { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ptag { position: absolute; display: block; width: 9%; height: 28%; transform: translate(-50%, -71.4%); pointer-events: auto; border-radius: 10px; }
.ptag:hover, .ptag:focus-visible { z-index: 5; outline: none; }
.ptag .pd { position: absolute; left: 50%; top: calc(71.4% - 8px); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--em); border: 2px solid #fff; box-shadow: 0 1px 4px #000a; opacity: 0; transition: opacity .15s; }
.ptag .pl { position: absolute; left: 50%; top: 71.4%; transform: translateX(-50%); white-space: nowrap; background: #050f0aee; border: 1px solid var(--em); border-radius: 99px; padding: 2px 10px; font-size: clamp(11px, 1.4vw, 15px); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s; }
.ptag:hover .pl, .ptag:focus-visible .pl, .ptag:hover .pd, .ptag:focus-visible .pd { opacity: 1; }
.ptag .pn { display: none; }
@media (max-width: 700px) {
    .ptag { width: 16%; }   /* bigger tap zones on a phone: a tap shows the name, a second tap opens the player */
    .thero .pic.hasphoto { max-width: 100%; margin-top: 0; border-radius: 0; }
}

/* header logo next to the name */
.vh .logo { display: flex; align-items: center; gap: 10px; }
.vh .logoimg { height: 34px; width: auto; display: block; }
@media (max-width: 700px) { .vh .logoimg { height: 28px; } }

/* ---------- nav: the Vote pill, and a tighter header on phones so three links fit ---------- */
.vh nav a.votepill { color: var(--mint); border: 1px solid var(--em); border-radius: 99px; padding: 6px 16px; }
.vh nav a.votepill:hover, .vh nav a.votepill.on { background: var(--em); color: var(--bg); border-color: var(--em); }
@media (max-width: 520px) { .vh { padding: 10px 3vw; } .vh nav { gap: 12px; font-size: .95rem; letter-spacing: .08em; } .vh nav a.votepill { padding: 5px 12px; } .vh .logo { font-size: 1.6rem; } }

/* home page, Players section: six players that swap every few seconds */
.spot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .spot { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.sp { display: block; text-align: center; transition: opacity .38s; }
.sp.out { opacity: 0; }
.sp .ph { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--forest); border: 1px solid var(--line); }
.sp .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp .ph .no { font-size: clamp(2.4rem, 11vw, 3.6rem); line-height: 1; color: var(--mint); }
.sp:hover .ph { border-color: var(--em); }
.sp .nm { display: block; margin-top: 8px; font-size: 1.1rem; line-height: 1.05; overflow-wrap: anywhere; }
.sp .meta2 { display: block; margin-top: 2px; color: var(--mute); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .sp { transition: none; } }

/* Team page: the schedule as Week / Day groups, each folding with a slide; videos sit at the level their title says */
.wkset { display: grid; gap: 12px; margin-top: 4px; }
.wk { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--em); border-radius: 14px; overflow: hidden; }
.wkh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; width: 100%; min-height: 52px; padding: 10px 14px; background: #0f2a1c; border: 0; color: var(--white); cursor: pointer; text-align: left; font: inherit; -webkit-tap-highlight-color: transparent; }
.wkh:hover { background: #14382a; }
.chev { display: inline-block; width: 14px; color: var(--mute); transition: transform .3s ease; transform: rotate(90deg); }
.wkh[aria-expanded="false"] .chev { transform: rotate(0); }
.wkn { font-size: 1.3rem; line-height: 1; }
.wkd { color: var(--mint); font-size: .95rem; }
.wkh .rnd { display: inline-block; padding: 1px 9px; border-radius: 6px; background: #f5c34233; border: 1px solid #f5c34288; color: var(--gold); font-size: .75rem; letter-spacing: .12em; }
.wkc { margin-left: auto; color: var(--mute); font-size: .85rem; }
.wk .collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.wk .collapse.closed { grid-template-rows: 0fr; }
.wk .collapse > .inner { overflow: hidden; min-height: 0; }
.wk .pad { padding: 8px 12px 12px; }
.watchrow.night { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.watchrow .lbl { color: var(--mute); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
@media (max-width: 600px) { .wkc { margin-left: 0; width: 100%; } .wkn { font-size: 1.15rem; } .wk .pad { padding: 6px 8px 10px; } }
@media (prefers-reduced-motion: reduce) { .chev, .wk .collapse { transition: none; } }

/* Watch buttons on the Team page: a red play icon plus the short label, big enough to tap */
.ytic { flex: none; width: 22px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Crect width='22' height='16' rx='4.5' fill='%23ff2d2d'/%3E%3Cpath d='M9 4.5v7l6-3.5z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.wk .watchrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wk .watch, .wk .mrow .watch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; padding: 5px 14px 5px 9px; border: 1px solid #2a5a43; border-radius: 99px; background: #0d2a1e; color: var(--white); font-size: .88rem; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, transform .1s; }
.wk .watch:hover, .wk .mrow .watch:hover { background: #14402d; border-color: var(--em); text-decoration: none; }
.wk .watch:active { transform: scale(.97); }
.watchrow.night .watch { background: #0d2a1e; }
@media (max-width: 600px) { .wk .watch, .wk .mrow .watch { min-height: 42px; font-size: .92rem; } }
.wk .mrow .opp .rnd { display: block; width: max-content; margin-bottom: 4px; }
/* the Game number is the big label on the left; the time sits with the court under the opponent */
.wk .mrow .when { font-size: 1.5rem; letter-spacing: .02em; }
.wk .mrow .opp small { margin-top: 2px; }

/* slim game rows: Game | opponent and time + court | the video buttons on the right | the score */
.wk .mrow { grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 4px; align-items: center; }
.wk .mrow .when { font-size: 1.3rem; }
.wk .mrow .vids { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.wk .mrow .vids .watch { min-height: 34px; padding: 4px 10px 4px 7px; font-size: .8rem; white-space: nowrap; }
.wk .mrow .vids .watch.plain { padding: 5px 7px; }
.wk .mrow .vids .watch.plain .wl { display: none; }
.wk .mrow .res { min-width: 62px; font-size: 1rem; padding: 3px 10px; }
@media (max-width: 600px) {
  .wk .mrow { grid-template-columns: 62px minmax(0, 1fr) auto auto; gap: 8px; padding: 8px 2px; }
  .wk .mrow .when { font-size: 1.05rem; }
  .wk .mrow .vids .watch { min-height: 38px; }
  .wk .mrow .vids .watch.plain { min-width: 44px; justify-content: center; }
  .wk .mrow .res { min-width: 54px; font-size: .9rem; padding: 3px 8px; }
}

/* phone: a game with two or more video buttons puts them on a line under the opponent, so the name keeps its room */
@media (max-width: 600px) {
  .wk .mrow.multi { grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-areas: "g o r" ". v v"; row-gap: 6px; }
  .wk .mrow.multi .when { grid-area: g; }
  .wk .mrow.multi .opp { grid-area: o; }
  .wk .mrow.multi .vids { grid-area: v; justify-content: flex-start; flex-wrap: wrap; }
  .wk .mrow.multi .res { grid-area: r; }
}

/* "The season" heading with the YouTube playlist button beside it */
.shead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.shead h2 { margin: 0; }
.plic { flex: none; width: 24px; height: 17px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 17'%3E%3Crect width='24' height='17' rx='4.5' fill='%23ff2d2d'/%3E%3Cpath d='M4 4.8h9.5M4 8.5h9.5M4 12.2h5.5' stroke='%23fff' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M15.5 5.8v5.8l5-2.9z' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat; }
.plbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 14px 5px 9px; border: 1px solid #2a5a43; border-radius: 99px; background: #0d2a1e; color: var(--white); font-size: .9rem; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s; }
.plbtn:hover { background: #14402d; border-color: var(--em); }
@media (max-width: 600px) { .plbtn { min-height: 40px; } }
/* Great Moments: "Share A Picture" next to Shuffle, and its panel */
.momact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.momact .more { margin-top: 14px; cursor: pointer; background: none; font: inherit; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; }
.sharebox { position: fixed; inset: 0; margin: auto; width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px 16px 16px; border-radius: 18px; background: var(--panel); border: 2px solid var(--em); color: var(--white); box-shadow: 0 0 0 4px #1fbf6f33, 0 18px 60px #000c; gap: 10px; -webkit-overflow-scrolling: touch; }
.sharebox:not([open]) { display: none; }
.sharebox[open] { display: grid; }
.sharebox::backdrop { background: #020a06d9; }
.shareclose { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #0f2e21; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.shareclose:hover { background: var(--em); color: #03170d; }
body:has(dialog.sharebox[open]) { overflow: hidden; }
.sharebox p { color: var(--mute); font-size: .95rem; }
.sharebox input[type=text] { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a1a13; color: var(--white); font: inherit; font-size: 16px; }
.sharebox input:focus { outline: 2px solid var(--em); outline-offset: 1px; }
.sharebox .more { justify-self: start; margin-top: 0; cursor: pointer; background: var(--em); color: #03170d; font: inherit; font-weight: 600; font-size: .85rem; }
.sharebox .more:disabled { opacity: .6; }
.sharemsg { min-height: 1.2em; color: var(--mint); font-size: .95rem; } .sharemsg.bad { color: #ff8f7a; }
/* styled file chooser (replaces the grey system button) and the rest of the send-a-picture box */
.filebtn { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-radius: 14px; border: 1px dashed var(--em); background: #0a1a13; cursor: pointer; overflow: hidden; }
.filebtn:hover { background: #0f2e21; }
.filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.filebtn:focus-within { outline: 2px solid var(--em); outline-offset: 2px; }
.fb-b { flex: none; padding: 9px 16px; border-radius: 99px; background: var(--em); color: #03170d; font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.fb-n { min-width: 0; color: var(--mute); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sharebox h3 { font-size: 1.5rem; color: var(--white); padding-right: 44px; }
.sharerules { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--mute); font-size: .92rem; }
.sharerules li::marker { color: var(--em); }
.sharepreview { width: 100%; max-width: 260px; border-radius: 14px; border: 2px solid var(--em); display: block; background: #000; }
.sharepreview[hidden] { display: none; }
/* pencil buttons on the player card: send a face / action picture */
.bc-edit { position: absolute; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--mint); background: linear-gradient(160deg, #22a066, #136b45); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 2px 10px #000a; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.bc-edit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bc-edit:hover { background: var(--em); color: #03170d; }
.bc-edit:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.bc-edit-action { top: 10px; left: 12px; }
.bc-edit-face { left: 70px; bottom: calc(24% - 36px); }

/* a long number (a team record like 235-205) shrinks to fit its box instead of being cut off */
.stat { padding-left: 10px; padding-right: 10px; min-width: 0; container-type: inline-size; }
.stat b { font-size: clamp(1.8rem, 21cqw, 4.6rem); }

/* Great Moments reactions: a pill (top two reactions + total), and a row of five that opens over the bottom of the picture */
.mlike .ic { letter-spacing: -2px; }
.mrx { position: absolute; left: 6px; right: 6px; bottom: 6px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 4px; border-radius: 16px; background: #050f0aee; border: 1px solid var(--em); backdrop-filter: blur(6px); box-shadow: 0 6px 20px #000a; z-index: 3; }
.mrx[hidden] { display: none; }
.mrx button { min-height: 52px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--mute); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 0; font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mrx button .e { font-size: 1.45rem; line-height: 1; }
.mrx button small { font-size: .7rem; min-height: .9em; }
.mrx button:hover { background: #0f2e21; }
.mrx button.on { border-color: var(--em); background: #0f2e21; color: var(--mint); }
.mt.rxopen .mlike { visibility: hidden; }
/* ---------- the picture viewer (lightbox.js) ---------- */
[data-zoom] { cursor: zoom-in; }
.mlike, .mrx { cursor: pointer; }
dialog.lb { position: fixed; inset: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #020a06f2; color: var(--white); overflow: hidden; }
dialog.lb:not([open]) { display: none; }
dialog.lb::backdrop { background: #000; }
.lbwrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 10px; }
.lbstage { position: relative; display: inline-block; line-height: 0; }
.lbstage img { display: block; max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 50px #000c; user-select: none; -webkit-user-drag: none; }
.lbstage .ptags { border-radius: 10px; }
.lbx { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--mint); background: #0b1f17ee; color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; }
.lbx:hover { background: var(--em); color: #03170d; }
.lbbusy { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 16px; border-radius: 99px; background: #0b1f17ee; border: 1px solid var(--em); font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
dialog.lb.busy .lbbusy { opacity: 1; }
/* name tags on a touch screen: tap a face to show its name, tap the name to open the player (lightbox.js adds .show) */
.ptag.show { z-index: 5; }
.ptag.show .pl, .ptag.show .pd { opacity: 1; }
@media (hover: none) { .ptag.show .pl { pointer-events: auto; } .ptag { -webkit-tap-highlight-color: transparent; } }

/* ---------- the header search (search.js) ---------- */
.vsearchbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--mint); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; align-self: center; flex: none; }
.vsearchbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.vsearchbtn:hover, .vsearchbtn[aria-expanded="true"] { background: var(--em); color: #03170d; border-color: var(--em); }
.vh nav { align-items: center; }
.vsearch { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #050f0af7; border-bottom: 2px solid var(--em); box-shadow: 0 18px 40px #000b; padding: 12px 4vw 14px; max-height: calc(100dvh - 70px); overflow-y: auto; }
.vsearch[hidden] { display: none; }
.vsbox { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.vsbox input { flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 99px; border: 2px solid var(--em); background: #0a1a13; color: var(--white); font: inherit; font-size: 16px; }
.vsbox input:focus { outline: none; box-shadow: 0 0 0 3px #1fbf6f44; }
.vsx { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: #0f2e21; color: var(--white); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 0 3px; }
.vsx:hover { background: var(--em); color: #03170d; }
.vsres { max-width: 640px; margin: 10px auto 0; display: grid; gap: 4px; }
.vsres:empty { display: none; }
.vsh { margin-top: 6px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--mute); padding: 0 6px; }
.vsrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #0b1f17; border: 1px solid transparent; }
.vsrow:hover, .vsrow.on { border-color: var(--em); background: #0f2e21; }
.vsn { font-weight: 600; font-size: 1.05rem; color: var(--white); min-width: 0; overflow-wrap: anywhere; }
.vss { font-size: .82rem; color: var(--mute); text-align: right; flex: none; max-width: 52%; }
.vsnone { padding: 14px; color: var(--mute); text-align: center; }
@media (max-width: 520px) { .vsearchbtn { width: 34px; height: 34px; } .vsearchbtn svg { width: 18px; height: 18px; } }
/* reactions in the big picture viewer */
.lbrx { position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 6; display: grid; grid-template-columns: repeat(5, minmax(54px, 1fr)); gap: 4px; padding: 6px; width: min(420px, calc(100vw - 20px)); border-radius: 20px; background: #050f0af2; border: 2px solid var(--em); box-shadow: 0 8px 30px #000c; }
.lbrx[hidden] { display: none; }
.lbrx button { min-height: 58px; border-radius: 14px; border: 1px solid transparent; background: none; color: var(--mute); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.lbrx button .e { font-size: 1.6rem; line-height: 1; }
.lbrx button small { font-size: .74rem; min-height: .9em; }
.lbrx button:hover { background: #0f2e21; }
.lbrx button.on { border-color: var(--em); background: #0f2e21; color: var(--mint); }
dialog.lb .lbbusy { bottom: auto; top: 18px; }
dialog.lb:has(.lbrx:not([hidden])) .lbstage img { max-height: calc(100dvh - 110px); }
/* the viewer sets line-height 0 on the picture; the name tags need a normal one or their pill collapses to a thin frame */
.lbstage .ptags { line-height: 1.3; }
.lbstage .ptag .pl { padding: 3px 12px; font-size: clamp(13px, 1.5vw, 18px); }
