:root {
  --bg: #10131a;
  --bg-elevated: #151922;
  --panel: #1d2026;
  --panel-soft: #191c22;
  --panel-strong: #272a31;
  --panel-outline: #32353c;
  --line: #424655;
  --text: #e0e2eb;
  --text-soft: #c2c6d7;
  --text-dim: #8c90a0;
  --primary: #558dff;
  --primary-soft: #b0c6ff;
  --danger: #ff5542;
  --danger-solid: #ff0107;
  --success: #58d68d;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  --space-base: 4px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --font-display-lg: 48px;
  --font-headline-lg: 32px;
  --font-headline-lg-mobile: 24px;
  --font-score-data: 24px;
  --font-body-md: 16px;
  --font-chat-msg: 14px;
  --font-label-caps: 12px;
  --app-frame-width: 1920px;
  --main-column-width: 1352px;
  --content-max: 1272px;
  --content-wide-max: 1272px;
  --sidebar-width: 248px;
  --right-rail-width: 320px;
  --hero-desktop-height: 388px;
  --hero-compact-height: 252px;
  --video-stage-height: 520px;
  --match-card-height: 244px;
  --match-card-featured-height: 296px;
  --news-card-height: 184px;
  --league-card-height: 184px;
  --mini-match-height: 228px;
  --stat-card-height: 176px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(85, 141, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #0d1118 0%, var(--bg) 18%, #09111f 100%);
  color: var(--text);
  font-family: "Lexend", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--font-body-md);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.page-shell {
  min-height: 100vh;
  width: min(100%, var(--app-frame-width));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(16, 19, 26, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: min(100%, var(--app-frame-width));
  margin: 0 auto;
}

.topbar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: auto;
  min-width: 0;
  max-width: 210px;
}

.brand-mark {
  display: block;
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(182, 137, 82, 0.18));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar-left,
.topbar-right,
.topbar-nav {
  display: flex;
  align-items: center;
}

.topbar-left {
  gap: var(--space-xl);
}

.topbar-nav {
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-soft);
  font-size: var(--font-body-md);
  font-weight: 500;
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  border-color: var(--primary);
}

