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

:root {
  --bg: #0a0a0c;
  --bg-alt: #121218;
  --surface: #1a1a22;
  --text: #f5f5f5;
  --muted: #a0a0b0;
  --red: #e31e24;
  --red-hover: #ff2a32;
  --orange: #f5a623;
  --yellow: #ffc107;
  --teal: #2dd4bf;
  --header-h: 4.25rem;
  --radius: 12px;
  --font: 'DM Sans', system-ui, sans-serif;
  --max: 1100px;
}

html {
  scroll-behavior: smooth;
}

.hero,
.section[id] {
  scroll-margin-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body.live-open {
  padding-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--yellow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: var(--max);
  margin-inline: auto;
  padding: 0.65rem 1rem;
  min-height: var(--header-h);
}

.brand img {
  height: 2.5rem;
  width: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.live-tabs {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

.live-tab {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.live-tab:hover,
.live-tab.is-active {
  background: var(--red);
  color: #fff;
}

/* Live panel */
.live-panel {
  background: var(--bg-alt);
  border-bottom: 1px solid rgba(227, 30, 36, 0.35);
}

.live-panel-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 1rem;
}

.live-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.live-panel-head h2 {
  font-size: 1rem;
  color: var(--red);
}

.live-panel-close {
  background: var(--surface);
  border: none;
  color: var(--text);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.live-panel-close:hover {
  background: var(--red);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.external-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.radio-player {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.radio-visual {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.radio-visual .pulse {
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.2);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radio-status {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.radio-status.is-error {
  color: var(--orange);
}

.radio-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-play {
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-play:hover:not(:disabled) {
  background: var(--red-hover);
  transform: scale(1.03);
}

.btn-play:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(85vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.92) 100%),
    url('../assets/images/hero-studio.svg') center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  max-width: 42rem;
}

.hero-logo {
  margin: 0 auto 1.25rem;
  width: min(220px, 70vw);
  height: auto;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--red);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-cta {
  color: var(--muted);
  font-size: 1rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 2px;
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose strong {
  color: var(--text);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-featured {
  border-color: rgba(227, 30, 36, 0.4);
  background: linear-gradient(145deg, var(--surface) 0%, rgba(227, 30, 36, 0.08) 100%);
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--red-hover);
  color: #fff !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--red);
  color: var(--red) !important;
}

.btn-outline:hover {
  background: var(--red);
  color: #fff !important;
}

/* Studio */
.studio-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-figure figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-block h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.contact-block p,
.social-list {
  color: var(--muted);
  font-size: 0.95rem;
}

.social-list {
  list-style: none;
}

.social-list li {
  margin-bottom: 0.35rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  text-align: center;
}

.footer-inner p {
  margin-bottom: 0.35rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .live-tabs {
    order: 3;
    width: 100%;
    justify-content: flex-end;
    margin-left: 0;
    padding-top: 0.25rem;
  }

  .brand {
    order: 1;
  }

  .nav-toggle {
    order: 2;
  }
}

@media (max-width: 480px) {
  .live-tab {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
}
