:root {
  --bg: #07111f;
  --surface: rgba(9, 18, 34, 0.88);
  --surface-2: rgba(15, 28, 50, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #edf4fb;
  --muted: #8ea0bc;
  --accent: #7ef0b4;
  --accent-2: #57b8ff;
  --warn: #ffbf69;
  --danger: #ff6f91;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(87, 184, 255, 0.18), transparent 30%),
    radial-gradient(circle at right 20%, rgba(126, 240, 180, 0.14), transparent 26%),
    linear-gradient(180deg, #09111d 0%, #07111f 100%);
}

.page-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.35;
  pointer-events: none;
}

.news-topbar,
.news-shell {
  position: relative;
  z-index: 1;
}

.news-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 20px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 12, 23, 0.78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
}

.back-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.brand-copy h1,
.hero-panel h2,
.feed-toolbar h3,
.modal-header h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.brand-copy p,
.hero-text,
.section-label,
.eyebrow,
.meta-line,
.feed-empty,
.player-sub,
.profile-sub,
.card-kicker {
  color: var(--muted);
}

.brand-copy p {
  margin: 6px 0 0;
  max-width: 70ch;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  margin: 0 0 8px;
}

.top-stats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.news-header-actions {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  flex-wrap: wrap;
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 0;
  border-radius: 999px;
  padding: 0 16px;
  font-weight: 700;
}

.header-action-btn .action-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-action-btn .action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-action-btn .action-label {
  white-space: nowrap;
}

.pill {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  font-size: 0.92rem;
}

.news-shell {
  width: min(1600px, calc(100% - 24px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.hero-panel,
.feed-toolbar,
.news-card,
.modal-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
}

.hero-panel h2 {
  font-size: clamp(1.6rem, 2.4vw, 3rem);
  max-width: 12ch;
}

.hero-text {
  max-width: 72ch;
  line-height: 1.6;
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.mini-btn,
.profile-link,
.player-trigger,
.story-chip,
.nav-chip {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #d4ff7f);
  color: #03131c;
}

.secondary-btn {
  background: rgba(87, 184, 255, 0.16);
  color: var(--text);
  border: 1px solid rgba(87, 184, 255, 0.34);
}

.ghost-btn {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--line);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.feed-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-chip,
.story-chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

.chip-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-chip.is-active,
.story-chip.is-active {
  background: rgba(126, 240, 180, 0.16);
  border-color: rgba(126, 240, 180, 0.34);
  color: var(--accent);
}

.news-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.news-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: min(28%, 320px) minmax(0, 1fr);
  min-height: 240px;
}

.card-media {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(87, 184, 255, 0.35), rgba(126, 240, 180, 0.25));
}

.card-media-trigger {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.match-cover-trigger {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.match-cover-trigger .match-cover {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
}

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 8, 16, 0.82) 100%);
}

.card-overlay-players {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
}

.card-overlay-players .match-mini-avatar {
  width: 24px;
  height: 24px;
}

.card-overlay-players .avatar-fallback {
  width: 24px;
  height: 24px;
  font-size: 0.62rem;
}

.type-badge,
.position-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(5, 11, 19, 0.8);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.84rem;
}

.type-badge {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}

.type-badge svg {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--accent);
}

.type-badge-history svg {
  color: #8ad9ff;
}

.type-badge-match svg {
  color: #ffbf69;
}

.type-badge-tournament svg {
  color: #7ef0b4;
}

.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;
}

.status-badge {
  color: var(--accent);
}

.card-body {
  padding: 22px 24px;
  display: grid;
  gap: 12px;
  align-content: center;
}

.card-body h4 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.card-meta,
.profile-meta,
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta {
  align-items: center;
  justify-content: space-between;
}

.card-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.avatar-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.player-trigger {
  background: transparent;
  color: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.story-avatar-trigger,
.match-mini-trigger,
.cover-avatar-trigger {
  line-height: 0;
}

.cover-avatar-trigger {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.cover-avatar-trigger .cover-avatar {
  pointer-events: none;
}

.match-participant {
  display: inline-grid;
  gap: 4px;
  justify-items: center;
  background: transparent;
  padding: 0;
}

.match-participant-name,
.match-line-name {
  cursor: pointer;
}

.avatar-row img,
.avatar-fallback,
.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  font-size: 0.75rem;
}

.match-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(87, 184, 255, 0.12), rgba(126, 240, 180, 0.08));
}

