:root {
  color-scheme: dark;
  --bg: #071a12;
  --bg-2: #0e3b2a;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(231, 236, 232, 0.16);
  --text: #ffffff;
  --muted: #b9c8bf;
  --soft: #e7ece8;
  --gold: #f7c948;
  --red: #e53935;
  --blue: #2563eb;
  --green: #26a269;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(247, 201, 72, 0.16), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(37, 99, 235, 0.18), transparent 30%),
    linear-gradient(180deg, #04110c 0%, var(--bg) 48%, #05120d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 17, 12, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(247, 201, 72, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.22), rgba(38, 162, 105, 0.22));
  color: var(--gold);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
}

.brand strong,
h1,
h2,
h3,
.score,
.kickoff-time {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.78;
}

.site-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.timezone-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timezone-control select,
.filter-bar input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 70% 28%, rgba(247, 201, 72, 0.24), transparent 30%),
    radial-gradient(circle at 24% 8%, rgba(37, 99, 235, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(7, 26, 18, 0.72), rgba(7, 26, 18, 0.98)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size:
    42px 42px,
    42px 42px,
    auto,
    auto,
    auto,
    cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 18, 0.96));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 620px;
  padding: 56px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  white-space: normal;
  overflow-wrap: break-word;
}

h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}

h3 {
  margin: 0;
}

.hero-copy p:not(.eyebrow),
.section-copy {
  color: var(--soft);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 850;
  cursor: pointer;
}

.button-primary {
  background: var(--gold);
  color: #10120b;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.panel,
.match-card,
.prediction-card,
.scoreboard,
.comments-panel,
.facts-card,
.ad-slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055)),
    rgba(14, 59, 42, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.hero-live {
  padding: 18px;
}

.pre-match-panel {
  display: grid;
  gap: 14px;
}

.pre-match-panel h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.05;
}

.kickoff-stack {
  display: grid;
  gap: 10px;
}

.kickoff-stack div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
}

.kickoff-stack span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kickoff-stack strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.section {
  padding: 54px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 16px;
}

.match-card.compact {
  min-height: 174px;
}

.match-topline,
.match-meta,
.card-actions,
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.live-badge {
  background: var(--red);
  color: #fff;
}

.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #fff;
}

.status-pill {
  border: 1px solid var(--line);
  color: var(--soft);
}

.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.team {
  display: grid;
  gap: 4px;
}

.team.right {
  text-align: right;
}

.team-name {
  color: #fff;
  font-weight: 900;
  line-height: 1.18;
}

.team-code {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.score {
  min-width: 86px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.kickoff-time {
  min-width: 92px;
  border: 1px solid rgba(247, 201, 72, 0.34);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.ai-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  padding: 10px;
  background: rgba(247, 201, 72, 0.1);
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.ai-strip strong {
  color: var(--gold);
}

.match-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 50px 0 32px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 59, 42, 0.94), rgba(7, 26, 18, 0.92));
  background-size: 42px 42px, 42px 42px, auto;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  overflow-wrap: anywhere;
}

.match-title {
  display: grid;
  gap: 4px;
}

.match-title em {
  color: var(--gold);
  font-size: 0.45em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.match-hero {
  padding-bottom: 24px;
}

.star-duel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(247, 201, 72, 0.26);
  border-radius: 18px;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(53, 225, 145, 0.55) 0 2px, transparent 2px calc(50% - 2px), rgba(247, 201, 72, 0.68) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px) calc(100% - 2px), rgba(77, 126, 255, 0.55) calc(100% - 2px)),
    radial-gradient(circle at 50% 10%, rgba(247, 201, 72, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(53, 225, 145, 0.18), transparent 30%, transparent 70%, rgba(77, 126, 255, 0.2)),
    linear-gradient(90deg, rgba(23, 81, 58, 0.9), rgba(8, 23, 31, 0.96) 50%, rgba(42, 76, 154, 0.78));
}

.star-duel::before,
.star-duel::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 30%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.68;
}

.star-duel::before {
  left: 0;
  background: radial-gradient(circle at 12% 50%, rgba(53, 225, 145, 0.42), transparent 68%);
}

