@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #071018;
  --panel: #0d1b26;
  --panel-card: linear-gradient(145deg, #122633, #0d1923);
  --line: #233b4b;
  --line-subtle: rgba(35, 59, 75, 0.6);
  --muted: #8da2b1;
  --text: #edf5f7;
  --cyan: #63d5f4;
  --gold: #f0b955;
  --green: #62d69b;
  --red: #fa5d65;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.match-edge {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 85% 10%, #143447 0, transparent 32%), var(--bg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Top Matchday Ticker */
.top-ticker {
  min-height: 34px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 500 10.5px 'DM Mono', monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #050d14;
}

.top-ticker a {
  color: var(--gold);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-ticker a:hover {
  text-decoration: underline;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(250, 93, 101, 0.2);
  display: inline-block;
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* Navbar */
.navbar {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 23, 33, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1240px;
  min-height: 68px;
  padding: 10px 24px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.05em;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
}

.brand-text-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-ball {
  color: var(--cyan);
  font-size: 14px;
}

.highlight {
  color: var(--cyan);
}

.brand small {
  margin-left: 4px;
  color: var(--gold);
  font: 500 8.5px 'DM Mono', monospace;
  letter-spacing: .18em;
  background: rgba(240, 185, 85, 0.12);
  padding: 2px 5px;
  border-radius: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  border: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 5px;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-btn:hover, .nav-btn.active {
  color: var(--text);
  background: #142b3a;
}

.nav-btn.active {
  box-shadow: inset 0 -2px var(--cyan);
  color: var(--cyan);
}

.nav-btn .count {
  margin-left: 4px;
  color: var(--gold);
  font: 500 10px 'DM Mono', monospace;
  background: rgba(240, 185, 85, 0.15);
  padding: 1px 5px;
  border-radius: 999px;
}

.telegram-button {
  padding: 10px 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f0b955, #d69f3d);
  color: #071018;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(240, 185, 85, 0.25);
  transition: transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.telegram-button:hover {
  transform: translateY(-1px);
}

/* Main Container */
.main-container {
  max-width: 1240px;
  width: 100%;
  padding: 24px 24px 80px;
  margin: auto;
  flex: 1;
}

/* Filters & Search Toolbar */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.sport-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font: 500 9px 'DM Mono', monospace;
  text-transform: uppercase;
}

.sport-select {
  min-width: 180px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b1924;
  color: var(--text);
  outline: 0;
  font-size: 12px;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  flex: 1;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b1924;
  color: var(--muted);
}

.search input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
  font-size: 12px;
}

.chips, .league-pill-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.chips::-webkit-scrollbar, .league-pill-rail::-webkit-scrollbar {
  display: none;
}

.chips button, .league-pill-rail .league-chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(22, 25, 32, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #94a3b8;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.chips button:hover, .league-pill-rail .league-chip:hover {
  border-color: rgba(99, 213, 244, 0.4);
  color: #ffffff;
  background: rgba(30, 36, 48, 0.85);
  transform: translateY(-1px);
}

.chips button.selected, .league-pill-rail .league-chip.selected {
  border-color: var(--cyan);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99, 213, 244, 0.25), rgba(99, 213, 244, 0.08));
  box-shadow: 0 0 18px rgba(99, 213, 244, 0.25), inset 0 0 12px rgba(99, 213, 244, 0.15);
  font-weight: 700;
}

/* Match Hub Section (Live Now / Today's Games) */
.match-hub {
  margin-bottom: 28px;
}

.hub-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.hub-tab {
  border: 1px solid var(--line);
  border-radius: 6px 6px 0 0;
  border-bottom: 0;
  background: #0d1b26;
  color: var(--muted);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.hub-tab:hover {
  color: var(--text);
}

.hub-tab.active {
  color: var(--text);
  border-color: var(--cyan);
  background: #102633;
  box-shadow: inset 0 -2px var(--cyan);
}

.hub-tab-count {
  margin-left: 4px;
  color: var(--gold);
  font: 500 10px 'DM Mono', monospace;
}

/* Elite Dark-Paneled Broadcast Header Block */
.hub-heading, .hub-header-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #161920 0%, #0e1117 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.hub-header-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent 60%);
}

.hub-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hub-header-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-radar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  color: #ff5252;
  font: 700 10px 'DM Mono', monospace;
  letter-spacing: .08em;
  position: relative;
}