.topbar-right {
  gap: var(--space-sm);
  position: relative;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 260px;
  height: 42px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-full);
  background: rgba(8, 11, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.search input::placeholder {
  color: rgba(194, 198, 215, 0.55);
}

.search.is-open {
  border-color: rgba(85, 141, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(85, 141, 255, 0.16);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  background: rgba(18, 21, 27, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.search.is-open .search-results {
  display: block;
}

.search-state {
  padding: var(--space-md);
  color: var(--text-dim);
  font-size: var(--font-body-sm);
}

.search-state.is-error {
  color: var(--danger);
}

.search-group + .search-group {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.search-group-title {
  padding: 0 var(--space-sm) var(--space-xs);
  color: var(--text-dim);
  font-size: var(--font-label-caps);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-result-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.search-result-item.is-match {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.search-result-item.is-match:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(85, 141, 255, 0.16);
}

.search-result-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(85, 141, 255, 0.16);
  color: var(--primary-soft);
  font-size: var(--font-label-caps);
  white-space: nowrap;
}

.search-result-match-top,
.search-result-match-body {
  display: flex;
  align-items: center;
}

.search-result-match-top {
  justify-content: space-between;
  gap: var(--space-sm);
}

.search-result-match-body {
  justify-content: space-between;
  gap: 10px;
}

.search-result-team {
  min-width: 0;
  flex: 1 1 0;
  color: var(--text);
  font-size: var(--font-body-md);
  line-height: 1.4;
}

.search-result-match-body .search-result-team:last-child {
  text-align: right;
}

.search-result-vs {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: var(--font-label-caps);
  letter-spacing: 0.08em;
}

.search-result-status {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-label-caps);
  white-space: nowrap;
}

.search-result-status.is-live {
  background: rgba(255, 85, 66, 0.16);
  color: #ff9b8e;
}

.search-result-status.is-scheduled {
  background: rgba(85, 141, 255, 0.16);
  color: var(--primary-soft);
}

.search-result-status.is-finished {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.search-result-match-meta {
  color: var(--text-dim);
  font-size: var(--font-body-sm);
  line-height: 1.4;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy small {
  display: block;
}

.search-result-copy strong {
  color: var(--text);
}

.search-result-copy small,
.search-result-meta {
  color: var(--text-dim);
  font-size: var(--font-body-sm);
}

.search-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.search-result-meta {
  white-space: nowrap;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  color: var(--primary-soft);
  border-color: rgba(176, 198, 255, 0.35);
  transform: translateY(-1px);
}

.icon-btn.is-active,
.icon-btn.has-unread {
  color: var(--primary-soft);
  border-color: rgba(176, 198, 255, 0.35);
}

.icon-btn-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger-solid);
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 48px;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(18, 21, 27, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.notification-panel[hidden] {
  display: none !important;
}

.notification-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.notification-head strong,
.notification-copy strong {
  display: block;
}

.notification-head small,
.notification-copy small,
.notification-copy p {
  color: var(--text-dim);
}

.notification-body {
  display: grid;
  gap: var(--space-sm);
  max-height: min(420px, 60vh);
  overflow-y: auto;
}

.notification-item {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.notification-copy p {
  margin: 4px 0;
}

.notification-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.notification-empty {
  padding: var(--space-md);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-body-md);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(85, 141, 255, 0.65), rgba(14, 25, 46, 1));
  border: 1px solid rgba(176, 198, 255, 0.35);
}

.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - 72px);
  width: 100%;
}

.with-rail {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--right-rail-width);
}

.app-layout > .content {
  grid-column: 2;
}

.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  background: rgba(25, 28, 34, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.profile-card,
.panel,
.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.profile-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(39, 42, 49, 0.88), rgba(29, 32, 38, 0.88));
  margin-bottom: var(--space-md);
}

.profile-card.is-loading .profile-thumb {
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.profile-card.is-loading .profile-meta strong,
.profile-card.is-loading .profile-meta span {
  position: relative;
  color: transparent;
}

.profile-card.is-loading .profile-meta strong::after,
.profile-card.is-loading .profile-meta span::after {
  content: "";
  display: block;
  border-radius: var(--radius-full);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
}

.profile-card.is-loading .profile-meta strong::after {
  width: 96px;
  height: 16px;
}

.profile-card.is-loading .profile-meta span::after {
  width: 72px;
  height: 12px;
  margin-top: var(--space-xs);
}

.profile-thumb {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(85, 141, 255, 0.8), rgba(28, 39, 66, 1));
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: #fff;
}

.profile-meta strong {
  display: block;
  font-size: var(--font-body-md);
}

.profile-meta span {
  display: block;
  font-size: var(--font-label-caps);
  color: var(--text-dim);
  margin-top: var(--space-xs);
}

.sidebar-group {
  margin-bottom: var(--space-md);
}

.sidebar-link,
.sidebar-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: calc(var(--space-sm) + var(--space-xs)) var(--space-md);
  border-radius: var(--radius);
  color: var(--text-soft);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sidebar-toggle {
  appearance: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sidebar-link:hover,
.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-link.is-active,
.sidebar-toggle.is-active {
  background: linear-gradient(90deg, rgba(85, 141, 255, 0.92), rgba(85, 141, 255, 0.72));
  color: #081121;
  font-weight: 700;
}

.sidebar-toggle.is-expanded:not(.is-active) {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.sidebar-link .material-symbols-outlined,
.sidebar-toggle .material-symbols-outlined {
  font-size: var(--font-body-md);
}

.sidebar-toggle-arrow {
  transition: transform 0.2s ease;
}

.sidebar-toggle[aria-expanded="true"] .sidebar-toggle-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  padding: var(--space-sm) 0 var(--space-xs) 46px;
  display: grid;
  gap: var(--space-xs);
  max-height: 320px;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-submenu[hidden] {
  display: none !important;
}

.sidebar-submenu::-webkit-scrollbar {
  display: none;
}

.sidebar-submenu a {
  color: var(--text-dim);
  padding: var(--space-sm) 0;
  font-size: var(--font-label-caps);
  white-space: normal;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.sidebar-submenu a:hover,
.sidebar-submenu a.is-active {
  color: var(--primary-soft);
  transform: translateX(2px);
}

.skeleton-surface {
  position: relative;
  overflow: hidden;
}

.skeleton-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
}

.skeleton-stack,
.skeleton-text {
  display: grid;
  gap: var(--space-sm);
}

.skeleton-inline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.skeleton-line,
.skeleton-block {
  display: block;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.skeleton-media-block {
  min-height: 184px;
  margin-bottom: var(--space-md);
}

.skeleton-video-block {
  min-height: 320px;
  border-radius: inherit;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

.content {
  padding: var(--space-xl);
  display: flex;
  justify-content: center;
}

.content-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.content-inner.wide {
  width: 100%;
}

.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.eyebrow,
.badge,
.chip,
.meta-caps {
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--text-dim);
  font-size: var(--font-label-caps);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.page-title,
.section-title,
.score-value,
.hero-title {
  font-family: "Barlow Condensed", sans-serif;
}

.page-title,
.hero-title,
.headline-display {
  margin: 0;
  font-size: var(--font-display-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-subtitle {
  margin: var(--space-sm) 0 0;
  color: var(--text-soft);
  font-size: var(--font-body-md);
}

.panel {
  background: linear-gradient(180deg, rgba(29, 32, 38, 0.94), rgba(20, 24, 32, 0.94));
  border-radius: var(--radius-lg);
}

.glass-panel {
  background: rgba(29, 32, 38, 0.56);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}

.section {
  margin-bottom: var(--space-lg);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.section-title {
  margin: 0;
  font-size: var(--font-headline-lg);
  line-height: 1.2;
}

.section-title.with-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title .material-symbols-outlined {
  color: var(--primary-soft);
}

.section-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  font-size: var(--font-label-caps);
  line-height: 1;
}

.chip.is-active {
  border-color: rgba(85, 141, 255, 0.45);
  color: var(--primary-soft);
  background: rgba(85, 141, 255, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 12px;
  font-size: var(--font-label-caps);
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.live {
  background: linear-gradient(90deg, rgba(255, 1, 7, 1), rgba(255, 85, 66, 0.9));
  color: #fff;
  border: 0;
}

.badge.upcoming {
  color: var(--primary-soft);
  border-color: rgba(85, 141, 255, 0.45);
  background: rgba(85, 141, 255, 0.08);
}

.badge.neutral {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.03);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: pulse 1.6s infinite;
}

.danger-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger-solid);
  box-shadow: 0 0 0 0 rgba(255, 1, 7, 0.55);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 1, 7, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 1, 7, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 1, 7, 0);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--space-md) * 2);
  min-height: 340px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.08), rgba(6, 11, 20, 0.7)),
    linear-gradient(130deg, rgba(11, 31, 57, 0.92), rgba(8, 11, 17, 0.78) 48%, rgba(8, 44, 69, 0.76));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: auto -10% -36% -10%;
  height: 56%;
  background: radial-gradient(circle at center, rgba(74, 222, 128, 0.35), transparent 46%);
}

.hero::after {
  top: -20%;
  right: -6%;
  width: 48%;
  height: 70%;
  background: radial-gradient(circle at center, rgba(88, 179, 255, 0.32), transparent 54%);
}

.hero.hero-arena {
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.16), rgba(6, 11, 20, 0.78)),
    radial-gradient(circle at top center, rgba(125, 211, 252, 0.38), transparent 30%),
    linear-gradient(140deg, #0b192c 0%, #0e1e33 30%, #071019 60%, #061722 100%);
}

