:root {
  --bg: #0f1419;
  --bg-card: #1a2332;
  --bg-elevated: #243044;
  --orange: #ff6b35;
  --orange-dim: #e85a28;
  --blue: #3d9cf5;
  --green: #2dd4a8;
  --text: #f0f4f8;
  --text-muted: #8b9cb3;
  --border: #2d3a4f;
  --live: #ff4757;
  --radius: 14px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-header {
  background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-admin-logout {
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}

.btn-admin-logout:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.admin-game-danger {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(248, 113, 113, 0.35);
}

.admin-game-danger-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f87171;
  margin-bottom: 0.35rem;
}

.admin-game-danger-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.btn-delete-game {
  width: 100%;
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.06);
}

.btn-delete-game:hover {
  color: #fff;
  background: rgba(248, 113, 113, 0.18);
  border-color: #f87171;
}

.admin-delete-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-delete-modal {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-delete-modal h3 {
  color: #f87171;
  margin-bottom: 0.5rem;
}

.admin-delete-match {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.admin-delete-warn {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.admin-delete-warn li {
  margin-bottom: 0.35rem;
}

.admin-delete-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
}

.admin-delete-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.admin-delete-input-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.admin-delete-input {
  width: 100%;
  margin-bottom: 1rem;
}

.admin-delete-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-delete-actions .btn {
  flex: 1;
}

.btn-delete-confirm {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

.btn-delete-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-delete-confirm:not(:disabled):hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-live {
  background: rgba(255, 71, 87, 0.2);
  color: #ff6b7a;
}

.badge-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.2s infinite;
}

.badge-scheduled {
  background: rgba(61, 156, 245, 0.15);
  color: var(--blue);
}

.badge-finished {
  background: rgba(139, 156, 179, 0.15);
  color: var(--text-muted);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.game-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.game-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.game-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.team-name {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

.team-name.home { text-align: right; }
.team-name.away { text-align: left; }

.score-big {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--orange);
  min-width: 100px;
}

.score-big.muted {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.quarter-pill {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.5rem 0 0.75rem;
}

/* Watch page hero */
.watch-hero {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2rem;
}

.watch-hero .score-big {
  font-size: 3.5rem;
}

.watch-hero .team-name {
  font-size: 1rem;
}

.live-indicator {
  text-align: center;
  margin-bottom: 1rem;
}

.timeline {
  list-style: none;
}

.timeline-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.timeline-time {
  flex-shrink: 0;
  width: 48px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 2px;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-item.score .timeline-dot { background: var(--orange); }
.timeline-item.game_end .timeline-dot { background: var(--green); }
.timeline-item.note .timeline-dot { background: var(--blue); }

.timeline-body {
  flex: 1;
}

.timeline-score {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.admin-game-actions {
  margin-top: 0.75rem;
}

.admin-game-actions-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.admin-game-actions-main .btn {
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
}

.admin-game-actions-main--solo {
  grid-template-columns: 1fr;
}

.admin-game-actions-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.admin-game-actions-more a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

.admin-game-actions-more a:hover {
  color: var(--accent);
}

.admin-game-actions-sep {
  font-size: 0.72rem;
  color: var(--border);
  user-select: none;
}

.tournament-scope-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 0.82rem;
}

.tournament-scope-label {
  color: var(--text-muted);
}

.tournament-scope-name {
  color: var(--text);
  font-weight: 600;
}

.tournament-scope-switch,
.tournament-scope-home {
  color: var(--accent);
  text-decoration: none;
  margin-left: auto;
}

.tournament-scope-switch {
  margin-left: 0;
}

.tournament-pick-page {
  padding: 0.25rem 0 2rem;
}

.tournament-pick-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tournament-pick-card {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.tournament-pick-card:hover {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.06);
}

.tournament-pick-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.tournament-pick-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tournament-pick-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.tournament-pick-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.tournament-pick-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.5;
}

.game-card-tournament {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  text-align: center;
}

.admin-tournament-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.admin-tournament-item {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.admin-tournament-item h4 {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.admin-tournament-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.admin-tournament-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-tournament-links .btn {
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
}

.admin-games-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.watch-tournament-bar {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem 0;
}

.watch-tournament-bar strong {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-dim);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.btn-score {
  min-width: 64px;
  padding: 0.85rem;
  font-size: 1rem;
}

.btn-home {
  background: rgba(255, 107, 53, 0.2);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.4);
}

.btn-away {
  background: rgba(61, 156, 245, 0.15);
  color: var(--blue);
  border: 1px solid rgba(61, 156, 245, 0.35);
}

.btn-block {
  width: 100%;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.connection-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.connection-status.connected { color: var(--green); }
.connection-status.disconnected { color: var(--live); }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  transition: transform 0.25s, opacity 0.25s;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.score-panel .team-block {
  text-align: center;
  margin-bottom: 1rem;
}

.score-panel .team-block h2 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.score-panel .team-score-display {
  font-size: 3rem;
  font-weight: 800;
}

.score-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

@media (max-width: 480px) {
  .watch-hero .score-big {
    font-size: 2.75rem;
  }
}

/* Bottom navigation */
body.has-bottom-nav {
  padding-bottom: 72px;
}

body.has-bottom-nav .toast {
  bottom: 5rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 150;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.55rem 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
}

.bottom-nav-item:hover {
  text-decoration: none;
  color: var(--text);
}

.bottom-nav-item.active {
  color: var(--orange);
}

.bottom-nav-icon {
  font-size: 1.2rem;
}

/* Score flash animation */
.score-flash-target.score-flash .score-big {
  animation: scorePulse 0.55s ease;
}

@keyframes scorePulse {
  0% { transform: scale(1); color: var(--orange); }
  40% { transform: scale(1.12); color: #ffd166; }
  100% { transform: scale(1); color: var(--orange); }
}

/* Tournament banner */
.tournament-banner {
  background: linear-gradient(135deg, #243044 0%, #1a2332 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}

.tournament-banner h2 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.tournament-banner p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tournament-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.tournament-stats strong {
  color: var(--orange);
}

/* Bracket — bottom-up climb to champion (mobile-first, no horizontal scroll) */
.bracket-section {
  margin-bottom: 1.5rem;
}

.bracket-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.bracket-ladder {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
}

.bracket-champion {
  position: relative;
  text-align: center;
  padding: 1.35rem 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-card) 55%, var(--bg) 100%);
  overflow: hidden;
}

.bracket-champion--crowned {
  border-color: rgba(255, 193, 7, 0.55);
  background: linear-gradient(
    165deg,
    rgba(255, 193, 7, 0.18) 0%,
    var(--bg-card) 40%,
    var(--bg) 100%
  );
  animation: bracket-champion-enter 0.7s ease-out both;
}

.bracket-champion--live {
  border-color: rgba(255, 71, 87, 0.45);
  animation: bracket-champion-enter 0.5s ease-out both;
}

.bracket-champion--pending {
  opacity: 0.92;
}

.bracket-champion-fx {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.bracket-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd54f;
  box-shadow: 0 0 10px #ffc107;
  animation: bracket-spark-float 2.4s ease-in-out infinite;
}

.bracket-spark.s1 { left: 12%; top: 22%; animation-delay: 0s; }
.bracket-spark.s2 { right: 14%; top: 18%; animation-delay: 0.6s; }
.bracket-spark.s3 { left: 20%; bottom: 20%; animation-delay: 1.1s; }
.bracket-spark.s4 { right: 18%; bottom: 24%; animation-delay: 1.7s; }

.bracket-champion-crown {
  font-size: 2.25rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 4px 12px rgba(255, 193, 7, 0.35));
}

.bracket-champion-crown--pulse {
  animation: bracket-crown-pulse 1.4s ease-in-out infinite;
}

.bracket-champion-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.bracket-champion--crowned .bracket-champion-kicker {
  color: #ffc107;
}

.bracket-champion-team {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.bracket-champion--crowned .bracket-champion-team {
  background: linear-gradient(90deg, #fff8e1, #ffc107, #ff8f00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bracket-name-shine 2.8s ease-in-out infinite;
}

.bracket-champion-score,
.bracket-champion-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bracket-champion-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--blue);
  text-decoration: none;
}

.bracket-champion-link:hover {
  text-decoration: underline;
}

@keyframes bracket-champion-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bracket-crown-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes bracket-spark-float {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translateY(-8px) scale(1.1);
  }
}

@keyframes bracket-name-shine {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bracket-champion--crowned,
  .bracket-champion--live,
  .bracket-champion-crown--pulse,
  .bracket-spark,
  .bracket-champion--crowned .bracket-champion-team {
    animation: none;
  }
}

.bracket-rounds {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: visible;
  max-width: 100%;
}

.bracket-rounds--climb {
  margin-top: 0.15rem;
}

.bracket-round {
  width: 100%;
  min-width: 0;
  flex-shrink: 1;
}

.bracket-round-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.bracket-round--final .bracket-round-name {
  border-color: rgba(255, 107, 53, 0.45);
  color: var(--orange);
}

.bracket-round-matches {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Two semifinals: side-by-side only when there is room (still no page-level scroll) */
.bracket-round--multi .bracket-round-matches {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 360px) {
  .bracket-round--multi .bracket-round-matches {
    grid-template-columns: 1fr 1fr;
  }
}

.bracket-round--final .bracket-round-matches {
  max-width: 22rem;
  margin: 0 auto;
}

.bracket-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0 0.65rem;
  gap: 0.15rem;
}

.bracket-flow--up {
  flex-direction: column-reverse;
  padding: 0.5rem 0;
}

.bracket-flow-line {
  display: block;
  width: 2px;
  height: 1.35rem;
  border-radius: 1px;
  background: linear-gradient(180deg, var(--orange), var(--border));
}

.bracket-flow--up .bracket-flow-line {
  background: linear-gradient(0deg, var(--orange), rgba(255, 107, 53, 0.15));
}

.bracket-flow-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.bracket-flow-arrow {
  font-size: 0.65rem;
  color: var(--orange);
  line-height: 1;
  animation: bracket-flow-nudge 1.6s ease-in-out infinite;
}

@keyframes bracket-flow-nudge {
  0%,
  100% {
    transform: translateY(2px);
    opacity: 0.65;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bracket-flow-arrow {
    animation: none;
  }
}

.bracket-match {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.bracket-match:hover {
  border-color: var(--orange);
  text-decoration: none;
}

.bracket-match-live {
  border-color: rgba(255, 71, 87, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 71, 87, 0.2);
}

.bracket-match-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem;
}

.bracket-match-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.bracket-team {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.2rem 0;
}

.bracket-team span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team strong {
  flex-shrink: 0;
}

.bracket-team.winner {
  color: var(--green);
  font-weight: 600;
}

.bracket-match-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Poster page */
.poster-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: #0a0e14;
}

.poster-card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(160deg, #1e2a3d 0%, #141c28 100%);
  border: 2px solid var(--orange);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
}

.poster-card h1 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.poster-card .poster-event {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.poster-teams {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.poster-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  margin: 0.5rem 0 1rem;
}

.poster-qr {
  background: #fff;
  padding: 0.75rem;
  border-radius: 12px;
  display: inline-block;
  margin: 0.5rem 0 1rem;
}

.poster-qr img {
  display: block;
  width: 200px;
  height: 200px;
}

.poster-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.poster-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 100%;
  max-width: 360px;
}

.poster-actions .btn {
  flex: 1;
}

.lan-tip {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
  word-break: break-all;
}

.tournament-picker {
  margin-bottom: 0.75rem;
}

.tournament-picker label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.tournament-picker select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

/* Demo poster (client showcase) */
.demo-poster-page {
  background: #0a0e14;
}

.demo-poster-header .app-header-inner {
  max-width: 420px;
}

.demo-poster-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.25);
  color: var(--orange);
  font-weight: 600;
}

.demo-poster-wrap {
  padding-top: 0.5rem;
}

.demo-poster-lead {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1rem;
  max-width: 360px;
}

.demo-poster-card {
  max-width: 400px;
  border-width: 3px;
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
}

.demo-poster-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.demo-poster-teams {
  font-size: 1.15rem !important;
}

.demo-poster-vs {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0;
}

.demo-poster-score {
  font-size: 3rem !important;
}

.demo-poster-live {
  font-size: 0.8rem;
  color: var(--green);
  margin: -0.5rem 0 1rem;
}

.demo-poster-qr img {
  width: 220px;
  height: 220px;
}

.demo-poster-actions {
  max-width: 400px;
}

.demo-poster-foot {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  max-width: 400px;
  line-height: 1.5;
}

.demo-admin-card {
  border-color: rgba(255, 107, 53, 0.35);
}

.for-org-badge {
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.for-org-main {
  max-width: 520px;
  padding-bottom: 2rem;
}

.for-org-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.for-org-text,
.for-org-note,
.for-org-foot {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.for-org-text--gap {
  margin-top: 0.65rem;
}

.for-org-note {
  margin-top: 0.75rem;
}

.for-org-note--dim {
  font-size: 0.82rem;
  opacity: 0.9;
}

.for-org-list--fit {
  margin-bottom: 0.5rem;
}

.for-org-steps {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.for-org-steps li + li {
  margin-top: 0.35rem;
}

.for-org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.for-org-table th,
.for-org-table td {
  text-align: left;
  padding: 0.5rem 0.35rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.for-org-table th {
  color: var(--text-muted);
  font-weight: 500;
}

.for-org-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.for-org-card--muted {
  border-color: var(--border);
}

.for-org-card--contact {
  border-color: rgba(255, 107, 53, 0.35);
  background: rgba(255, 107, 53, 0.06);
}

.for-org-contact-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.for-org-contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.for-org-contact-id {
  font-size: 1.05rem;
  color: var(--accent);
  word-break: break-all;
}

.tournament-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -0.25rem 0 0.75rem;
}

.tournament-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.sport-badge {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  font-weight: 600;
}

.site-icp-footer {
  text-align: center;
  padding: 1rem 1rem 5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-icp-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

@media print {
  .demo-poster-header,
  .demo-poster-lead,
  .demo-poster-actions,
  .demo-poster-foot {
    display: none !important;
  }

  .poster-actions,
  .app-header {
    display: none !important;
  }
  .poster-page {
    background: #fff;
    color: #000;
  }
  .poster-card {
    border-color: #000;
    color: #000;
  }
}

/* Standings page layout */
.standings-page .standings-container {
  padding-bottom: 5rem;
}

.standings-banner {
  margin-bottom: 1rem;
}

.standings-banner-loc {
  margin-top: 0.15rem;
}

.standings-rule-chip {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.standings-group {
  padding: 0;
  overflow: hidden;
  margin-bottom: 1rem;
}

.standings-group-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 48, 68, 0.5) 0%, transparent 100%);
}

.standings-group-head h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.standings-group-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.standings-section-label {
  padding: 0.75rem 1rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Schedule cards (live / upcoming) */
.standings-schedule {
  padding: 0.75rem 1rem 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.schedule-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.schedule-block-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.schedule-block--live .schedule-block-title {
  color: #ff6b7a;
}

.schedule-block--upcoming .schedule-block-title {
  color: var(--blue);
}

.schedule-block-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.schedule-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.schedule-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.schedule-card:hover {
  text-decoration: none;
  border-color: rgba(61, 156, 245, 0.45);
}

.schedule-card:active {
  transform: scale(0.99);
}

.schedule-card--live {
  border-color: rgba(255, 71, 87, 0.35);
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.08) 0%, var(--bg-elevated) 100%);
}

.schedule-card-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.schedule-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.schedule-clock {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1.2;
  margin-top: 0.15rem;
}

.schedule-card-body {
  min-width: 0;
}

.schedule-meta-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.schedule-sport {
  font-size: 0.85rem;
  line-height: 1;
}

.schedule-court {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.schedule-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  align-items: center;
}

.schedule-team {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.schedule-team.home {
  text-align: right;
}

.schedule-team.away {
  text-align: left;
}

.schedule-vs {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.schedule-card-status {
  flex-shrink: 0;
}

.schedule-card-status .badge {
  white-space: nowrap;
}

/* Mobile standings list */
.standings-mobile-list {
  display: none;
  padding: 0 0.75rem 0.75rem;
}

.standings-mobile-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.45rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  cursor: pointer;
}

.standings-mobile-row.standings-top {
  border-color: rgba(45, 212, 168, 0.35);
  background: rgba(45, 212, 168, 0.06);
}

.standings-mobile-rank {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.standings-mobile-row.standings-top .standings-mobile-rank {
  color: var(--green);
}

.standings-mobile-team {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.15rem;
}

.standings-mobile-row.standings-top .standings-mobile-team {
  color: var(--green);
}

.standings-mobile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.standings-mobile-points {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
  text-align: right;
  line-height: 1;
}

.standings-mobile-points small {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.1rem;
}

.standings-desktop-only {
  display: block;
}

@media (max-width: 560px) {
  .standings-mobile-list {
    display: block;
  }

  .standings-desktop-only {
    display: none;
  }

  .schedule-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .schedule-card-status {
    align-self: start;
  }

  .schedule-matchup {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .schedule-team.home,
  .schedule-team.away {
    text-align: left;
  }

  .schedule-vs {
    display: none;
  }

  .schedule-team.away::before {
    content: 'vs ';
    color: var(--text-muted);
    font-weight: 400;
  }
}

/* Standings table */
.standings-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.standings-table th,
.standings-table td {
  padding: 0.5rem 0.35rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.standings-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.7rem;
}

.standings-table .team {
  text-align: left;
  font-weight: 600;
  min-width: 110px;
}

.standings-table .rank {
  color: var(--text-muted);
  width: 28px;
}

.standings-top {
  background: rgba(45, 212, 168, 0.06);
}

.standings-top .team {
  color: var(--green);
}

.diff-pos { color: var(--green); }
.diff-neg { color: var(--live); }

.standings-table .col-points strong {
  color: var(--orange);
  font-size: 0.95rem;
}

.standings-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.standings-upcoming {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.standings-upcoming-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.standings-upcoming-item:active {
  opacity: 0.85;
}

.standings-upcoming-main {
  flex: 1;
  min-width: 0;
}

.standings-upcoming-teams {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.standings-upcoming-meta {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.35rem 0.65rem !important;
  font-size: 0.8rem !important;
}

/* WeChat subscribe prototype */
.wx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.wx-modal {
  background: #fff;
  color: #111;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 400px;
  padding: 1.25rem;
  max-height: 85vh;
  overflow-y: auto;
}

.wx-modal-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.wx-modal-avatar {
  font-size: 2rem;
}

.wx-modal-app {
  font-weight: 700;
  font-size: 1rem;
}

.wx-modal-sub {
  font-size: 0.8rem;
  color: #666;
}

.wx-modal-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  margin-bottom: 1rem;
}

.wx-template-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wx-template-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
}

.wx-template-item input {
  margin-top: 0.2rem;
}

.wx-template-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.wx-template-fields {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.15rem;
}

.wx-modal-hint {
  font-size: 0.72rem;
  color: #999;
  margin-bottom: 1rem;
}

.wx-modal-actions {
  display: flex;
  gap: 0.5rem;
}

.wx-modal-actions .btn {
  flex: 1;
}

.wx-notify-stack {
  position: fixed;
  top: 4.5rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.wx-notify-card {
  background: #fff;
  color: #111;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: auto;
}

.wx-notify-card.show {
  transform: translateY(0);
  opacity: 1;
}

.wx-notify-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #888;
  margin-bottom: 0.35rem;
}

.wx-notify-service {
  font-weight: 600;
  color: #576b95;
}

.wx-notify-tag {
  margin-left: auto;
  background: #f0f0f0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
}

.wx-notify-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.wx-notify-line {
  display: flex;
  font-size: 0.8rem;
  padding: 0.15rem 0;
  gap: 0.5rem;
}

.wx-notify-k {
  color: #888;
  flex-shrink: 0;
  min-width: 4.5em;
}

.wx-notify-v {
  color: #111;
  flex: 1;
}

.wx-notify-detail {
  font-size: 0.75rem;
  color: #576b95;
  margin-top: 0.35rem;
}

.wx-notify-footer {
  font-size: 0.68rem;
  color: #bbb;
  margin-top: 0.5rem;
}

.bottom-nav-item {
  font-size: 0.65rem;
}

/* Filter tabs */
.date-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.date-filter label {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.date-filter select {
  flex: 1;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
}

.bracket-advance {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.advance-chip {
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(45, 212, 168, 0.15);
  color: var(--green);
}

.advance-chip.pending {
  background: rgba(255, 107, 53, 0.12);
  color: var(--orange);
}

.filter-bar {
  margin-bottom: 0.25rem;
}

.filter-tabs {
  display: flex;
  gap: 0.35rem;
  width: 100%;
}

.filter-tab {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.5rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.filter-tab.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  font-weight: 600;
}

.filter-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(61, 156, 245, 0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--blue);
}

.filter-team-chip a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.badge-group {
  background: rgba(61, 156, 245, 0.15);
  color: var(--blue);
}

.badge-knockout {
  background: rgba(255, 107, 53, 0.15);
  color: var(--orange);
}

.tournament-stats a {
  color: var(--orange);
  font-size: 0.8rem;
  text-decoration: none;
}

.tournament-stats a + a {
  margin-left: 0.5rem;
  color: var(--blue);
}

/* Sticky score bar (watch page — sits below app-header, hidden when main scoreboard visible) */
.sticky-score {
  position: fixed;
  top: var(--header-height, 3.5rem);
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(26, 35, 50, 0.98);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  padding: 0.45rem 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.sticky-score.hidden {
  display: none;
}

.sticky-score-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  padding-right: 2.5rem;
}

.sticky-score-num {
  grid-column: 2;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  min-width: 4.5rem;
  text-align: center;
  white-space: nowrap;
}

.sticky-teams {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  line-height: 1.2;
}

.sticky-teams:first-child {
  grid-column: 1;
  text-align: right;
}

.sticky-teams:last-of-type {
  grid-column: 3;
  text-align: left;
}

.sticky-q {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  max-width: 2.4rem;
  text-align: right;
  line-height: 1.15;
}

/* Team page */
.team-hero {
  text-align: center;
}

.team-record {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.team-record strong {
  color: var(--text);
}

.result-win {
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

.result-loss {
  color: var(--live);
  font-weight: 700;
  font-size: 0.8rem;
}

.result-draw {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.standings-row {
  cursor: pointer;
}

.standings-row:hover {
  background: rgba(255, 107, 53, 0.06);
}

.team-link {
  color: var(--blue);
  font-weight: 600;
}

.standings-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
}

.notify-log-card .wx-notify-k {
  color: var(--text-muted);
}

.notify-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.notify-log-detail {
  font-size: 0.85rem;
  color: var(--blue);
  margin-top: 0.35rem;
}

/* Scorekeeper big screen */
.nav-big-link {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 107, 53, 0.2);
  color: var(--orange) !important;
  text-decoration: none !important;
  font-weight: 600;
}

/* ── 记分台 / 记分员 竖屏操作 UI ── */
body.scorepad,
body.scorepage {
  min-height: 100dvh;
  min-height: var(--vv-h, 100dvh);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #0a0e14;
}

.scorepad-head,
.scorepage-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.scorepad-back,
.scorepage-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.scorepad-back:hover,
.scorepage-back:hover {
  color: var(--orange);
}

.scorepad-head-title,
.scorepage-head-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.scorepad-ver {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.2rem;
}

.scorepad-head .connection-status,
.scorepage-head .connection-status {
  font-size: 0.72rem;
  text-align: right;
}

.scorepad-idle,
.scorepage-idle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.scorepad-idle-tip,
.scorepage-idle-tip {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}

.scorepad-start-btn,
.scorepage-start-btn {
  margin-top: 1.25rem;
  padding: 0.85rem 2.5rem !important;
}

.scorepad-done-title,
.scorepage-done-title {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.scorepad-done-score,
.scorepage-done-score {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.scorepad-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.scorepad-meta,
.scorepage-meta {
  flex-shrink: 0;
  margin: 0;
  padding: 0.45rem 0.85rem 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 比分看板 */
.scorepad-board,
.scorepage-board {
  flex-shrink: 0;
  margin: 0.45rem 0.75rem 0;
  padding: 0.9rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.scorepad-match,
.scorepage-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.35rem;
}

.scorepad-col,
.scorepage-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
}

.scorepad-col--home,
.scorepage-col--home {
  align-items: flex-end;
  padding-right: 0.25rem;
}

.scorepad-col--away,
.scorepage-col--away {
  align-items: flex-start;
  padding-left: 0.25rem;
}

.scorepad-col-name,
.scorepage-col-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.scorepad-col--home .scorepad-col-name,
.scorepage-col--home .scorepage-col-name {
  color: var(--orange);
  text-align: right;
}

.scorepad-col--away .scorepad-col-name,
.scorepage-col--away .scorepage-col-name {
  color: var(--blue);
  text-align: left;
}

.scorepad-col-score,
.scorepage-col-score {
  font-size: clamp(2.25rem, 9dvh, 3.25rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scorepad-col--home .scorepad-col-score,
.scorepage-col--home .scorepage-col-score {
  color: var(--orange);
}

.scorepad-col--away .scorepad-col-score,
.scorepage-col--away .scorepage-col-score {
  color: var(--blue);
}

.scorepad-col-mid,
.scorepage-col-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.15rem;
}

.scorepad-period,
.scorepage-period {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.scorepad-col-score.score-pulse-team,
.scorepage-col-score.score-pulse-team,
.watch-score-home.score-pulse-team,
.watch-score-away.score-pulse-team {
  animation: scorepadPulse 0.45s ease;
  transform-origin: center center;
  display: inline-block;
}

.scorepad-col--home,
.scorepad-col--away,
.scorepage-col--home,
.scorepage-col--away {
  contain: layout style;
}

.scoreboard-center .watch-score-home,
.scoreboard-center .watch-score-away {
  display: inline-block;
  min-width: 0.6em;
  transform-origin: center center;
}

@keyframes scorepadPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); filter: brightness(1.2); }
  100% { transform: scale(1); }
}

/* 加分操作区 — 撑满剩余竖屏空间 */
.scorepad-controls,
.scorepage-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  padding: 0.45rem 0.75rem 0;
}

.scorepad-row,
.scorepage-row {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 4.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.6rem 0.55rem;
}

.scorepad-row--home,
.scorepage-row--home {
  border-left: 3px solid var(--orange);
}

.scorepad-row--away,
.scorepage-row--away {
  border-left: 3px solid var(--blue);
}

.scorepad-row-label,
.scorepage-row-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorepad-row--home .scorepad-row-label,
.scorepage-row--home .scorepage-row-label {
  color: var(--orange);
}

.scorepad-row--away .scorepad-row-label,
.scorepage-row--away .scorepage-row-label {
  color: var(--blue);
}

.scorepad-row-btns,
.scorepage-row-btns {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  min-height: 3.25rem;
}

.scorepad-add-btns,
.scorepage-add-btns {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
  max-width: 78%;
  margin-left: auto;
}

.scorepad-add-btns .scorepad-pts,
.scorepage-add-btns .scorepage-pts {
  flex: 1;
  min-width: 0;
}

.scorepad-pts,
.scorepad-minus,
.scorepage-pts,
.scorepage-minus {
  min-height: 3.25rem;
  height: auto;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(1rem, 3.5dvh, 1.35rem);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.08s;
}

.scorepad-pts:active,
.scorepad-minus:active,
.scorepage-pts:active,
.scorepage-minus:active {
  transform: scale(0.95);
}

.scorepad-pts.btn-home,
.scorepage-pts.btn-home {
  background: rgba(255, 107, 53, 0.18);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, 0.4);
}

.scorepad-pts.btn-away,
.scorepage-pts.btn-away {
  background: rgba(61, 156, 245, 0.15);
  color: var(--blue);
  border: 1px solid rgba(61, 156, 245, 0.38);
}

.scorepad-minus,
.scorepage-minus {
  flex: 0 0 clamp(3rem, 13vw, 3.75rem);
  align-self: stretch;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: clamp(0.85rem, 2.5dvh, 1rem);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.scorepad-footer,
.scorepage-footer {
  flex-shrink: 0;
  padding: 0.45rem 0.75rem 0.65rem;
}

/* 底部操作 */
.scorepad-actions,
.scorepage-actions {
  flex-shrink: 0;
  display: flex;
  gap: 0.4rem;
  padding: 0;
  background: transparent;
}

.scorepad-act,
.scorepage-act {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0.55rem 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.scorepad-act--warn,
.scorepage-act--warn {
  color: #e85d4a;
  border-color: rgba(232, 93, 74, 0.35);
}

.scorepad-act--link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.scorepad-note,
.scorepage-note {
  flex-shrink: 0;
  margin: 0.45rem 0.75rem 0.65rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
}

.scorepad-note summary,
.scorepage-note summary {
  cursor: pointer;
  color: var(--text-muted);
  user-select: none;
}

.scorepad-note textarea,
.scorepage-note textarea {
  width: 100%;
  margin: 0.45rem 0;
  padding: 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  min-height: 2.75rem;
  resize: vertical;
}

@media (min-width: 600px) {
  .scorepad-controls,
  .scorepage-controls {
    flex-direction: row;
    align-items: stretch;
  }

  .scorepad-row,
  .scorepage-row {
    flex: 1;
  }

  .scorepad-col-score,
  .scorepage-col-score {
    font-size: 2.75rem;
  }
}

/* score.html 专用 */
.scorepage-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.scorepage-main > .scorepage-idle {
  flex: 1;
  min-height: 0;
}

.scorepage-board {
  margin-top: 0.25rem;
}

.scorepage-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.scorepage-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.scorepage-link:hover {
  color: var(--orange);
  text-decoration: none;
}

.scorepage-live {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
}

.scorepage-actions-label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.scorepage-actions {
  border-top: none;
  padding: 0;
  background: transparent;
}

.scorepage-note {
  margin: 0;
}

.scorepad-note {
  margin: 0;
}

.scorepad-note--prominent,
.scorepage-note--prominent {
  padding: 0.65rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.scorepad-note-title,
.scorepage-note-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.scorepad-note--prominent textarea,
.scorepage-note--prominent textarea {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  min-height: 3.25rem;
  resize: none;
  line-height: 1.4;
}

.scorepage-keyboard-hint {
  display: none;
  margin: 0;
  padding: 0.25rem 0.75rem 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
}

.scorepad-note-btn,
.scorepage-note-btn {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
}

/* 键盘弹出：顶部分数+改分固定可见，下方输入赛况 */
body.score-ui--typing.scorepage,
body.score-ui--keyboard.scorepage,
body.score-ui--typing.scorepad,
body.score-ui--keyboard.scorepad {
  height: var(--vv-h, 100dvh);
  max-height: var(--vv-h, 100dvh);
  overflow: hidden;
}

body.score-ui--typing .scorepage-links,
body.score-ui--keyboard .scorepage-links,
body.score-ui--typing .scorepage-meta,
body.score-ui--keyboard .scorepage-meta,
body.score-ui--typing .scorepad-meta,
body.score-ui--keyboard .scorepad-meta {
  display: none;
}

body.score-ui--typing .scorepage-main,
body.score-ui--keyboard .scorepage-main,
body.score-ui--typing .scorepad-body,
body.score-ui--keyboard .scorepad-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.score-ui--typing .scorepage-board,
body.score-ui--keyboard .scorepage-board,
body.score-ui--typing .scorepad-board,
body.score-ui--keyboard .scorepad-board {
  flex-shrink: 0;
  margin-top: 0;
  margin-bottom: 0.2rem;
  padding: 0.45rem 0.5rem;
}

body.score-ui--typing .scorepage-col-score,
body.score-ui--keyboard .scorepage-col-score,
body.score-ui--typing .scorepad-col-score,
body.score-ui--keyboard .scorepad-col-score {
  font-size: 1.65rem;
}

body.score-ui--typing .scorepage-live,
body.score-ui--keyboard .scorepage-live {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.score-ui--typing .scorepad-body,
body.score-ui--keyboard .scorepad-body {
  flex: 1;
  min-height: 0;
}

body.score-ui--typing .scorepage-controls,
body.score-ui--keyboard .scorepage-controls,
body.score-ui--typing .scorepad-controls,
body.score-ui--keyboard .scorepad-controls {
  flex: 0 0 auto;
  position: static;
  z-index: auto;
  padding: 0.3rem 0.75rem 0.35rem;
  background: transparent;
  box-shadow: none;
}

body.score-ui--typing .scorepage-row,
body.score-ui--keyboard .scorepage-row,
body.score-ui--typing .scorepad-row,
body.score-ui--keyboard .scorepad-row {
  flex: 0 0 auto;
  min-height: auto;
  padding: 0.35rem 0.5rem 0.4rem;
}

body.score-ui--typing .scorepage-row-btns,
body.score-ui--keyboard .scorepage-row-btns,
body.score-ui--typing .scorepad-row-btns,
body.score-ui--keyboard .scorepad-row-btns {
  min-height: 2.45rem;
}

body.score-ui--typing .scorepage-pts,
body.score-ui--typing .scorepage-minus,
body.score-ui--keyboard .scorepage-pts,
body.score-ui--keyboard .scorepage-minus,
body.score-ui--typing .scorepad-pts,
body.score-ui--typing .scorepad-minus,
body.score-ui--keyboard .scorepad-pts,
body.score-ui--keyboard .scorepad-minus {
  min-height: 2.45rem;
  font-size: 0.88rem;
}

body.score-ui--typing .scorepage-footer,
body.score-ui--keyboard .scorepage-footer,
body.score-ui--typing .scorepad-footer,
body.score-ui--keyboard .scorepad-footer {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0.75rem 0.5rem;
}

body.score-ui--typing .scorepage-note--prominent,
body.score-ui--keyboard .scorepage-note--prominent,
body.score-ui--typing .scorepad-note--prominent,
body.score-ui--keyboard .scorepad-note--prominent {
  margin-bottom: 0.35rem;
}

body.score-ui--typing .scorepage-note--prominent textarea,
body.score-ui--keyboard .scorepage-note--prominent textarea,
body.score-ui--typing .scorepad-note--prominent textarea,
body.score-ui--keyboard .scorepad-note--prominent textarea {
  min-height: 2.5rem;
}

body.score-ui--typing .scorepage-actions-label,
body.score-ui--typing .scorepage-actions,
body.score-ui--keyboard .scorepage-actions-label,
body.score-ui--keyboard .scorepage-actions,
body.score-ui--typing .scorepad-actions,
body.score-ui--keyboard .scorepad-actions {
  display: none;
}

body.score-ui--typing .scorepage-keyboard-hint,
body.score-ui--keyboard .scorepage-keyboard-hint {
  display: block;
}

.admin-boot {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.admin-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 20, 25, 0.92);
}

.admin-gate-card {
  width: 100%;
  max-width: 22rem;
}

.admin-gate-card input {
  width: 100%;
}

.score-error-panel {
  margin: 0.75rem;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.score-error-panel h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.score-error-msg {
  font-size: 0.9rem;
  color: #fca5a5;
  margin-bottom: 0.75rem;
}

.score-error-tips {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1rem 1.1rem;
  line-height: 1.5;
}

.score-error-tips code {
  font-size: 0.75rem;
}

.live-stream-card {
  margin: 0 0 1rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.live-stream-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.live-stream-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: #e74c3c;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.live-stream-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.live-stream-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.live-stream-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.live-stream-video {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  background: #000;
}

.live-stream-open {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--orange);
}

.live-stream-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.live-stream-btn {
  text-align: center;
}

/* 视频号入口（观赛页大比分下方，简洁） */
.live-stream-card--weixin {
  margin-top: 1rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border: 1px solid rgba(7, 193, 96, 0.28);
  border-radius: 12px;
  background: var(--bg-card);
}

.live-stream-card--weixin .live-stream-btn--wx {
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  margin-bottom: 0.45rem;
  background: #07c160;
  border: none;
  text-decoration: none;
}

.live-stream-card--weixin .live-stream-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.watch-live-fab {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 98;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.45);
  transition: transform 0.25s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.watch-live-fab.hidden {
  display: none;
}

.watch-live-fab.watch-live-fab--away {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

body.has-bottom-nav .watch-live-fab {
  bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
}
