/* ==========================================================================
   CytheScoreBoard - MODERN SPORTS TECH DESIGN SYSTEM
   ========================================================================== */

/* Authentic Match Fonts */
@font-face {
  font-family: 'Alibaba-PuHuiTi-Heavy';
  src: url('../fonts/Alibaba-PuHuiTi-Heavy.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'PuHuiTi-Heavy';
  src: url('../fonts/Alibaba-PuHuiTi-Heavy.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'AlimamaShuHeiTi-Bold';
  src: url('../fonts/AlimamaShuHeiTi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Brand Color Palette */
  --bg-darker: #06090e;
  --bg-dark: #0a0f18;
  --bg-card: rgba(16, 24, 39, 0.75);
  --bg-card-hover: rgba(24, 36, 58, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);

  /* Primary Neon & Accents */
  --neon-green: #00f090;
  --neon-green-glow: rgba(0, 240, 144, 0.35);
  --neon-cyan: #00d2ff;
  --neon-cyan-glow: rgba(0, 210, 255, 0.3);
  --neon-blue: #3b82f6;
  --neon-purple: #8b5cf6;
  --neon-amber: #f59e0b;
  --neon-red: #ef4444;

  /* Neutral Spectrum */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 240, 144, 0.4);
  --border-glow: rgba(0, 210, 255, 0.3);

  /* Spacing & Sizes */
  --container-max: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --font-score: 'Alibaba-PuHuiTi-Heavy', 'PuHuiTi-Heavy', 'Alibaba PuHuiTi', sans-serif;

  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 40px -10px var(--neon-green-glow);
}

/* Reset & Base Setup */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: var(--font-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #111d2e 0%, var(--bg-dark) 45%, var(--bg-darker) 100%);
  min-height: 100vh;
}

::selection {
  background: var(--neon-green);
  color: var(--bg-darker);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background Ambient Orbs */
.ambient-canvas-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#bgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.22;
}

.orb-1 {
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00f090, transparent 70%);
}

.orb-2 {
  top: 40%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #00d2ff, transparent 70%);
}

.orb-3 {
  bottom: 15%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

/* Navigation Bar */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(10, 15, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 68px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-logo img {
  height: 40px;
  width: 40px;
  border-radius: 9px;
  object-fit: contain;
  box-shadow: 0 0 16px rgba(0, 240, 144, 0.25), 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(0, 240, 144, 0.4), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--neon-green);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-green);
  transition: width 0.25s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-green);
}

.nav-item a:hover {
  color: #ffffff;
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #00f090 0%, #00d2ff 100%);
  color: #06090e;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 240, 144, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 144, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 15px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-lang-toggle:hover {
  background: rgba(0, 240, 144, 0.12);
  border-color: rgba(0, 240, 144, 0.5);
  color: #00f090;
  box-shadow: 0 0 16px rgba(0, 240, 144, 0.25);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 150px;
  padding-bottom: 90px;
  z-index: 2;
  overflow: visible;
}

.hero-content {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(0, 240, 144, 0.08);
  border: 1px solid rgba(0, 240, 144, 0.25);
  color: var(--neon-green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  box-shadow: 0 0 20px rgba(0, 240, 144, 0.15);
  backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseDot 2s infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #00f090 60%, #00d2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 240, 144, 0.25);
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.tech-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.tech-pill span.dot {
  color: var(--neon-green);
}

/* ==========================================================================
   AUTHENTIC CytheScoreBoard DISPLAY (MATCHING 点球+换人.png)
   ========================================================================== */
.hero-mockup-wrapper {
  margin-top: 60px;
  perspective: 1200px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   HERO MASTER PRODUCT SHOWCASE (PREMIUM DISPLAY FRAME)
   ========================================================================== */
.hero-showcase-card {
  position: relative;
  background: rgba(13, 20, 33, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 60px -10px rgba(0, 240, 144, 0.2);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s ease;
}

.showcase-win-titlebar {
  height: 38px;
  background: #090e17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  user-select: none;
}

.showcase-dots {
  display: flex;
  gap: 8px;
}

.showcase-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.showcase-win-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.showcase-logo-icon {
  height: 18px;
  width: auto;
}

.showcase-live-pill {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Hero Showcase Switcher Tabs */
.showcase-tab-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px;
}

.showcase-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

/* 窄屏下换用的短标签，仅在最窄断点接管 */
.tab-label-sm {
  display: none;
}

.showcase-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.showcase-tab-btn.active {
  color: #fff;
  background: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.showcase-tab-btn[data-showcase="control"].active {
  color: #38bdf8;
}

.showcase-tab-btn[data-showcase="switcher"].active {
  color: #c084fc;
}

.showcase-view-panel {
  width: 100%;
}

.showcase-switcher-box {
  background: #090e17;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-switcher-img-wrap {
  position: relative;
  overflow: hidden;
  max-height: 520px;
}

.showcase-switcher-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}


/* Dual Split Showcase Stage */
.showcase-stage-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  padding: 16px;
  background: radial-gradient(ellipse at 50% 20%, #121e35 0%, #080e1a 100%);
}

.showcase-monitor-box {
  background: #090e17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-monitor-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
}

.showcase-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.showcase-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-img-wrap:hover .showcase-main-img {
  transform: scale(1.03);
}

.showcase-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.overlay-badge {
  background: rgba(10, 15, 24, 0.88);
  border: 1px solid rgba(0, 240, 144, 0.35);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Showcase Bottom Feature Ticker */
.showcase-bottom-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #090e17;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 12px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
}

.ticker-icon {
  font-size: 0.95rem;
}

/* Exact CSL Super League Broadcast Frame */
.csl-broadcast-screen {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 20%, #4c329c 0%, #362272 50%, #261654 100%);
  background-size: cover;
  border-radius: var(--radius-lg);
  padding: 24px 30px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.5);
  color: #ffffff;
  user-select: none;
}

/* Diagonal Sports Abstract Overlay matching screenshot */
.csl-broadcast-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
  background-size: 180px 180px;
  pointer-events: none;
  opacity: 0.6;
}

/* 1. CSL Super League Header Banner */
.csl-top-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 5;
}

.csl-league-badge-img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.csl-title-group {
  text-align: center;
}

.csl-main-heading {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  line-height: 1.15;
}

.csl-sub-heading {
  font-size: clamp(0.62rem, 1vw, 0.85rem);
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 2. Main Pitch Area: Left Team - Score - Right Team */
.csl-main-pitch {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-start;
  position: relative;
  z-index: 5;
  gap: 20px;
}

/* Team Column (天津津门虎 / 浙江俱乐部绿城) */
.csl-team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.csl-logo-wrap {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.csl-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6));
}

