:root {
  --bg: #050505;
  --bg-soft: #0a0b09;
  --card: #10110e;
  --gold: #ffcc00;
  --gold-soft: rgba(255, 204, 0, 0.2);
  --text: #f7f3e8;
  --muted: #b8b4aa;
  --dim: #827d72;
  --line: rgba(255, 255, 255, 0.12);
  --gold-line: rgba(255, 204, 0, 0.42);
  --live: #ff5f57;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 204, 0, 0.08), transparent 28%),
    radial-gradient(circle at 85% 4%, rgba(255, 255, 255, 0.06), transparent 20%),
    linear-gradient(180deg, #0b0b0a 0%, var(--bg) 44%, #030303 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.frame {
  width: min(936px, calc(100vw - 32px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 4, 4, 0.86);
  backdrop-filter: blur(18px);
}

.topbar::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.65), transparent);
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  align-items: center;
  gap: 18px;
}

.brand {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  justify-self: start;
}

.brand-mark {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 16px rgba(255, 204, 0, 0.3));
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark picture {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 0.98;
  text-transform: uppercase;
}

.brand-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-kicker,
.ad-slot span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 12px;
  font-family: "Barlow Condensed", "Arial Narrow", Inter, ui-sans-serif, sans-serif;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(255, 204, 0, 0.2);
}

.brand:hover .brand-copy strong,
.brand:focus-visible .brand-copy strong {
  color: var(--gold);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.nav a {
  min-height: 24px;
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.nav a.active {
  background: var(--gold);
  color: #080808;
}

.locale {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-self: end;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 0 9px;
  cursor: pointer;
}

.locale-picker {
  position: relative;
  display: inline-flex;
  justify-self: end;
  width: max-content;
}

.locale-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 148px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 11, 10, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
  padding: 6px;
}

.locale-menu[hidden] {
  display: none !important;
}

html[dir="rtl"] .locale-menu {
  right: auto;
  left: 0;
}

.locale-option {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 10px;
  text-transform: uppercase;
}

.locale-option:hover,
.locale-option:focus-visible {
  border-color: var(--gold-line);
  color: var(--text);
  outline: none;
}

.locale-option.active {
  border-color: var(--gold-line);
  background: rgba(255, 204, 0, 0.12);
  color: var(--gold);
}

.page-stack {
  display: grid;
  gap: 28px;
  padding: 28px 0 64px;
}

.ad-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.12), rgba(16, 15, 8, 0.86) 42%, rgba(255, 204, 0, 0.08)),
    linear-gradient(rgba(255, 204, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 204, 0, 0.08) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  text-align: center;
}

.ad-slot strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 22px;
  font-weight: 1000;
}

.banner-link,
.banner-link img {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-link img {
  object-fit: cover;
}

.ad-top {
  min-height: 70px;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: 526px;
  overflow: hidden;
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 6px;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 204, 0, 0.14), rgba(255, 204, 0, 0) 42%),
    linear-gradient(96deg, rgba(5, 7, 6, 0.97) 0%, rgba(5, 7, 6, 0.88) 44%, rgba(5, 7, 6, 0.5) 70%, rgba(5, 7, 6, 0.84) 100%),
    url("./assets/world-cup-hero.png") center / cover;
}

.hero-copy {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.kicker-line,
.heading-line {
  width: 50px;
  height: 2px;
  margin-top: 12px;
  background: var(--gold);
}

h1,
h2,
p {
  margin: 0;
}

.hero-card h1 {
  margin-top: 28px;
  font-size: clamp(44px, 5.25vw, 58px);
  font-weight: 1000;
  line-height: 0.94;
  text-transform: uppercase;
}

.hero-card h1 .hero-line,
.hero-card h1 .hero-highlight {
  display: block;
}

.hero-card h1 .hero-highlight,
.section-heading h2 span {
  display: block;
  color: var(--gold);
}

.hero-text {
  max-width: 390px;
  margin-top: 28px;
  color: rgba(247, 243, 232, 0.86);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 18px;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, #ffd21f, var(--gold));
  box-shadow: 0 18px 36px rgba(255, 204, 0, 0.18);
  color: #080808;
}

.button.secondary {
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
}

.refresh-button {
  min-height: 36px;
  padding: 0 14px;
}

.tournament-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 50px;
  text-transform: uppercase;
}

.pill-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
  font-weight: 1000;
}

.tournament-pill strong {
  display: block;
  font-size: 11px;
  font-weight: 1000;
}

.tournament-pill em {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
}

.ad-hero {
  position: absolute;
  right: 42px;
  bottom: 42px;
  width: 226px;
  min-height: 188px;
}

.ad-hero-mobile {
  display: none;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 18px;
}

.match-column {
  min-width: 0;
}

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

.section-heading.compact {
  margin-bottom: 12px;
}

.section-heading h2,
.follow-band h2 {
  color: var(--text);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.section-heading h2 span {
  display: inline;
}

.schedule-link {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-list {
  display: grid;
  gap: 12px;
}

.news-panel {
  margin-top: 26px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.08);
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-size: 24px;
  font-weight: 1000;
  line-height: 1;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--gold);
  color: #080808;
  outline: none;
}

.news-viewport {
  min-width: 0;
  overflow: hidden;
}

.news-grid {
  display: grid;
  grid-auto-columns: minmax(260px, 72%);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.news-card {
  display: grid;
  grid-template-rows: 140px minmax(0, 1fr);
  gap: 14px;
  min-height: 308px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.08), transparent 42%),
    rgba(0, 0, 0, 0.3);
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 12px;
  scroll-snap-align: start;
  text-align: left;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: var(--gold-line);
  outline: none;
}

