/* MatchPoint v4 ·《夜场转播》
   语法 = 网球电视转播:计分做骨架(15/30/40/GAME)、字幕卡、记分牌、新闻角标。
   反 AI 味的硬决定:Archivo 极端宽度(wdth125 看板体+镂空描边)、全站零圆角、
   -6° 斜切记分牌按钮、夜场深蓝×电光球黄×红土橙、视频双色调分级、颗粒噪点。
   家族纪律:CSP 禁内联 style;reduced-motion 全静;素材自托管。 */
:root {
  --court: #0A1C33;          /* 夜场深蓝 */
  --court-2: #0F2440;
  --line: #F2EFE6;           /* 泛光灯白 */
  --steel: #8494AB;
  --ball: #DFFF3B;           /* 电光球黄 */
  --clay: #D8562F;           /* 红土橙 */
  --hair: rgba(242, 239, 230, .16);
  --hair-soft: rgba(242, 239, 230, .08);
  --disp: "MP Board", "MP Hei", Impact, sans-serif;         /* 看板体 */
  --cond: "MP Cond", "MP Hei", Arial Narrow, sans-serif;    /* 窄条数据体 */
  --hei: "MP Hei", "PingFang SC", sans-serif;
  --gutter: clamp(20px, 5.5vw, 88px);
  --colw: 1200px;
}
@font-face { font-family: "MP Board"; src: url("/vibecoding/matchpoint/fonts/arch-exp800.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "MP Cond";  src: url("/vibecoding/matchpoint/fonts/arch-cond700.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "MP Cond";  src: url("/vibecoding/matchpoint/fonts/arch-600.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "MP Hei";   src: url("/vibecoding/matchpoint/fonts/misans-demi.woff2") format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "MP Hei";   src: url("/vibecoding/matchpoint/fonts/misans-300.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--court); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--court);
  color: var(--line);
  font-family: var(--hei);
  font-size: 1.12rem; font-weight: 300; line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 颗粒:转播噪点 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ball); outline-offset: 4px; }
::selection { background: rgba(223, 255, 59, .35); }
html.fx .rv { opacity: 0; transform: translateY(22px); }
html.no-fx .rv { opacity: 1; transform: none; }

