:root {
  --bg: #060606;
  --panel: rgba(17, 17, 17, 0.95);
  --panel-2: #0f0f0f;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --accent: #d91f2d;
  --accent-2: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top left, rgba(217, 31, 45, 0.16), transparent 25%), linear-gradient(135deg, var(--bg), #1a0d0f);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}
.site-background {
  position: fixed;
  inset: -20px;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.36;
  filter: grayscale(100%) contrast(1.15) brightness(0.85) blur(4px);
  transform: scale(1.05);
  pointer-events: none;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(6, 6, 6, 0.68), rgba(12, 7, 8, 0.72));
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.35);
}
.topbar,
main,
.footer,
.flash-area {
  position: relative;
  z-index: 1;
}
.audio-player-shell {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
}
.audio-player {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
.audio-player span {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb3b9;
}
.audio-player iframe {
  width: 240px;
  height: 135px;
  max-width: 100%;
  border: 0;
  border-radius: 12px;
}

a { color: inherit; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.15rem 2rem; background: rgba(5, 5, 5, 0.9);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none;
  color: var(--accent-2);
}
.brand-mark {
  display: inline-grid; place-items: center; width: 2.55rem; height: 2.55rem;
  border-radius: 999px; background: linear-gradient(135deg, var(--accent), #ff4b5c);
  box-shadow: 0 8px 24px rgba(217, 31, 45, 0.28);
  padding: 0.2rem;
}
.brand-logo {
  max-height: 2.6rem; max-width: 11rem; object-fit: contain; display: block;
}
.brand-mark-inner {
  display: inline-grid; place-items: center; width: 100%; height: 100%; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35); font-weight: 800; font-size: 1.05rem; color: white;
}
.brand-text {
  display: flex; flex-direction: column; line-height: 1.05; text-transform: uppercase;
  letter-spacing: 0.2em;
}
.brand-text strong { font-size: 1.08rem; }
.brand-text small { color: var(--muted); font-size: 0.64rem; letter-spacing: 0.28em; margin-top: 0.2rem; }
nav { display: flex; gap: 1.1rem; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
nav a:hover { color: var(--accent-2); }
main { padding-bottom: 2rem; }
.hero {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.5rem; align-items: center;
  min-height: 78vh; padding: 4rem 2rem 3rem; max-width: 1200px; margin: 0 auto;
}
.hero-copy h1 { font-size: clamp(2.3rem, 4vw, 4rem); margin: 0 0 1rem; line-height: 1.05; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.8rem; }
.lead { color: var(--muted); max-width: 650px; font-size: 1.05rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.2rem; flex-wrap: wrap; }
.button, button {
  display: inline-block; padding: 0.9rem 1.2rem; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #ff4b5c); color: white;
  text-decoration: none; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px rgba(217, 31, 45, 0.25);
}
.button.secondary {
  background: transparent; border: 1px solid var(--border); box-shadow: none;
}
.hero-panel {
  display: grid; gap: 1rem; padding: 1.2rem; border: 1px solid var(--border);
  border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-stat { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(0,0,0,0.34); border: 1px solid rgba(255,255,255,0.05); }
.hero-stat.featured {
  background: linear-gradient(135deg, rgba(217,31,45,0.35), rgba(255,75,92,0.12));
  border-color: rgba(217,31,45,0.35);
}
.hero-stat strong { display: block; font-size: 1.15rem; margin-bottom: 0.3rem; }
.hero-stat span { color: var(--muted); font-size: 0.95rem; }
.section { max-width: 1200px; margin: 0 auto; padding: 0 2rem 2.5rem; }
.intro-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1.3rem; align-items: start; padding-top: 1rem; }
.info-card, .panel, .page-card, .cards article, .team-card, .stat-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 24px; padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.team-shell { padding-top: 2rem; }
.team-hero { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: start; }
.team-card ul { padding-left: 1rem; }
.team-card a { color: #ffb3b9; text-decoration: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.stat-card { text-align: center; }
.stat-card strong { display: block; font-size: 1.35rem; margin-bottom: 0.35rem; }
.stat-card span { color: var(--muted); }
.match-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(217,31,45,0.22);
}
.match-topline { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.match-label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: #ffb3b9; font-weight: 700; }
.match-result { font-size: 0.83rem; font-weight: 700; color: white; }
.match-score { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; color: white; }
.match-opponent { font-size: 0.95rem; color: var(--muted); }
.match-meta { display: flex; flex-wrap: wrap; gap: 0.55rem; color: var(--muted); font-size: 0.85rem; }
.match-meta span { padding: 0.2rem 0.5rem; border-radius: 999px; background: rgba(255,255,255,0.05); }
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
.roster-card { margin-top: 1.2rem; }
.roster-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 0.7rem; }
.roster-item { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); }
.roster-item strong { color: #ffb3b9; }
.roster-item span { color: var(--muted); }
.roster-editor { display: flex; flex-direction: column; gap: 0.6rem; }
.roster-row { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 0.65rem; }
.roster-row-head { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); padding: 0 0.2rem; }
.roster-row input { width: 100%; }
.roster-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.6rem; }
.post-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.post-list a { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none; color: inherit; padding: 0.8rem 0.9rem; border-radius: 12px; background: rgba(255,255,255,0.03); }
.post-list strong { color: #ffb3b9; }
.discord-widget iframe { width: 100%; min-height: 320px; border: 0; border-radius: 16px; }
.login-panel {
  max-width: 520px; margin: 2rem auto 0;
}
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem 0 0; }
.cards h3, .panel h3, .page-card h1 { margin-top: 0; }
.cards p, .info-card li, .page-card p { color: var(--muted); line-height: 1.7; }
.info-card ul { padding-left: 1rem; }
.admin-shell { padding-top: 2rem; }
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1rem; align-items: start; }
.admin-sidebar { position: sticky; top: 5.5rem; }
.admin-nav { display: flex; flex-direction: column; gap: 0.45rem; }
.admin-nav a { text-decoration: none; color: var(--muted); padding: 0.7rem 0.8rem; border-radius: 12px; transition: background 0.2s ease, color 0.2s ease; }
.admin-nav a:hover, .admin-nav a.active { color: var(--accent-2); background: rgba(255,255,255,0.05); }
.admin-content-stack { display: flex; flex-direction: column; gap: 1rem; }
.admin-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-panel { display: flex; flex-direction: column; gap: 0.8rem; }
.panel-help { color: var(--muted); margin: -0.25rem 0 0.2rem; font-size: 0.95rem; line-height: 1.6; }
.sub-section { margin-top: 0.7rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.08); }
.sub-section h4 { margin: 0 0 0.65rem; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: #ffb3b9; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.full-width { grid-column: 1 / -1; }
form { display: flex; flex-direction: column; gap: 0.65rem; }
input, textarea { padding: 0.8rem; border-radius: 12px; border: 1px solid #333; background: #080808; color: white; }
input:focus, textarea:focus { outline: 1px solid rgba(217,31,45,0.5); }
.page-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.page-list li { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.03); padding: 0.85rem 0.95rem; border-radius: 12px; gap: 0.7rem; }
.actions { display: flex; gap: 0.6rem; align-items: center; }
.actions a { color: #ffb3b9; text-decoration: none; }
.flash-area { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem 0; }
.flash { padding: 0.8rem 1rem; border-radius: 12px; margin-bottom: 0.6rem; }
.flash.success { background: rgba(34, 197, 94, 0.16); color: #d1fae5; }
.flash.error { background: rgba(217,31,45,0.2); color: #fecaca; }
img { max-width: 100%; border-radius: 16px; margin-top: 1rem; }
.footer {
  text-align: center; padding: 2rem 1rem 2.5rem; color: var(--muted); border-top: 1px solid var(--border);
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .hero, .intro-grid, .admin-grid, .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; }
}
@media (max-width: 640px) {
  .topbar { flex-direction: column; gap: 0.8rem; padding: 1rem; }
  nav { flex-wrap: wrap; justify-content: center; }
  .section, .hero { padding-left: 1rem; padding-right: 1rem; }
}
