/* valoesports.com — shared stylesheet (extracted from index.html / match.html, extended for
   hub / event / team / player pages). Palette follows the VALORANT brand guide. */

/* ===== Palette & base ===== */
:root {
  --val-red: #FF4655;
  --val-red-deep: #BD3944;
  --val-bg: #0F1923;
  --val-bg-2: #1A242F;
  --val-bg-3: #22303C;
  --val-white: #ECE8E1;
  --val-mute: #768079;
  --val-line: #2B3540;
  --val-yellow: #F2C94C;
  --val-green: #5CE1A1;
  --val-blue: #4FB3FF;
  --font-display: 'Anton', 'Inter', 'Noto Sans TC', sans-serif;
  --font-body: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--val-bg);
  color: var(--val-white);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.mono { font-family: var(--font-mono); }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; position: relative; }
section + section { border-top: 1px solid var(--val-line); }
section.tight { padding: 40px 0; }

/* ===== Nav ===== */
nav.top {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 25, 35, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--val-line);
}
nav.top .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 24px;
  max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; object-fit: contain; display: block; }
.brand-text { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.1em; white-space: nowrap; }
.brand-text small { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.15em; display: block; line-height: 1; margin-top: 2px; text-transform: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--val-white); text-decoration: none; font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; transition: opacity .2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--val-red); }
.nav-tools { display: flex; gap: 8px; align-items: center; }
.tz-toggle, .tool-toggle {
  background: transparent; border: 1px solid var(--val-line); color: var(--val-white);
  padding: 8px 12px; font-family: var(--font-mono); font-size: 12px; cursor: pointer;
  transition: all .2s; white-space: nowrap;
}
.tz-toggle:hover, .tool-toggle:hover { border-color: var(--val-red); color: var(--val-red); }
.tool-toggle[aria-pressed="true"] { border-color: var(--val-yellow); color: var(--val-yellow); }
.back-link {
  color: var(--val-mute); text-decoration: none;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; transition: color .2s; white-space: nowrap;
}
.back-link:hover { color: var(--val-red); }

/* ===== Hero ===== */
.hero {
  min-height: 72vh;
  display: flex; align-items: center;
  padding: 72px 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,70,85,0.18), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(255,70,85,0.08), transparent 50%),
    var(--val-bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,70,85,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,70,85,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--val-red); letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--val-red); }
.hero h1 { font-size: clamp(44px, 7vw, 104px); line-height: 0.95; margin-bottom: 24px; }
.hero h1 .accent { color: var(--val-red); }
.hero .lede { color: var(--val-mute); max-width: 520px; font-size: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--val-line); }
.hero-meta-item .label {
  font-family: var(--font-mono); font-size: 11px; color: var(--val-mute);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 6px;
}
.hero-meta-item .value { font-family: var(--font-display); font-size: 26px; }
.hero-meta-item .value.red { color: var(--val-red); }
.hero-meta-item .value.gold { color: var(--val-yellow); }

/* Side card (countdown / champion) */
.side-card {
  background: var(--val-bg-2);
  padding: 32px;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.side-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--val-red); }
.side-card.gold::before { background: var(--val-yellow); }
.side-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  color: var(--val-red); margin-bottom: 12px;
}
.side-card.gold .side-label { color: var(--val-yellow); }
.side-title { font-family: var(--font-display); font-size: 24px; margin-bottom: 20px; }
.countdown-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.countdown-digit { text-align: center; }
.countdown-digit .num { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--val-white); display: block; }
.countdown-digit .unit { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--val-mute); text-transform: uppercase; }
.champion-card { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.champion-card .team-logo { width: 96px; height: 96px; margin: 0; flex-shrink: 0; }
.champion-card .name { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.champion-card .sub { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); margin-top: 6px; letter-spacing: 0.1em; }
.podium { list-style: none; display: grid; gap: 6px; margin-bottom: 20px; }
.podium li { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--val-line); }
.podium li span:first-child { color: var(--val-mute); }
.podium li a { color: var(--val-white); text-decoration: none; }
.podium li a:hover { color: var(--val-red); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--val-red); color: var(--val-white);
  border: none; padding: 12px 20px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background .15s;
}
.btn:hover { background: var(--val-red-deep); }
.btn.ghost { background: transparent; color: var(--val-white); border: 1px solid var(--val-line); clip-path: none; }
.btn.ghost:hover { border-color: var(--val-red); color: var(--val-red); }
.btn.small { padding: 8px 12px; font-size: 11px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-icon { width: 14px; height: 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Section header ===== */
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1; }
.section-head .eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--val-red); letter-spacing: 0.2em; margin-bottom: 8px; }
.section-head .desc { color: var(--val-mute); max-width: 460px; font-size: 14px; }
.section-head .desc a { color: var(--val-red); text-decoration: none; }