/* ── 转播角标导航 ── */
.tv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px;
  transition: background .3s;
}
.tv-nav.scrolled { background: rgba(10, 28, 51, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tv-back { font-size: 1.25rem; color: var(--steel); width: 44px; min-height: 40px; display: inline-flex; align-items: center; transition: color .2s; }
.tv-back:hover { color: var(--line); }
.tv-mark {
  font-family: var(--disp); font-weight: 800; font-size: .95rem; letter-spacing: .18em;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.tv-navr { display: flex; align-items: center; gap: 14px; }
.tv-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  color: var(--ball); text-transform: uppercase;
  border: 2px solid var(--ball); padding: 4px 10px;
}
.tv-live i { width: 8px; height: 8px; background: var(--clay); display: inline-block; }
html.fx .tv-live i { animation: tv-blink 1.1s steps(1) infinite; }
@keyframes tv-blink { 50% { opacity: .15; } }
.tv-lang {
  min-width: 44px; min-height: 40px; background: none; border: none; cursor: pointer;
  color: var(--steel); font-family: var(--cond); font-weight: 700; font-size: .95rem; letter-spacing: .1em;
  transition: color .2s;
}
.tv-lang:hover { color: var(--line); }

/* ── 记分牌按钮:-6° 斜切 ── */
.plate {
  display: inline-block; transform: skewX(-6deg);
  border: 2px solid var(--line); padding: .62em 1.7em;
  font-family: var(--cond); font-weight: 700; font-size: 1.02rem; letter-spacing: .12em;
  text-transform: uppercase; min-height: 52px; line-height: 1.9;
  transition: background .18s, color .18s, border-color .18s, translate .18s;
}
.plate > span { display: inline-block; transform: skewX(6deg); }
.plate:hover { background: var(--line); color: var(--court); translate: 0 -2px; }
.plate-clay { border-color: var(--clay); background: var(--clay); color: var(--line); }
.plate-clay:hover { background: var(--ball); border-color: var(--ball); color: var(--court); }
.plate-mini { min-height: 46px; padding: .45em 1.3em; font-size: .92rem; background: none; }
.plate-mini.plate-clay { background: var(--clay); }
button.plate { cursor: pointer; }

/* ── 英雄:双色调分级视频 + 海报三行 ── */
.tv-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) 86px;
  overflow: hidden;
}
.tv-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: grayscale(.85) contrast(1.18) brightness(.92);
}
.tv-grade { position: absolute; inset: 0; pointer-events: none; }
.tv-grade-navy { z-index: 1; background: var(--court); mix-blend-mode: multiply; opacity: .88; }
.tv-grade-ball { z-index: 2; background: radial-gradient(75% 60% at 70% 30%, rgba(223, 255, 59, .16), transparent 65%); mix-blend-mode: screen; }
.tv-grade-fade { z-index: 3; background: linear-gradient(180deg, rgba(10,28,51,.55), transparent 30%, transparent 62%, var(--court) 97%); }
.tv-hero-copy { position: relative; z-index: 4; max-width: var(--colw); width: 100%; margin: 0 auto; }
.tv-h0 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(3.4rem, 14.5vw, 9.2rem); line-height: 1.02; letter-spacing: .01em;
}
.tv-h0 .ln { display: block; overflow: hidden; }
.tv-h0 .ln-hollow {
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ball);
}
.tv-h0 em { font-style: normal; color: var(--clay); }
.tv-sub { margin-top: 26px; max-width: 27em; color: var(--steel); font-size: 1.08rem; line-height: 2; }
.tv-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* 底部新闻横滚 */
.tv-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  border-top: 2px solid var(--ball);
  background: rgba(10, 28, 51, .9);
  overflow: hidden; white-space: nowrap;
}
.tv-ticker-run { display: inline-flex; gap: 0; padding: 10px 0; }
.tv-ticker-run span {
  font-family: var(--cond); font-weight: 500; font-size: .92rem; letter-spacing: .08em;
  color: var(--steel); padding: 0 26px; position: relative;
}
.tv-ticker-run span::after { content: "●"; color: var(--clay); font-size: .5rem; position: absolute; right: -6px; top: 8px; }
html.fx .tv-ticker-run { animation: tv-tick 26s linear infinite; }
@keyframes tv-tick { to { transform: translateX(-50%); } }

