:root {
  color-scheme: dark;
  --bg: #101319;
  --panel: #191f28;
  --panel-2: #202833;
  --text: #f5f7fb;
  --muted: #aeb8c7;
  --line: rgba(255, 255, 255, .11);
  --accent: #31d0aa;
  --accent-2: #f4c542;
  --danger: #ff6877;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(49, 208, 170, .18), transparent 32rem),
    linear-gradient(135deg, #101319 0%, #141820 48%, #171b22 100%);
  color: var(--text);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(16, 19, 25, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .7rem;
  background: var(--accent);
  color: #08251f;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.match-time,
.open-info,
.support p {
  color: var(--muted);
}

.nav-actions {
  display: flex;
  gap: .5rem;
}

.nav-actions a,
.button,
.tab {
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: .65rem .85rem;
  background: rgba(255, 255, 255, .06);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.watch {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  gap: 1rem;
  padding: 1.25rem 0;
  min-height: calc(100svh - 5.5rem);
  align-items: center;
}

.player-shell,
.now-panel,
.support {
  background: rgba(25, 31, 40, .88);
  border: 1px solid var(--line);
  border-radius: .75rem;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.player {
  width: 100%;
  height: 100%;
  display: block;
  background: #050608;
}

.player-notice {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .35rem;
  text-align: center;
  background: rgba(5, 6, 8, .7);
}

.player-notice.is-hidden {
  display: none;
}

.now-panel {
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.eyebrow {
  margin: 0 0 .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .76rem;
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  margin: 1.25rem 0;
  text-align: center;
  font-weight: 800;
}

.teams span {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: .85rem;
  border-radius: .6rem;
  background: var(--panel-2);
}

.teams b {
  color: var(--accent-2);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}

.countdown span {
  min-width: 0;
  padding: .8rem .4rem;
  border-radius: .55rem;
  text-align: center;
  background: #0d1117;
  border: 1px solid var(--line);
}

.countdown b,
.countdown small {
  display: block;
}

.countdown b {
  font-size: 1.45rem;
}

.countdown small {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
}

.toolbar,
.content-grid {
  margin: 0 0 1.2rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: .75rem;
  align-items: end;
}

.search {
  display: grid;
  gap: .35rem;
  color: var(--muted);
}

.search input {
  width: 100%;
  min-height: 2.8rem;
  border-radius: .55rem;
  border: 1px solid var(--line);
  padding: .75rem .9rem;
  background: var(--panel);
  color: var(--text);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.tab {
  color: var(--muted);
  cursor: pointer;
}

.tab.is-active {
  color: #06211c;
  background: var(--accent);
  border-color: transparent;
  font-weight: 800;
}

.section-head {
  margin-bottom: .8rem;
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.small-tabs {
  flex-wrap: nowrap;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .75rem;
}

.channel-card {
  display: grid;
  gap: .7rem;
  min-height: 188px;
  padding: .95rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: rgba(32, 40, 51, .86);
  cursor: pointer;
}

.channel-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: .55rem;
  background: #0b0f14;
  border: 1px solid var(--line);
}

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

.channel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .58));
}

.channel-card:hover,
.channel-card:focus-visible {
  border-color: rgba(49, 208, 170, .78);
  outline: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
}

.badge {
  align-self: start;
  border-radius: 999px;
  padding: .28rem .52rem;
  background: rgba(49, 208, 170, .14);
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
}

.badge.locked {
  background: rgba(255, 104, 119, .14);
  color: var(--danger);
}

.channel-card h3 {
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.channel-card p {
  margin: 0;
  color: var(--muted);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: .65rem;
}

.asset-card {
  display: grid;
  min-height: 112px;
  place-items: center;
  gap: .45rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
    rgba(32, 40, 51, .8);
}

.asset-card img {
  width: 76px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.asset-card span {
  width: 100%;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  margin: 1.5rem 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  min-width: 160px;
  background: var(--accent);
  color: #06211c;
  font-weight: 900;
}

footer {
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topbar,
  .support {
    align-items: flex-start;
    flex-direction: column;
  }

  .watch,
  .toolbar {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tabs {
    justify-content: flex-start;
  }

  .split-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}
