:root {
  --ink: #171717;
  --muted: #5f6368;
  --paper: #ffffff;
  --surface: #ffffff;
  --cream: #f6f2ee;
  --red: #d33a2c;
  --gold: #111827;
  --green: #d33a2c;
  --line: rgba(23, 23, 23, 0.1);
  --shadow: 0 10px 26px rgba(23, 23, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--cream);
  color: var(--ink);
  padding-top: 86px;
  padding-bottom: 96px;
}

a {
  color: inherit;
}

.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 7px 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.top-strip a {
  text-decoration: none;
}

.site-nav {
  position: fixed;
  top: 29px;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(23, 23, 23, 0.08);
}

.nav-brand {
  display: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red);
  color: #fff;
}

.menu-toggle {
  display: none;
  min-height: 40px;
  width: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

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

.floating-player {
  position: fixed;
  right: 18px;
  bottom: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, calc(100% - 32px));
  margin-bottom: 18px;
}

.player-caption {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 2px;
  max-width: 300px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.08);
  backdrop-filter: blur(10px);
}

.player-caption strong,
.player-caption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.player-caption strong {
  color: var(--ink);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.player-caption span {
  color: var(--muted);
  font-size: 0.72rem;
}

.player-toggle {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 0 var(--ink);
}

.player-toggle,
.icon-text-button,
.music-actions .small-button {
  display: inline-grid;
  place-items: center;
}

.player-toggle i,
.icon-text-button i,
.music-actions .small-button i {
  line-height: 1;
}

.app {
  width: min(1080px, calc(100% - 28px));
  margin: 18px auto 24px;
  padding-bottom: 30px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.14);
  overflow: hidden;
}

.hero {
  min-height: 190px;
  display: grid;
  align-items: end;
  padding: 28px;
  color: var(--ink);
  background: #ffffff;
  border-bottom: 3px solid var(--ink);
}

.upload-hero {
  background: #ffffff;
}

.stations-hero {
  background: #ffffff;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-weight: 900;
}

h1 {
  max-width: 720px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.tagline {
  max-width: 600px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.status {
  margin: 12px 0 18px;
  color: inherit;
  font-weight: 700;
}

.primary-button,
button,
.small-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-button {
  background: var(--red);
  color: #fff;
}

.primary-button:hover,
button:hover,
.small-button:hover {
  filter: brightness(1.06);
}

.browser,
.upload-panel,
.library {
  padding: 28px 36px 0;
}

.news-app {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  padding-bottom: 0;
}

.news-app .library {
  margin-top: 18px;
  padding-bottom: 28px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.tabbed-media {
  display: grid;
  gap: 18px;
}

.media-tabs {
  display: inline-flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 5px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.media-tab {
  min-height: 38px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  box-shadow: none;
  font-size: 0.78rem;
}

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

.media-panel[hidden] {
  display: none;
}

.embedded-browser {
  padding: 0;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
}

.lead-story,
.on-air-card,
.news-card,
.more-news {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
  overflow: hidden;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  min-height: 300px;
}

.lead-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: clamp(20px, 2.5vw, 28px);
}

.lead-copy h1 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: normal;
}

.lead-copy p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.section-label,
.category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-image {
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(211, 58, 44, 0.22), rgba(17, 17, 17, 0.08)),
    #e5e7eb;
}

.image-community {
  background:
    linear-gradient(135deg, rgba(211, 58, 44, 0.08), rgba(17, 17, 17, 0.02)),
    url("hero-image.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #050505;
}

.image-studio {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.28), rgba(211, 58, 44, 0.08)),
    url("https://images.unsplash.com/photo-1590602847861-f357a9332bbc?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.image-music {
  background:
    linear-gradient(135deg, rgba(211, 58, 44, 0.18), rgba(255, 255, 255, 0.08)),
    url("https://images.unsplash.com/photo-1516280440614-37939bbacd81?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.image-youth {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.24), rgba(211, 58, 44, 0.08)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.image-events {
  background:
    linear-gradient(135deg, rgba(211, 58, 44, 0.18), rgba(255, 255, 255, 0.08)),
    url("https://images.unsplash.com/photo-1501281668745-f7f57925c3b4?auto=format&fit=crop&w=900&q=80");
  background-position: center;
  background-size: cover;
}

.on-air-card {
  align-self: stretch;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 22px;
  background: var(--paper);
}

.on-air-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.05;
}

.on-air-topline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.live-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(211, 58, 44, 0.12);
}

.on-air-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.on-air-actions {
  display: grid;
  gap: 10px;
}

.on-air-actions .primary-button {
  width: 100%;
}

.on-air-actions .icon-text-button {
  width: 56px;
}