.match-team {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.match-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-line.is-reverse {
  flex-direction: row-reverse;
}

.match-line.is-winner .match-line-name {
  color: var(--accent);
  font-weight: 700;
}

.match-line-name {
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--text);
  max-width: 12ch;
  text-align: center;
}

.match-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.match-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-team-avatars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.match-player {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
}

.match-player.is-winner {
  box-shadow: 0 0 0 2px rgba(126, 240, 180, 0.22);
  border-color: rgba(126, 240, 180, 0.36);
}

.match-player img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.match-score-block {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(5, 11, 19, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
}

.match-score-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.match-score-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  color: var(--warn);
}

.match-score-value.is-friendly {
  color: #8ff6c6;
  text-shadow: 0 0 18px rgba(143, 246, 198, 0.2);
}

.match-set-value {
  font-size: 0.84rem;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

.match-cover {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(180deg, transparent 20%, rgba(4, 8, 16, 0.82) 100%);
}

.match-cover-avatars {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.cover-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
}

.cover-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-cover-trigger {
  height: 100%;
}

.tournament-cover-matchlike {
  height: 100%;
  padding: 14px;
}

.tournament-cover-podium-stack {
  gap: 14px;
}

.tournament-cover-main-trigger .cover-avatar,
.tournament-cover-runner-trigger .cover-avatar {
  width: 72px;
  height: 72px;
}

.tournament-cover-main-trigger .match-mini-avatar,
.tournament-cover-runner-trigger .match-mini-avatar,
.tournament-standings-avatar-trigger .match-mini-avatar {
  width: 34px;
  height: 34px;
}

.tournament-competitors {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tournament-competitor-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.tournament-competitor-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  line-height: 1.25;
}

.tournament-cover-podium-item .tournament-competitors {
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tournament-cover-podium-item .tournament-competitor-trigger {
  flex-direction: column;
  text-align: center;
}

.tournament-cover-podium-item .tournament-competitor-name {
  font-size: 0.9rem;
}

.tournament-avatar-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tournament-avatar-chip {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.tournament-avatar-stack-small .tournament-avatar-chip {
  width: 28px;
  height: 28px;
}

.tournament-avatar-stack-large .tournament-avatar-chip {
  width: 68px;
  height: 68px;
}

.tournament-avatar-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-cover-side {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(4, 8, 16, 0.66);
  text-align: center;
}

.tournament-cover-podium {
  gap: 14px;
  justify-items: stretch;
}

.tournament-cover-podium-item {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.tournament-cover-podium-item.is-winner {
  background: linear-gradient(145deg, rgba(255,191,105,0.2), rgba(4,8,16,0.72));
  border-color: var(--warn);
  box-shadow: 0 0 20px rgba(255,191,105,0.1);
}

.tournament-news-heading { display: grid; gap: 10px; margin-bottom: 16px; min-width: 0; }
.tournament-news-heading h4 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.25; overflow-wrap: anywhere; }
.tournament-news-heading .position-badge { justify-self: start; }
.tournament-cover-name { text-align: center; font-size: 0.95rem; line-height: 1.35; overflow-wrap: anywhere; }
.tournament-champion-icon { width: 26px; height: 26px; flex: 0 0 26px; color: var(--warn); vertical-align: middle; }
.champion-label { color: var(--warn); }
.tournament-cover-rank.champion-label { align-items: center; gap: 7px; font-weight: 800; }
.tournament-standings-row.is-winner { padding: 12px 10px; border: 1px solid rgba(255,191,105,0.6); border-radius: 12px; background: rgba(255,191,105,0.08); }
.tournament-standings-row.is-winner .tournament-name-head strong { color: var(--warn); font-size: 1.08rem; }
.tournament-place .tournament-champion-icon { display: block; margin-bottom: 4px; }

.tournament-cover-podium-item.is-runner {
  background: linear-gradient(145deg, rgba(126,240,180,0.08), rgba(4,8,16,0.72));
}

.tournament-cover-podium-stack .tournament-cover-podium-item {
  width: 100%;
}

.tournament-cover-side strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.15;
}

.tournament-cover-side span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.tournament-cover-rank {
  display: inline-flex;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warn);
}

.tournament-cover-divider {
  display: none;
}

.tournament-standings {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.tournament-standings-head,
.tournament-standings-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.4fr) minmax(160px, 0.9fr);
  gap: 10px;
  align-items: center;
}

