:root {
  --bg: #f4f4f4;
  --panel: #ffffff;
  --text: #161616;
  --muted: #666666;
  --line: #e5e5e5;
  --accent: #f4c400;
  --accent-soft: rgba(244, 196, 0, 0.18);
  --brand-red: #e53935;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

audio,
button {
  font: inherit;
}

code {
  font-family: Consolas, monospace;
  font-size: 0.95em;
}

.topbar {
  background: #111111;
  color: #ffffff;
  border-bottom: 4px solid var(--accent);
}

.topbar-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 64px;
  border-radius: 14px;
  background: #ffffff;
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.logo-frame {
  overflow: hidden;
  padding: 0.45rem 0.75rem;
  background: #ffffff;
}

.logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  font-family: "Ubuntu", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #ee7326;
  text-transform: none;
}

.live-pill {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.05em;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.98;
  max-width: 14ch;
}

.hero h1 {
  max-width: none;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.03;
  white-space: nowrap;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3 {
  font-size: 1.55rem;
}

h4 {
  font-size: 1.15rem;
}

.intro,
.recording-meta,
.recording-date,
.empty-state {
  color: var(--muted);
}

.intro {
  max-width: 72ch;
  line-height: 1.7;
  margin: 1rem 0 0;
}

.archive-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
}

.sidebar,
.archive-panel {
  padding: 1.5rem;
}

.section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.show-nav {
  display: grid;
  gap: 0.75rem;
}

.show-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fafafa;
  color: inherit;
  text-decoration: none;
}

.show-link strong,
.show-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.9rem;
}

.show-groups {
  display: grid;
  gap: 1.5rem;
}

.show-section {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.show-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.show-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.recording-list {
  display: grid;
  gap: 1rem;
}

.recording-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
  padding: 1rem;
}

.recording-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.recording-date {
  margin: 0 0 0.25rem;
}

.recording-time {
  margin-bottom: 0.15rem;
}

.slot-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6d5500;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.recording-meta {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
}

.recording-card audio {
  width: 100%;
}

.empty-state {
  line-height: 1.6;
}

@media (max-width: 980px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell,
  .topbar-inner {
    width: min(100% - 1rem, 1180px);
  }

  .topbar-inner {
    min-height: auto;
    padding: 0.8rem 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .brand-mark {
    width: 140px;
    height: 52px;
  }

  .brand-name {
    position: static;
    transform: none;
    font-size: 1.9rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-link,
  .live-pill {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .sidebar,
  .archive-panel {
    padding: 1rem;
  }

  .hero h1 {
    white-space: normal;
  }

  .show-header,
  .recording-topline {
    flex-direction: column;
  }

  .slot-label {
    white-space: normal;
  }
}