.star-duel::after {
  right: 0;
  background: radial-gradient(circle at 88% 50%, rgba(77, 126, 255, 0.42), transparent 68%);
}

.star-player {
  position: relative;
  z-index: 2;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.12), transparent 38%),
    rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 46px rgba(0, 0, 0, 0.28);
}

.star-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.5));
  mix-blend-mode: screen;
  opacity: 0.6;
}

.star-player.away {
  text-align: right;
}

.star-player.away::before {
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.14), transparent 24%),
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.5));
}

.player-visual-label {
  position: absolute;
  top: 12px;
  z-index: 3;
  border: 1px solid rgba(247, 201, 72, 0.34);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(5, 10, 18, 0.72);
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.star-player.home .player-visual-label {
  left: 12px;
}

.star-player.away .player-visual-label {
  right: 12px;
}

.player-image {
  position: absolute;
  inset: 0;
}

.spotlight-mode.home {
  background:
    radial-gradient(circle at 30% 28%, rgba(53, 225, 145, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(7, 110, 72, 0.88), rgba(5, 10, 18, 0.94));
}

.spotlight-mode.away {
  background:
    radial-gradient(circle at 70% 28%, rgba(77, 126, 255, 0.36), transparent 34%),
    linear-gradient(225deg, rgba(34, 72, 154, 0.88), rgba(5, 10, 18, 0.94));
}

.player-spotlight {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
}

.player-spotlight::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 360px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 16%, rgba(247, 201, 72, 0.34), transparent 22%),
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.16), transparent 42%);
  filter: blur(0.2px);
  opacity: 0.72;
}

.player-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.14), transparent 42%),
    radial-gradient(circle at 50% 22%, rgba(247, 201, 72, 0.22), transparent 38%);
}

.shirt-number {
  position: absolute;
  z-index: 1;
  right: 4%;
  top: 11%;
  color: rgba(255, 255, 255, 0.14);
  font-size: clamp(140px, 12vw, 210px);
  font-weight: 950;
  line-height: 0.8;
}

.poster-player {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 68%;
  width: min(46%, 190px);
  height: 76%;
  transform: translateX(-50%);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.42));
  opacity: 0.34;
}

.star-player.home .poster-player {
  transform: translateX(-50%) rotate(-2deg);
}

.star-player.away .poster-player {
  left: 32%;
  transform: translateX(-50%) scaleX(-1) rotate(-2deg);
}

.poster-player::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 29%;
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(234, 248, 244, 0.68);
}

.poster-player::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20%;
  width: 74%;
  height: 70%;
  transform: translateX(-50%);
  border-radius: 32% 32% 18% 18%;
  background:
    linear-gradient(90deg, transparent 0 15%, rgba(234, 248, 244, 0.68) 15% 28%, transparent 28% 72%, rgba(234, 248, 244, 0.68) 72% 85%, transparent 85%),
    linear-gradient(180deg, rgba(234, 248, 244, 0.72), rgba(234, 248, 244, 0.26));
  clip-path: polygon(28% 0, 72% 0, 100% 20%, 86% 45%, 76% 100%, 24% 100%, 14% 45%, 0 20%);
}

.poster-player span {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 38%;
  width: 42%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 42% 42% 18% 18%;
  background: rgba(5, 10, 18, 0.42);
}

.player-initials {
  position: absolute;
  z-index: 3;
  top: 58px;
  right: 22px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(247, 201, 72, 0.5);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.68);
  color: var(--gold);
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 0 32px rgba(247, 201, 72, 0.18);
}

.star-player.away .player-initials {
  right: auto;
  left: 22px;
}

.player-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(1.22) contrast(1.12) brightness(1.08);
  transform: scale(1.08);
}

.star-player.home .player-image img {
  object-position: center;
}

.star-player.away .player-image img {
  object-position: center;
  transform: scale(1.08) scaleX(-1);
}

.player-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.04), rgba(5, 10, 18, 0.34)),
    linear-gradient(180deg, rgba(5, 10, 18, 0.02) 0%, rgba(5, 10, 18, 0.24) 38%, rgba(5, 10, 18, 0.9) 100%);
}