/* ===== Filters / tabs ===== */
.stage-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--val-line); overflow-x: auto; }
.stage-tab {
  background: transparent; border: none; color: var(--val-mute);
  padding: 14px 20px; cursor: pointer;
  font-family: var(--font-display); font-size: 17px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: color .2s, border-color .2s;
}
.stage-tab:hover { color: var(--val-white); }
.stage-tab[aria-selected="true"] { color: var(--val-red); border-bottom-color: var(--val-red); }
.stage-tab .badge { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); }
.stage-tab[aria-selected="true"] .badge { color: var(--val-red); }
.stage-panel { display: none; }
.stage-panel[data-active="true"] { display: block; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.filter-row .label { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.15em; margin-right: 4px; }
.chip {
  background: var(--val-bg-2); border: 1px solid var(--val-line); color: var(--val-white);
  padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--val-red); }
.chip[aria-pressed="true"] { background: var(--val-red); border-color: var(--val-red); color: var(--val-white); }

/* ===== Day groups & match rows (schedule) ===== */
.day-group { margin-bottom: 28px; }
.day-head {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--val-line);
  position: sticky; top: 64px; background: var(--val-bg); z-index: 2;
}
.day-head .day-title { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; }
.day-head .day-sub { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.1em; }
.day-head .day-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); }
.day-head .today { color: var(--val-green); }
.match-rows { display: grid; gap: 6px; }
.match-row {
  display: grid; grid-template-columns: 92px 1fr 72px 1fr 150px;
  align-items: center; gap: 12px;
  background: var(--val-bg-2); border-left: 3px solid var(--val-line);
  padding: 12px 16px; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.match-row:hover { border-left-color: var(--val-red); transform: translateX(2px); }
.match-row.finished { border-left-color: var(--val-green); }
.match-row.running { border-left-color: var(--val-red); }
.match-row .mr-time { font-family: var(--font-mono); font-size: 13px; }
.match-row .mr-time .orig { display: block; font-size: 10px; color: var(--val-mute); margin-top: 2px; }
.match-row .mr-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-row .mr-team.right { flex-direction: row-reverse; text-align: right; }
.match-row .mr-team .tl { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.match-row .mr-team .tl img { max-width: 100%; max-height: 100%; object-fit: contain; }
.match-row .mr-team .tn { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row .mr-team .tr { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); }
.match-row .mr-team.winner .tn { color: var(--val-white); }
.match-row .mr-team.loser .tn { color: var(--val-mute); }
.match-row .mr-score { text-align: center; font-family: var(--font-display); font-size: 22px; }
.match-row .mr-score .w { color: var(--val-red); }
.match-row .mr-score .sep { color: var(--val-mute); font-size: 16px; padding: 0 4px; }
.match-row .mr-score .vs { font-size: 14px; color: var(--val-red); }
.match-row .mr-meta { text-align: right; font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.08em; line-height: 1.6; }
.match-row .mr-meta .pill { display: inline-block; background: rgba(255,70,85,0.12); color: var(--val-red); padding: 2px 7px; margin-left: 4px; }
.match-row .mr-meta .live { background: var(--val-red); color: var(--val-white); animation: pulse 1.2s infinite; }
.match-row .mr-meta .maps { display: block; color: var(--val-mute); }

/* Spoiler-free mode: hide results */
body.no-spoilers .spoiler { filter: blur(6px); opacity: .35; user-select: none; }
body.no-spoilers .spoiler-text { visibility: hidden; }
body.no-spoilers .spoiler-hide { display: none !important; }

/* ===== Match cards (kept for hub highlights) ===== */
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.match-card {
  background: var(--val-bg-2); padding: 24px; position: relative;
  border-left: 3px solid var(--val-line); transition: all .2s;
  display: flex; flex-direction: column; cursor: pointer; text-decoration: none; color: inherit;
}
.match-card:hover { border-left-color: var(--val-red); transform: translateX(2px); }
.match-card.finished { border-left-color: var(--val-green) !important; }
.match-card.running { border-left-color: var(--val-red) !important; }
.match-card .round-tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; }
.match-card .versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 20px; flex-grow: 1; }
.team-block { text-align: center; }
.team-logo { width: 72px; height: 72px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; position: relative; padding: 8px; }
.team-logo::before { content: ''; position: absolute; inset: 0; background: var(--val-white); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); z-index: 0; }
.team-logo img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.team-logo .fallback { position: relative; z-index: 1; font-family: var(--font-display); font-size: 18px; color: var(--val-red); letter-spacing: 0.02em; }
.team-name { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.04em; }
.team-region { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); margin-top: 4px; }
.versus-vs { font-family: var(--font-display); font-size: 18px; color: var(--val-red); }
.match-card .meta-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--val-line); border-bottom: 1px solid var(--val-line); margin-bottom: 16px; }
.match-card .meta-row .time { font-family: var(--font-mono); font-size: 13px; }
.match-card .meta-row .time .original { color: var(--val-mute); font-size: 11px; display: block; margin-top: 2px; }
.format-pill { background: rgba(255,70,85,0.12); color: var(--val-red); padding: 4px 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; }
.match-card .final-mini { display: flex; justify-content: space-around; align-items: center; padding: 8px 0; margin-bottom: 12px; background: var(--val-bg); border: 1px solid var(--val-line); font-family: var(--font-display); font-size: 22px; }
.match-card .final-mini .winner { color: var(--val-red); }
.match-card .final-mini .sep { color: var(--val-mute); font-size: 16px; }