.on-air-actions .status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trending {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.trending strong {
  color: var(--red);
  text-transform: uppercase;
}

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

.trending a:hover {
  color: var(--red);
}

.news-section,
.more-news {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.section-heading a {
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  display: grid;
  align-content: start;
}

.news-card .story-image {
  min-height: 150px;
}

.news-card .category,
.news-card h3,
.news-card p {
  margin-inline: 14px;
}

.news-card .category {
  margin-top: 14px;
}

.news-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.18;
}

.news-card p {
  margin-top: -4px;
  color: var(--muted);
  line-height: 1.45;
}

.feature-card {
  grid-column: span 2;
}

.feature-card h3 {
  font-size: 1.5rem;
}

.more-news {
  padding: 20px;
}

.headline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.headline-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.headline-list a {
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 900;
  text-decoration: none;
}

.headline-list a:hover {
  color: var(--red);
}

.headline-list span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (min-width: 981px) {
  .lead-story {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    min-height: 340px;
  }

  .lead-story .story-image {
    min-height: 340px;
  }
}

@media (max-width: 980px) {
  .news-hero,
  .lead-story {
    grid-template-columns: 1fr;
  }

  .lead-story {
    min-height: 0;
  }

  .lead-copy h1 {
    font-size: clamp(1.7rem, 7vw, 2.8rem);
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.search {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
}

#results {
  list-style: none;
  padding: 0;
  margin: 0;
}

#results li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}

#results li:hover {
  color: var(--red);
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
}

.chip:hover,
.chip.active {
  background: #fff0ee;
  border-color: rgba(211, 58, 44, 0.28);
  color: var(--red);
}

.drop-zone {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  background: #fff;
  border: 1px dashed var(--red);
  border-radius: 6px;
  color: var(--red);
  cursor: pointer;
  text-align: center;
}

.admin-login,
.admin-tools {
  display: grid;
  gap: 14px;
}

.admin-login {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-login h2,
.admin-login p,
.admin-toolbar p {
  margin: 0;
}

.admin-login p {
  color: var(--muted);
  line-height: 1.5;
}

.admin-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.admin-state {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.is-hidden {
  display: none;
}

.drop-zone span {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drop-zone small {
  color: var(--muted);
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.music-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.music-search {
  margin-bottom: 16px;
}

.music-search input {
  max-width: none;
}

.music-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.music-card-link {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.music-card:hover {
  border-color: rgba(211, 58, 44, 0.38);
  box-shadow: 0 8px 18px rgba(23, 23, 23, 0.08);
}

.music-artwork {
  width: 100%;
  max-height: 150px;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  background: var(--cream);
}

.music-card-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.music-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.music-meta strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.9rem;
}

.music-meta span {
  color: var(--muted);
  font-size: 0.76rem;
}

.music-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.music-actions .small-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 8px;
  border-radius: 50%;
  font-size: 0.72rem;
  flex: 0 0 34px;
}

.preview-button {
  background: var(--green);
}

.danger-button {
  background: #111827;
}

.empty-state {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.track-page {
  padding: 28px 36px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.track-detail {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px 0 8px;
}

.track-artwork {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
}

.track-info {
  min-width: 0;
}

.track-info h1 {
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 7vw, 4.4rem);
}

.track-details {
  margin: 14px 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.track-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.track-actions .primary-button {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
}

@media (max-width: 760px) {
  body {
    padding-top: 92px;
  }

  .top-strip {
    gap: 12px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .site-nav {
    top: 30px;
    justify-content: space-between;
    overflow: visible;
    padding: 10px 14px;
  }

  .nav-brand,
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 12px;
    font-size: 0.82rem;
  }

  .floating-player {
    right: 12px;
    gap: 8px;
    margin-bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .player-toggle {
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    box-shadow: 0 6px 0 var(--ink);
  }

  .player-caption {
    max-width: min(250px, calc(100vw - 94px));
  }

  .app {
    width: calc(100% - 20px);
    margin: 14px auto;
    border-radius: 6px;
  }

  .hero {
    min-height: 160px;
    padding: 22px;
  }

  h1 {
    font-size: clamp(1.8rem, 12vw, 2.8rem);
  }

  .browser,
  .upload-panel,
  .library,
  .track-page {
    padding-inline: 20px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }

  .news-hero,
  .lead-story,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .lead-story {
    min-height: 0;
  }

  .lead-copy {
    padding: 22px;
  }

  .lead-copy h1 {
    font-size: clamp(1.65rem, 10vw, 2.65rem);
  }

  .on-air-card {
    padding: 20px;
  }

  .on-air-actions {
    grid-template-columns: 1fr;
  }

  .trending {
    align-items: flex-start;
  }

  .feature-card {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-tabs {
    width: 100%;
  }

  .media-tab {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.7rem;
  }

  .headline-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .music-card {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }

  .music-list {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
  }

  .music-artwork {
    max-height: 112px;
    border-radius: 5px;
  }

  .music-card-body {
    gap: 5px;
  }

  .music-meta {
    gap: 2px;
  }

  .music-meta strong {
    font-size: 0.78rem;
  }

  .music-meta span {
    font-size: 0.68rem;
  }

  .music-actions {
    justify-content: flex-start;
  }

  .track-detail {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .track-info h1 {
    font-size: clamp(1.8rem, 12vw, 3rem);
  }
}