.player-silhouette {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
  font-size: 92px;
  font-weight: 950;
}

.player-copy {
  position: absolute;
  inset: auto 16px 16px;
  display: grid;
  gap: 6px;
  z-index: 4;
  max-width: min(72%, 390px);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(90deg, rgba(5, 10, 18, 0.82), rgba(5, 10, 18, 0.36));
  backdrop-filter: blur(2px);
}

.star-player.away .player-copy {
  margin-left: auto;
  background: linear-gradient(270deg, rgba(5, 10, 18, 0.82), rgba(5, 10, 18, 0.36));
}

.player-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 0.95;
}

.player-copy p,
.player-copy small {
  margin: 0;
  color: var(--soft);
  font-weight: 850;
}

.player-copy small {
  color: var(--muted);
  font-size: 12px;
}

.player-copy .image-credit {
  display: inline-block;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
}

.duel-center {
  display: grid;
  position: relative;
  z-index: 2;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: 14px;
  background: rgba(5, 10, 18, 0.62);
  text-align: center;
}

.duel-center strong {
  color: var(--gold);
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.85;
}

.duel-center span,
.duel-center em {
  color: var(--soft);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.duel-ai {
  border: 1px solid rgba(53, 225, 145, 0.3);
  border-radius: 999px;
  padding: 7px 10px;
  color: #88f4bc;
  font-size: 12px;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.45fr) auto;
  gap: 12px;
  margin-top: 22px;
}

.date-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.date-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-weight: 850;
}

.date-tabs .active {
  border-color: rgba(247, 201, 72, 0.5);
  background: rgba(247, 201, 72, 0.16);
  color: var(--gold);
}

.schedule-list {
  display: grid;
  gap: 26px;
}

.date-group {
  display: grid;
  gap: 12px;
}

.date-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.match-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.065);
}

.match-row .teams {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.row-actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.match-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.scoreboard {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.scoreboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(247, 201, 72, 0.16), transparent 40%);
  background-size: 34px 34px, 34px 34px, auto;
}

.scoreboard .teams {
  margin: 26px 0 16px;
}

.scoreboard .team-name {
  font-size: clamp(18px, 2.2vw, 28px);
}

.scoreboard .score {
  min-width: 132px;
  padding: 12px 16px;
  font-size: clamp(42px, 7vw, 72px);
}

.match-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.fact span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fact strong {
  display: block;
  margin-top: 4px;
}

.prediction-card {
  padding: 18px;
  border-color: rgba(247, 201, 72, 0.34);
}

.probabilities {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.prob-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
  font-weight: 850;
}

.bar {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.prob-row.top .bar span {
  background: var(--gold);
}

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

.prediction-meta div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.prediction-reasons {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--soft);
}

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

.comments-panel {
  margin-top: 18px;
  padding: 18px;
}

.comment-form {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 10px;
  margin: 14px 0;
}

.comment-form input,
.signed-comment-box textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.signin-gate,
.signed-comment-box,
.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(53, 225, 145, 0.08), rgba(77, 126, 255, 0.06)),
    rgba(255, 255, 255, 0.045);
}

.signin-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
}

.signin-gate h3,
.sidebar-card h3 {
  margin: 8px 0 6px;
}

.google-button {
  white-space: nowrap;
}

