:root {
  --bg: #05080f;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --gold: #c9a84c;
  --gold-2: #e5c97a;
  --gold-dim: rgba(201, 168, 76, 0.13);
  --gold-border: rgba(201, 168, 76, 0.25);
  --red: #e05252;
  --green: #3ec97a;
  --text: #d4dae8;
  --muted: #6b7890;
  --font-title: "Rajdhani", "Arial Narrow", system-ui, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 54px;
  background:
    radial-gradient(ellipse 140% 40% at 50% -4%, rgba(201, 168, 76, 0.07), transparent 52%),
    radial-gradient(ellipse 55% 30% at 95% 110%, rgba(20, 44, 110, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 15, 0.82);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  height: 58px;
  margin: 0 auto;
  padding: 0 18px;
  gap: 14px;
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold-border);
  border-radius: 9px;
  background: var(--gold-dim);
  color: var(--gold-2);
  font-family: var(--font-title);
  font-weight: 800;
}

.brand-name {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid rgba(224, 82, 82, 0.28);
  border-radius: 999px;
  background: rgba(224, 82, 82, 0.12);
  color: #f08080;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.hero,
.stats-row,
.search-wrap,
.agenda-wrap,
.player-wrap,
.foot {
  width: min(920px, 100% - 34px);
  margin-inline: auto;
}

.hero {
  padding: 30px 0 14px;
  text-align: center;
}

.hero-title {
  margin: 0 0 7px;
  color: white;
  font-family: var(--font-title);
  font-size: clamp(27px, 6vw, 43px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-title .hl {
  color: var(--gold);
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  padding: 6px 13px;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--gold-2);
  font-size: 11.5px;
  font-weight: 700;
}

.search-wrap {
  margin-bottom: 18px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--glass);
}

.search-box:focus-within {
  border-color: var(--gold);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.search-icon {
  color: var(--muted);
}

.agenda-wrap {
  display: grid;
  gap: 8px;
}

.match-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--glass-strong), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 35px rgba(0, 0, 0, 0.22);
}

.match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(201, 168, 76, 0.12), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 42%);
}

.match-header {
  position: relative;
  display: grid;
  grid-template-columns: 64px 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.time-badge,
.event-icon,
.open-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-border);
  background: var(--gold-dim);
}

.time-badge {
  width: 64px;
  min-height: 44px;
  border-radius: 10px;
  color: var(--red);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.event-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  color: var(--gold-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 22px rgba(0, 0, 0, 0.28);
}

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

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

.match-title-text {
  overflow: hidden;
  color: white;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.open-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--gold);
  transition: transform 0.2s ease, background 0.2s ease;
}

.match-card:hover {
  border-color: var(--gold-border);
}

.match-card:hover .open-mark {
  background: rgba(201, 168, 76, 0.2);
}

.match-card.active .open-mark {
  transform: rotate(180deg);
  background: rgba(201, 168, 76, 0.2);
}

.submenu {
  position: relative;
  display: none;
  padding: 0 12px 12px;
  border-top: 1px solid var(--border-soft);
}

.match-card.active .submenu {
  display: grid;
  gap: 7px;
}

.channel-row {
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin-top: 7px;
  padding: 9px 13px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.channel-row:hover {
  border-color: var(--gold-border);
  background: rgba(201, 168, 76, 0.13);
  color: var(--gold-2);
}

.ch-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 10px;
}

.ch-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ch-arr {
  color: var(--muted);
  font-size: 20px;
}

.loader-box,
.empty-box {
  padding: 55px 20px;
  text-align: center;
  color: var(--muted);
}

.spin {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 3px solid var(--border-soft);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.foot {
  padding: 26px 0 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.foot span {
  color: var(--gold);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 100% - 34px);
  margin: 0 auto;
  padding: 20px 0 8px;
  gap: 12px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.event-hero {
  width: min(1200px, 100% - 34px);
  margin: 0 auto;
  padding: 10px 0 25px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tag-live {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

.tag-channel {
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--gold);
}

.event-title {
  margin: 0;
  color: white;
  font-family: var(--font-title);
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1.08;
}

.player-wrap {
  width: min(1200px, 100% - 34px);
}

.player-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #020409;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.player-frame {
  display: block;
  width: 100%;
  height: min(68vh, 680px);
  min-height: 420px;
  border: 0;
  background: #020409;
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 0 15px;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  background: var(--gold-dim);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

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

@media (max-width: 560px) {
  .brand-name {
    font-size: 17px;
    letter-spacing: 2px;
  }

  .match-header {
    grid-template-columns: 56px 38px minmax(0, 1fr) 30px;
    gap: 9px;
    padding: 11px 12px;
  }

  .time-badge {
    width: 56px;
    font-size: 13px;
  }

  .event-icon {
    width: 38px;
    height: 38px;
  }

  .match-title-text {
    font-size: 12.5px;
  }

  .player-frame {
    min-height: 300px;
    height: 58vh;
  }
}