.radar-dot {
  width: 7px;
  height: 7px;
  background: #ff5252;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 8px #ff5252;
}

.radar-ping {
  position: absolute;
  top: 6px;
  left: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 82, 82, 0.6);
  animation: radar-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes radar-ping {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hub-sport-pill {
  font: 600 10px 'DM Mono', monospace;
  color: var(--cyan);
  background: rgba(99, 213, 244, 0.1);
  border: 1px solid rgba(99, 213, 244, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .06em;
}

.hub-title-text, .hub-heading h1 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hub-meta-card {
  background: rgba(9, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.hub-sync-btn {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.hub-sync-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fff;
  transform: translateY(-1px);
}
.hub-sync-btn.syncing {
  opacity: 0.6;
  pointer-events: none;
  animation: pulseSync 0.6s infinite alternate;
}
@keyframes pulseSync {
  0% { transform: scale(1); }
  100% { transform: scale(0.96); }
}

.hub-meta-label {
  font: 500 9px 'DM Mono', monospace;
  color: var(--muted);
  letter-spacing: .1em;
}

.hub-meta-val {
  font: 700 16px 'DM Mono', monospace;
  color: #ffffff;
}

.hub-val-live {
  color: var(--green) !important;
  font-size: 13px !important;
}

/* Dynamic Scrolling Rails Container */
.match-rails-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.match-rail-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

.rail-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail-count {
  font: 600 11px 'DM Mono', monospace;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Horizontal Swipeable Scroll Rail */
.match-scroll-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}

.match-scroll-rail::-webkit-scrollbar {
  display: none;
}

.match-scroll-rail .match-card,
.match-scroll-rail .broadcast-card {
  flex: 0 0 315px;
  scroll-snap-align: start;
}

/* Matches Grid (Classic fallback & Multi-column) */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* Media-Rich Broadcast Card Component */
.match-card, .broadcast-card {
  background: #161920;
  background-image: linear-gradient(180deg, #181d27 0%, #12151b 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.match-card::before, .broadcast-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  transition: background 0.2s;
}

.match-card:hover, .broadcast-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(99, 213, 244, 0.45);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.65), 0 0 24px rgba(99, 213, 244, 0.12);
}

.match-card:hover::before, .broadcast-card:hover::before {
  background: linear-gradient(90deg, var(--cyan), transparent 70%);
}

/* Broadcast Card Top Bar with Dedicated High-Contrast Badge */
.match-card-top, .broadcast-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.card-league-pill {
  font: 600 10.5px 'DM Mono', monospace;
  color: #94a3b8;
  letter-spacing: .02em;
  text-transform: uppercase;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kickoff-time-badge {
  font: 700 11px 'DM Mono', monospace;
  color: var(--gold);
  background: #0d1017;
  border: 1px solid rgba(240, 185, 85, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.kickoff-time-badge.live, .live-label {
  color: #ff4757 !important;
  background: rgba(255, 71, 87, 0.14) !important;
  border-color: rgba(255, 71, 87, 0.45) !important;
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.25) !important;
}

/* Prominent Stadium-Row Team Layout */
.match-card-teams-row, .match-card-stadium {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
  background: rgba(10, 13, 19, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 10px;
}

.stadium-team, .team-match-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.stadium-team-away {
  align-items: center;
}

.crest-wrap {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-badge {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.2s ease;
}

.match-card:hover .team-badge, .broadcast-card:hover .team-badge {
  transform: scale(1.08);
}

.team-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.01em;
}

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

.stadium-score-pill {
  font: 700 12px 'DM Mono', monospace;
  color: var(--cyan);
  background: rgba(99, 213, 244, 0.12);
  border: 1px solid rgba(99, 213, 244, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.vs-text {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  padding: 0 4px;
  flex-shrink: 0;
}

.match-card-score {
  margin: 0;
  color: var(--cyan);
  font: 600 12px 'DM Mono', monospace;
  text-align: center;
}

/* Premium Streaming Action Button with SVG Play Icon */
.broadcast-stream-action {
  width: 100%;
  margin-top: 10px;
}

.stream-play-btn, .match-card-btn {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, #1b2636, #141c28);
  border: 1px solid rgba(99, 213, 244, 0.3);
  color: var(--cyan);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stream-play-btn svg, .match-card-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.match-card:hover .stream-play-btn,
.match-card:hover .match-card-btn,
.broadcast-card:hover .stream-play-btn {
  background: linear-gradient(135deg, #63d5f4, #28a0c2);
  border-color: #63d5f4;
  color: #071018;
  box-shadow: 0 6px 18px rgba(99, 213, 244, 0.35);
}

.match-card:hover .stream-play-btn svg,
.match-card:hover .match-card-btn svg,
.broadcast-card:hover .stream-play-btn svg {
  transform: scale(1.15) translateX(1px);
}

/* Theater Scoreboard Crests */
.theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 24px;
}

.player-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  overflow: hidden;
}

.player-panel {
  padding: 18px;
}

.match-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
  text-transform: uppercase;
}

.status-tag {
  color: var(--red);
  font-weight: 700;
  background: rgba(250, 93, 101, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
}

.teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 20px 0;
}

.teams div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  min-width: 100px;
}

.teams strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.teams span {
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.teams > b {
  color: var(--muted);
  font: 11px 'DM Mono', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Matchday Arena Player Display */
.player-wrapper-outer {
  position: relative;
  width: 100%;
  border: 1px solid #245065;
  border-radius: 7px;
  overflow: hidden;
  background: #000;
}

.player-frame-embed {
  width: 100%;
  height: 480px;
  border: 0;
  display: block;
}

.arena-fallback-player {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  background: radial-gradient(circle at center, #1b5b70 0, #0b202d 38%, #071018 75%);
  padding: 24px;
  text-align: center;
}

.arena-pill {
  color: var(--gold);
  font: 500 10px 'DM Mono', monospace;
  letter-spacing: .08em;
}

.arena-content h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  letter-spacing: -.03em;
}

.arena-content p {
  max-width: 440px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.tip {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

/* Server broadcast pill selector */
.server-switch-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.server-btn {
  background: #0b1924;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.server-btn:hover, .server-btn.active {
  background: var(--cyan);
  color: #071018;
  border-color: var(--cyan);
}

/* Bookmaker CTAs Row */
.bookmaker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.bookmaker-row b {
  color: var(--text);
}

.bookmaker-row a {
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(99, 213, 244, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(99, 213, 244, 0.2);
  transition: background 0.15s ease;
}

.bookmaker-row a:hover {
  background: rgba(99, 213, 244, 0.18);
}

.bookmaker-row small {
  color: var(--muted);
  font-size: 10px;
}

/* Ad Banner Horizontal */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid #695a2b;
  border-radius: 8px;
  background: #2b2412;
  margin-top: 8px;
}

.ad-banner > span {
  color: var(--gold);
  font: 500 9px 'DM Mono', monospace;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-banner div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.ad-banner div b {
  color: #fff;
  font-size: 12.5px;
}

.ad-banner small {
  color: #cfbd85;
  font-size: 11px;
}

.ad-banner a {
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  padding: 6px 12px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.ad-banner a:hover {
  background: rgba(240, 185, 85, 0.2);
}

/* Prediction Panel (Right Column) */
.prediction-panel {
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-heading h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.03em;
}

.card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.card-heading > span {
  color: var(--gold);
  font: 500 9px 'DM Mono', monospace;
  white-space: nowrap;
  background: rgba(240, 185, 85, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.model-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 14px;
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.model-meta b {
  color: var(--green);
}

.probability {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #091722;
}

.prob-title, .prob-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.prob-title span {
  color: var(--green);
  font: 500 9px 'DM Mono', monospace;
}

.prob-bar {
  display: flex;
  height: 28px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 4px;
}

.prob-bar i {
  display: grid;
  place-items: center;
  color: #071018;
  font: 700 10.5px 'DM Mono', monospace;
  font-style: normal;
  transition: width 0.4s ease;
}

.prob-bar i:nth-child(1) { background: var(--cyan); }
.prob-bar i:nth-child(2) { background: var(--gold); }
.prob-bar i:nth-child(3) { background: var(--green); }

.prob-labels {
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.insight {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
}

.insight span {
  color: var(--gold);
  font: 500 9px 'DM Mono', monospace;
}

.insight strong {
  font-size: 16px;
  color: var(--text);
}

.insight small {
  color: var(--muted);
  font-size: 11.5px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

.stats div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #091722;
  text-align: center;
}

.stats span, .stats b {
  display: block;
}

.stats span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.stats b {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--text);
  font-family: 'DM Mono', monospace;
}

/* Team Form & Head-to-Head (H2H) Details Widget */
.match-intel-details {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #091722;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.intel-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-block:not(:last-child) {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.intel-title {
  color: var(--cyan);
  font: 700 10px 'DM Mono', monospace;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.intel-title small {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
}

.h2h-summary-text {
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.form-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-team-name {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.form-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.form-badge {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-grid;
  place-items: center;
  font: 700 10px 'DM Mono', monospace;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* User requirement: Win - Green, Loss - RED, Draw - Light black */
.form-badge.win {
  background: #10b981;
  color: #ffffff;
}

.form-badge.loss {
  background: #ef4444;
  color: #ffffff;
}

.form-badge.draw {
  background: #242e3b;
  border: 1px solid #3e4b5e;
  color: #cbd5e1;
}

/* H2H Stat Breakdown */
.h2h-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 2px;
}

.h2h-stat-box {
  background: rgba(14, 30, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
}

.h2h-stat-box span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.h2h-stat-box strong {
  display: block;
  font-size: 12px;
  font-family: 'DM Mono', monospace;
  margin-top: 2px;
}

.txt-win {
  color: #10b981;
}

.txt-draw {
  color: #94a3b8;
}

.txt-loss {
  color: #ef4444;
}

.h2h-bar-track {
  height: 6px;
  background: #111827;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  width: 100%;
  margin-top: 4px;
}

.h2h-bar-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.home-segment {
  background: #00d4ff;
}

.draw-segment {
  background: #475569;
}

.away-segment {
  background: #f59e0b;
}

.vip-box {
  margin-top: auto;
  padding: 16px;
  border: 1px solid #39515a;
  border-radius: 7px;
  background: #102630;
}

.vip-box > b {
  color: var(--gold);
  font: 500 9px 'DM Mono', monospace;
  text-transform: uppercase;
  display: block;
}

.vip-box h3 {
  margin: 6px 0;
  font-size: 15px;
  color: var(--text);
}

.vip-box p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.vip-box a {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vip-box a:hover {
  text-decoration: underline;
}

/* Today's Predictions Tab View (Screenshot 3) */
.predictions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
}

.predictions-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.predictions-hero h1 {
  margin: 6px 0 8px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.06em;
}

.predictions-hero p:not(.eyebrow) {
  margin: 0;
  color: #a3b4c1;
  font-size: 14px;
}

.date-card {
  min-width: 170px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.date-card span, .date-card small {
  display: block;
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.date-card b {
  display: block;
  margin: 6px 0;
  font-size: 20px;
}

.prediction-toolbar {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.prediction-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font: 500 9px 'DM Mono', monospace;
  text-transform: uppercase;
}

.prediction-toolbar select, .prediction-toolbar input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b1924;
  color: var(--text);
  outline: 0;
  font-size: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -.04em;
}

.section-heading > span {
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.prediction-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prediction-row {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(140px, 1.2fr) minmax(140px, 1fr) 46px auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #122633, #0d1923);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.prediction-row:hover, .prediction-row.selected {
  border-color: #4b91a5;
  background: #142f3d;
}

.prediction-time {
  color: var(--gold);
  font: 11px 'DM Mono', monospace;
}

.prediction-teams, .prediction-pick {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prediction-teams small, .prediction-pick small {
  color: var(--muted);
  font: 9px 'DM Mono', monospace;
}

.prediction-teams b, .prediction-pick strong {
  font-size: 12px;
}

.prediction-teams em {
  color: var(--muted);
  font-style: normal;
}

.confidence {
  color: var(--green);
  font: 600 12px 'DM Mono', monospace;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.odds-request-link {
  color: var(--cyan);
  font-size: 10px;
}

.odds-request-link:hover {
  text-decoration: underline;
}

.row-arrow {
  color: var(--muted);
}

.selected-prediction {
  align-self: start;
  padding: 22px;
  position: sticky;
  top: 86px;
}

.selected-league {
  display: block;
  margin: 8px 0 4px;
  color: var(--muted);
  font: 10px 'DM Mono', monospace;
}

.selected-prediction h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.selected-prediction h2 em {
  color: var(--muted);
  font-style: normal;
}

.selected-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-left: 2px solid var(--cyan);
  background: #102936;
  border-radius: 0 6px 6px 0;
}

.selected-pick small {
  color: var(--cyan);
  font: 9px 'DM Mono', monospace;
}

.selected-pick strong {
  font-size: 16px;
}

.selected-pick span, .responsible-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.selected-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.selected-stats div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #091722;
}

.selected-stats small, .selected-stats b {
  display: block;
}

.selected-stats small {
  color: var(--muted);
  font: 9px 'DM Mono', monospace;
}

.selected-stats b {
  margin-top: 4px;
  font-size: 16px;
  font-family: 'DM Mono', monospace;
}

.selected-button, .telegram-odds-button {
  display: block;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.selected-button {
  background: var(--cyan);
  color: #071018;
}

.selected-button:hover {
  background: #7ae0fc;
}

.telegram-odds-button {
  margin-top: 8px;
  border: 1px solid #3f7182;
  color: var(--cyan);
}

.telegram-odds-button:hover {
  background: rgba(99, 213, 244, 0.1);
}

/* Standard Ad Slot Box (Monetag / Adsterra placeholder) */
.ad-slot {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px dashed #416577;
  border-radius: 8px;
  background: linear-gradient(100deg, #102633, #0b1924);
  color: var(--muted);
  margin-bottom: 22px;
}

.ad-slot-label {
  align-self: flex-start;
  color: var(--gold);
  font: 500 9px 'DM Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ad-slot-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.ad-slot-content b {
  color: var(--text);
  font-size: 13px;
}

.ad-slot-content span {
  font-size: 11px;
}

.ad-slot button, .ad-slot a.ad-btn {
  border: 1px solid #527889;
  border-radius: 5px;
  padding: 9px 12px;
  background: transparent;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.ad-slot button:hover, .ad-slot a.ad-btn:hover {
  background: #173646;
}

/* Adsterra Native Sports Banners Container */
.adsterra-native-banner-container {
  background: #12161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.adsterra-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adsterra-native-ad-box {
  min-height: 90px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fallback CTA shown when Adsterra script hasn't loaded */
.adsterra-fallback-cta {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(18, 28, 18, 0.95) 0%, rgba(10, 20, 10, 0.98) 100%);
  border: 1px solid rgba(74, 222, 128, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.adsterra-fallback-cta:hover {
  border-color: rgba(74, 222, 128, 0.5);
  box-shadow: 0 0 18px rgba(74, 222, 128, 0.12);
}

.adsterra-fallback-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.adsterra-fallback-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.adsterra-fallback-headline {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}

.adsterra-fallback-sub {
  font-size: 11px;
  color: #94a3b8;
  font-family: 'DM Mono', monospace;
  flex: 1;
}

.adsterra-fallback-btn {
  background: #4ade80;
  color: #0a1a0a;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  margin-left: auto;
}

/* 1-Click Viral Share Button */
.card-share-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--muted, #94a3b8);
  cursor: pointer;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  transition: all 0.2s ease;
}

.card-share-btn:hover {
  background: rgba(99, 213, 244, 0.15);
  border-color: var(--cyan, #63d5f4);
  color: #ffffff;
  transform: translateY(-1px);
}

.card-share-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

/* Bookmaker Affiliate Action Targets */
.bookmaker-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.bookmaker-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(240, 185, 85, 0.08);
  border: 1px solid rgba(240, 185, 85, 0.25);
  border-radius: 6px;
  color: var(--gold, #f0b955);
  font: 700 10.5px 'DM Mono', monospace;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.bookmaker-pill:hover {
  background: rgba(240, 185, 85, 0.2);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(240, 185, 85, 0.2);
}

.bookmaker-pill.stake {
  background: rgba(99, 213, 244, 0.08);
  border-color: rgba(99, 213, 244, 0.25);
  color: var(--cyan, #63d5f4);
}
.bookmaker-pill.stake:hover {
  background: rgba(99, 213, 244, 0.2);
  border-color: #63d5f4;
  color: #ffffff;
}

.bookmaker-pill.melbet {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
}
.bookmaker-pill.melbet:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #ffffff;
}

.bookmaker-pill.xbet {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}
.bookmaker-pill.xbet:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #60a5fa;
  color: #ffffff;
}

/* Highlights Grid */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.highlight-card {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.highlight-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.highlight-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.highlight-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  transition: background 0.2s;
}

.highlight-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.2);
}

.highlight-info {
  padding: 12px;
}

.highlight-competition {
  color: var(--gold);
  font: 10px 'DM Mono', monospace;
  display: block;
  margin-bottom: 4px;
}

.highlight-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

/* Custom Calculator */
.calculator-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.calc-sub {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 16px;
}

.calc-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-input {
  flex: 1;
  min-width: 200px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0b1924;
  color: var(--text);
}

.calc-vs {
  font: 700 11px 'DM Mono', monospace;
  color: var(--gold);
}

.calc-submit {
  height: 42px;
  padding: 0 20px;
  background: var(--cyan);
  color: #071018;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
}

/* Footer */
footer {
  max-width: 1240px;
  width: 100%;
  margin: auto;
  padding: 35px 24px 45px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

footer b {
  color: var(--gold);
  font: 500 10.5px 'DM Mono', monospace;
  letter-spacing: .06em;
}

footer p {
  max-width: 580px;
  margin: 10px auto;
  font-size: 11px;
  line-height: 1.6;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 12px 0;
  font-size: 11px;
}

.footer-nav-links a {
  color: var(--muted);
}

.footer-nav-links a:hover {
  color: var(--cyan);
}

footer small {
  font: 10px 'DM Mono', monospace;
  display: block;
  margin-top: 8px;
}

/* Video Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 860px;
  width: 100%;
  overflow: hidden;
}

.modal-header {
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  font-size: 15px;
}

.modal-close-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 24px;
}

.modal-video {
  padding: 12px;
  background: #000;
}

/* Media Queries for Windows Desktop and Mobile */
@media (max-width: 1024px) {
  .matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .theater-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .top-ticker {
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
  }
  .ticker-message {
    display: none;
  }
  .nav-container {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    overflow-x: auto;
  }
  .telegram-button {
    margin-left: auto;
  }
  .main-container {
    padding: 18px 14px 56px;
  }
  .matches-grid, .theater-grid, .predictions-layout {
    grid-template-columns: 1fr;
  }
  .predictions-hero {
    display: block;
  }
  .date-card {
    margin-top: 14px;
  }
  .prediction-toolbar {
    grid-template-columns: 1fr;
  }
  .selected-prediction {
    position: static;
  }
  .prediction-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .prediction-pick {
    grid-column: 2;
  }
  .confidence {
    grid-column: 3;
    grid-row: 1;
  }
  .row-actions {
    grid-column: 2 / -1;
  }
  .teams {
    gap: 18px;
  }
  .teams strong {
    font-size: 15px;
  }
  .ad-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ad-banner a {
    align-self: flex-start;
  }
  .search {
    min-width: 0;
  }
  .filters {
    align-items: stretch;
  }
  .sport-select-wrap, .sport-select {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }
  .hub-tabs {
    overflow-x: auto;
  }
  .hub-tab {
    white-space: nowrap;
  }
  .match-card {
    padding: 14px;
  }
  .teams {
    padding: 14px 0;
  }
  .nav-btn {
    padding-inline: 8px;
  }
}

/* Prediction Toolbar Action Buttons */
.board-action-btn {
  height: 42px;
  padding: 0 16px;
  background: #112836;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--cyan);
  font: 700 11px 'DM Mono', monospace;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  align-self: flex-end;
}

.board-action-btn:hover {
  background: var(--cyan);
  color: #071018;
  box-shadow: 0 0 14px rgba(99, 213, 244, 0.4);
}

.board-action-btn:active {
  transform: scale(0.97);
}

/* Prediction Board Team Crests */
.board-team-crest {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6));
  flex-shrink: 0;
}

.board-team-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.board-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font: 700 10px 'DM Mono', monospace;
  background: rgba(250, 93, 101, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
}

/* Selected Board Matchup Crests Header */
.selected-matchup-crests {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 12px;
  background: #091722;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.selected-team-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.selected-badge-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.selected-team-mini span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-vs-text {
  color: var(--gold);
  font-style: normal;
  font: 700 11px 'DM Mono', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(240, 185, 85, 0.1);
  border: 1px solid rgba(240, 185, 85, 0.2);
  flex-shrink: 0;
}

/* Selected Board Form & H2H Extra Box */
.selected-board-extra-box {
  margin: 12px 0;
  padding: 12px;
  background: #091722;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.selected-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.extra-label {
  font: 500 10px 'DM Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
}

.extra-badges-wrap {
  display: flex;
  gap: 4px;
}

.extra-val-text {
  font: 700 11px 'DM Mono', monospace;
  color: var(--cyan);
}

/* Results Settled Cards */
.result-card-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #091722;
  transition: all 0.15s ease;
}

.result-card-item:hover {
  background: #0d2130;
  border-color: #31586e;
}

.result-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.result-league-pill {
  font: 500 9px 'DM Mono', monospace;
  color: var(--cyan);
  background: rgba(99, 213, 244, 0.1);
  padding: 2px 6px;
  border-radius: 3px;
}

.result-date-text {
  font: 10px 'DM Mono', monospace;
  color: var(--muted);
}

.result-matchup-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-crest-mini {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

.result-score-badge {
  font: 700 12px 'DM Mono', monospace;
  color: var(--gold);
  background: rgba(240, 185, 85, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

.result-pick-line {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-pick-line strong {
  color: var(--text);
}

.result-status-pill {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: .05em;
  display: inline-block;
}

.result-status-pill.won {
  color: var(--green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-status-pill.lost {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Sticky Mobile Bottom Navigation Bar (< 768px) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(14, 18, 25, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  padding: 0 12px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 4px;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.mobile-nav-item.active {
  color: var(--cyan);
}

.mobile-nav-item.active svg {
  transform: translateY(-2px);
  stroke: var(--cyan);
}

.mobile-nav-live-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-live-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
  }
  
  .main-container {
    padding-bottom: 96px !important;
  }

  .hub-header-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .hub-header-right {
    width: 100%;
    justify-content: space-between;
    margin-top: 10px;
  }

  .hub-meta-card {
    flex: 1;
    align-items: flex-start;
  }

  .match-scroll-rail .match-card,
  .match-scroll-rail .broadcast-card {
    flex: 0 0 280px;
  }
}

/* ==========================================================================
   Contextual Iframe Banners & Leaderboards
   ========================================================================== */

/* Top Hero 728x90 Billboard */
.hero-top-billboard-container {
  margin: 10px 0 16px;
  background: rgba(18, 22, 28, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  overflow: hidden;
}

.billboard-label-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.ad-compliance-note {
  font-size: 10px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}

.hero-728x90-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hero-728x90-frame iframe {
  max-width: 100%;
}

/* Sidebar 200x200 Widget (Today's Predictions) */
.sidebar-iframe-ad-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 14px 0 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sidebar-iframe-ad-box iframe {
  max-width: 100%;
}

/* Sidebar 300x250 Medium Rectangle (AI Match Intelligence) */
.sidebar-display-ad-card {
  margin-top: 14px;
  padding: 12px;
  background: rgba(18, 22, 28, 0.85);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}

.ad-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.ad-partner-tag {
  font: 600 10px 'DM Mono', monospace;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ad-age-badge {
  font-size: 10px;
  color: var(--muted);
}

.stake-300x250-link {
  display: inline-block;
  width: 300px;
  max-width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stake-300x250-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.18);
}

.stake-300x250-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Footer 970x90 Super Leaderboard Billboard */
.footer-leaderboard-billboard {
  margin: 24px auto 16px;
  max-width: 1000px;
  background: rgba(18, 22, 28, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}

.billboard-970x90-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stake-billboard-link {
  display: block;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stake-billboard-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.2);
}

.stake-billboard-img {
  width: 970px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Dynamic Mobile-Friendly Live Viewer Counter Pill
   ========================================================================== */
.live-viewer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.24);
  color: #00f2fe;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  animation: viewerBadgeGlow 3s ease-in-out infinite alternate;
}

@keyframes viewerBadgeGlow {
  0% {
    box-shadow: 0 0 0 rgba(0, 242, 254, 0);
  }
  100% {
    box-shadow: 0 0 8px rgba(0, 242, 254, 0.25);
  }
}

.viewer-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 5px #00f2fe;
  animation: radarDot 1.4s ease-out infinite;
}

.viewer-eye-icon {
  stroke: #00f2fe;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -1px;
}

.viewer-count-val {
  font-family: 'DM Mono', monospace;
  font-weight: 700;
  color: #ffffff;
}