/* Calendar dropdown */
.cal-wrap { position: relative; }
.cal-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; background: var(--val-bg-3); border: 1px solid var(--val-line); min-width: 220px; z-index: 20; }
.cal-menu.open { display: block; }
.cal-menu a, .cal-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 14px; color: var(--val-white); text-decoration: none; font-size: 12px; border: none; border-bottom: 1px solid var(--val-line); background: transparent; text-align: left; cursor: pointer; transition: background .15s; }
.cal-menu a:last-child, .cal-menu button:last-child { border-bottom: none; }
.cal-menu a:hover, .cal-menu button:hover { background: var(--val-bg-2); color: var(--val-red); }

/* ===== Event cards (hub) ===== */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.event-card {
  background: var(--val-bg-2); border: 1px solid var(--val-line); padding: 28px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 14px;
  position: relative; transition: all .2s; min-height: 260px;
}
.event-card:hover { border-color: var(--val-red); transform: translateY(-3px); }
.event-card.champions { border-top: 3px solid var(--val-yellow); }
.event-card.masters { border-top: 3px solid var(--val-red); }
.event-card .ec-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--val-red); }
.event-card.champions .ec-kind { color: var(--val-yellow); }
.event-card h3 { font-size: 34px; line-height: 1; }
.event-card h3 small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--val-mute); text-transform: none; margin-top: 8px; }
.event-card .ec-meta { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--val-mute); }
.event-card .ec-meta b { color: var(--val-white); font-weight: 500; }
.event-card .ec-status { position: absolute; top: 16px; right: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; padding: 3px 8px; }
.ec-status.finished { background: rgba(92,225,161,0.15); color: var(--val-green); }
.ec-status.running { background: var(--val-red); color: var(--val-white); animation: pulse 1.2s infinite; }
.ec-status.upcoming { background: var(--val-bg-3); color: var(--val-mute); }
.event-card .ec-champ { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--val-line); }
.event-card .ec-champ .tl { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.event-card .ec-champ .tl img { max-width: 100%; max-height: 100%; object-fit: contain; }
.event-card .ec-champ .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--val-yellow); }
.event-card .ec-champ .nm { font-family: var(--font-display); font-size: 18px; }

/* Season blocks (hub) */
.season-block { margin-bottom: 56px; padding-top: 8px; }
.season-block + .season-block { border-top: 1px solid var(--val-line); padding-top: 40px; }
.season-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: baseline; margin-bottom: 18px; }
.season-title { font-size: clamp(30px, 4vw, 44px); color: var(--val-white); line-height: 1; }
.season-stats { display: flex; gap: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--val-mute); letter-spacing: 0.05em; }
.season-stats b { color: var(--val-white); font-weight: 500; font-size: 15px; }
.season-note { grid-column: 1 / -1; color: var(--val-mute); font-size: 13px; }
.season-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--val-red); margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.season-sub::after { content: ''; flex: 1; height: 1px; background: var(--val-line); }