.csl-team-name {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

/* Penalty Shootout Numbered Circles (1, 2, 3, 4, 5) */
.csl-penalty-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.csl-pen-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.csl-pen-circle:hover {
  transform: scale(1.15);
}

.csl-pen-circle.green {
  background: #10b981;
}

.csl-pen-circle.red {
  background: #ef4444;
}

.csl-pen-circle.gray {
  background: rgba(255, 255, 255, 0.25);
  color: #cbd5e1;
}

/* Two-column Roster with Yellow/Red cards & Green Up Arrow */
.csl-roster-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  width: 100%;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 700;
  color: #f1f5f9;
}

.csl-player-row {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.csl-card-icon {
  display: inline-block;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.csl-card-icon.yellow {
  background: #fbbf24;
}

.csl-card-icon.red {
  background: #ef4444;
}

.csl-sub-up-arrow {
  color: #22c55e;
  font-weight: 900;
  font-size: 0.95rem;
  margin-left: 2px;
}

/* Center Huge Score */
.csl-center-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
}

.csl-score-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-score);
  font-size: clamp(4rem, 8vw, 6.8rem);
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.csl-score-num {
  min-width: 80px;
  text-align: center;
}

.csl-score-colon-pills {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.csl-score-colon-pills span {
  width: 16px;
  height: 22px;
  background: #ffffff;
  border-radius: 6px;
}

/* 3. Bottom Row: Home Jersey - Clock - Away Jersey */
.csl-bottom-pitch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 24px;
  position: relative;
  z-index: 5;
}

.csl-jersey-display-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.csl-jersey-display-wrap img {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.csl-clock-box {
  font-family: var(--font-score);
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Floating Parallax Badges around Mockup */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 24, 39, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  pointer-events: none;
}

.badge-top-left {
  top: -25px;
  left: -25px;
  animation: floatSlow 6s ease-in-out infinite;
}

.badge-bottom-right {
  bottom: -25px;
  right: -25px;
  animation: floatSlow 7s ease-in-out infinite reverse;
}

.badge-mid-right {
  top: 45%;
  right: -35px;
  animation: floatSlow 5s ease-in-out infinite 1s;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-icon.green {
  background: rgba(0, 240, 144, 0.15);
  color: var(--neon-green);
}

.badge-icon.blue {
  background: rgba(0, 210, 255, 0.15);
  color: var(--neon-cyan);
}

.badge-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: var(--neon-purple);
}

.badge-text strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.badge-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar-section {
  position: relative;
  z-index: 5;
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 15, 24, 0.5);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   SECTION COMMON HEADER
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 70px;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon-green);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   PAIN POINTS & REVOLUTION
   ========================================================================== */
.painpoints-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.painpoints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.painpoint-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.painpoint-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, var(--neon-green));
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.painpoint-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 240, 144, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 144, 0.15);
}

.pain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pain-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.pain-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
}

.pain-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.contrast-box {
  background: rgba(6, 9, 14, 0.6);
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 16px;
}

.contrast-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.contrast-row:not(:last-child) {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.contrast-badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 2px;
}

.badge-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-good {
  background: rgba(0, 240, 144, 0.15);
  color: var(--neon-green);
  border: 1px solid rgba(0, 240, 144, 0.3);
}

.contrast-text-bad {
  color: var(--text-muted);
}

.contrast-text-good {
  color: #e2e8f0;
  font-weight: 500;
}

/* ==========================================================================
   AUTHENTIC CANVAS & CODE MODE (MATCHING 设计画板.png & 代码模式.png)
   ========================================================================== */
.killer-features-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 24, 39, 0.5) 50%, transparent 100%);
}


/* Authentic Screenshot Viewport in Highlights */
.authentic-screenshot-viewport {
  width: 100%;
  background: #090e17;
  overflow: hidden;
  position: relative;
}

.ss-viewer-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.authentic-ss-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.tb-mode-hint {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
  margin-left: 8px;
}

.ss-feature-callouts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.callout-pill {
  position: absolute;
  background: rgba(13, 20, 33, 0.9);
  border: 1px solid rgba(0, 240, 144, 0.4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout-pill .c-dot {
  color: #00f090;
  font-size: 0.6rem;
}

#codeWorkspace .callout-pill {
  border-color: rgba(168, 85, 247, 0.5);
}

#codeWorkspace .callout-pill .c-dot {
  color: #c084fc;
}

.authentic-workspace-wrapper {
  border-radius: var(--radius-xl);
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
}