/* ── 章节与计分水印 ── */
.tv-sec { position: relative; max-width: var(--colw); margin: 0 auto; padding: clamp(88px, 15vh, 170px) var(--gutter) 0; }
.score-mark {
  position: absolute; top: clamp(28px, 6vh, 70px); right: calc(var(--gutter) * .4);
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(6rem, 22vw, 15rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px rgba(242, 239, 230, .13);
  pointer-events: none; user-select: none;
}
.score-mark-game { font-size: clamp(4rem, 14vw, 9.5rem); }
.tv-edit { position: relative; max-width: 720px; }
.tv-edit h2 {
  font-family: var(--hei); font-weight: 600;
  font-size: clamp(1.7rem, 5.4vw, 2.6rem); line-height: 1.5; letter-spacing: .01em;
  text-wrap: balance;
}
.tv-edit p { margin-top: 18px; color: var(--steel); max-width: 34em; }

/* ── 回放台 ── */
.pb-stage {
  position: relative; margin-top: 44px;
  border: 2px solid var(--hair); background: var(--court-2);
  padding: 22px clamp(18px, 4vw, 40px) 30px;
}
.pb-head { display: flex; justify-content: space-between; align-items: center; }
.pb-rec {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 700; font-size: .8rem; letter-spacing: .18em; color: var(--steel);
}
.pb-rec i { width: 9px; height: 9px; background: var(--clay); border-radius: 50%; }
html.fx .pb-rec i { animation: tv-blink 1s steps(1) infinite; }
.pb-clock {
  font-family: var(--cond); font-weight: 700; font-size: 1.05rem; letter-spacing: .1em;
  color: var(--ball); font-variant-numeric: tabular-nums;
}
.pb-say {
  margin-top: 24px; font-size: clamp(1.15rem, 4vw, 1.5rem); font-weight: 600; line-height: 1.7;
  min-height: 2.6em;
}
.pb-say b {
  font-family: var(--cond); font-weight: 700; font-size: .78rem; letter-spacing: .16em;
  color: var(--court); background: var(--ball); padding: 3px 9px; margin-right: 12px;
  vertical-align: .28em;
}
.pb-caret { display: inline-block; width: .55em; height: 1.05em; background: var(--ball); vertical-align: -.12em; margin-left: 3px; opacity: 0; }
.pb-feed { list-style: none; margin-top: 10px; display: grid; gap: 12px; }
.pb-card {
  display: grid; grid-template-columns: 44px 1fr;
  column-gap: 14px; row-gap: 3px;
  align-items: center;
  border-left: 6px solid var(--ball);
  background: rgba(242, 239, 230, .05);
  padding: 12px 16px 13px;
}
html.fx .pb-card { visibility: hidden; }
.pb-card .pb-ico {
  grid-row: 1 / span 2; align-self: center;
  width: 44px; height: 44px; object-fit: contain;
}
.pb-card b, .pb-card span { grid-column: 2; }
.pb-card b { font-family: var(--cond); font-weight: 700; font-size: .82rem; letter-spacing: .16em; color: var(--ball); }
.pb-card span { color: var(--line); font-size: 1.02rem; font-weight: 400; }
.pb-card-hold { border-left-color: var(--clay); }
.pb-card-hold b { color: var(--clay); }
.pb-board {
  margin-top: 18px; padding: 20px 18px 22px;
  background: var(--line); color: var(--court);
  display: grid; gap: 4px; justify-items: center; text-align: center;
  position: relative;
}
.pb-board-line1 { font-family: var(--cond); font-weight: 700; font-size: 1rem; letter-spacing: .14em; }
.pb-board-line2 { font-family: var(--disp); font-weight: 800; font-size: clamp(1.9rem, 7.5vw, 3.1rem); line-height: 1.1; }
.pb-board-line2 i { font-style: normal; color: var(--clay); font-size: .55em; vertical-align: .28em; padding: 0 .2em; }
.pb-board-stamp {
  display: block; justify-self: stretch;
  margin: 14px -18px -22px;
  font-family: var(--cond); font-weight: 700; font-size: .85rem;
  letter-spacing: .34em; text-indent: .34em; text-align: center;
  background: var(--clay); color: var(--line);
  padding: 9px 0 10px;
  transform-origin: left center;
}
.pb-ctl { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ── 监视器画廊 ── */
.tv-monitors { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 44px; }
.mon { display: block; background: var(--court-2); border: 2px solid var(--hair); transition: border-color .2s, translate .2s; }
.mon:hover { border-color: var(--ball); translate: 0 -4px; }
.mon-bar {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 700; font-size: .78rem; letter-spacing: .16em; color: var(--steel);
  padding: 9px 14px; border-bottom: 2px solid var(--hair);
}
.mon-bar i { width: 8px; height: 8px; background: var(--clay); border-radius: 50%; }
.mon img { display: block; width: 100%; height: auto; }
.mon-cap {
  display: block; padding: 10px 14px 12px;
  font-size: .95rem; color: var(--line); border-top: 2px solid var(--hair);
}
@media (min-width: 820px) { .tv-monitors { grid-template-columns: 1fr 1fr; } }

/* ── 赛程 ── */
.tv-sched { list-style: none; margin-top: 40px; }
.tv-sched li {
  display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  border-top: 2px solid var(--hair-soft); padding: 22px 0;
}
.tv-sched b {
  font-family: var(--disp); font-weight: 800; font-size: 1.7rem; line-height: 1.2;
  color: transparent; -webkit-text-stroke: 1.5px var(--ball);
}
.tv-sched i { display: block; font-style: normal; font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; }
.tv-sched div span { display: block; margin-top: 4px; color: var(--steel); font-size: 1rem; line-height: 1.9; }
.tv-final { margin-top: clamp(60px, 10vh, 110px); display: grid; gap: 26px; justify-items: start; }
.tv-final-line {
  font-family: var(--hei); font-weight: 600;
  font-size: clamp(1.4rem, 4.6vw, 2.2rem); line-height: 1.6; max-width: 22em; text-wrap: balance;
}

/* ── 页脚:巨型镂空落幅 ── */
.tv-foot {
  position: relative; margin-top: clamp(90px, 15vh, 170px);
  padding: 30px var(--gutter) calc(34px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--hair); overflow: hidden;
}
.tv-foot-ghost {
  display: block; font-family: var(--disp); font-weight: 800;
  font-size: clamp(3.4rem, 15vw, 11rem); line-height: .95; letter-spacing: .01em;
  color: transparent; -webkit-text-stroke: 2px rgba(242, 239, 230, .1);
  user-select: none; margin-bottom: 12px; white-space: nowrap;
}
.tv-foot p { color: var(--line); font-weight: 400; }
.tv-foot-fine { margin-top: 6px; font-size: .8rem; color: var(--steel); }

@media (max-width: 479px) {
  body { font-size: 1.03rem; }
  .tv-mark { display: none; }
  .tv-sec { padding-top: clamp(70px, 11vh, 120px); }
  .tv-sched li { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html .rv, html .tv-h0 .ln { opacity: 1 !important; transform: none !important; }
  .tv-video { display: none; }
  .pb-card { visibility: visible !important; }
}
html.no-fx .pb-card { visibility: visible; }
html.no-fx .pb-board[hidden] { display: grid; }

/* 锚点跳转让开固定导航 */
.tv-sec, #playback, #pain, #live, #game { scroll-margin-top: 76px; }

/* ── 开场扫光:一道泛光灯掠过海报三行,只演一次 ── */
.tv-h0 { position: relative; }
html.fx .tv-h0::after {
  content: ""; position: absolute; inset: -6% -14%;
  background: linear-gradient(102deg, transparent 42%, rgba(223, 255, 59, .22) 49%, rgba(242, 239, 230, .5) 52%, transparent 60%);
  mix-blend-mode: screen; pointer-events: none;
  transform: translateX(-135%) skewX(-12deg);
  animation: mp-sweep 1.15s cubic-bezier(.6, .1, .3, 1) 1.2s 1 forwards;
}
@keyframes mp-sweep { to { transform: translateX(135%) skewX(-12deg); } }
@media (prefers-reduced-motion: reduce) { html.fx .tv-h0::after { display: none; } }

/* ── 记分牌按钮掠光:悬停一道斜光扫过 ── */
.plate { position: relative; overflow: hidden; }
.plate::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(242, 239, 230, .32) 50%, transparent 60%);
  transform: translateX(-140%);
  transition: transform .45s ease;
}
.plate:hover::before { transform: translateX(140%); }

/* 主标语收势:红土色块(图形,非标点) */
.ln-mark {
  display: inline-block;
  width: .16em; height: .16em;
  margin-left: .1em;
  background: var(--clay);
  vertical-align: .02em;
}

/* 页首品牌徽 */
.tv-mark { display: inline-flex; align-items: center; gap: 9px; }
.tv-brand { width: 24px; height: 24px; border-radius: 5px; display: block; }
@media (max-width: 600px) {
  .tv-live { display: none; }   /* 小屏让位品牌词标 */
}