/* Region board: 4 columns, stages stacked */
.region-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.region-col { background: var(--val-bg-2); border: 1px solid var(--val-line); border-top: 3px solid var(--val-bg-3); display: flex; flex-direction: column; }
.region-col[data-region="太平洋"] { border-top-color: #5CE1A1; }
.region-col[data-region="中國"] { border-top-color: #FF4655; }
.region-col[data-region="美洲"] { border-top-color: #4FB3FF; }
.region-col[data-region="歐非中東"] { border-top-color: #F2C94C; }
.region-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--val-line); }
.region-head .ri { font-size: 24px; line-height: 1; }
.region-head .rn { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.04em; line-height: 1; }
.region-head .re { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.2em; margin-top: 4px; }
.stage-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--val-line); transition: background .15s; }
.stage-row:last-child { border-bottom: none; }
.stage-row:hover { background: var(--val-bg-3); }
.stage-row .sr-stage { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.04em; display: flex; align-items: center; }
.stage-row .sr-date { font-family: var(--font-mono); font-size: 10.5px; color: var(--val-mute); margin-top: 3px; letter-spacing: 0.05em; }
.stage-row .sr-champ { display: flex; align-items: center; gap: 8px; text-align: right; flex-shrink: 0; }
.stage-row .sr-champ .tl { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; order: 2; }
.stage-row .sr-champ .tl img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stage-row .sr-champ .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--val-yellow); }
.stage-row .sr-champ .nm { font-family: var(--font-display); font-size: 15px; }
@media (max-width: 1100px) { .region-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .region-board { grid-template-columns: 1fr; } .season-head { grid-template-columns: 1fr; } }
.event-grid.leagues { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.event-card.league { min-height: 0; padding: 18px 20px; gap: 8px; border-top: 3px solid var(--val-bg-3); }
.event-card.league .ec-kind { color: var(--val-mute); }
.event-card.league h3 { font-size: 22px; }
.event-card.league h3 small { margin-top: 4px; }
.event-card.league .ec-champ { padding-top: 10px; }
.event-card.league .ec-champ .tl { width: 30px; height: 30px; }
.event-card.league .ec-champ .nm { font-size: 15px; }

/* ===== Format flow ===== */
.format-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.format-stage { background: var(--val-bg-2); padding: 32px; position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); display: flex; flex-direction: column; }
.format-stage h3 { font-size: 30px; margin-bottom: 6px; }
.format-stage h3 .num { color: var(--val-red); }
.format-stage .dates { font-family: var(--font-mono); font-size: 12px; color: var(--val-mute); margin-bottom: 20px; letter-spacing: 0.1em; }
.format-stage ul { list-style: none; flex-grow: 1; }
.format-stage li { padding: 10px 0; border-bottom: 1px solid var(--val-line); font-size: 14px; display: flex; align-items: start; gap: 10px; }
.format-stage li:last-child { border-bottom: none; }
.format-stage li::before { content: '▸'; color: var(--val-red); flex-shrink: 0; }
.format-arrow { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 40px; color: var(--val-red); }
.map-pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.map-pool span { background: var(--val-bg-3); padding: 6px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }

/* ===== Prize ===== */
.prize-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.prize-total { background: var(--val-bg-2); padding: 40px; border-top: 4px solid var(--val-red); text-align: center; }
.prize-total .label { font-family: var(--font-mono); font-size: 12px; color: var(--val-red); letter-spacing: 0.2em; margin-bottom: 12px; }
.prize-total .amount { font-family: var(--font-display); font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.prize-total .usd { font-family: var(--font-mono); color: var(--val-mute); margin-top: 8px; }
.prize-bars { display: flex; flex-direction: column; gap: 8px; }
.prize-bar { display: grid; grid-template-columns: 84px 1fr 150px; align-items: center; gap: 16px; }
.prize-bar .place { font-family: var(--font-display); font-size: 16px; color: var(--val-mute); }
.prize-bar .place.gold { color: var(--val-yellow); }
.prize-bar .place.silver { color: #C0C0C0; }
.prize-bar .place.bronze { color: #CD7F32; }
.prize-bar .bar-track { background: var(--val-bg-2); height: 28px; position: relative; overflow: hidden; }
.prize-bar .bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--val-red), var(--val-red-deep)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.prize-bar .amount-cell { font-family: var(--font-mono); font-size: 14px; text-align: right; }
.prize-bar .amount-cell .who { display: block; font-size: 10px; color: var(--val-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-note { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); margin-top: 16px; letter-spacing: 0.03em; }
.source-note a { color: var(--val-red); text-decoration: none; }

/* ===== Teams ===== */
.teams-section h3 { font-size: 22px; margin: 32px 0 16px; color: var(--val-red); display: flex; align-items: center; gap: 12px; }
.teams-section h3::before { content: ''; width: 24px; height: 1px; background: var(--val-red); }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; align-items: stretch; }
.team-card {
  background: var(--val-bg-2); padding: 20px; text-align: center; border: 1px solid var(--val-line);
  transition: all .2s; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: inherit;
}
.team-card:hover { border-color: var(--val-red); transform: translateY(-3px); }
.team-card.direct { border-top: 3px solid var(--val-red); }
.team-card.swiss { border-top: 3px solid var(--val-bg-3); }
.team-card .team-logo { width: 88px; height: 88px; padding: 12px; }
.team-card .team-name { margin-top: 12px; font-size: 17px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; line-height: 1.2; }
.team-card .team-region { margin-top: auto; padding: 4px 10px; background: var(--val-bg-3); display: inline-block; }
.team-card .seed-tag { position: absolute; top: 8px; right: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.1em; }
.team-card .place-tag { position: absolute; top: 8px; left: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; padding: 2px 6px; background: var(--val-bg-3); color: var(--val-mute); }
.team-card .place-tag.p1 { background: var(--val-yellow); color: var(--val-bg); }
.team-card .place-tag.p2 { background: #C0C0C0; color: var(--val-bg); }
.team-card .place-tag.p3 { background: #CD7F32; color: var(--val-bg); }
.team-card .roster-mini { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); margin-top: 10px; line-height: 1.6; }

/* ===== Tables (standings / stats) ===== */
.table-wrap { background: var(--val-bg-2); padding: 20px 24px; overflow-x: auto; }
.table-wrap + .table-wrap { margin-top: 16px; }
.table-wrap h3 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.table-wrap h3 .sub { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.1em; }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--val-line); font-size: 13px; white-space: nowrap; }
.data-table th { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--val-white); }
.data-table th[aria-sort="descending"]::after { content: ' ▾'; color: var(--val-red); }
.data-table th[aria-sort="ascending"]::after { content: ' ▴'; color: var(--val-red); }
.data-table td.num, .data-table th.num { text-align: right; font-family: var(--font-mono); }
.data-table td.team-cell { font-family: var(--font-display); font-size: 15px; }
.data-table td.team-cell a, .data-table td a { color: inherit; text-decoration: none; }
.data-table td.team-cell a:hover, .data-table td a:hover { color: var(--val-red); }
.data-table .tl-inline { display: inline-flex; align-items: center; gap: 8px; }
.data-table .tl-inline img { width: 22px; height: 22px; object-fit: contain; }
.data-table tr.qualified td { background: rgba(92,225,161,0.06); }
.data-table tr.eliminated td { color: var(--val-mute); }
.data-table tr.me td { background: rgba(255,70,85,0.08); }
.status-pill { display: inline-block; padding: 3px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; }
.status-high { background: rgba(92,225,161,0.15); color: var(--val-green); }
.status-mid { background: rgba(242,201,76,0.15); color: var(--val-yellow); }
.status-low { background: rgba(255,70,85,0.15); color: var(--val-red); }
.status-pending { background: var(--val-bg-3); color: var(--val-mute); }
.group-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; }
.group-grid .table-wrap { padding: 16px 20px; }
.group-grid .data-table { min-width: 0; }
.gsl-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.gsl-flow .gsl-col { font-family: var(--font-mono); font-size: 10px; }
.gsl-flow .gsl-col .lbl { color: var(--val-mute); letter-spacing: 0.1em; margin-bottom: 4px; }
.gsl-flow .gsl-m { background: var(--val-bg); border: 1px solid var(--val-line); padding: 6px 8px; margin-bottom: 4px; text-decoration: none; color: inherit; display: block; }
.gsl-flow .gsl-m:hover { border-color: var(--val-red); }
.gsl-flow .gsl-m .r { display: flex; justify-content: space-between; gap: 6px; }
.gsl-flow .gsl-m .r.w { color: var(--val-white); }
.gsl-flow .gsl-m .r.l { color: var(--val-mute); }
.gsl-flow .gsl-m .r b { font-weight: 500; }