/* Top App Bar 1: Title & Actions */
.app-internal-toolbar-row1 {
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tb-mode-switch-group {
  display: inline-flex;
  border-radius: 4px;
  overflow: hidden;
}

.btn-seg-real {
  background: #2b2b2b;
  border: 1px solid #3c3c3c;
  color: #cbd5e1;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-seg-real.active {
  background: #409eff;
  border-color: #409eff;
  color: #fff;
}

.tb-screen-select {
  background: #2b2b2b;
  color: #fff;
  border: 1px solid #3c3c3c;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.82rem;
  outline: none;
}

.tb-btn-real {
  background: #2b2b2b;
  border: 1px solid #3c3c3c;
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
}

.tb-btn-real:hover {
  border-color: #409eff;
  color: #fff;
}

.tb-btn-real.green-btn {
  background: #67c23a;
  border-color: #67c23a;
  color: #fff;
  font-weight: 700;
}

/* Secondary Toolbar Row (Presers & Tools) */
.app-internal-toolbar-row2 {
  background: #191919;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 1. Real Canvas Layout: Left Layer Manager + Center Stage with Orange Selection Box */
.canvas-live-workspace {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 560px;
  background: #0f1015;
}

.canvas-layers-panel {
  background: #18191d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layers-ctrl-bar {
  display: flex;
  gap: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.layers-ctrl-btn {
  flex: 1;
  background: #26272b;
  border: 1px solid #393a3f;
  color: #cbd5e1;
  border-radius: 3px;
  padding: 4px 0;
  font-size: 0.72rem;
  cursor: pointer;
}

.canvas-layers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.layer-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.layer-item-row.active {
  background: rgba(64, 158, 255, 0.2);
  border: 1px solid #409eff;
  color: #fff;
}

/* Canvas Center Stage with Exact CSL Screen Output */
.canvas-stage-viewport {
  position: relative;
  background: #090a0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.canvas-mock-frame {
  width: 640px;
  height: 360px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  overflow: hidden;
}

/* Selected Element with Orange Dashed Border & 8 Handles */
.canvas-orange-selection-box {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  border: 1px dashed #f59e0b;
  padding: 4px;
  cursor: move;
  z-index: 20;
}

.orange-handle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border: 1px solid #fff;
}

.oh-nw {
  top: -3px;
  left: -3px;
}

.oh-ne {
  top: -3px;
  right: -3px;
}

.oh-sw {
  bottom: -3px;
  left: -3px;
}

.oh-se {
  bottom: -3px;
  right: -3px;
}

.oh-n {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.oh-s {
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.oh-w {
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
}

.oh-e {
  top: 50%;
  right: -3px;
  transform: translateY(-50%);
}

/* 2. Real Code Mode (Matching 代码模式.png) */
.code-mode-workspace-real {
  display: flex;
  flex-direction: column;
  height: 580px;
  background: #0d0f14;
}

.code-boxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  height: 250px;
  flex-shrink: 0;
}

.code-box-card {
  background: #151821;
  border: 1px solid #282c37;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.code-box-title {
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-box-textarea {
  flex: 1;
  background: #0b0d12;
  border: none;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 8px;
  line-height: 1.45;
  resize: none;
  outline: none;
}

.code-mode-resizer-pill {
  height: 10px;
  background: #1c202b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-mode-resizer-pill::after {
  content: "";
  width: 36px;
  height: 3px;
  background: #4b5563;
  border-radius: 2px;
}

.code-mode-bottom-stage-bar {
  background: #181b24;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.code-mode-live-preview-wrap {
  flex: 1;
  background: #06080d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

/* ==========================================================================
   RESOLUTION ADAPTIVE SIMULATOR
   ========================================================================== */
.adaptive-section-wrapper {
  margin-top: 60px;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.res-btn-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.res-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.res-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.res-btn.active {
  background: var(--neon-cyan);
  color: #06090e;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
   ADAPTIVE RESOLUTION STAGE & MULTI-RATIO VIEWPORT ENGINE
   ========================================================================== */
.adaptive-stage {
  /* 高度完全由 scoreboard-demo.js 按当前比例的缩放结果写入，
     此处不得再设下限，否则 32:9 / 条形环屏等矮档位会重新出现大片空白 */
  min-height: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(13, 22, 40, 0.9) 0%, #05080e 100%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 30px 20px;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 模拟屏宽于舞台时（小屏看超宽比例）改为舞台内横向滑动，
   左对齐才能从第一像素开始滚，居中会把左侧滚不到 */
.adaptive-stage.is-pannable {
  justify-content: flex-start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 144, 0.35) transparent;
}

.adaptive-stage.is-pannable::-webkit-scrollbar {
  height: 6px;
}

.adaptive-stage.is-pannable::-webkit-scrollbar-track {
  background: transparent;
}

.adaptive-stage.is-pannable::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 144, 0.35);
  border-radius: 999px;
}

/* 滑动提示：仅当舞台进入可滑动态时浮现 */
.adaptive-pan-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.adaptive-stage.is-pannable + .adaptive-pan-hint {
  opacity: 1;
  visibility: visible;
}

.simulated-screen-container {
  border: 1px solid rgba(0, 240, 144, 0.45);
  border-radius: 12px;
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 35px -5px rgba(0, 240, 144, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  background: #080d18;
  position: relative;
  overflow: hidden;
  /* 窄屏下按可用宽度等比缩放，--sim-fit 由 JS 写入 */
  flex: 0 0 auto;
  transform: scale(var(--sim-fit, 1));
  transform-origin: center center;
}

/* Aspect Ratio Dimensions */
.simulated-screen-container.ratio-16-9 {
  width: 680px;
  height: 382px;
}

.simulated-screen-container.ratio-9-16 {
  width: 236px;
  height: 420px;
  border-radius: 20px;
  border: 2px solid rgba(56, 189, 248, 0.5);
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 35px -5px rgba(56, 189, 248, 0.3);
}

.simulated-screen-container.ratio-21-9 {
  width: 760px;
  height: 326px;
}

.simulated-screen-container.ratio-32-9 {
  width: 880px;
  height: 160px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.9),
    0 0 35px -5px rgba(168, 85, 247, 0.25);
}

.simulated-screen-container.ratio-ribbon {
  width: 880px;
  height: 76px;
  border-radius: 6px;
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.9),
    0 0 30px -5px rgba(245, 158, 11, 0.25);
}

.screen-res-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(5, 10, 18, 0.85);
  padding: 3px 8px;
  border-radius: 4px;
  color: #00f090;
  border: 1px solid rgba(0, 240, 144, 0.35);
  backdrop-filter: blur(6px);
  z-index: 20;
  pointer-events: none;
}

.ratio-9-16 .screen-res-tag {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  top: 6px;
  right: 8px;
  font-size: 0.62rem;
  padding: 2px 6px;
}

.ratio-32-9 .screen-res-tag {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.4);
}

.ratio-ribbon .screen-res-tag {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
  top: 4px;
  right: 8px;
  font-size: 0.62rem;
}

/* Layout Switcher Rules */
.res-layout-box {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.simulated-screen-container.ratio-16-9 #layout_16_9 {
  display: flex;
  flex-direction: column;
}

.simulated-screen-container.ratio-9-16 #layout_9_16 {
  display: flex;
  flex-direction: column;
}

.simulated-screen-container.ratio-21-9 #layout_21_9 {
  display: flex;
  flex-direction: column;
}

