/* ==========================================================================
   CRACKSTREAMS - AGGRESSIVE FIGHT NIGHT OCTAGON & COMBAT SPORTS ARENA
   Colors: Pitch Carbon (#09090c), Steel (#14141a), Fiery Crimson (#ef4444), Flame (#f97316)
   ========================================================================== */
:root {
  --bg: #09090c;
  --panel: #121217;
  --panel-card: #181921;
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --accent: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.55);
  --accent-orange: #f97316;
  --accent-amber: #f59e0b;
  --line: rgba(239, 68, 68, 0.28);
  --radius: 8px;
  --radius-sm: 4px;
  --content-width: 1140px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image: 
    radial-gradient(ellipse at 50% -10%, rgba(239, 68, 68, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 50%, rgba(249, 115, 22, 0.12) 0%, transparent 50%);
  min-height: 100vh;
}

.player-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
}

/* TOP FIGHT TICKER */
.cs-fight-ticker {
  background: linear-gradient(90deg, #991b1b 0%, #b91c1c 50%, #991b1b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(185, 28, 28, 0.4);
}

.cs-fight-ticker span {
  color: #fed7aa;
}

/* CENTERED FIGHT NIGHT ARENA BILLBOARD HERO */
.cs-arena-hero {
  position: relative;
  margin-top: 28px;
  margin-bottom: 32px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(239, 68, 68, 0.15);
}

.cs-arena-backdrop {
  position: absolute;
  inset: 0;
  background: url("crackstreams-banner.jpg") center center / cover no-repeat;
  filter: brightness(0.28) saturate(1.2);
}

.cs-arena-overlay {
  position: relative;
  z-index: 2;
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(9, 9, 12, 0.3) 0%, rgba(9, 9, 12, 0.96) 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  transition: transform .2s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  color: #ffffff;
  font-size: 24px;
  background: linear-gradient(135deg, #ef4444 0%, #c2410c 100%);
  box-shadow: 0 0 25px var(--accent-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.02em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-title span,
.brand-title .brand-accent {
  color: var(--accent);
}

.brand-text small {
  color: #fb923c;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cs-arena-heading {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 950;
  letter-spacing: -.01em;
  color: #ffffff;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 820px;
  margin-bottom: 14px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.cs-arena-heading span {
  color: var(--accent);
}

.cs-arena-tagline {
  font-size: clamp(15px, 1.8vw, 17.5px);
  color: #d4d4d8;
  max-width: 660px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* ACTIONS */
.cs-arena-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #ef4444 0%, #ea580c 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.watch-button:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.7);
}

.watch-button .btn-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #09090c;
  color: var(--accent);
  font-size: 16px;
  font-weight: 900;
}

/* LIVE BEACON */
.btn-live-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-live-beacon {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.beacon-core {
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 12px #ffffff;
  z-index: 2;
}

.beacon-wave {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: fire-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

@keyframes fire-ping {
  0% { transform: scale(1); opacity: 0.9; }
  75%, 100% { transform: scale(3.2); opacity: 0; }
}

.btn-badge-live {
  display: inline-block;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #ffffff;
  background: #991b1b;
  border-radius: 2px;
  text-transform: uppercase;
}

.discord-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: var(--radius-sm);
  background: #5865F2;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.35);
  transition: transform .2s ease, background .2s ease;
}

.discord-hero-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

/* BRUTALIST FIGHT NIGHT BOUT CARD */
.cs-bout-board {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 40px;
  padding: 24px;
}

.cs-board-title {
  font-size: 13px;
  font-weight: 900;
  color: #fb923c;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-bout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-bout-item {
  background: #101116;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, transform .2s ease;
}

.cs-bout-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cs-bout-tier {
  font-size: 11px;
  font-weight: 900;
  color: #ef4444;
  text-transform: uppercase;
}

.cs-bout-match {
  font-size: 15.5px;
  font-weight: 900;
  color: #ffffff;
}

.cs-bout-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.cs-bout-btn {
  margin-top: 6px;
  padding: 8px 12px;
  text-align: center;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  transition: background .2s ease;
}

.cs-bout-item:hover .cs-bout-btn {
  background: var(--accent);
}

/* ARTICLE STYLES */
.article-content {
  padding: 40px 0 70px;
  max-width: 960px;
  margin: 0 auto;
}

.article-content h1 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 950;
  line-height: 1.2;
  color: #ffffff;
  margin: 20px 0 24px;
}

.article-content h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: #ffffff;
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 800;
  color: #f97316;
  margin: 26px 0 12px;
}

.article-content p {
  color: #d4d4d8;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 18px 0 26px 26px;
  color: #d4d4d8;
}

.article-content li {
  margin-bottom: 10px;
  font-size: 15.5px;
  line-height: 1.7;
}

.article-content strong {
  color: #ffffff;
}

.article-content blockquote {
  background: var(--panel-card);
  border-left: 4px solid var(--accent);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 36px 0;
  color: #f4f4f5;
}

/* CENTER FIGURE */
.article-figure {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-figure figcaption {
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  background: #111116;
  border-top: 1px solid var(--line);
}

/* LEAGUE PILLS */
.league-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 38px;
}

.league-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #e4e4e7;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s ease;
}

.league-pill:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060608;
  padding: 38px 0;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .2s ease;
}

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

.footer-bullet {
  color: #3f3f46;
}

.footer-copy {
  color: #71717a;
  font-size: 13px;
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: grid;
}

.modal-box {
  background: #14151b;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .cs-bout-grid {
    grid-template-columns: 1fr;
  }
  .cs-arena-overlay {
    padding: 36px 18px;
  }
}


/* ==========================================================================
   CRACKSTREAMS LIVE SCOREBOARD (DESKTOP & MOBILE RESPONSIVE)
   ========================================================================== */
.cs-scoreboard-section {
  background: var(--panel-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 40px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.cs-scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
  flex-wrap: wrap;
  gap: 10px;
}

.cs-score-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cs-score-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 900;
  color: #f87171;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cs-radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: cs-radar-ping 1.5s infinite;
}

@keyframes cs-radar-ping {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.cs-scoreboard-heading {
  font-size: 15px;
  font-weight: 900;
  color: #f3f4f6;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

.cs-scoreboard-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.cs-sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fb923c;
  font-weight: 700;
}

/* SCOREBOARD GRID */
.cs-scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cs-score-card {
  background: #101116;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  min-height: 150px;
}

.cs-score-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.2);
}

.cs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cs-sport-tag {
  font-size: 11px;
  font-weight: 800;
  color: #fb923c;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cs-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.cs-clock-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ef4444;
  animation: cs-radar-ping 1.5s infinite;
}

/* MATCH BODY & TEAMS */
.cs-match-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cs-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-team-name {
  font-size: 14.5px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: .01em;
}

.cs-team-score {
  font-size: 19px;
  font-weight: 950;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cs-team-score.is-leader {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.cs-team-score .score-unit {
  font-size: 11px;
  font-weight: 600;
  color: #f87171;
}

/* CARD FOOTER */
.cs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cs-match-venue {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.cs-watch-chip {
  font-size: 11.5px;
  font-weight: 800;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s ease;
}

.cs-score-card:hover .cs-watch-chip {
  color: #fb923c;
}

@media (max-width: 900px) {
  .cs-scoreboard-grid {
    grid-template-columns: 1fr;
  }
  .cs-scoreboard-section {
    padding: 18px 14px;
    margin-bottom: 28px;
  }
}