/* Stats leaderboard specifics */
.stats-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.stats-controls select, .stats-controls input {
  background: var(--val-bg-2); border: 1px solid var(--val-line); color: var(--val-white);
  padding: 8px 10px; font-family: var(--font-mono); font-size: 12px;
}
.agent-chips { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.agent-chip { font-family: var(--font-mono); font-size: 10px; background: var(--val-bg-3); color: var(--val-mute); padding: 1px 6px; }
.rating-hi { color: var(--val-green); }
.rating-lo { color: var(--val-red); }
.acs-high { color: var(--val-yellow); }

/* ===== Bracket ===== */
.bracket-board { display: grid; gap: 24px; }
.bracket-bracket { background: var(--val-bg-2); padding: 20px; }
.bracket-bracket h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 16px; color: var(--val-red); letter-spacing: 0.05em; }
.bracket-rounds { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; }
.bracket-round { min-width: 210px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; justify-content: space-around; }
.bracket-round .round-label { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 4px; }
.bracket-match { background: var(--val-bg); border: 1px solid var(--val-line); padding: 10px; font-family: var(--font-mono); font-size: 11px; cursor: pointer; transition: border-color .2s, transform .2s; text-decoration: none; color: inherit; display: block; }
.bracket-match:hover { border-color: var(--val-red); transform: translateX(2px); }
.bracket-match .bm-team { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.bracket-match .bm-team + .bm-team { border-top: 1px dashed var(--val-line); }
.bracket-match .bm-team .name { color: var(--val-white); display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bracket-match .bm-team .name img { width: 16px; height: 16px; object-fit: contain; }
.bracket-match .bm-team .name.winner { color: var(--val-red); }
.bracket-match .bm-team .name.tbd { color: var(--val-mute); }
.bracket-match .bm-team .score { color: var(--val-mute); }
.bracket-match .bm-team .score.winner { color: var(--val-red); font-weight: 600; }
.bracket-match .bm-time { margin-top: 6px; font-size: 9px; color: var(--val-mute); letter-spacing: 0.1em; display: flex; justify-content: space-between; }

/* ===== Broadcast ===== */
.broadcast-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.stream-card { background: var(--val-bg-2); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.stream-card p { flex-grow: 1; color: var(--val-mute); font-size: 13px; }
.stream-card .live-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--val-red); letter-spacing: 0.15em; }
.stream-card .live-dot::before { content: ''; width: 8px; height: 8px; background: var(--val-red); border-radius: 50%; animation: pulse 1.5s infinite; }
.stream-card .live-dot.muted { color: var(--val-mute); }
.stream-card .live-dot.muted::before { background: var(--val-mute); animation: none; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.3 } }
.stream-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stream-platforms a { padding: 8px 14px; background: var(--val-bg-3); color: var(--val-white); font-size: 12px; text-decoration: none; font-family: var(--font-mono); letter-spacing: 0.1em; transition: background .2s; }
.stream-platforms a:hover { background: var(--val-red); }