.signed-comment-box {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.signed-comment-box textarea {
  min-height: 96px;
  resize: vertical;
  font: inherit;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip img,
.user-chip > span {
  width: 38px;
  height: 38px;
  border-radius: 999px;
}

.user-chip > span {
  display: grid;
  place-items: center;
  background: rgba(247, 201, 72, 0.18);
  color: var(--gold);
  font-weight: 950;
}

.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.api-notice,
.form-message {
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: rgba(247, 201, 72, 0.1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.api-notice.connected {
  border-color: rgba(53, 225, 145, 0.28);
  background: rgba(53, 225, 145, 0.1);
  color: #88f4bc;
}

.empty-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(53, 225, 145, 0.1), rgba(42, 76, 154, 0.08)),
    var(--panel);
}

.empty-panel h3 {
  margin: 10px 0 8px;
  font-size: clamp(22px, 3vw, 32px);
}

.form-message:empty {
  display: none;
}

.form-message.error {
  border-color: rgba(255, 97, 97, 0.36);
  background: rgba(255, 97, 97, 0.12);
  color: #ffb5b5;
}

.like-button {
  margin-bottom: 10px;
}

.button:disabled,
.comment-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.comment-tabs {
  display: flex;
  gap: 8px;
}

.comment-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: var(--soft);
  font-weight: 850;
}

.comment-tabs .active {
  background: rgba(247, 201, 72, 0.16);
  color: var(--gold);
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.comment p {
  margin: 7px 0 0;
  color: var(--soft);
}

.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.comment-actions button,
.sidebar-fixture {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
  font-weight: 850;
}

.comment-actions button {
  padding: 6px 9px;
  font-size: 12px;
}

.match-sidebar {
  position: sticky;
  top: 18px;
}

.sidebar-fixtures {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sidebar-fixture {
  display: grid;
  gap: 3px;
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.sidebar-fixture span {
  color: var(--muted);
  font-size: 12px;
}

.ad-slot {
  display: grid;
  min-height: 110px;
  place-items: center;
  margin: 24px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: auto;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-grid,
  .match-detail-layout,
  .star-duel,
  .card-grid,
  .card-grid.two,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 28px 0;
  }

  .shell,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }

  h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .page-hero {
    padding: 34px 0 24px;
  }

  .hero-copy p:not(.eyebrow),
  .section-copy {
    font-size: 15px;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: start;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .signin-gate {
    grid-template-columns: 1fr;
  }

  .match-sidebar {
    position: static;
  }
}

@media (max-width: 520px) {
  .site-header {
    overflow: hidden;
  }

  .timezone-control span {
    display: none;
  }

  .timezone-control select {
    max-width: 92px;
  }

  .section-header,
  .match-topline,
  .match-meta,
  .comment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero-live {
    padding: 12px;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-copy p:not(.eyebrow) {
    margin-bottom: 0;
  }

  .page-hero h1 {
    font-size: clamp(28px, 8.2vw, 36px);
  }

  .hero-title {
    max-width: 10ch;
  }

  .match-title {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.02;
  }

  .star-duel {
    gap: 10px;
    padding: 10px;
  }

  .star-player {
    min-height: 280px;
  }

  .star-player.away {
    text-align: left;
  }

  .poster-player,
  .star-player.away .poster-player {
    left: 50%;
    top: 38px;
    bottom: auto;
    width: 42%;
    height: 140px;
    opacity: 0.26;
    transform: translateX(-50%);
  }

  .star-player.away .poster-player {
    transform: translateX(-50%) scaleX(-1);
  }

  .player-initials,
  .star-player.away .player-initials {
    top: 66px;
    left: 50%;
    right: auto;
    width: 60px;
    height: 60px;
    transform: translateX(-50%);
    font-size: 20px;
  }

  .shirt-number {
    top: 20px;
    right: 18px;
    font-size: 110px;
  }

  .player-copy,
  .star-player.away .player-copy {
    inset: auto 12px 12px;
    max-width: none;
    padding: 12px;
    text-align: left;
    background: rgba(5, 10, 18, 0.86);
  }

  .duel-center {
    order: -1;
    min-height: 150px;
  }

  .duel-center strong {
    font-size: 52px;
  }

  .player-copy h2 {
    font-size: 26px;
  }

  .teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }

  .team-name {
    font-size: 14px;
  }

  .score {
    min-width: 68px;
    font-size: 24px;
  }

  .kickoff-time {
    min-width: 74px;
    font-size: 14px;
  }

  .scoreboard .score {
    min-width: 82px;
    padding: 10px 8px;
    font-size: 34px;
  }

  .scoreboard {
    padding: 16px;
  }

  .scoreboard .teams {
    gap: 8px;
  }

  .scoreboard .team-name {
    font-size: 15px;
  }

  .match-facts,
  .prediction-meta {
    grid-template-columns: 1fr;
  }

  .prob-row {
    grid-template-columns: 74px minmax(0, 1fr) 38px;
  }
}