.simulated-screen-container.ratio-32-9 #layout_32_9 {
  display: flex;
  flex-direction: column;
}

.simulated-screen-container.ratio-ribbon #layout_ribbon {
  display: flex;
  flex-direction: column;
}

/* Common Graphics Elements */
.l-mini-logo {
  height: 18px;
  width: auto;
}

.l-crest {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.l-jersey {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.l-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseLive 1.5s infinite;
}

.l-pso-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.l-pso-dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.l-pso-dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

/* ==========================================================================
   LAYOUT 1: 16:9 STANDARD BROADCAST
   ========================================================================== */
.layout-16-9 {
  background:
    radial-gradient(ellipse at 50% 20%, #311b92 0%, #1e114f 50%, #0f0826 100%);
  padding: 20px 24px 16px;
  justify-content: space-between;
}

.l16-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.l16-league-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
}

.l16-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 150px;
}

.l16-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 12, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 16px 22px;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.l16-team {
  display: flex;
  align-items: center;
  gap: 14px;
}

.l16-team-info {
  display: flex;
  flex-direction: column;
}

.l16-team-info.l-info-right {
  align-items: flex-end;
  text-align: right;
}

.l-team-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.02em;
}

.l-team-en {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

.l16-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.l16-score {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.l16-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: #cbd5e1;
}

.l16-period-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}

.l16-penalty-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.l-pso-group {
  display: flex;
  gap: 4px;
}

.l-pso-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #a1a1aa;
}

.l16-sub-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 6, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 16px;
}

.l-sub-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

.l-sub-title {
  color: #10b981;
}

.l-sub-out {
  color: #f87171;
}

.l-sub-in {
  color: #4ade80;
}

.l16-possession-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #cbd5e1;
}

.l-poss-track {
  width: 80px;
  height: 6px;
  background: #3b82f6;
  border-radius: 999px;
  overflow: hidden;
}

.l-poss-fill {
  height: 100%;
  background: #10b981;
}

/* ==========================================================================
   LAYOUT 2: 9:16 VERTICAL MOBILE BROADCAST (GENUINE VERTICAL TOP-TO-BOTTOM)
   ========================================================================== */
.layout-vertical-9-16 {
  background: radial-gradient(ellipse at 50% 10%, #1e1842 0%, #0d0a20 60%, #05040d 100%);
  padding: 12px 14px;
  justify-content: space-between;
}

.v916-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.v916-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
}

.v916-logo {
  height: 16px;
  width: auto;
}

.v916-live-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 900;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1px 6px;
  border-radius: 999px;
}

.v916-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

.v916-clock-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  margin: 4px 0;
}

.v916-clock-text {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 900;
  color: #ffffff;
}

.v916-period-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

/* Vertical Team Cards Stack */
.v916-teams-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.v916-team-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 14, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.v916-team-card.home {
  border-left: 3px solid #3b82f6;
}

.v916-team-card.away {
  border-left: 3px solid #10b981;
}

.v916-team-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v916-crest {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.v916-team-names {
  display: flex;
  flex-direction: column;
}

.v916-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.v916-sub-code {
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 600;
}

.v916-team-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v916-jersey {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.v916-score-digit {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  min-width: 18px;
  text-align: center;
}

/* VS and Penalty shootout divider */
.v916-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.v916-vs-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 900;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}

.v916-pso-strip {
  display: flex;
  align-items: center;
  gap: 5px;
}

.v916-pso-row {
  display: flex;
  gap: 3px;
}

.v916-pso-row .l-pso-dot {
  width: 6px;
  height: 6px;
}

.v916-pso-txt {
  font-size: 0.6rem;
  font-weight: 700;
  color: #94a3b8;
}

/* Vertical Timeline Feed */
.v916-event-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(10, 8, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
}

.v916-event-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: #e2e8f0;
}

.v916-ev-icon {
  font-size: 0.75rem;
}

.v916-ev-txt {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v916-ev-score {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #22c55e;
}

.v916-sub-row {
  color: #a7f3d0;
}

/* Bottom Stats */
.v916-bottom-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(10, 8, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
}

.v916-stat-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
}

.v916-stat-bar {
  width: 100%;
  height: 4px;
  background: #3b82f6;
  border-radius: 999px;
  overflow: hidden;
}

.v916-stat-fill {
  height: 100%;
  background: #10b981;
}

/* ==========================================================================
   LAYOUT 3: 21:9 CINEMATIC ULTRAWIDE
   ========================================================================== */
.layout-21-9 {
  background: radial-gradient(ellipse at 50% 30%, #172554 0%, #0f172a 60%, #020617 100%);
  padding: 16px 24px;
  justify-content: space-between;
}

.l21-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l21-league-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #38bdf8;
}

.l21-venue-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  margin-right: 150px;
}

.l21-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
}