/* ===== Match page ===== */
.match-hero { padding: 48px 0 36px; background: radial-gradient(ellipse at top, rgba(255,70,85,0.12), transparent 60%), var(--val-bg); border-bottom: 1px solid var(--val-line); }
.match-breadcrumb { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.15em; margin-bottom: 24px; }
.match-breadcrumb a { color: var(--val-red); text-decoration: none; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
.score-team { text-align: center; }
.score-team a { text-decoration: none; color: inherit; }
.score-team .team-logo-large { width: 140px; height: 140px; margin: 0 auto 20px; background: var(--val-white); padding: 18px; display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.score-team .team-logo-large img { max-width: 100%; max-height: 100%; object-fit: contain; }
.score-team .team-logo-large .fb { font-family: var(--font-display); font-size: 40px; color: var(--val-red); }
.score-team h2 { font-size: 34px; margin-bottom: 4px; }
.score-team .region { font-family: var(--font-mono); font-size: 12px; color: var(--val-mute); letter-spacing: 0.1em; }
.score-team.winner h2 { color: var(--val-red); }
.score-team .winner-tag { display: inline-block; margin-top: 8px; padding: 3px 10px; background: var(--val-red); color: var(--val-white); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; }
.score-divider { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.score-divider .final-score { font-family: var(--font-display); font-size: 88px; line-height: 1; }
.score-divider .final-score .sep { color: var(--val-mute); margin: 0 8px; }
.score-divider .final-score .winner { color: var(--val-red); }
.score-divider .format-pill { background: var(--val-bg-3); color: var(--val-white); }
.status-finished { background: rgba(92,225,161,0.15); color: var(--val-green); }
.status-running { background: var(--val-red); color: var(--val-white); animation: pulse 1.2s infinite; }
.status-not_started { background: var(--val-bg-3); color: var(--val-mute); }
.match-meta-row { display: flex; justify-content: center; gap: 36px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--val-line); flex-wrap: wrap; }
.match-meta-row .item { text-align: center; }
.match-meta-row .label { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.2em; margin-bottom: 6px; }
.match-meta-row .value { font-family: var(--font-display); font-size: 17px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; justify-content: center; }

.veto-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px; background: var(--val-bg-2); border-left: 3px solid var(--val-yellow); }
.veto-step { padding: 6px 12px; background: var(--val-bg-3); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; }
.veto-step.ban { color: var(--val-mute); text-decoration: line-through; }
.veto-step.pick { color: var(--val-red); border: 1px solid var(--val-red); }
.veto-step.decider { color: var(--val-yellow); border: 1px solid var(--val-yellow); }

.maps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.map-card { background: var(--val-bg-2); border-left: 3px solid var(--val-line); padding: 20px; }
.map-card.team1-won { border-left-color: var(--val-red); }
.map-card.team2-won { border-left-color: var(--val-yellow); }
.map-card .map-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; gap: 8px; }
.map-card .map-num { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.2em; }
.map-card .map-name { font-family: var(--font-display); font-size: 22px; }
.map-card .map-pick { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); }
.map-card .duration { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); }
.map-card .map-score { display: flex; justify-content: space-around; align-items: center; padding: 12px 0; margin: 8px 0; background: var(--val-bg); border: 1px solid var(--val-line); }
.map-card .map-score .s { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.map-card .map-score .s.winner { color: var(--val-red); }
.map-card .map-score .vs { font-family: var(--font-mono); font-size: 12px; color: var(--val-mute); }
.map-card .map-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); margin-top: 8px; gap: 8px; }
.map-card .halves { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); text-align: center; margin-top: 6px; }
.round-strip { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 10px; }
.round-strip span { width: 10px; height: 14px; background: var(--val-bg-3); display: inline-block; position: relative; }
.round-strip span.t1 { background: var(--val-red); }
.round-strip span.t2 { background: var(--val-yellow); }
.round-strip span.half { margin-left: 6px; }
.round-strip-legend { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); margin-top: 4px; display: flex; gap: 12px; }
.round-strip-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; vertical-align: middle; }