.hero.hero-pitch {
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.12), rgba(6, 11, 20, 0.78)),
    radial-gradient(circle at top center, rgba(186, 230, 253, 0.36), transparent 32%),
    linear-gradient(160deg, #0d2133 0%, #112739 26%, #0b1720 54%, #091a1d 100%);
}

.hero.hero-settings {
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.18), rgba(6, 11, 20, 0.8)),
    radial-gradient(circle at top right, rgba(85, 141, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #111827 0%, #0f1724 55%, #09111f 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  height: 100%;
  align-items: end;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.hero-copy p {
  margin: var(--space-md) 0 0;
  max-width: 620px;
  color: var(--text-soft);
  font-size: var(--font-body-md);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0 var(--space-md);
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(90deg, #729fff, var(--primary));
  color: #081121;
  font-weight: 700;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.btn-reminder.is-active {
  background: rgba(85, 141, 255, 0.12);
  border-color: rgba(85, 141, 255, 0.4);
  color: var(--primary-soft);
}

.btn-reminder[disabled] {
  opacity: 0.72;
  cursor: wait;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 240px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 24, 32, 0.96);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-success {
  border-color: rgba(32, 201, 151, 0.35);
}

.hero-score {
  min-width: 260px;
  padding: var(--space-md);
}

.home-hero {
  min-height: 356px;
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.2fr) 320px;
  align-items: center;
}

.home-hero .hero-copy {
  max-width: 680px;
}

.home-hero .hero-title {
  max-width: 12ch;
}

.home-hero .hero-copy p {
  max-width: 560px;
}

.home-hero .hero-score {
  align-self: center;
  min-width: 320px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(29, 32, 38, 0.72), rgba(16, 20, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero .score-strip {
  justify-content: space-between;
}

.home-hero .score-team {
  flex: 1 1 0;
}

.home-hero .hero-note {
  align-items: center;
}

.score-strip {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.score-team {
  display: grid;
  gap: var(--space-xs);
  text-align: center;
}

.score-team small {
  color: var(--text-dim);
  font-size: var(--font-label-caps);
}

.score-value {
  font-size: var(--font-score-data);
  line-height: 1;
  letter-spacing: 0.05em;
  color: #fff;
}

.vs-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-body-md);
  font-weight: 700;
}

.hero-note {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--font-chat-msg);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(29, 32, 38, 0.96), rgba(19, 22, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.match-card {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-md);
  min-height: 220px;
}

.match-card.featured {
  min-height: 244px;
}

.match-card-media {
  position: relative;
  min-height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 11, 17, 0.15), rgba(8, 11, 17, 0.86)),
    radial-gradient(circle at top center, rgba(186, 230, 253, 0.34), transparent 25%),
    linear-gradient(160deg, #13314e 0%, #16273a 40%, #102030 72%, #09111f 100%);
}

.match-card-media.esports {
  background:
    linear-gradient(180deg, rgba(8, 11, 17, 0.15), rgba(8, 11, 17, 0.86)),
    radial-gradient(circle at center, rgba(255, 0, 153, 0.26), transparent 28%),
    linear-gradient(145deg, #1c173a 0%, #261e54 28%, #171d33 56%, #0b1020 100%);
}

.match-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(8, 11, 17, 0.86));
}

.match-card-badges {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: var(--font-label-caps);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-card-body {
  display: grid;
  gap: var(--space-sm);
}

.meta-row,
.teams-row,
.list-item,
.news-row,
.setting-row,
.rail-message-head,
.calendar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.meta-row {
  font-size: var(--font-label-caps);
  color: var(--text-dim);
}

.teams-row {
  align-items: center;
}

.team {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.team-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(40, 55, 78, 1), rgba(13, 18, 31, 1));
  color: transparent;
  font-size: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-logo.away {
  color: #ffd7d1;
}

.team strong {
  display: block;
  font-size: var(--font-body-md);
}

.team small {
  display: block;
  color: var(--text-dim);
  font-size: var(--font-label-caps);
}

.team-score {
  text-align: center;
  min-width: 96px;
}

.team-score strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-score-data);
  line-height: 1;
  letter-spacing: 0.05em;
}

.team-score small {
  display: block;
  color: var(--danger);
  font-size: var(--font-label-caps);
  margin-top: var(--space-xs);
}

.overlay-cta {
  margin-top: var(--space-xs);
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(72px, 1fr));
  gap: var(--space-sm);
}

.calendar-day {
  display: grid;
  place-items: center;
  gap: var(--space-xs);
  height: 92px;
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-day strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-headline-lg);
  line-height: 1.2;
  color: var(--text);
}

.calendar-day small {
  font-size: var(--font-label-caps);
  color: var(--text-dim);
}

.calendar-day.is-active {
  background: linear-gradient(180deg, rgba(114, 159, 255, 0.92), rgba(85, 141, 255, 0.88));
  color: #081121;
}

.calendar-day.is-active strong,
.calendar-day.is-active small {
  color: #081121;
}

.timeline-list,
.news-list,
.settings-list,
.message-list,
.league-list {
  display: grid;
  gap: var(--space-sm);
  align-content: start;
}

.list-item {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.list-time {
  min-width: 94px;
  text-align: center;
}

.list-time strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-score-data);
  line-height: 1;
  color: var(--primary-soft);
}

.list-time small {
  display: block;
  margin-top: var(--space-xs);
  color: var(--text-dim);
  font-size: var(--font-label-caps);
}

.list-main {
  flex: 1;
  display: grid;
  gap: var(--space-sm);
}

.list-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: var(--space-md);
}

.schedule-layout {
  display: grid;
  gap: var(--space-lg);
}

.schedule-topbar {
  width: min(100%, var(--app-frame-width));
  margin: 0 auto;
}