.l21-wing {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l21-wing.away-wing {
  justify-content: flex-end;
}

.l21-crest {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.l21-jersey {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.l21-info {
  display: flex;
  flex-direction: column;
}

.l21-info.text-right {
  align-items: flex-end;
  text-align: right;
}

.l21-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.l21-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

.l21-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.l21-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.l21-score-val {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.l21-vs-sep {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: #64748b;
}

.l21-clock-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.l21-clock-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #cbd5e1;
}

.l21-period-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}

.l21-pso-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.l21-pso-text {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  margin: 0 3px;
}

.l21-footer-marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
}

.l21-footer-marquee .sep {
  color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   LAYOUT 4: 32:9 SUPER ULTRAWIDE PANORAMIC (5120×1440 DUAL 16:9 SCREEN)
   ========================================================================== */
.layout-panoramic-32-9 {
  background: radial-gradient(ellipse at 50% 50%, #2e1065 0%, #1e0942 50%, #090214 100%);
  padding: 10px 18px;
  justify-content: center;
}

.l32-panoramic-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.l32-wing-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.l32-wing-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.l32-crest {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.l32-jersey {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.l32-team-meta {
  display: flex;
  flex-direction: column;
}

.l32-team-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.l32-team-subtitle {
  font-size: 0.58rem;
  font-weight: 600;
  color: #c084fc;
  letter-spacing: 0.05em;
}

.l32-lineup-ticker {
  font-size: 0.62rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  margin-top: 2px;
}

.l32-center-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(15, 6, 33, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 8px;
  padding: 6px 14px;
}

.l32-league-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #e2e8f0;
}

.l32-mini-logo {
  height: 14px;
  width: auto;
}

.l32-main-score-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.l32-score-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.l32-mid-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.l32-time-box {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  color: #cbd5e1;
}

.l32-period {
  font-size: 0.62rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 4px;
}

.l32-pso-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.l32-pso-box .l-pso-dot {
  width: 7px;
  height: 7px;
}

.l32-pso-text {
  font-size: 0.6rem;
  font-weight: 700;
  color: #a855f7;
  margin: 0 2px;
}

.l32-telemetry-marquee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
}

.l32-dot {
  font-size: 0.4rem;
  color: #a855f7;
}

/* ==========================================================================
   LAYOUT 5: LED RIBBON PERIMETER (3840×600 STADIUM BAR)
   ========================================================================== */
.layout-ribbon {
  background: linear-gradient(90deg, #1c1404 0%, #2d1e02 50%, #1c1404 100%);
  justify-content: center;
  padding: 0 16px;
}

.l-ribbon-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.l-ribbon-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.l-ribbon-league {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fbbf24;
}

.l-ribbon-crest {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.l-ribbon-team {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fff;
}

.l-ribbon-center {
  display: flex;
  align-items: center;
  gap: 14px;
}

.l-ribbon-score {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.l-ribbon-clock {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
}

.l-ribbon-pso {
  display: flex;
  align-items: center;
  gap: 3px;
}

.l-ribbon-pso .l-pso-dot {
  width: 6px;
  height: 6px;
}

.l-ribbon-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.l-ribbon-sub {
  font-size: 0.7rem;
  color: #34d399;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

/* 模拟屏的窄屏缩放已改由 scoreboard-demo.js 按实际可用宽度等比计算，
   这里只收紧舞台内边距，不再用固定 scale 系数破坏宽高比 */
@media (max-width: 768px) {
  /* 小屏把卡片内边距与按钮组间距收起来，尽量把空间还给画面本身 */
  .adaptive-section-wrapper {
    padding: 20px 14px;
  }

  .adaptive-stage {
    padding: 14px 10px;
  }

  .res-btn-group {
    gap: 8px;
    margin-bottom: 16px;
  }

  .res-btn {
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  .adaptive-pan-hint {
    margin-top: 10px;
  }

  .showcase-stage-grid {
    grid-template-columns: 1fr;
  }
}

/* 分辨率数字对窄屏意义不大，收起来让档位按钮能两列排下 */
@media (max-width: 600px) {
  .res-dims {
    display: none;
  }
}

@media (max-width: 420px) {
  .adaptive-section-wrapper {
    padding: 16px 10px;
  }

  .adaptive-stage {
    padding: 12px 8px;
  }

  .res-btn-group {
    margin-bottom: 12px;
  }
}

/* ==========================================================================
   FULL FUNCTION MATRIX
   ========================================================================== */
.matrix-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

/* 分组选项卡：17 个模块按主线分屏呈现，避免单页堆卡片 */
.matrix-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  margin: 0 auto 44px;
  width: fit-content;
  max-width: 100%;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.matrix-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease;
}

.matrix-tab:hover {
  color: var(--text-primary);
  background: var(--bg-glass-strong);
}

.matrix-tab:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

.matrix-tab.active {
  color: #06110b;
  background: var(--neon-green);
  border-color: var(--neon-green);
  box-shadow: 0 0 26px -8px var(--neon-green-glow);
}

.matrix-tab-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.5;
}

.matrix-tab.active .matrix-tab-index {
  opacity: 0.72;
}

.matrix-tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.matrix-tab.active .matrix-tab-count {
  background: rgba(6, 17, 11, 0.18);
  color: rgba(6, 17, 11, 0.78);
}

.matrix-panel[hidden] {
  display: none;
}

.matrix-panel-head {
  max-width: 940px;
  margin: 0 auto 30px;
  text-align: center;
}

.matrix-panel-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 面板入场动画，由 JS 在切换时重插 CSS 触发一次 */
.matrix-panel {
  animation: matrixPanelIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes matrixPanelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* 旗舰条：双列布局下标题居左、正文居右、标签横贯底部，兜住最长的几段描述 */
.matrix-card.matrix-card-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 10px 44px;
  /* 两列互为居中：正文短到比标题栏还矮时，也不会出现一侧空一大块 */
  align-items: center;
  padding: 34px 32px;
  border-color: rgba(0, 240, 144, 0.22);
}

.matrix-card.matrix-card-feature:hover {
  border-color: rgba(0, 240, 144, 0.42);
}

.matrix-feature-head {
  min-width: 0;
}

.matrix-feature-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  background: rgba(0, 240, 144, 0.1);
  border: 1px solid rgba(0, 240, 144, 0.28);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 16px;
}

.matrix-card.matrix-card-feature .matrix-title {
  font-size: 1.4rem;
}

.matrix-card.matrix-card-feature .matrix-desc {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.85;
}

.matrix-card.matrix-card-feature .matrix-tags {
  grid-column: 1 / -1;
  margin-top: 20px;
}

.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.matrix-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.matrix-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.matrix-card:hover .matrix-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--neon-green);
}

.matrix-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.matrix-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.matrix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.feature-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   SHOWCASE GALLERY
   ========================================================================== */
.gallery-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background: rgba(8, 12, 20, 0.8);
}

/* Gallery Albums (分组横向滚动相册行) */
.gallery-albums {
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.album-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.album-head-text {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.album-index {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(0, 240, 144, 0.55);
  flex: 0 0 auto;
}

.album-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.album-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.album-nav {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  transition: opacity 0.25s ease;
}

/* 该组卡片未溢出轨道时隐藏箭头 */
.album-row.nav-idle .album-nav {
  opacity: 0;
  pointer-events: none;
}

.album-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
}

.album-arrow:hover:not(:disabled) {
  background: var(--neon-green);
  color: #06090e;
  border-color: var(--neon-green);
  box-shadow: 0 0 15px rgba(0, 240, 144, 0.4);
}

.album-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.album-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* 上下左右都要容下 hover 的上浮 + scale + 光晕，否则首尾卡片会被轨道裁掉 */
  padding: 22px 18px 26px;
  scroll-padding-inline: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 144, 0.4) transparent;
}

.album-track::-webkit-scrollbar {
  height: 8px;
}

.album-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
}