.map-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.stats-table { background: var(--val-bg-2); padding: 20px 24px; overflow-x: auto; margin-bottom: 20px; }
.stats-table h3 { font-size: 20px; margin-bottom: 12px; color: var(--val-white); display: flex; align-items: center; gap: 10px; }
.stats-table h3 .team-tag { color: var(--val-red); }
.stats-table h3 img { width: 24px; height: 24px; object-fit: contain; }
.stats-table table { width: 100%; border-collapse: collapse; min-width: 760px; }
.stats-table th, .stats-table td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--val-line); font-family: var(--font-mono); font-size: 13px; }
.stats-table th { font-size: 10px; color: var(--val-mute); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }
.stats-table th:first-child, .stats-table td:first-child { text-align: left; }
.stats-table td:first-child { font-family: var(--font-body); font-size: 14px; font-weight: 600; }
.stats-table td:first-child a { color: inherit; text-decoration: none; }
.stats-table td:first-child a:hover { color: var(--val-red); }
.stats-table .agent { display: inline-block; padding: 1px 6px; margin-left: 6px; background: var(--val-bg-3); color: var(--val-mute); font-family: var(--font-mono); font-size: 10px; font-weight: 400; }
.stats-table .pos { color: var(--val-green); }
.stats-table .neg { color: var(--val-red); }

.h2h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.h2h-card { background: var(--val-bg-2); padding: 20px; }
.h2h-card h3 { font-size: 18px; margin-bottom: 16px; color: var(--val-red); letter-spacing: 0.05em; }
.h2h-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--val-line); font-size: 13px; text-decoration: none; color: inherit; }
.h2h-row:last-child { border-bottom: none; }
.h2h-row:hover .opp { color: var(--val-white); }
.h2h-row .opp { color: var(--val-mute); }
.h2h-row .ev { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); display: block; }
.h2h-row .score-cell { font-family: var(--font-mono); }
.h2h-row .score-cell.win { color: var(--val-green); }
.h2h-row .score-cell.loss { color: var(--val-red); }
.h2h-row .when { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); }

/* ===== Team / player profile ===== */
.profile-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--val-line); background: radial-gradient(ellipse at 10% 0%, rgba(255,70,85,0.14), transparent 55%), var(--val-bg); }
.profile-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.profile-head .team-logo { width: 120px; height: 120px; margin: 0; padding: 14px; }
.profile-head .avatar { width: 120px; height: 120px; background: var(--val-bg-2); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%); display: flex; align-items: center; justify-content: center; }
.profile-head .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.profile-head .avatar .fb { font-family: var(--font-display); font-size: 40px; color: var(--val-red); }
.profile-head h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; }
.profile-head .sub { font-family: var(--font-mono); font-size: 12px; color: var(--val-mute); letter-spacing: 0.1em; margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.profile-head .sub a { color: var(--val-red); text-decoration: none; }
.profile-kpis { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--val-line); }
.kpi .label { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); letter-spacing: 0.2em; margin-bottom: 4px; }
.kpi .value { font-family: var(--font-display); font-size: 26px; }
.kpi .value.gold { color: var(--val-yellow); }
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.player-card { background: var(--val-bg-2); border: 1px solid var(--val-line); text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: all .2s; }
.player-card:hover { border-color: var(--val-red); transform: translateY(-3px); }
.player-card .ph { aspect-ratio: 1 / 1; background: var(--val-bg-3); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.player-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player-card .ph .fb { font-family: var(--font-display); font-size: 36px; color: var(--val-red); }
.player-card .pb { padding: 12px 14px; }
.player-card .pn { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.04em; }
.player-card .pr { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); margin-top: 4px; line-height: 1.6; }
.player-card .pr b { color: var(--val-white); font-weight: 500; }
.placement-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.placement-item { background: var(--val-bg-2); padding: 16px 18px; display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; border-left: 3px solid var(--val-line); }
.placement-item:hover { border-left-color: var(--val-red); }
.placement-item .pl { font-family: var(--font-display); font-size: 28px; min-width: 56px; }
.placement-item .pl.p1 { color: var(--val-yellow); }
.placement-item .pl.p2 { color: #C0C0C0; }
.placement-item .pl.p3 { color: #CD7F32; }
.placement-item .pe { font-family: var(--font-display); font-size: 16px; }
.placement-item .pd { font-family: var(--font-mono); font-size: 10px; color: var(--val-mute); margin-top: 2px; }

/* ===== Notices / empty / skeleton ===== */
.notice { padding: 16px 20px; margin-bottom: 20px; background: rgba(242,201,76,0.1); border-left: 3px solid var(--val-yellow); font-size: 13px; color: var(--val-yellow); font-family: var(--font-mono); letter-spacing: 0.03em; }
.notice.info { background: rgba(79,179,255,0.08); border-left-color: var(--val-blue); color: var(--val-blue); }
.empty-state { padding: 48px 24px; text-align: center; color: var(--val-mute); font-family: var(--font-mono); background: var(--val-bg-2); }
.empty-state .em-title { font-size: 14px; color: var(--val-white); margin-bottom: 8px; letter-spacing: 0.1em; }
.empty-state .em-sub { font-size: 12px; }
.empty-state a { color: var(--val-red); }
.skel { background: linear-gradient(90deg, var(--val-bg-3) 25%, var(--val-line) 50%, var(--val-bg-3) 75%); background-size: 200% 100%; animation: skel-shimmer 1.5s infinite; }
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== Live badge ===== */
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--val-red); color: var(--val-white); padding: 3px 8px; margin-left: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; }
.live-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.2s infinite; }
.live-badge.final { background: var(--val-green); color: var(--val-bg); }
.live-badge.final::before { display: none; }
.live-score-row { display: flex; justify-content: space-around; align-items: center; padding: 10px 0; margin-bottom: 12px; background: linear-gradient(90deg, rgba(255,70,85,0.12), rgba(255,70,85,0.04)); border-left: 3px solid var(--val-red); }
.live-score-row .score { font-family: var(--font-display); font-size: 32px; color: var(--val-white); }
.live-score-row .map-info { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); text-align: center; }