.tournament-standings-head {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.tournament-standings-row {
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tournament-standings-row:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.tournament-standings-row.is-winner .tournament-place {
  color: var(--warn);
}

.tournament-place {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.tournament-name {
  display: grid;
  gap: 4px;
}

.tournament-name-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tournament-name-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tournament-name strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.tournament-name span,
.detail-tournament-summary {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.tournament-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tournament-metrics span,
.detail-tournament-summary {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5, 11, 19, 0.72);
}

.tournament-metrics span {
  min-width: 0;
}

.tournament-card-summary {
  margin-bottom: 6px;
}

.detail-tournament-summary {
  display: inline-flex;
  align-items: center;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.card-actions .meta-line {
  max-width: 72ch;
  line-height: 1.5;
}

.quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quick-action-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.quick-action-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.quick-action-btn.is-active {
  border-color: rgba(126, 240, 180, 0.34);
  background: rgba(126, 240, 180, 0.14);
  color: var(--accent);
}

.quick-action-btn[data-react="love"].is-active {
  border-color: rgba(255, 111, 145, 0.42);
  background: rgba(255, 111, 145, 0.14);
  color: #ff9cb5;
}

.quick-action-btn[data-quick-comment] {
  border-style: dashed;
}

.quick-action-btn span {
  font-size: 0.82rem;
  font-weight: 700;
}

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

  .match-team { justify-items: center; text-align: center; }

  .match-line {
    gap: 8px;
  }

  .match-line-name {
    max-width: 100%;
  }

  .match-score-block {
    width: 100%;
  }

  .match-cover { align-content: center; }

.mini-btn,
.profile-link {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.feed-empty {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--line-strong);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(100%, 1280px);
  max-height: min(90vh, 920px);
  overflow: auto;
  border-radius: 28px;
  position: relative;
}

.modal-wide { padding: 22px; }
.modal-detail { padding: 18px; }
.modal-profile { padding: 18px; width: min(100%, 1180px); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-header {
  padding-right: 56px;
  margin-bottom: 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-shrink: 0;
}

.wizard-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.wizard-step.is-active {
  background: rgba(126, 240, 180, 0.16);
  border-color: rgba(126, 240, 180, 0.34);
  color: var(--accent);
}

.wizard-step.is-done {
  background: rgba(87, 184, 255, 0.16);
  border-color: rgba(87, 184, 255, 0.34);
  color: var(--accent-2);
}

.wizard-line {
  width: 24px;
  height: 1px;
  background: var(--line);
}

.wizard-form {
  display: grid;
  gap: 4px;
}

.news-help-grid {
  display: grid;
  gap: 12px;
}

.news-help-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}

.news-help-card strong {
  display: block;
  margin-bottom: 4px;
}

.news-help-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.news-help-step {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(126, 240, 180, 0.16);
  border: 1px solid rgba(126, 240, 180, 0.34);
  color: var(--accent);
  font-weight: 700;
}

.wizard-step-panel {
  display: none;
  gap: 14px;
}

.wizard-step-panel.is-active {
  display: grid;
}

.step-copy h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.step-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.wizard-step-panel .form-grid {
  margin-top: 4px;
}

.wizard-step-panel .form-actions {
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label,
.rating-row,
.detail-meta,
.profile-layout,
.history-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.form-grid label {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(2, 8, 16, 0.66);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.form-grid textarea {
  resize: vertical;
}

.full-row { grid-column: 1 / -1; }

.player-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.player-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  text-align: left;
}

.player-toggle img,
.player-toggle .fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.player-toggle input {
  margin: 0;
}

#storyPlayerSearch {
  width: 100%;
}

.rating-list,
.detail-stack,
.history-list,
.profile-layout {
  display: grid;
  gap: 12px;
}

.rating-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.rating-row > img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
  flex-shrink: 0;
}

.rating-player-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rating-player-info > strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.rating-summaries {
  display: flex;
  gap: 6px;
}

.rating-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.rating-summary span { font-size: 9px; color: var(--muted); }
.rating-summary strong { font-size: 14px; color: #03ff03; }

.rating-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.rating-option {
  min-width: 0;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font: 700 14px "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 150ms, background 150ms;
}

.rating-option:hover,
.rating-option:focus-visible { border-color: #03ff03; }
.rating-option.is-selected {
  transform: scale(1.06);
  border-color: #03ff03;
  background: #03ff03;
  color: #000;
}
.rating-option:disabled { cursor: wait; opacity: 0.7; }
.rating-status { grid-column: 1 / -1; margin: 0; }

@media (max-width: 640px) {
  .rating-player-info { gap: 6px; }
  .rating-summary { min-width: 54px; padding: 4px; }
  .rating-summary span { font-size: 8px; }
  .rating-summaries, .rating-options { gap: 4px; }
}

.story-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.gallery-main {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main.is-match-cover {
  display: grid;
  place-items: stretch;
  background: linear-gradient(145deg, rgba(87, 184, 255, 0.12), rgba(126, 240, 180, 0.08));
}

.gallery-main.is-match-cover .match-cover {
  position: relative;
  inset: auto;
  min-height: 280px;
}

.gallery-main.is-match-cover .match-cover-avatars {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.gallery-main.is-match-cover .cover-avatar {
  width: 104px;
  height: 104px;
  border-width: 3px;
}

.gallery-side,
.profile-side {
  display: grid;
  gap: 12px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gallery-thumbs .feed-empty {
  grid-column: 1 / -1;
}

.match-photo-uploader {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.match-photo-uploader .secondary-btn {
  justify-content: center;
}

.match-photo-uploader .player-sub {
  margin: 0;
}

.gallery-thumbs button {
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: none;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  opacity: 0.76;
}

.gallery-thumbs button.is-active img {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
}

.detail-meta,
.profile-layout {
  padding: 14px;
}

.detail-meta p,
.profile-layout p,
.history-item p { margin: 0; }

.story-body {
  display: grid;
  gap: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-stats-group {
  display: grid;
  gap: 10px;
}

.profile-stats-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.profile-stats-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--accent);
}

.profile-stats-icon svg,
.stat-box-label svg {
  width: 15px;
  height: 15px;
  display: block;
}

.stat-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}

.stat-box-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.2;
}

.stat-box strong {
  display: block;
  font-size: 1.4rem;
  margin-top: 4px;
}

.profile-layout {
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
}

.profile-hero {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(87, 184, 255, 0.2), rgba(126, 240, 180, 0.14));
  border: 1px solid var(--line);
}

.profile-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.profile-avatar {
  width: 84px;
  height: 84px;
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.history-item {
  padding: 12px;
  display: grid;
  gap: 4px;
}

.history-item strong {
  font-size: 0.98rem;
}

.comments-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  display: grid;
  gap: 14px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.comments-header h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
}

.comments-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  padding: 12px;
  border-radius: 16px;
  background: rgba(5, 11, 19, 0.34);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-avatar,
.comment-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-avatar-fallback {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}

.comment-meta strong,
.comment-form-author strong {
  display: block;
}

.comment-meta p,
.comment-form-author p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.comment-text {
  margin: 0;
  line-height: 1.55;
}

.comments-empty {
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.comment-form {
  display: grid;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.comment-form-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-form-author img,
.comment-form-author .comment-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.14);
}

.comment-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(2, 8, 16, 0.66);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .news-topbar,
  .hero-panel,
  .feed-toolbar,
  .profile-layout,
  .story-gallery {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    text-align: center;
    justify-content: center;
    align-items: center;
  }

  .hero-panel > div:first-child {
    width: 100%;
  }

  .hero-panel h2 {
    max-width: 18ch;
    margin: 0 auto;
    font-size: clamp(1.3rem, 4.8vw, 2.2rem);
    line-height: 1.05;
  }

  .hero-text {
    max-width: 52ch;
    margin: 10px auto 0;
  }

  .card-media {
    min-height: 100%;
  }

  .card-overlay {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
    padding: 10px;
  }

  .card-overlay-players {
    justify-content: flex-start;
    margin-left: 0;
  }

  .card-body {
    padding: 18px;
  }

  .news-topbar {
    position: static;
  }

  .hero-panel {
    flex-direction: column;
  }

  .action-stack {
    min-width: 0;
    width: 100%;
  }

  .hero-panel h2 {
    max-width: 15ch;
    font-size: clamp(1.25rem, 6vw, 1.9rem);
  }

  .hero-text {
    font-size: 0.95rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-header {
    flex-direction: column;
  }

  .wizard-progress {
    width: 100%;
    justify-content: flex-start;
  }

  .comments-panel {
    padding: 16px;
  }
}

@media (max-width: 800px) {
  .news-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .news-card > .card-media { display: none; }
  .news-card > .card-body { min-width: 0; }
}

@media (max-width: 640px) {
  .news-shell { width: min(100%, calc(100% - 18px)); }
  .feed-toolbar {
    justify-content: center;
    padding: 12px;
  }
  .feed-toolbar > div:first-child {
    display: none;
  }
  .feed-filters {
    justify-content: center;
  }
  .news-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 12px;
    align-items: center;
  }
  .brand-copy p,
  .top-stats {
    display: none;
  }
  .brand-copy h1 {
    font-size: 1.45rem;
    line-height: 1;
  }
  .news-header-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .header-action-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    overflow: hidden;
  }
  .header-action-btn .action-label {
    display: none;
  }
  .header-action-btn .action-icon {
    width: 16px;
    height: 16px;
  }
  .header-action-btn .action-icon svg,
  .chip-icon svg,
  .type-badge svg,
  .quick-action-btn svg {
    width: 16px;
    height: 16px;
  }
  .hero-panel {
    display: none;
  }
  .card-body { padding: 14px; gap: 10px; }
  .card-body h4 { font-size: 1.02rem; }
  .news-card.is-tournament > .card-body { min-width: 0; padding: 16px 12px; gap: 12px; }
  .is-tournament .tournament-news-heading { margin-bottom: 0; gap: 8px; }
  .is-tournament .tournament-news-heading h4 { font-size: clamp(1.2rem, 4.8vw, 1.5rem); line-height: 1.25; }
  .is-tournament .tournament-standings { padding: 10px; gap: 6px; border-radius: 14px; }
  .is-tournament .tournament-standings-head { display: none; }
  .is-tournament .tournament-standings-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    padding: 12px 4px;
  }
  .is-tournament .tournament-standings-row.is-winner { padding: 12px 8px; }
  .is-tournament .tournament-place { align-self: start; font-size: 0.9rem; }
  .is-tournament .tournament-name-head { gap: 8px; }
  .is-tournament .tournament-name-head strong { font-size: 0.92rem; line-height: 1.35; }
  .is-tournament .tournament-standings-row.is-winner .tournament-name-head strong { font-size: 1rem; }
  .is-tournament .tournament-name > span { font-size: 0.76rem; }
  .is-tournament .tournament-name > .champion-label { font-size: 0.78rem; letter-spacing: 0.06em; }
  .is-tournament .tournament-metrics { grid-column: 2; gap: 4px; }
  .is-tournament .tournament-metrics span { padding: 5px 7px; font-size: 0.72rem; }
  .card-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-actions .meta-line {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tournament-cover-trigger {
    overflow: hidden;
  }
  .tournament-cover-matchlike {
    padding: 8px;
  }
  .tournament-cover-podium-stack {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }
  .tournament-cover-podium-item {
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
  }
  .tournament-cover-rank {
    font-size: 0.62rem;
  }
  .tournament-cover-main-trigger .cover-avatar,
  .tournament-cover-runner-trigger .cover-avatar {
    width: 52px;
    height: 52px;
  }
  .tournament-cover-main-trigger .match-mini-avatar,
  .tournament-cover-runner-trigger .match-mini-avatar,
  .tournament-standings-avatar-trigger .match-mini-avatar {
    width: 28px;
    height: 28px;
  }
  .tournament-cover-main-trigger,
  .tournament-cover-runner-trigger,
  .tournament-standings-avatar-trigger {
    max-width: 100%;
  }
  .tournament-competitors { flex-wrap: wrap; gap: 8px; }
  .tournament-competitor-trigger { gap: 5px; }
  .tournament-cover-podium-item .tournament-competitors { flex-wrap: wrap; }
  .tournament-cover {
    grid-template-columns: 1fr;
  }
  .tournament-cover-divider {
    width: 100%;
    height: 1px;
  }
  .tournament-standings-head,
  .tournament-standings-row {
    grid-template-columns: 1fr;
  }
  .tournament-metrics {
    justify-content: flex-start;
  }
  .gallery-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rating-row { grid-template-columns: auto minmax(0, 1fr); }

  .rating-row > img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .wizard-step-panel .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .wizard-progress {
    flex-wrap: wrap;
    gap: 6px;
  }

  .wizard-line {
    width: 14px;
  }

  .comment-actions {
    justify-content: stretch;
  }

  .comment-actions .primary-btn {
    width: 100%;
  }

  .quick-actions {
    width: 100%;
  }

  .quick-action-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .card-meta {
    align-items: flex-start;
    gap: 10px;
  }

  .card-meta-left {
    width: 100%;
  }

  .quick-actions {
    justify-content: flex-start;
  }

  .news-help-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .news-help-step {
    width: 30px;
    height: 30px;
  }
}