.album-track::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 144, 0.35);
  border-radius: 999px;
}

.album-track::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 144, 0.6);
}

.album-track .gallery-card {
  flex: 0 0 clamp(280px, 33%, 440px);
  scroll-snap-align: start;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0f18;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--neon-cyan);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 210, 255, 0.2);
}

.gallery-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06090e;
  overflow: hidden;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 9, 14, 0.95) 0%, rgba(6, 9, 14, 0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.gallery-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 240, 144, 0.2);
  color: var(--neon-green);
  border: 1px solid rgba(0, 240, 144, 0.3);
  margin-bottom: 6px;
}

.gallery-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.gallery-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox-modal.active {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img-wrap {
  width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 18px;
  text-align: center;
}

.lightbox-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.lightbox-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* ==========================================================================
   TECHNICAL ARCHITECTURE & BENCHMARK
   ========================================================================== */
.tech-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.benchmark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.bench-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.bench-item {
  margin-bottom: 24px;
}

.bench-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.bench-name {
  font-weight: 600;
  color: #fff;
}

.bench-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--neon-green);
}

.bench-bar-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.bench-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-cythe {
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-green-glow);
}

.bar-traditional {
  background: #64748b;
}

.arch-flow-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.arch-node {
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
  position: relative;
}

.arch-node-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.arch-node-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.arch-arrow {
  text-align: center;
  color: var(--neon-green);
  font-size: 1.2rem;
  margin: -6px 0 10px;
}

/* ==========================================================================
   QUICK START & HOTKEYS
   ========================================================================== */
.specs-section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
  background: rgba(8, 12, 20, 0.5);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 240, 144, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hotkeys-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.hotkey-header-notice {
  background: rgba(0, 240, 144, 0.08);
  border: 1px solid rgba(0, 240, 144, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.hotkey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.hotkey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 14, 0.6);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hotkey-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-green);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   CALL TO ACTION & FOOTER
   ========================================================================== */
.cta-section {
  padding: 100px 0;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-box {
  background: radial-gradient(circle at 50% 50%, #15273f 0%, #0c1424 100%);
  border: 1px solid rgba(0, 240, 144, 0.3);
  border-radius: var(--radius-xl);
  padding: 70px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 240, 144, 0.15);
  position: relative;
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-darker);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--neon-green);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* Clean Discipline & Substitution Styles */
.l16-team-card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 2px;
}

.l16-cards-summary {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94a3b8;
}

.v916-sub-card {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fbbf24;
}

.v916-bottom-discipline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 8, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #94a3b8;
}

.v916-disc-dot {
  font-size: 0.4rem;
  color: #64748b;
}

.l21-sub-highlight {
  color: #10b981;
  font-weight: 800;
}

.l32-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 4px;
}

.l32-card-badge.green-badge {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.l32-sub-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.l32-sub-label {
  color: #10b981;
}

.l32-sub-out {
  color: #f87171;
}

.l32-sub-in {
  color: #4ade80;
}

.l-ribbon-card {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 3px;
}


/* ==========================================================================
   PAINPOINTS: TWO-COLUMN SPLIT COMPARISON (左右分栏式对比)
   ========================================================================== */
.painpoints-split-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.split-column {
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-column:hover {
  transform: translateY(-4px);
}

/* Left Column: Traditional */
.split-column.col-traditional {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.06) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(239, 68, 68, 0.28);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(239, 68, 68, 0.15);
}

/* Right Column: Cythe Breakthrough */
.split-column.col-cythe {
  background: linear-gradient(180deg, rgba(0, 240, 144, 0.08) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1px solid rgba(0, 240, 144, 0.4);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -5px rgba(0, 240, 144, 0.2);
}

.split-col-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.col-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.badge-traditional {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.badge-cythe {
  background: rgba(0, 240, 144, 0.15);
  border: 1px solid rgba(0, 240, 144, 0.4);
  color: #00f090;
}

.col-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.col-traditional .col-title {
  color: #fecaca;
}

.col-cythe .col-title {
  color: #e2e8f0;
}

.col-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.split-items-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.split-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.item-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 2px;
}

.item-icon-box.bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.item-icon-box.good {
  background: rgba(0, 240, 144, 0.18);
  color: #00f090;
  border: 1px solid rgba(0, 240, 144, 0.45);
  box-shadow: 0 0 10px rgba(0, 240, 144, 0.3);
}

.item-content {
  flex: 1;
}

.item-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.col-traditional .item-title {
  color: #f1f5f9;
}

.col-cythe .item-title {
  color: #f8fafc;
}

.item-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .painpoints-split-comparison {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NO-WRAP TITLE FOR HIGHLIGHTS SECTION
   ========================================================================== */
.no-wrap-title {
  white-space: nowrap !important;
  font-size: clamp(1.25rem, 2.6vw, 2.3rem) !important;
  letter-spacing: -0.01em;
}

@media (max-width: 600px) {
  .no-wrap-title {
    white-space: normal !important;
  }
}

/* ==========================================================================
   AUTHENTIC BROADCAST SCOREBOARD (MATCHING 点球+换人.png ACROSS ALL RATIOS)
   Strictly prevents line-wrapping for score and team names.
   ========================================================================== */
.csl-authentic-scoreboard {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #4c329b 0%, #352174 55%, #241454 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 20px 12px;
  box-sizing: border-box;
  user-select: none;
}

/* Diagonal Sports Camo Texture matching 点球+换人.png */
.csl-authentic-scoreboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.025) 25%, transparent 25%);
  background-size: 160px 160px;
  pointer-events: none;
}

