:root {
  color-scheme: light;
  --bg: #0b0f16;
  --bg-soft: #111826;
  --panel: #141d2b;
  --panel-2: #0f1724;
  --card: #161f2e;
  --stroke: rgba(231, 237, 246, 0.1);
  --text: #e7edf6;
  --muted: #9fb0c7;
  --accent: #0bb3a8;
  --accent-2: #1f6feb;
  --warning: #f6c343;
  --danger: #ff5c5c;
  --shadow: 0 18px 36px rgba(8, 12, 20, 0.45);
  --radius: 18px;
}

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

body {
  font-family: "SF Pro Display", "DIN Alternate", "Segoe UI", Arial, sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(31, 111, 235, 0.25), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(11, 179, 168, 0.2), transparent 50%),
    linear-gradient(140deg, #0b0f16 0%, #0b111c 35%, #0a0f18 100%);
  color: var(--text);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 22, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.ad-bar {
  text-align: center;
  padding: 6px 5vw;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--muted);
  background: rgba(15, 23, 36, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.scrolled {
  border-bottom-color: rgba(231, 237, 246, 0.08);
  box-shadow: 0 10px 30px rgba(5, 10, 18, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 5vw;
  gap: 20px;
}

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

.brand-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 auto;
}

.nav a {
  font-size: 14px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  opacity: 0.82;
}

.nav a.active,
.nav a:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.search {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search input {
  width: 100%;
  background: rgba(20, 29, 43, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
}

.search-results {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}

.search-results.active {
  display: block;
}

.search-results li {
  list-style: none;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.search-results li:hover {
  background: rgba(31, 111, 235, 0.2);
}

.container {
  width: min(1200px, 92vw);
  margin: 24px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title h2 {
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  min-height: 220px;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel-item {
  min-width: 100%;
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
}

.carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 179, 168, 0.2);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel h3 {
  font-size: 28px;
  line-height: 1.2;
  margin-top: 12px;
}

.carousel p {
  color: var(--muted);
  margin-top: 10px;
}

.carousel-art {
  height: 160px;
  border-radius: 16px;
  background: linear-gradient(130deg, rgba(31, 111, 235, 0.5), rgba(11, 179, 168, 0.6));
  position: relative;
  overflow: hidden;
}

.carousel-art::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-nav {
  position: absolute;
  inset: auto 16px 16px auto;
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 36, 0.85);
  color: var(--text);
  cursor: pointer;
}

.live-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}

.live-card {
  min-width: 220px;
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  scroll-snap-align: start;
}

.live-card .teams {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.badge.live {
  background: rgba(255, 92, 92, 0.15);
  color: var(--danger);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.empty-state {
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.event-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card .meta {
  color: var(--muted);
  font-size: 12px;
}

.event-card .cta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.2);
  color: var(--accent-2);
  font-size: 12px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 29, 43, 0.8);
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.75;
}

.filter-chip.active {
  opacity: 1;
  border-color: rgba(11, 179, 168, 0.6);
  background: rgba(11, 179, 168, 0.15);
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.stream-placeholder {
  background: #05080f;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background-image: radial-gradient(
      circle at top right,
      rgba(31, 111, 235, 0.35),
      transparent 55%
    ),
    radial-gradient(circle at bottom left, rgba(11, 179, 168, 0.25), transparent 55%);
}

.stream-placeholder h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.stream-placeholder .meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stream-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
  letter-spacing: 1.5px;
}

.stream-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(20, 29, 43, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stream-note h3 {
  font-size: 16px;
  margin: 0;
}

.stream-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.link-btn {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}


.chat {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.chat-message {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-form input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 29, 43, 0.8);
  padding: 10px 14px;
}

.chat-form button {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  border: none;
  color: #0b0f16;
  cursor: pointer;
  font-weight: 600;
}

.profile {
  background: var(--panel);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.6), rgba(11, 179, 168, 0.7));
}

.footer {
  padding: 24px 5vw 40px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    margin: 0;
    justify-content: center;
  }

  .carousel-item {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 6vw;
  }

  .nav {
    gap: 12px;
  }

  .search {
    max-width: 100%;
  }

  .carousel h3 {
    font-size: 22px;
  }
}