.news-image {
  display: block;
  min-height: 140px;
  overflow: hidden;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image.empty {
  border: 1px solid var(--line);
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 1000;
  line-height: 1.12;
  text-transform: uppercase;
}

.news-card p {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-block,
.skeleton-inline,
.skeleton-pill {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.skeleton-block::after,
.skeleton-inline::after,
.skeleton-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.3) 48%, transparent 78%);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-inline {
  display: block;
  height: 10px;
}

.skeleton-pill {
  width: 70px;
  height: 22px;
  border-radius: 999px;
}

.skeleton-text {
  margin-top: 8px;
}

.skeleton-meta {
  display: block;
}

.w-36 {
  width: 36%;
}

.w-40 {
  width: 40%;
}

.w-52 {
  width: 52%;
}

.w-84 {
  width: 84%;
}

.w-88 {
  width: 88%;
}

.w-92 {
  width: 92%;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.news-empty {
  min-height: 90px;
}

.news-detail-image {
  display: block;
  width: 100%;
  max-height: 260px;
  margin-top: 16px;
  border-radius: 5px;
  object-fit: cover;
}

.news-detail-meta {
  margin-top: 16px;
}

.news-detail h3 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.news-detail p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.story-page {
  min-height: 70svh;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 204, 0, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(18, 20, 17, 0.98), rgba(4, 5, 4, 0.98));
  padding: clamp(22px, 5vw, 54px);
}

.story-back {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.story-page h1 {
  max-width: 820px;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 1000;
  line-height: 0.98;
  text-transform: uppercase;
}

.story-meta {
  margin-top: 18px;
}

.story-image {
  display: block;
  width: 100%;
  max-height: 420px;
  margin-top: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.story-lead {
  max-width: 760px;
  margin-top: 28px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.45;
}

.story-paragraph {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.62;
}

.story-note {
  max-width: 680px;
  margin-top: 18px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.story-page .button {
  margin-top: 28px;
}

.empty-card,
.match-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.empty-card {
  display: grid;
  min-height: 104px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.match-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 88px;
  width: 100%;
  padding: 16px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.match-card:hover,
.match-card:focus-visible {
  border-color: var(--gold-line);
  outline: none;
}

.match-time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-teams {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 1000;
  text-transform: uppercase;
}

.match-teams span {
  min-width: 0;
}

.team-logo {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  object-fit: contain;
}

.team-logo.empty {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.match-meta {
  margin-top: 5px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.match-stats {
  min-height: 15px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.match-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.match-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--gold);
  background: rgba(255, 204, 0, 0.1);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-status.live {
  color: #ffdedd;
  background: rgba(255, 95, 87, 0.2);
  border-color: rgba(255, 95, 87, 0.5);
}

.match-status.half {
  color: #ffefbf;
  background: rgba(255, 184, 0, 0.22);
  border-color: rgba(255, 184, 0, 0.52);
}

.match-status.scheduled {
  color: #ffe9a2;
  background: rgba(255, 204, 0, 0.12);
  border-color: rgba(255, 204, 0, 0.42);
}

.match-status.finished {
  color: #d6f4df;
  background: rgba(62, 177, 112, 0.2);
  border-color: rgba(62, 177, 112, 0.45);
}

.match-status.postponed {
  color: #e6e6e6;
  background: rgba(150, 150, 150, 0.22);
  border-color: rgba(190, 190, 190, 0.42);
}

.stream-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
  white-space: nowrap;
}

.stream-button {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #080808;
}

.match-detail {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 28px));
  max-height: min(720px, calc(100svh - 28px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(18, 20, 17, 0.98), rgba(4, 5, 4, 0.98)),
    var(--bg-soft);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
  padding: 22px;
}

.match-modal[hidden] {
  display: none;
}

.match-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 14px;
}

.match-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.detail-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 1000;
  line-height: 1.1;
  text-transform: uppercase;
}

.detail-score {
  margin-top: 18px;
  color: var(--gold);
  font-size: 42px;
  font-weight: 1000;
}

.detail-stream {
  margin-top: 18px;
}

.detail-refresh {
  margin-top: 12px;
}

.detail-meta-lines {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.ad-rail {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ad-rect {
  min-height: 187px;
}

.ad-tall {
  min-height: 360px;
}

.ad-bottom {
  min-height: 250px;
}

.follow-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 204, 0, 0.26);
  border-radius: 6px;
  background: linear-gradient(105deg, rgba(14, 16, 15, 0.98), rgba(14, 16, 15, 0.9) 56%, rgba(255, 204, 0, 0.18));
  padding: 28px 34px;
}

@media (max-width: 760px) {
  .frame {
    width: min(100vw - 24px, 520px);
  }

  .topbar-inner {
    display: flex;
    min-height: 68px;
    justify-content: space-between;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .nav {
    display: none;
  }

  .locale {
    min-height: 34px;
    border-color: rgba(255, 204, 0, 0.38);
    border-radius: 9px;
    background: rgba(10, 12, 10, 0.9);
    color: var(--text);
    font-size: 12px;
    padding: 0 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }

  .page-stack {
    gap: 18px;
    padding-top: 18px;
  }

  .hero-card {
    min-height: auto;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-card h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .ad-hero {
    display: none;
  }

  .ad-hero-mobile {
    display: grid;
    min-height: 220px;
    margin: 0 22px 22px;
  }

  .schedule-layout,
  .section-heading,
  .follow-band {
    display: block;
  }

  .schedule-link {
    display: inline-flex;
    margin-top: 14px;
  }

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

  .news-grid {
    grid-auto-columns: minmax(236px, 84%);
  }

  .match-actions {
    justify-items: start;
  }

  .ad-rail {
    display: none;
  }

  .ad-bottom {
    min-height: 180px;
  }

  .follow-band .button {
    margin-top: 20px;
    width: 100%;
  }
}