/* Top CSL Banner */
.csl-auth-top-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
}

.csl-auth-league-logo {
  height: 42px;
  max-width: 88%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: all 0.3s ease;
}

.csl-auth-league-titles {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.csl-auth-league-zh {
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.csl-auth-league-en {
  font-size: 0.52rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Main Pitch Grid: Flex layout ensuring score & names never wrap */
.csl-auth-pitch-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
}

/* Team Wings */
.csl-auth-team-wing {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-wing {
  align-items: flex-start;
}

.away-wing {
  align-items: flex-end;
}

/* Team Identity Group (Header + Penalty Shootout Dots) */
.csl-auth-team-identity {
  display: flex;
  flex-direction: column;
  width: fit-content;
  margin-bottom: 6px;
}

.home-wing .csl-auth-team-identity {
  margin-right: auto;
  align-items: stretch;
}

.away-wing .csl-auth-team-identity {
  margin-left: auto;
  align-items: stretch;
}

.csl-auth-team-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.away-wing .csl-auth-team-header {
  justify-content: flex-end;
}

.csl-auth-crest {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.csl-auth-team-title {
  font-family: 'AlimamaShuHeiTi-Bold', 'Alibaba-PuHuiTi-Heavy', sans-serif;
  font-size: clamp(0.92rem, 1.35vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap !important;
  flex-shrink: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.csl-auth-pso-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.auth-pso {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 0.55rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.auth-pso.green {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.auth-pso.red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
}

/* Roster Grid (2 cols of players) */
.csl-auth-roster-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e2e8f0;
  width: fit-content;
}

.home-wing .csl-auth-roster-grid {
  margin-right: auto;
}

.away-wing .csl-auth-roster-grid {
  margin-left: auto;
}

.auth-player-line {
  white-space: nowrap;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-slot {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: 18px;
  min-width: 18px;
  max-width: 18px;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* Authentic Rectangular Soccer Cards matching 点球+换人.png */
.c-card-rect {
  display: inline-block;
  width: 7px;
  height: 11px;
  border-radius: 1.5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.c-card-rect.yellow {
  background: #facc15;
}

.c-card-rect.red {
  background: #ef4444;
}

.p-num {
  font-family: 'AlimamaShuHeiTi-Bold', var(--font-score);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 1.6ch;
  text-align: right;
  flex-shrink: 0;
}

.p-name {
  font-family: 'AlimamaShuHeiTi-Bold', 'Alibaba-PuHuiTi-Heavy', sans-serif;
  font-weight: 700;
  color: #ffffff;
}

.c-sub-arrow {
  color: #10b981;
  font-size: 0.62rem;
  font-weight: 900;
  margin-left: 1px;
  line-height: 1;
}

/* Center Block: Score & Clock (GUARANTEED NO WRAP) */
.csl-auth-center-block {
  flex-shrink: 0;
  min-width: 145px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.csl-auth-score-digits {
  font-family: var(--font-score);
  font-size: clamp(2.4rem, 4.2vw, 3.3rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.06em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  margin-bottom: 8px;
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.score-digit {
  display: inline-block;
  white-space: nowrap;
}

.score-sep {
  display: inline-block;
  white-space: nowrap;
  opacity: 0.95;
}

.csl-auth-clock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.csl-auth-jersey {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.csl-auth-clock-val {
  font-family: var(--font-score);
  font-size: 1.18rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE RATIO ADAPTATIONS FOR AUTHENTIC SCOREBOARD
   ========================================================================== */

/* 1. 16:9 Standard */
.simulated-screen-container.ratio-16-9 {
  width: 680px;
  height: 382px;
}

.simulated-screen-container.ratio-16-9 .csl-authentic-scoreboard {
  padding: 16px 22px 14px;
}

/* 2. 9:16 Vertical Live Stream */
.simulated-screen-container.ratio-9-16 {
  width: 236px;
  height: 420px;
}

.simulated-screen-container.ratio-9-16 .csl-authentic-scoreboard {
  padding: 10px 8px;
}

.simulated-screen-container.ratio-9-16 .csl-auth-top-banner {
  margin-bottom: 4px;
}

.simulated-screen-container.ratio-9-16 .csl-auth-league-logo {
  height: 26px;
  max-width: 92%;
}

.simulated-screen-container.ratio-9-16 .csl-auth-pitch-content {
  flex-direction: column;
  justify-content: space-around;
  gap: 6px;
}

.simulated-screen-container.ratio-9-16 .csl-auth-team-identity {
  margin: 0 auto;
  align-items: center;
}

.simulated-screen-container.ratio-9-16 .csl-auth-team-header {
  justify-content: center;
}

.simulated-screen-container.ratio-9-16 .csl-auth-pso-dots {
  justify-content: center;
  gap: 5px;
  padding: 0;
  width: auto;
}

.simulated-screen-container.ratio-9-16 .csl-auth-crest {
  width: 30px;
  height: 30px;
}

.simulated-screen-container.ratio-9-16 .csl-auth-team-title {
  font-size: 0.8rem;
}

.simulated-screen-container.ratio-9-16 .csl-auth-score-digits {
  font-size: 2.1rem;
  margin-bottom: 2px;
}

.simulated-screen-container.ratio-9-16 .csl-auth-roster-grid {
  display: none;
}

/* 3. 21:9 Ultrawide */
.simulated-screen-container.ratio-21-9 {
  width: 760px;
  height: 326px;
}

.simulated-screen-container.ratio-21-9 .csl-authentic-scoreboard {
  padding: 14px 28px 12px;
}

.simulated-screen-container.ratio-21-9 .csl-auth-pitch-content {
  gap: 20px;
}

.simulated-screen-container.ratio-21-9 .csl-auth-league-logo {
  height: 40px;
}

.simulated-screen-container.ratio-21-9 .csl-auth-score-digits {
  font-size: 3.1rem;
}

/* 4. 32:9 Super Ultrawide Panoramic (5120×1440) */
.simulated-screen-container.ratio-32-9 {
  width: 880px;
  height: 160px;
}

.simulated-screen-container.ratio-32-9 .csl-authentic-scoreboard {
  padding: 6px 20px 8px;
}

.simulated-screen-container.ratio-32-9 .screen-res-tag {
  top: 4px;
  right: 8px;
  font-size: 0.58rem;
  padding: 1px 6px;
  opacity: 0.85;
}

.simulated-screen-container.ratio-32-9 .csl-auth-top-banner {
  margin-bottom: 2px;
}

.simulated-screen-container.ratio-32-9 .csl-auth-league-logo {
  height: 22px;
}

.simulated-screen-container.ratio-32-9 .csl-auth-crest {
  width: 38px;
  height: 38px;
}

.simulated-screen-container.ratio-32-9 .csl-auth-team-title {
  font-size: 1rem;
}

.simulated-screen-container.ratio-32-9 .csl-auth-team-identity {
  margin-bottom: 2px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.simulated-screen-container.ratio-32-9 .csl-auth-team-header {
  margin-bottom: 0;
}

.simulated-screen-container.ratio-32-9 .csl-auth-pso-dots {
  gap: 5px;
  width: auto;
  margin-bottom: 0;
}

/* Away team: PSO dots on LEFT of team name/crest */
.simulated-screen-container.ratio-32-9 .away-wing .csl-auth-team-identity {
  flex-direction: row-reverse;
}

.simulated-screen-container.ratio-32-9 .auth-pso {
  width: 12px;
  height: 12px;
  font-size: 0.48rem;
}

.simulated-screen-container.ratio-32-9 .csl-auth-score-digits {
  font-size: 2.3rem;
  margin-bottom: 2px;
}

.simulated-screen-container.ratio-32-9 .csl-auth-clock-val {
  font-size: 0.95rem;
}

.simulated-screen-container.ratio-32-9 .csl-auth-roster-grid {
  font-size: 0.62rem;
  gap: 1px 6px;
}

.simulated-screen-container.ratio-32-9 .card-slot {
  width: 15px;
  min-width: 15px;
  max-width: 15px;
}

.simulated-screen-container.ratio-32-9 .c-card-rect {
  width: 6px;
  height: 9px;
}

/* 5. Ribbon Perimeter LED (3840×600) */
.simulated-screen-container.ratio-ribbon {
  width: 880px;
  height: 76px;
}

.simulated-screen-container.ratio-ribbon .csl-authentic-scoreboard {
  padding: 4px 18px;
  justify-content: center;
}

.simulated-screen-container.ratio-ribbon .csl-auth-top-banner {
  display: none;
}

.simulated-screen-container.ratio-ribbon .csl-auth-team-identity {
  margin: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Away team: PSO dots on LEFT of team name/crest */
.simulated-screen-container.ratio-ribbon .away-wing .csl-auth-team-identity {
  flex-direction: row-reverse;
}

.simulated-screen-container.ratio-ribbon .csl-auth-pso-dots {
  gap: 5px;
  margin-bottom: 0;
  width: auto;
}

.simulated-screen-container.ratio-ribbon .auth-pso {
  width: 14px;
  height: 14px;
  font-size: 0.5rem;
}

.simulated-screen-container.ratio-ribbon .csl-auth-roster-grid {
  display: none;
}

.simulated-screen-container.ratio-ribbon .csl-auth-crest {
  width: 40px;
  height: 40px;
}

.simulated-screen-container.ratio-ribbon .csl-auth-team-title {
  font-size: 1rem;
}

.simulated-screen-container.ratio-ribbon .csl-auth-team-header {
  margin-bottom: 0;
}

.simulated-screen-container.ratio-ribbon .csl-auth-score-digits {
  font-size: 1.7rem;
  margin-bottom: 0;
}

.simulated-screen-container.ratio-ribbon .csl-auth-clock-val {
  font-size: 0.82rem;
}


/* CSL Official League Verification Card */
.csl-verification-badge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(234, 179, 8, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 28px;
  margin: 0 auto 28px;
  max-width: 920px;
}

.csl-badge-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.csl-seal-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.5));
}

.csl-seal-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fef08a;
  margin: 0 0 4px 0;
  letter-spacing: 0.02em;
}

.csl-seal-text p {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.5;
}

.csl-seal-text strong {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #eab308;
  text-underline-offset: 4px;
}

.csl-badge-tag {
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #fef08a;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.tech-pill.highlight-gold {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.08);
  color: #fef08a;
}

.tech-pill .dot.gold {
  color: #eab308;
}

.ticker-item.highlight-csl {
  color: #fef08a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .csl-verification-badge-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
  }
}


/* Hero Showcase Window Titlebar Right Group & CSL Badge */
.showcase-titlebar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-csl-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.16) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fef08a;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.12);
}

.showcase-csl-badge .csl-badge-icon {
  font-size: 0.85rem;
  filter: drop-shadow(0 1px 4px rgba(234, 179, 8, 0.6));
}

@media (max-width: 900px) {
  .showcase-csl-badge {
    display: none;
  }
}

/* 窄屏下标题栏改为两行：红黄绿胶囊 + PGM 状态胶囊一行，页签开关整行居中，
   避免固定 38px 高度把文字挤成两行、PGM 胶囊断字 */
@media (max-width: 768px) {
  .showcase-win-titlebar {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 12px;
  }

  .showcase-dots {
    order: 1;
  }

  .showcase-titlebar-right {
    order: 2;
    margin-left: auto;
  }

  .showcase-tab-switcher {
    order: 3;
    flex: 1 1 100%;
    justify-content: center;
    min-width: 0;
  }

  .showcase-tab-btn {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
}

@media (max-width: 600px) {
  .showcase-tab-btn {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  .tab-label {
    display: none;
  }

  .tab-label-sm {
    display: inline;
  }
}