/* ============================================================
   FUSE Sports — main stylesheet
   Dark theme sports portal. No frameworks.
   ============================================================ */
:root {
  --bg: #0b0e13;
  --bg-soft: #10151d;
  --panel: #141b26;
  --panel-2: #18202d;
  --line: #232d3d;
  --text: #f2f5f9;
  --muted: #9aa7ba;
  --faint: #66738a;
  --gold: #f5b301;
  --gold-dim: #c98f00;
  --red: #e5484d;
  --green: #3fb96c;
  --blue: #4da3ff;
  --radius: 10px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Headlines ---------- */
h1, h2, h3, h4, .head {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 1.4em;
  background: var(--gold);
  display: inline-block;
  border-radius: 2px;
}
.section-sub { color: var(--muted); margin-bottom: 22px; }

section.block { padding: 44px 0; }
section.block + section.block { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 19, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .brand-fuse { color: var(--gold); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 14px;
  border-radius: 6px;
}
.main-nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.main-nav a.active { color: var(--gold); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* ---------- Score ticker ---------- */
.ticker-wrap {
  background: #000;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-label {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  text-transform: uppercase;
  vertical-align: top;
}
.ticker {
  display: inline-block;
  overflow: hidden;
  width: calc(100% - 110px);
  vertical-align: top;
}
.ticker-track {
  display: inline-block;
  padding: 8px 0;
  animation: ticker-scroll 45s linear infinite;
  font-size: 0.85rem;
  color: var(--muted);
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-block; margin: 0 26px 0 0; }
.ticker-item b { color: var(--text); font-weight: 600; }
.ticker-item .live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 1.2s infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 60px;
  background:
    radial-gradient(900px 380px at 80% -40px, rgba(245, 179, 1, 0.14), transparent 60%),
    radial-gradient(700px 340px at 10% 120%, rgba(77, 163, 255, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-kicker {
  color: var(--gold);
  font-family: var(--font-head);
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lede { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 16px 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--gold);
  color: #141414;
  font-weight: 600;
}
.btn:hover { background: #ffc61a; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { padding: 8px 16px; font-size: 0.82rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Game cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
}
.game-card.live { border-color: var(--red); }
.game-status {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-status.live { color: var(--red); }
.game-status .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); animation: pulse 1.2s infinite;
}
.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.team-row img { width: 34px; height: 34px; object-fit: contain; }
.team-row .t-name { flex: 1; font-weight: 600; }
.team-row .t-name small { display: block; color: var(--faint); font-weight: 400; font-size: 0.75rem; }
.team-row .t-score { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.team-row.winner .t-score { color: var(--gold); }
.team-row.winner .t-name::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border-left: 6px solid var(--gold);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.game-meta { color: var(--faint); font-size: 0.8rem; margin-top: 10px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--gold); border-color: var(--gold); color: #141414; font-weight: 600; }

/* ---------- Articles ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--gold-dim); }
.article-card:hover a.card-link { text-decoration: none; }
.article-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.article-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--gold); }
.article-card p.excerpt { color: var(--muted); font-size: 0.93rem; flex: 1; }
.article-meta { color: var(--faint); font-size: 0.8rem; margin-top: 14px; }

.article-full { max-width: 760px; }
.article-full h1 { font-size: 2.2rem; margin: 12px 0 10px; }
.article-full .article-meta { margin-bottom: 22px; }
.article-full p { margin-bottom: 18px; color: #d7dde7; }
.article-full p.lead { font-size: 1.15rem; color: var(--text); }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); font-size: 0.9rem; }

/* ---------- Videos ---------- */
.video-feature { margin-bottom: 30px; }
.video-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #000;
}
.video-frame iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.video-card { cursor: pointer; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card:hover { border-color: var(--gold-dim); }
.video-thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .play {
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(245, 179, 1, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.video-thumb .play svg { width: 22px; height: 22px; fill: #141414; margin-left: 3px; }
.video-card .video-info { padding: 14px 16px; }
.video-card h3 { font-size: 1.02rem; }
.video-card .video-meta { color: var(--faint); font-size: 0.8rem; margin-top: 6px; }

/* ---------- Forum ---------- */
.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.thread-row {
  display: flex;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  align-items: center;
}
.thread-row:hover { border-color: var(--gold-dim); }
.thread-main { flex: 1; }
.thread-main h3 { font-size: 1.1rem; margin-bottom: 4px; }
.thread-main h3 a { color: var(--text); }
.thread-main h3 a:hover { color: var(--gold); }
.thread-meta { color: var(--faint); font-size: 0.82rem; }
.reply-count {
  font-family: var(--font-head);
  text-align: center;
  color: var(--muted);
  min-width: 64px;
}
.reply-count b { display: block; font-size: 1.4rem; color: var(--text); }
.post {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.post-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.post-author { font-weight: 600; color: var(--gold); }
.post-date { color: var(--faint); font-size: 0.82rem; }
.post-body { color: #d7dde7; }
.post-body p { margin-bottom: 10px; }

form.card-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-hint { color: var(--faint); font-size: 0.85rem; margin-top: 6px; }

.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--panel);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 22px;
  color: var(--muted);
}
.notice strong { color: var(--text); }
.notice code {
  background: var(--bg-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--gold);
}

.auth-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.auth-bar .who { color: var(--muted); font-size: 0.92rem; }
.auth-bar .who b { color: var(--text); }

/* ---------- Gifts ---------- */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.gift-card {
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}
.gift-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.gift-card.selected { border-color: var(--gold); background: var(--panel-2); }
.gift-card svg { width: 52px; height: 52px; margin: 0 auto 10px; }
.gift-card .gift-name { font-family: var(--font-head); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.04em; }
.gift-card .gift-price { color: var(--gold); font-weight: 700; margin-top: 4px; }
.gift-card .gift-price small { color: var(--faint); font-weight: 400; }

.balance-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.balance-banner .bal { font-family: var(--font-head); font-size: 2rem; color: var(--gold); }
.balance-banner .bal small { font-size: 1rem; color: var(--muted); font-family: var(--font-body); }

.coin-packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.coin-pack {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.coin-pack .coins { font-family: var(--font-head); font-size: 1.8rem; color: var(--gold); }
.coin-pack .price { color: var(--muted); margin: 6px 0 14px; }

.wallet-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.wallet-table th, .wallet-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}
.wallet-table th {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--faint);
}
.cashout-math {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 520px;
}
.cashout-math .row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.cashout-math .row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.cashout-math .row.total .amt { color: var(--green); font-family: var(--font-head); font-size: 1.5rem; }
.cashout-math .fee-note { color: var(--faint); font-size: 0.85rem; margin-top: 10px; }

.stripe-note {
  border: 1px dashed var(--gold-dim);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 18px;
}
.stripe-note strong { color: var(--gold); }

/* ---------- Ad slots ---------- */
.ad-slot {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px auto;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.ad-slot.leaderboard { width: 728px; max-width: 100%; height: 90px; }
.ad-slot.infeed { width: 100%; height: 110px; }
.ad-slot.sidebar { width: 300px; max-width: 100%; height: 250px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 44px 0 26px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { color: var(--faint); font-size: 0.9rem; margin-top: 10px; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.82rem;
}

/* ---------- Utility ---------- */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 26px; }
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }
.center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .article-layout, .forum-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  section.block { padding: 32px 0; }
  .hero { padding: 50px 0 44px; }
}
