:root {
  color-scheme: dark;
  --bg: #0b0f1a;
  --bg-dark: #0f172a;
  --accent: #1644f9;
  --accent-2: #22d3ee;
  --ink: #e5e7eb;
  --muted: #9ca3af;
  --card: rgba(0, 0, 0);
  --card-strong: rgba(15, 23, 42, 0.92);
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.5);
  --radius: 20px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(
  circle at 0% 0%,
  rgb(0, 14, 24) 0%,
  rgb(7, 11, 16) 40%,
  rgb(0, 48, 77) 100%
);
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 0);
  background-size: 140px 140px;
  mix-blend-mode: screen;
  opacity: 0.25;
}

.page {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 22px;
  letter-spacing: 1px;
}

.kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin: 0;
  color: var(--muted);
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 2px 0 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.4);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #fb923c);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: none;
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.player {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #64748b;
}

.status.live .dot {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.player-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.audio-shell {
  padding: 14px;
  border-radius: 16px;
  background: var(--card-strong);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.player-audio {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  background: transparent;
}

audio::-webkit-media-controls-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border-radius: 999px;
}

audio::-webkit-media-controls-timeline {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #e5e7eb;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-details {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  align-items: center;
}

.chat-section {
  display: grid;
  gap: 14px;
}

.chat-head h2 {
  margin: 8px 0 0;
}

.chat-embed-wrapper {
  width: 100%;
  min-height: 420px;
  height: min(68vh, 560px);
  border-radius: 16px;
  overflow: hidden;
}

.chat-embed-wrapper > script {
  display: block;
  width: 100%;
  height: 100%;
}

.project-copy h2 {
  margin: 8px 0 12px;
}

.project-copy p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--accent-2);
  margin: 0;
}

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

.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #e2e8f0;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  color: var(--accent);
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .page {
    padding: 36px 18px 56px;
  }

  .player-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-details {
    grid-template-columns: 1fr;
  }

  .chat-embed-wrapper {
    min-height: 360px;
    height: 62vh;
  }
}