.schedule-overview {
  display: grid;
  gap: var(--space-lg);
  min-height: auto;
  padding: 0;
  min-height: 0;
}

.schedule-shell > .content {
  padding-right: calc(var(--space-md) + var(--space-xs));
}

.schedule-shell > .rail.schedule-rail {
  top: 88px;
  height: fit-content;
  min-height: 0;
  padding: 0 var(--space-md) 0 0;
  background: transparent;
  border-left: 0;
  align-content: start;
  grid-template-rows: auto auto auto;
}

.schedule-overview > * {
  position: relative;
  z-index: 1;
}

.schedule-hero-head {
  padding: calc(var(--space-md) * 2) calc(var(--space-md) * 2) 0;
}

.schedule-header {
  align-items: start;
  margin-bottom: 0;
}

.schedule-header > :first-child {
  max-width: 620px;
}

.schedule-header .page-subtitle {
  max-width: 560px;
}

.schedule-calendar-strip {
  padding: 0 calc(var(--space-md) * 2) calc(var(--space-md) * 2);
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.schedule-calendar-strip .calendar-day {
  height: 104px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.schedule-live,
.schedule-upcoming {
  margin-bottom: 0;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(24, 27, 34, 0.9), rgba(15, 18, 25, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.schedule-live .section-head,
.schedule-upcoming .section-head {
  margin-bottom: 12px;
}

.schedule-live .grid.cols-2 {
  gap: 14px;
}

.schedule-live .match-card {
  min-height: 204px;
}

.schedule-live .teams-row {
  align-items: center;
}

.schedule-upcoming .schedule-timeline {
  gap: 12px;
}

.schedule-upcoming .list-item {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
}

.schedule-upcoming .list-main {
  gap: 10px;
}

.schedule-upcoming .team-score {
  min-width: 72px;
}

.schedule-upcoming .list-actions {
  justify-content: flex-end;
}

.schedule-rail .tabs {
  margin-bottom: 0;
}

.schedule-rail .prediction-card,
.schedule-rail .message,
.schedule-rail .chat-input,
.schedule-rail .tabs {
  background: linear-gradient(180deg, rgba(29, 32, 38, 0.96), rgba(18, 21, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-rail .prediction-card {
  min-height: 152px;
}

.schedule-rail .message-list {
  gap: 12px;
}

.schedule-rail .chat-input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.league-layout {
  display: grid;
  gap: var(--space-lg);
}

.home-layout {
  display: grid;
  gap: var(--space-lg);
}

.match-layout {
  display: grid;
  gap: var(--space-lg);
}

.rail {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  padding: var(--space-md);
  background: rgba(20, 23, 30, 0.92);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-md);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  padding: var(--space-xs);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: center;
  padding: calc(var(--space-sm) + var(--space-xs));
  border-radius: var(--radius);
  color: var(--text-dim);
  font-family: "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--font-label-caps);
  cursor: pointer;
}

.tab.is-active {
  color: var(--text);
  background: rgba(85, 141, 255, 0.18);
}

.prediction-card,
.message,
.news-card,
.league-card,
.settings-card,
.stat-card {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(29, 32, 38, 0.96), rgba(18, 21, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.grow-1 {
  flex: 1;
  min-width: 0;
}

.progress-group {
  display: grid;
  gap: var(--space-sm);
}

.progress-item {
  display: grid;
  gap: var(--space-xs);
}

.progress-item .top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--font-label-caps);
  color: var(--text-soft);
}

.progress-bar {
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: #0b0e14;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(114, 159, 255, 0.9), rgba(85, 141, 255, 0.55));
}

.progress-bar.red span {
  background: linear-gradient(90deg, rgba(255, 85, 66, 0.9), rgba(255, 1, 7, 0.5));
}

.message {
  display: grid;
  gap: var(--space-sm);
}

.message small,
.subtle {
  color: var(--text-dim);
}

.message p,
.news-card p,
.league-card p,
.settings-copy p,
.stat-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-chat-msg);
  line-height: 1.4;
}

.reaction-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.reaction {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: var(--font-label-caps);
}

.chat-input {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: calc(var(--space-sm) + var(--space-xs)) var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(8, 11, 17, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-md);
}

.video-stage {
  min-height: 460px;
  padding: var(--space-lg);
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(6, 11, 20, 0.16), rgba(6, 11, 20, 0.72)),
    radial-gradient(circle at top center, rgba(186, 230, 253, 0.36), transparent 30%),
    linear-gradient(160deg, #14273d 0%, #11283d 32%, #122333 56%, #0a1620 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.video-player-frame {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-player-actions {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
}

.video-meta-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-sm);
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 18, 0.9);
  backdrop-filter: blur(14px);
}

.video-stage::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 54%;
  background: radial-gradient(circle at center, rgba(74, 222, 128, 0.34), transparent 42%);
  z-index: 0;
  pointer-events: none;
}

.live-player-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #05070c;
}

.live-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #05070c;
}

.live-player-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(8, 11, 17, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: var(--font-chat-msg);
  text-align: center;
  backdrop-filter: blur(8px);
}

.live-player-status.is-error {
  color: var(--error);
}

.live-player-shell.is-ready .live-player-status {
  display: none;
}

