:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: #121722;
  --panel-2: #1b2431;
  --line: rgba(255,255,255,.11);
  --text: #f6f7fb;
  --muted: #aab2c0;
  --gold: #ef233c;
  --copper: #cc172c;
  --red: #ef233c;
  --green: #2bd576;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(214,160,52,.12), transparent 34rem),
    linear-gradient(180deg, #080a0f 0%, #0d1118 42%, #080a0f 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  background: rgba(8,10,15,.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 900; letter-spacing: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(239,35,60,.55);
  background: linear-gradient(135deg, var(--red), #b21a30);
  color: #f8f8f8;
  border-radius: 8px;
  font-size: .78rem;
}
.top-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; color: var(--muted); font-size: .92rem; }
.top-nav a { padding: .55rem .7rem; border-radius: 8px; }
.top-nav a:hover { background: rgba(255,255,255,.07); color: var(--text); }
.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
  gap: 1rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
}
.broadcast-panel, .chat-panel, .page-hero {
  background: rgba(18,23,34,.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.broadcast-panel { padding: clamp(1rem, 2vw, 1.4rem); }
.broadcast-panel h1, .page-hero h1 {
  margin: .45rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4.9rem);
  line-height: .96;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.stream-selector {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1rem;
}
.stream-selector span,
.stream-selector label {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}
.stream-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.stream-pill {
  appearance: none;
  border: 1px solid rgba(239,35,60,.35);
  background: transparent;
  color: var(--text);
  padding: .75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.stream-pill:hover {
  background: rgba(239,35,60,.12);
}
.stream-pill.active {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}
.section-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  width: 100%;
  margin: 0;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.viewers-count {
  color: var(--text);
  font-size: .95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.viewers-count strong {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(239,35,60,.15);
}
.live-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 .35rem rgba(239,35,60,.16);
}
.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #05070b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.skeleton { background-image: linear-gradient(90deg, #101722 0%, #18202d 48%, #101722 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.chat-panel { display: flex; flex-direction: column; min-height: 34rem; padding: 1rem; }
.chat-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.chat-head h2, .section-title h2 { margin: .2rem 0 0; font-size: 1.4rem; font-weight: 900; }
.icon-button, .chat-form button, .admin-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), #b21a30);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-weight: 900;
  cursor: pointer;
}
.identity-line, .form-note { color: var(--muted); font-size: .86rem; }
.chat-feed {
  flex: 1;
  min-height: 18rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: .8rem 0;
}
.chat-message {
  padding: .68rem .75rem;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
}
.chat-message strong { color: var(--red); display: block; font-size: .82rem; }
.chat-message span { color: var(--text); overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
.chat-form input, .admin-field input, .admin-field textarea, .admin-field select {
  width: 100%;
  color: var(--text);
  background: #0b1018;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .82rem .9rem;
  outline: none;
}
.chat-form input:focus, .admin-field input:focus, .admin-field textarea:focus { border-color: rgba(239,35,60,.7); }
.content-band {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}
.section-title { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.sports-grid, .news-grid, .players-grid, .admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.sports-card, .news-card, .player-card, .result-row, .stat-card, .admin-card {
  background: rgba(18,23,34,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.sports-card, .player-card, .stat-card, .admin-card { padding: 1rem; }
.sports-card h3, .player-card h3, .news-card h3 { margin: .2rem 0 .45rem; font-weight: 950; font-size: 1.18rem; }
.meta { color: var(--muted); font-size: .9rem; }
.badge { display: inline-flex; width: fit-content; padding: .28rem .48rem; border-radius: 999px; background: rgba(239,35,60,.12); color: var(--red); font-size: .75rem; font-weight: 900; }
.results-list { display: grid; gap: .65rem; }
.result-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: .75rem; align-items: center; padding: 1rem; }
.score { font-size: 1.7rem; font-weight: 950; color: var(--red); }
.news-card { overflow: hidden; }
.news-card img, .player-card img, .article-hero-img {
  width: 100%;
  object-fit: cover;
  background: #0f1520;
}
.news-card img { aspect-ratio: 16 / 10; }
.news-card div { padding: 1rem; }
.player-card img { aspect-ratio: 4 / 3; border-radius: 8px; margin-bottom: .8rem; }
.page-shell, .article-shell { max-width: 1120px; margin: 0 auto; padding: clamp(1rem, 4vw, 2.5rem); }
.page-hero { padding: clamp(1.2rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.page-hero p:last-child { color: var(--muted); max-width: 48rem; }
.article-shell { max-width: 880px; }
.article-hero-img { aspect-ratio: 16 / 9; border-radius: 8px; margin: 1rem 0; }
.article-body { color: #d9dee8; line-height: 1.75; white-space: pre-line; }
.site-footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.footer-content p { margin: 0; font-size: .9rem; }
.footer-credit {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.footer-credit span {
  font-size: .8rem;
  opacity: .75;
  letter-spacing: .03em;
}
.footer-credit img {
  height: 32px;
  filter: invert(1);
  opacity: .85;
  transition: opacity .3s;
}
.footer-credit img:hover { opacity: 1; }
@media (min-width: 768px) {
  .footer-content { flex-direction: row; }
}
@media (max-width: 980px) {
  .hero-shell { grid-template-columns: 1fr; }
  .sports-grid, .news-grid, .players-grid, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header, .site-footer, .section-title { align-items: flex-start; flex-direction: column; }
  .top-nav { justify-content: flex-start; }
  .sports-grid, .news-grid, .players-grid, .admin-grid { grid-template-columns: 1fr; }
  .result-row { grid-template-columns: 1fr; }
  .chat-form { grid-template-columns: 1fr; }
}