/* ===== Status bar (degradation banner) ===== */
#status-bar { padding: 10px 24px; display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; border-bottom: 1px solid var(--val-line); }
#status-bar[hidden] { display: none; }
#status-bar[data-mode="stale"] { background: rgba(242, 201, 76, 0.15); color: var(--val-yellow); }
#status-bar[data-mode="offline"] { background: rgba(255, 70, 85, 0.18); color: var(--val-red); }
#status-bar .status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 2s infinite; }
#status-bar .status-text { flex: 1; }
#status-bar .status-retry { background: transparent; border: 1px solid currentColor; color: inherit; padding: 4px 10px; cursor: pointer; font-family: inherit; font-size: 11px; letter-spacing: 0.1em; }
#status-bar .status-retry:hover { background: currentColor; color: var(--val-bg); }

/* ===== Footer ===== */
footer { background: var(--val-bg-2); padding: 36px 0; border-top: 1px solid var(--val-line); }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { font-family: var(--font-mono); font-size: 11px; color: var(--val-mute); letter-spacing: 0.08em; line-height: 1.8; }
footer a { color: var(--val-red); text-decoration: none; }
footer .foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { min-height: 0; padding: 56px 0; }
  .format-flow { grid-template-columns: 1fr; }
  .format-arrow { transform: rotate(90deg); padding: 8px; }
  .prize-grid { grid-template-columns: 1fr; }
  .broadcast-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .group-grid { grid-template-columns: 1fr; }
  .h2h-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  nav.top .inner { padding: 0 12px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text small { display: none; }
  .nav-tools { gap: 6px; }
  .tz-toggle, .tool-toggle { padding: 7px 8px; font-size: 11px; }
  section { padding: 48px 0; }
  .brand-text { font-size: 15px; }
  .match-row { grid-template-columns: 1fr auto 1fr; grid-template-areas: "time time time" "t1 score t2" "meta meta meta"; gap: 8px 10px; padding: 12px; }
  .match-row .mr-time { grid-area: time; font-size: 12px; }
  .match-row .mr-time .orig { display: inline; margin-left: 8px; }
  .match-row .mr-team.left { grid-area: t1; }
  .match-row .mr-team.right { grid-area: t2; }
  .match-row .mr-score { grid-area: score; }
  .match-row .mr-meta { grid-area: meta; text-align: left; }
  .match-row .mr-team .tn { font-size: 13px; white-space: normal; }
  .day-head { top: 64px; }
  .scoreboard { grid-template-columns: 1fr; gap: 20px; }
  .score-divider { order: -1; }
  .score-divider .final-score { font-size: 56px; }
  .score-team .team-logo-large { width: 100px; height: 100px; }
  .gsl-flow { grid-template-columns: repeat(2, 1fr); }
  .prize-bar { grid-template-columns: 64px 1fr 110px; gap: 10px; }
  .prize-bar .amount-cell { font-size: 12px; }
  .profile-head { gap: 18px; }
  .profile-head .team-logo, .profile-head .avatar { width: 88px; height: 88px; }
  .countdown-digit .num { font-size: 34px; }
  .event-card h3 { font-size: 28px; }
}

/* 台灣／港澳選手區塊：選手卡內的小隊徽 */
.player-card .pr img, .player-card .pr .fallback { width: 14px; height: 14px; object-fit: contain; vertical-align: -3px; margin-right: 2px; font-size: 8px; display: inline-flex; align-items: center; justify-content: center; }