.video-line-switcher {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.line-chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  background: rgba(10, 16, 24, 0.82);
  color: var(--text-dim);
  padding: 6px 10px;
  font-size: var(--font-label-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.line-chip:hover,
.line-chip.is-active {
  color: var(--text);
  border-color: rgba(85, 141, 255, 0.4);
  background: rgba(85, 141, 255, 0.18);
}

.video-top,
.video-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.video-bottom {
  position: relative;
  align-items: end;
}

.video-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-meta-panel .metric-card {
  min-width: 148px;
  margin-left: auto;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
}

.video-meta-panel .eyebrow {
  margin-bottom: 2px;
}

.video-meta-panel .page-title {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.video-meta-panel .metric-value {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.daily-popup-modal[hidden] {
  display: none !important;
}

.daily-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.daily-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.72);
  backdrop-filter: blur(8px);
}

.daily-popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 24px;
  background: linear-gradient(180deg, rgba(23, 28, 37, 0.98), rgba(15, 19, 26, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.daily-popup-title {
  margin: 8px 0 12px;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
}

.daily-popup-content {
  display: grid;
  gap: 10px;
  color: var(--text-dim);
}

.daily-popup-content p {
  margin: 0;
}

.daily-popup-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.daily-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.video-scoreboard {
  position: relative;
  z-index: 1;
  margin-top: var(--space-md);
  padding: var(--space-lg);
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.player {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.player-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  background: rgba(85, 141, 255, 0.12);
  color: var(--primary-soft);
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-body-md);
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.stat-card strong,
.settings-card strong,
.league-card strong,
.news-card strong {
  display: block;
  font-size: var(--font-body-md);
  margin-bottom: var(--space-xs);
}

.score-mini {
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-score-data);
}

.league-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  gap: var(--space-md);
}

.side-stack {
  display: grid;
  gap: var(--space-md);
}

.league-card {
  min-height: 156px;
}

.match-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm);
}

.mini-match {
  padding: calc(var(--space-sm) + var(--space-xs)) var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-match .thumb {
  height: 104px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  background:
    linear-gradient(180deg, rgba(8, 11, 17, 0.1), rgba(8, 11, 17, 0.74)),
    radial-gradient(circle at top center, rgba(186, 230, 253, 0.32), transparent 24%),
    linear-gradient(160deg, #17324f 0%, #13273f 46%, #0b1620 100%);
}

.mini-match.live .thumb {
  background:
    linear-gradient(180deg, rgba(8, 11, 17, 0.1), rgba(8, 11, 17, 0.74)),
    radial-gradient(circle at top center, rgba(255, 214, 102, 0.22), transparent 20%),
    linear-gradient(160deg, #29425f 0%, #182b40 46%, #0b1620 100%);
}

.news-row {
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.news-thumb {
  width: 92px;
  height: 58px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(85, 141, 255, 0.22), rgba(10, 15, 23, 0.9)),
    linear-gradient(180deg, #1b2430 0%, #0f1722 100%);
}

.settings-layout {
  width: min(100%, var(--content-max));
  max-width: none;
}

.settings-card {
  display: grid;
  gap: var(--space-md);
}

.settings-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.settings-grid {
  display: grid;
  gap: var(--space-md);
}

.field-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: center;
}

.avatar-large {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(85, 141, 255, 0.82), rgba(15, 25, 42, 1));
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-headline-lg);
  font-weight: 700;
}

.field-row {
  display: grid;
  gap: var(--space-sm);
}

.field-row label {
  font-size: var(--font-label-caps);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Barlow Condensed", sans-serif;
}

.field-row input,
.field-row textarea,
.field-row select {
  width: 100%;
  min-height: 46px;
  padding: calc(var(--space-sm) + var(--space-xs)) var(--space-md);
  color: var(--text);
  background: rgba(8, 11, 17, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  outline: 0;
}

.field-row textarea {
  min-height: 92px;
  resize: vertical;
}

.setting-row {
  padding: calc(var(--space-sm) + var(--space-xs)) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.setting-copy strong {
  display: block;
  margin-bottom: var(--space-xs);
}

.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.status-note {
  margin: 0;
  color: var(--text-dim);
  font-size: var(--font-body-sm);
}

.status-note.is-error {
  color: var(--danger);
}

.status-note.is-success {
  color: var(--success);
}

.auth-page {
  background:
    radial-gradient(circle at top left, rgba(85, 141, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(76, 195, 247, 0.16), transparent 28%),
    linear-gradient(180deg, #090d14, #0f141d 38%, #080b11);
}

.auth-shell {
  width: 100%;
  max-width: none;
}

.auth-main {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: var(--space-xl);
}

.auth-grid {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 460px);
  gap: var(--space-xl);
  align-items: stretch;
}

.auth-side,
.auth-card {
  min-height: 100%;
}

.auth-feature-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.auth-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: rgba(15, 19, 27, 0.92);
}

.auth-form {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.auth-actions {
  justify-content: stretch;
}

.auth-actions .btn {
  flex: 1 1 0;
  justify-content: center;
}

.settings-guest {
  display: grid;
  gap: var(--space-lg);
}

.settings-guest .hero-actions {
  flex-wrap: wrap;
}

.avatar.is-guest {
  width: auto;
  min-width: 72px;
  padding: 0 var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--font-label-caps);
}

.bottom-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(19, 22, 28, 0.9);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: auto;
  max-width: min(calc(100% - 24px), 420px);
  margin: 0 auto;
}

.bottom-link {
  display: grid;
  place-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-xl);
  color: var(--text-dim);
  font-size: var(--font-label-caps);
}

.ml-auto {
  margin-left: auto;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.metric-card {
  padding: var(--space-md);
}

.metric-value {
  font-family: "Barlow Condensed", sans-serif;
  font-size: var(--font-headline-lg);
  line-height: 1.2;
}

.headline-display {
  margin: 0;
}

.hero-copy-layer {
  position: relative;
  z-index: 1;
}

.section-head-tight {
  margin-bottom: 0;
}

.mobile-comment-head {
  display: none;
}

.progress-15 {
  width: 15%;
}

.progress-18 {
  width: 18%;
}

.progress-20 {
  width: 20%;
}

.progress-62 {
  width: 62%;
}

.progress-65 {
  width: 65%;
}

.bottom-link.is-active {
  color: var(--primary-soft);
  background: rgba(85, 141, 255, 0.12);
}

.muted {
  color: var(--text-dim);
}

.text-danger {
  color: var(--danger);
}

.text-primary {
  color: var(--primary-soft);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 1920px) {
  .topbar-inner {
    display: grid;
    grid-template-columns: var(--sidebar-width) var(--main-column-width) var(--right-rail-width);
    gap: 0;
    padding: 0;
  }

  .topbar-left {
    grid-column: 1 / 3;
    justify-self: start;
    padding-left: var(--space-lg);
  }

  .topbar-right {
    grid-column: 3;
    justify-self: end;
    padding-right: var(--space-lg);
  }

  .app-layout {
    grid-template-columns: var(--sidebar-width) var(--main-column-width) var(--right-rail-width);
  }

  .app-layout > .rail {
    grid-column: 3;
  }

  .app-layout:not(.with-rail) > .content,
  .home-shell > .content {
    grid-column: 2 / 4;
  }

  .schedule-shell {
    grid-template-columns: var(--sidebar-width) var(--main-column-width) var(--right-rail-width);
  }

  .content {
    padding: var(--space-xl);
  }

  .content-inner,
  .content-inner.wide,
  .settings-layout {
    width: var(--content-max);
    flex: 0 0 var(--content-max);
    margin: 0 auto;
  }

  .app-layout:not(.with-rail) .content-inner,
  .app-layout:not(.with-rail) .content-inner.wide,
  .app-layout:not(.with-rail) .settings-layout,
  .home-shell .content-inner,
  .home-shell .content-inner.wide {
    width: calc(var(--main-column-width) + var(--right-rail-width) - (var(--space-xl) * 2));
    flex: 0 0 calc(var(--main-column-width) + var(--right-rail-width) - (var(--space-xl) * 2));
  }

  .hero {
    min-height: var(--hero-desktop-height);
  }

  .hero.hero-settings {
    min-height: var(--hero-compact-height);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: stretch;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-score {
    min-width: 292px;
    align-self: end;
  }

  .grid.cols-2,
  .grid.cols-4,
  .stats-grid,
  .match-row,
  .league-hero {
    align-items: stretch;
  }

  .with-rail .split-layout {
    grid-template-columns: 1fr;
  }

  .schedule-layout {
    gap: 20px;
  }

  .schedule-overview {
    min-height: 292px;
    gap: 24px;
  }

  .schedule-hero-head {
    padding: 32px 32px 0;
  }

  .schedule-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 112px;
    align-items: start;
  }

  .schedule-calendar-strip {
    padding: 0 32px 32px;
    gap: 14px;
  }

  .schedule-calendar-strip .calendar-day {
    height: 116px;
  }

  .schedule-live .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-live .match-card {
    min-height: 188px;
  }

  .schedule-live .teams-row {
    align-items: center;
  }

  .timeline-list.schedule-timeline {
    gap: 12px;
  }

  .timeline-list.schedule-timeline .list-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 300px;
    align-items: center;
    min-height: 84px;
    padding: 14px var(--space-md);
  }

  .timeline-list.schedule-timeline .list-main {
    min-width: 0;
  }

  .timeline-list.schedule-timeline .teams-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }

  .timeline-list.schedule-timeline .team {
    min-width: 0;
  }

  .timeline-list.schedule-timeline .team strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .timeline-list.schedule-timeline .team small {
    display: none;
  }

  .timeline-list.schedule-timeline .team-score {
    min-width: 60px;
    text-align: center;
  }

  .timeline-list.schedule-timeline .team:last-child {
    justify-content: flex-end;
    text-align: right;
  }

  .timeline-list.schedule-timeline .list-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .timeline-list.schedule-timeline .btn {
    min-width: 132px;
    white-space: nowrap;
  }

  .rail.schedule-rail {
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  .schedule-shell > .rail.schedule-rail {
    padding-left: 4px;
  }

  .rail.schedule-rail .stack {
    gap: 12px;
    align-content: start;
  }

  .rail.schedule-rail .prediction-card {
    min-height: 142px;
  }

  .rail.schedule-rail .message-list {
    gap: 12px;
  }

  .rail.schedule-rail .message {
    min-height: 0;
  }

  .home-layout {
    gap: 20px;
  }

  .home-layout > .section {
    margin-bottom: 0;
  }

  .home-hero {
    min-height: 388px;
  }

  .home-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 304px;
  }

  .home-live .grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-live .match-card.featured {
    min-height: 296px;
  }

  .home-news .grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .home-news .news-card {
    min-height: 184px;
  }

  .league-layout {
    gap: 20px;
  }

  .league-layout > .section {
    margin-bottom: 0;
  }

  .league-page-hero {
    grid-template-columns: minmax(0, 1fr) 292px;
    align-items: stretch;
    gap: var(--space-md);
  }

  .league-page-hero .hero {
    min-height: 228px;
  }

  .league-page-hero .hero-copy {
    max-width: 600px;
  }

  .league-page-hero .side-stack {
    display: grid;
    gap: 12px;
  }

  .league-page-hero .stat-card {
    min-height: 108px;
  }

  .league-featured .match-row,
  .league-directory .grid.cols-4 {
    gap: 14px;
  }

  .league-featured .mini-match {
    min-height: 122px;
    padding: 14px;
  }

  .league-featured .mini-match strong,
  .league-directory .league-card strong {
    font-size: 18px;
    line-height: 1.15;
  }

  .league-directory .league-card {
    min-height: 116px;
  }

  .league-news .news-list {
    gap: 12px;
  }

  .league-news .news-row {
    min-height: 88px;
    align-items: center;
  }

  .match-layout {
    gap: 20px;
  }

  .match-layout > .section {
    margin-bottom: 0;
  }

  .match-detail {
    grid-template-columns: minmax(0, 1fr) 276px;
    align-items: start;
  }

  .match-main,
  .match-summary {
    gap: 12px;
  }

  .match-detail .video-stage {
    min-height: 468px;
  }

  .match-detail .video-scoreboard {
    margin-top: 12px;
    padding: 18px 20px;
  }

  .match-detail .stats-grid {
    gap: 12px;
  }

  .match-detail .stat-card {
    min-height: 132px;
  }

  .match-summary .stat-card:last-child {
    min-height: 142px;
  }

  .rail.match-rail {
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  .rail.match-rail .message-list {
    gap: 12px;
    align-content: start;
  }

  .timeline-list .list-item {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) auto;
    align-items: center;
  }

  .timeline-list .teams-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .timeline-list .team {
    min-width: 120px;
  }

  .timeline-list .team strong {
    font-size: var(--font-chat-msg);
    line-height: 1.25;
  }

  .timeline-list .team small {
    display: none;
  }

  .timeline-list .team-score {
    min-width: 56px;
  }

  .timeline-list .list-actions {
    justify-content: flex-end;
  }

  .timeline-list .team:last-child {
    justify-content: flex-end;
    text-align: right;
  }


  .grid.cols-2 > *,
  .grid.cols-4 > *,
  .stats-grid > *,
  .match-row > * {
    height: 100%;
  }

  .match-card {
    min-height: var(--match-card-height);
  }

  .match-card.featured {
    min-height: var(--match-card-featured-height);
  }

  .news-card {
    min-height: var(--news-card-height);
  }

  .league-card {
    min-height: var(--league-card-height);
  }

  .mini-match {
    min-height: var(--mini-match-height);
  }

  .stat-card {
    min-height: var(--stat-card-height);
  }

  .video-stage {
    min-height: var(--video-stage-height);
  }
}

@media (max-width: 1220px) and (min-width: 1025px) {
  .app-layout,
  .with-rail {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .app-layout > .content,
  .with-rail > .content,
  .with-rail > .rail {
    grid-column: 2;
  }

  .rail {
    position: static;
    height: auto;
    min-height: unset;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .league-hero {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero .hero-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .schedule-shell > .content {
    padding-right: var(--space-xl);
  }

  .schedule-shell > .rail.schedule-rail {
    padding: 0;
  }
}

@media (max-width: 1480px) and (min-width: 1025px) {
  .schedule-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .schedule-shell > .content,
  .schedule-shell > .rail.schedule-rail {
    grid-column: 2;
  }

  .schedule-shell > .content {
    padding-right: var(--space-xl);
  }

  .schedule-shell > .rail.schedule-rail {
    position: static;
    top: auto;
    height: auto;
    padding: 0 var(--space-xl) 0 0;
    margin-top: calc(var(--space-sm) * -1);
  }

  .schedule-layout {
    gap: 18px;
  }

  .schedule-live,
  .schedule-upcoming {
    padding: 18px;
  }

  .schedule-live .grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .timeline-list.schedule-timeline .list-item {
    grid-template-columns: 94px minmax(0, 1fr) auto;
    padding: 14px;
  }

  .timeline-list.schedule-timeline .list-actions {
    flex-wrap: wrap;
  }

  .timeline-list.schedule-timeline .btn {
    min-width: 116px;
  }

  .rail.schedule-rail .stack,
  .rail.schedule-rail .message-list {
    gap: 12px;
  }
}

@media (max-width: 1024px) {
  .app-layout,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .with-rail {
    grid-template-columns: 1fr;
  }

  .app-layout > .content,
  .with-rail > .content,
  .with-rail > .rail {
    grid-column: 1 / -1;
  }

  .sidebar {
    display: none;
  }

  .rail {
    position: static;
    top: auto;
    height: auto;
    min-height: 0;
    padding: var(--space-md);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    grid-template-rows: auto auto auto;
  }

  .schedule-shell > .content,
  .schedule-shell > .rail.schedule-rail {
    padding-right: 0;
  }

  .content {
    padding: var(--space-lg) var(--space-md) 92px;
  }

  .topbar {
    height: 64px;
    padding: 0;
  }

  .topbar-inner {
    padding: 0 var(--space-md);
    gap: var(--space-md);
  }

  .topbar-nav,
  .search {
    display: none;
  }

  .topbar-left {
    min-width: 0;
    flex: 1;
    gap: var(--space-md);
  }

  .topbar-right {
    flex-shrink: 0;
  }

  .brand {
    max-width: 172px;
  }

  .brand-mark {
    height: 34px;
  }

  .hero-grid,
  .grid.cols-4,
  .grid.cols-3,
  .player-grid,
  .stats-grid,
  .match-row {
    grid-template-columns: 1fr;
  }

  .grid.cols-2,
  .calendar-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title,
  .page-title,
  .headline-display {
    font-size: var(--font-headline-lg);
  }

  .split-layout,
  .schedule-layout,
  .home-layout,
  .league-layout,
  .match-layout {
    gap: var(--space-md);
  }

  .league-hero {
    grid-template-columns: 1fr;
  }

  .match-detail {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .home-hero .hero-score {
    min-width: 0;
  }

  .schedule-live,
  .schedule-upcoming {
    padding: var(--space-md);
  }

  .schedule-shell > .rail.schedule-rail {
    margin-top: calc(var(--space-sm) * -1);
  }

  .video-stage {
    min-height: 400px;
  }

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 720px) {
  .notification-panel {
    right: 0;
    left: auto;
    width: min(360px, calc(100vw - 24px));
    padding: 12px;
  }

  .toast-stack {
    right: 12px;
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px) + 72px);
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .page-header,
  .section-head,
  .list-item,
  .hero-note,
  .field-grid,
  .news-row,
  .calendar-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid.cols-2,
  .calendar-strip {
    grid-template-columns: 1fr;
  }

  .hero,
  .video-stage {
    padding: var(--space-md);
  }

  .content {
    padding: var(--space-md) var(--space-sm) calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    height: 60px;
  }

  .topbar-inner {
    padding: 0 var(--space-sm);
    gap: var(--space-sm);
  }

  .topbar-left,
  .topbar-right {
    gap: var(--space-sm);
  }

  .brand {
    max-width: 148px;
  }

  .brand-mark {
    height: 30px;
  }

  .icon-btn,
  .avatar {
    width: 38px;
    height: 38px;
  }

  .hero-score {
    min-width: 100%;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .league-page-hero,
  .league-hero {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .mobile-comment-head {
    display: flex;
    margin-bottom: 0;
    padding: 0 var(--space-xs);
  }

  .home-hero .hero-score {
    padding: var(--space-md);
  }

  .hero-copy,
  .hero-copy p,
  .schedule-header > :first-child {
    max-width: none;
  }

  .hero-note {
    gap: var(--space-sm);
  }

  .hero-actions,
  .section-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .overlay-cta .btn {
    width: 100%;
  }

  .match-card-badges {
    top: var(--space-sm);
    left: var(--space-sm);
    right: var(--space-sm);
    flex-wrap: wrap;
  }

  .stat-pill,
  .badge,
  .chip {
    max-width: 100%;
  }

  .list-time {
    min-width: 0;
    text-align: left;
  }

  .teams-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-score {
    text-align: left;
  }

  .team,
  .team:last-child {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .list-actions {
    width: 100%;
  }

  .list-actions .btn {
    flex: 1 1 calc(50% - var(--space-sm));
  }

  .schedule-calendar-strip,
  .schedule-hero-head {
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-bottom: var(--space-md);
  }

  .schedule-live,
  .schedule-upcoming {
    border-radius: var(--radius-md);
  }

  .schedule-calendar-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-day {
    height: 84px;
  }

  .rail {
    padding: var(--space-sm);
    gap: var(--space-sm);
  }

  .schedule-shell > .rail.schedule-rail {
    margin-top: 0;
  }

  .rail.schedule-rail,
  .rail.match-rail {
    padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px));
    background: transparent;
    border-top: 0;
  }

  .rail.schedule-rail .tabs,
  .rail.match-rail .section-head {
    padding: 12px;
    background: linear-gradient(180deg, rgba(29, 32, 38, 0.96), rgba(18, 21, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
  }

  .rail.schedule-rail .stack,
  .rail.match-rail {
    gap: 12px;
  }

  .rail.schedule-rail [data-schedule-panel],
  .rail.match-rail .message-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .rail.schedule-rail [data-schedule-panel="chat"],
  .rail.match-rail .message-list {
    padding: 12px 12px 88px;
    background: linear-gradient(180deg, rgba(29, 32, 38, 0.96), rgba(18, 21, 28, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
  }

  .rail.schedule-rail .prediction-card {
    padding: 12px 12px 88px;
  }

  .rail.schedule-rail .chat-input,
  .rail.match-rail .chat-input {
    position: sticky;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px) + 72px);
    z-index: 8;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: var(--radius-xl);
    background: rgba(10, 14, 21, 0.96);
    border: 1px solid rgba(85, 141, 255, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  }

  .rail.schedule-rail .chat-input input,
  .rail.match-rail .chat-input input {
    min-height: 24px;
  }

  .rail .message-list,
  .rail .stack {
    gap: var(--space-sm);
  }

  .chat-input {
    padding: 10px 12px;
  }

  .chat-input .icon-btn {
    flex: 0 0 38px;
  }

  .video-stage {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .video-meta-panel {
    padding: var(--space-md);
  }

  .video-top,
  .video-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-bottom {
    margin-top: auto;
  }

  .video-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .video-player-actions {
    top: 10px;
    right: 10px;
  }

  .video-meta-panel .metric-card {
    width: 100%;
    margin-left: 0;
  }

  .video-scoreboard {
    padding: var(--space-md);
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .avatar-large {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .settings-card,
  .stat-card,
  .prediction-card,
  .message,
  .news-card,
  .league-card {
    padding: 12px;
  }

  .news-thumb {
    width: 100%;
    height: 120px;
  }

  .mini-match {
    padding: 12px;
  }

  .mini-match .thumb {
    height: 92px;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions .btn {
    width: 100%;
  }

  .auth-main {
    padding: var(--space-md);
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: var(--space-lg);
  }

  .bottom-nav {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    padding: 6px;
    gap: 2px;
    min-height: 68px;
  }

  .bottom-link {
    min-height: 56px;
    padding: 8px 4px;
  }

  .bottom-link .material-symbols-outlined {
    font-size: 22px;
  }

  .section-title,
  .hero-title,
  .page-title,
  .headline-display {
    font-size: var(--font-headline-lg-mobile);
    line-height: 1.2;
  }

  .score-value,
  .team-score strong,
  .list-time strong,
  .score-mini {
    font-size: var(--font-score-data);
  }
}

@media (max-width: 420px) {
  .notification-panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .btn,
  .chat-input,
  .field-row input,
  .field-row textarea,
  .field-row select {
    border-radius: var(--radius-md);
  }

  .match-card,
  .card,
  .hero,
  .video-stage,
  .settings-card,
  .stat-card {
    border-radius: var(--radius-lg);
  }

  .list-actions .btn {
    flex-basis: 100%;
  }

  .rail.schedule-rail .chat-input,
  .rail.match-rail .chat-input {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px) + 68px);
    padding: 10px;
  }

  .rail.schedule-rail,
  .rail.match-rail {
    padding-bottom: calc(144px + env(safe-area-inset-bottom, 0px));
  }

  .home-hero .hero-score {
    padding: 12px;
  }

  .schedule-live,
  .schedule-upcoming {
    padding: 12px;
  }

  .notification-actions .btn,
  .hero-actions .btn,
  .section-actions .btn {
    width: 100%;
  }

  .daily-popup-card {
    padding: 22px 16px 16px;
  }

  .daily-popup-actions .btn {
    width: 100%;
  }
}
