* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #f6f6f4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  --listen-header-fade: rgba(12, 12, 14, 0.7);
  color: #3f3f46;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.listen-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
  max-width: 78rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.is-route .listen-header {
  position: sticky;
  max-width: none;
  padding-left: max(1.5rem, calc((100vw - 78rem) / 2 + 1.5rem));
  padding-right: max(1.5rem, calc((100vw - 78rem) / 2 + 1.5rem));
  --listen-header-fade: rgba(24, 24, 27, 0.96);
  background: rgba(24, 24, 27, 0.96);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.listen-brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.listen-brand img {
  display: block;
  width: clamp(10rem, 18vw, 14rem);
  height: auto;
  max-height: 9.25rem;
  object-fit: contain;
  object-position: center;
}

.listen-nav-wrap {
  position: relative;
  min-width: 0;
}

.listen-nav-wrap::before,
.listen-nav-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 2rem;
  pointer-events: none;
}

.listen-nav-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--listen-header-fade) 0%, rgba(24,24,27,0) 100%);
  opacity: 0.18;
}

.listen-nav-wrap::after {
  right: 0;
  background:
    linear-gradient(270deg, var(--listen-header-fade) 0%, rgba(24,24,27,0) 100%),
    radial-gradient(circle at right center, rgba(255,255,255,0.28), rgba(255,255,255,0) 66%);
}

.listen-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.6vw, 1.8rem);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 2.15rem;
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
  scrollbar-width: none;
}

.listen-nav::-webkit-scrollbar {
  display: none;
}

.listen-nav::after {
  content: "";
  position: sticky;
  right: 0;
  z-index: 3;
  display: inline-grid;
  flex: 0 0 1.4rem;
  place-items: center;
  min-width: 1.4rem;
  pointer-events: none;
}

.listen-nav a {
  white-space: nowrap;
}

.listen-nav-scroll {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(0,0,0,0.34);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 0 1rem rgba(255,255,255,0.14);
}

.listen-nav-scroll-left {
  left: 0.15rem;
}

.listen-nav-scroll-right {
  right: 0.15rem;
}

.listen-search-button {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
  color: #fff;
  padding: 0.68rem 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  cursor: pointer;
  white-space: nowrap;
}

.listen-api-pill {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.listen-random {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0.7rem 1rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  cursor: pointer;
  white-space: nowrap;
}

.listen-hero {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(12, 9, 8, 0.34), rgba(5, 5, 6, 0.82)),
    url("./images/cover.jpg") center / cover;
  color: #fff;
}

.listen-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.18), transparent 30%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.76));
}

.listen-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 78rem;
  margin: 0 auto;
  padding: 11rem 1.5rem 2rem;
  text-align: center;
}

.listen-hero h1 {
  margin: 0 0 1.6rem;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 3.25rem);
  text-shadow: 0 3px 10px rgba(0,0,0,0.65);
}

.listen-search-is-open {
  overflow: hidden;
}

.listen-search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 6rem 1rem 2rem;
}

.listen-search-modal[hidden] {
  display: none;
}

.listen-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
  backdrop-filter: blur(16px);
}

.listen-search-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 46rem);
  max-height: min(76vh, 48rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top, rgba(210, 66, 44, 0.12), transparent 36%),
    rgba(24,24,27,0.97);
  box-shadow: 0 2rem 5rem rgba(0,0,0,0.38);
  padding: 1.25rem;
}

.listen-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.listen-search-header h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.15;
}

.listen-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}

.listen-search-input-wrap {
  display: grid;
  gap: 0.45rem;
}

.listen-search-input-wrap span {
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.listen-search-input-wrap input {
  width: 100%;
  height: 3.15rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.8rem;
  background: rgba(255,255,255,0.055);
  color: #fff;
  padding: 0 1rem;
  outline: none;
}

.listen-search-input-wrap input:focus {
  border-color: rgba(210,66,44,0.7);
  box-shadow: 0 0 0 3px rgba(210,66,44,0.18);
}

.listen-search-results {
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow: auto;
  padding-right: 0.25rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.listen-search-group {
  display: grid;
  gap: 0.5rem;
}

.listen-search-group h3 {
  margin: 0;
  color: #fb923c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.listen-search-result-list {
  display: grid;
  gap: 0.5rem;
}

.listen-search-result {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 0.85rem;
  background: rgba(0,0,0,0.2);
  padding: 0.45rem;
}

.listen-search-result:hover {
  border-color: rgba(251,146,60,0.44);
  background: rgba(251,146,60,0.08);
}

.listen-search-result-art,
.listen-search-result-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.65rem;
  background-color: rgba(251,146,60,0.16);
  background-position: center;
  background-size: cover;
  color: #fed7aa;
  font-weight: 900;
}

.listen-search-result-icon {
  font-size: 1.1rem;
}

.listen-search-result-copy {
  min-width: 0;
}

.listen-search-result-copy strong,
.listen-search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-search-result-copy strong {
  color: #fff;
  font-size: 0.95rem;
}

.listen-search-result-copy small,
.listen-search-empty {
  color: #a1a1aa;
  font-size: 0.84rem;
}

.listen-search-empty {
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 0.85rem;
  background: rgba(0,0,0,0.18);
  padding: 1rem;
}

.listen-genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem 2.4rem;
}

.listen-genre-grid-route {
  grid-template-columns: repeat(3, 1fr);
}

.listen-genre-tile {
  display: grid;
  place-items: center;
  min-height: 4.65rem;
  border-radius: 0.18rem;
  background: rgba(255,255,255,0.94);
  color: #454545;
  padding: 0 1rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.listen-genre-tile:hover {
  background: #fff;
  transform: translateY(-1px);
}

.listen-section {
  padding: 3rem 1.5rem;
}

.listen-section-light {
  background: #fff;
}

.listen-section-heading {
  max-width: 48rem;
  margin: 0 auto 1.8rem;
  text-align: center;
}

.listen-section-heading h2 {
  margin: 0;
  color: #444;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.listen-section-heading p {
  margin: 0.6rem 0 0;
  color: #777;
  font-size: 1.2rem;
}

.listen-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.listen-trending-list {
  display: grid;
  gap: 0.85rem;
  max-width: 48rem;
  margin: 0 auto;
}

.listen-popular-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.listen-trending-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  background: #fff;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 12px 28px rgba(15,23,42,0.07);
}

.listen-trending-art {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: #e2e8f0 center / cover;
  color: #475569;
  font-weight: 900;
}

.listen-trending-card h3 {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
}

.listen-trending-card p {
  overflow: hidden;
  margin: 0.2rem 0 0;
  color: #737373;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-trending-card button {
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  padding: 0.7rem 0.95rem;
  font-weight: 800;
}

.listen-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

.listen-featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 14px 45px rgba(15,23,42,0.1);
}

.listen-featured-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #e2e8f0 center / cover;
  color: #475569;
  font-size: 2.5rem;
  font-weight: 900;
}

.listen-featured-copy {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.listen-featured-copy h3 {
  margin: 0;
  color: #333;
  font-size: 1.18rem;
}

.listen-featured-copy p:not(.listen-eyebrow) {
  min-height: 2.6rem;
  color: #737373;
  font-size: 0.95rem;
}

.listen-popular-art {
  display: grid;
  place-items: center;
  width: min(15rem, 100%);
  aspect-ratio: 1;
  border-radius: 999px;
  background: #e2e8f0 center / cover;
  color: #475569;
  font-size: 2.5rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}

.listen-popular-card h3 {
  margin: 1rem 0 0.35rem;
  color: #333;
  font-size: 1.3rem;
}

.listen-popular-card p {
  min-height: 2.4rem;
  margin: 0;
  color: #777;
}

.listen-popular-card button,
.listen-station-row button,
.listen-detail-actions button {
  margin-top: 1rem;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-weight: 800;
}

.listen-section-action {
  display: flex;
  justify-content: center;
  margin-top: 2.2rem;
}

.listen-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #fff;
  color: #333;
  padding: 0.8rem 1.2rem;
  font-weight: 800;
}

.listen-apps {
  padding: 1.4rem 1.5rem 1.8rem;
  background: #f6f6f4;
  text-align: center;
}

.listen-apps h2 {
  margin: 0;
  color: #5f5f5f;
  font-size: 1rem;
  font-weight: 850;
}

.listen-app-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.listen-app-links a {
  min-width: auto;
  border-radius: 999px;
  background: #202020;
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.listen-route {
  max-width: 78rem;
  min-height: 62vh;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.listen-route-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.listen-eyebrow {
  margin: 0 0 0.4rem;
  color: #9a3412;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.listen-route-heading h1 {
  margin: 0;
  color: #333;
  font-size: clamp(2rem, 4vw, 3rem);
}

.listen-route-heading p {
  margin: 0.45rem 0 0;
  color: #737373;
}

.listen-route-search {
  display: grid;
  gap: 0.4rem;
  color: #737373;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.listen-route-search input {
  width: min(22rem, 72vw);
  height: 2.75rem;
  border: 1px solid #d4d4d8;
  border-radius: 0.25rem;
  background: #fff;
  color: #222;
  padding: 0 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.listen-station-list {
  display: grid;
  gap: 0.9rem;
}

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

.listen-station-group {
  display: grid;
  gap: 0.8rem;
}

.listen-station-group-heading {
  border-bottom: 1px solid #dedede;
  padding-bottom: 0.5rem;
}

.listen-station-group-heading h2 {
  margin: 0;
  color: #333;
  font-size: 1.45rem;
}

.listen-station-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.75rem;
}

.listen-station-row-art {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  background: #e2e8f0 center / cover;
  color: #475569;
  font-weight: 900;
}

.listen-station-row h2 {
  margin: 0;
  color: #333;
  font-size: 1.15rem;
}

.listen-station-row p {
  overflow: hidden;
  margin: 0.25rem 0 0;
  color: #737373;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-stream-links {
  display: grid;
  gap: 0.85rem;
}

.listen-stream-link-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 1rem;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1rem;
}

.listen-stream-link-row h2 {
  margin: 0;
  color: #333;
  font-size: 1.05rem;
}

.listen-stream-link-row p {
  margin: 0.25rem 0 0;
  color: #737373;
  font-size: 0.85rem;
}

.listen-stream-link-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.listen-stream-link-actions a {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  border: 1px solid #d4d4d8;
  border-radius: 0.45rem;
  background: #fafafa;
  color: #1f2937;
  padding: 0.7rem 0.8rem;
}

.listen-stream-link-actions strong {
  font-size: 0.85rem;
}

.listen-stream-link-actions span {
  overflow: hidden;
  color: #737373;
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-station-detail {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 2rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
}

.listen-route-back {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: #333;
  padding: 0.55rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.listen-station-detail-art {
  min-height: 20rem;
  border-radius: 0.5rem;
  background: #e2e8f0 center / cover;
}

.listen-station-detail-copy h1 {
  margin: 0;
  color: #333;
  font-size: clamp(2rem, 4vw, 3rem);
}

.listen-now-box {
  display: grid;
  gap: 0.25rem;
  margin: 1.3rem 0;
  border: 1px solid #e4e4e7;
  border-radius: 0.5rem;
  background: #fafafa;
  padding: 1rem;
}

.listen-now-box span {
  color: #9a3412;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.listen-detail-actions,
.listen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.listen-tags {
  margin-top: 1rem;
}

.listen-tags a {
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.listen-history {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem;
}

.listen-history h2 {
  margin: 0 0 1rem;
  color: #333;
}

.listen-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  border-top: 1px solid #eee;
  padding: 0.75rem 0;
}

.listen-history-item strong,
.listen-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-history-item span,
.listen-history-item time {
  color: #737373;
}

.listen-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 -16px 32px rgba(0,0,0,0.1);
}

.listen-player-inner {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  max-width: 78rem;
  min-height: 4.75rem;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
}

.listen-player-art {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #e2e8f0 center / cover;
  color: #475569;
  font-weight: 900;
}

.listen-player-copy {
  min-width: 0;
}

.listen-player-kicker {
  color: #9a3412;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.listen-player-copy strong,
.listen-player-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listen-player-copy strong {
  color: #333;
}

.listen-player-copy span {
  color: #737373;
  font-size: 0.875rem;
}

.listen-player-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.listen-player-actions button,
.listen-player-actions a {
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-weight: 800;
}

.listen-player-actions button + button {
  background: #e5e7eb;
  color: #333;
}

.listen-footer {
  padding: 3rem 1.5rem 6rem;
  background: #171717;
  color: #d4d4d8;
}

.listen-footer-inner {
  display: grid;
  gap: 1.5rem;
  max-width: 78rem;
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}

.listen-footer-brand img {
  width: min(12rem, 70vw);
  height: auto;
  max-height: 9.25rem;
}

.listen-footer nav,
.listen-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.listen-footer-pages {
  margin-top: -0.5rem;
}

.listen-footer p {
  margin: 0;
  color: #a3a3a3;
  font-size: 0.9rem;
}

.listen-empty {
  grid-column: 1 / -1;
  color: #737373;
}

.listen-live-pill {
  justify-self: end;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.listen-code-builder,
.listen-content-body {
  display: grid;
  gap: 1rem;
}

.listen-code-panel,
.listen-content-section,
.listen-content-notice {
  border: 1px solid #e4e4e7;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem;
}

.listen-code-field {
  display: grid;
  gap: 0.45rem;
}

.listen-code-field span,
.listen-code-switches span {
  color: #737373;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.listen-code-field select,
.listen-code-panel textarea {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 0.45rem;
  background: #fff;
  color: #333;
  padding: 0.75rem 0.85rem;
}

.listen-code-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.listen-code-switches label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.listen-code-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.listen-code-heading h2,
.listen-content-section h2 {
  margin: 0;
  color: #333;
}

.listen-code-heading div {
  display: flex;
  gap: 0.55rem;
}

.listen-code-heading button {
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  padding: 0.65rem 0.9rem;
  font-weight: 800;
}

.listen-code-panel textarea {
  min-height: 18rem;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.listen-code-preview {
  display: grid;
  place-items: center;
  min-height: 10rem;
  border-radius: 0.5rem;
  background: #f4f4f5;
  padding: 1rem;
}

.listen-content-page {
  display: grid;
  gap: 1rem;
}

.listen-content-section p,
.listen-content-section li {
  color: #52525b;
  line-height: 1.7;
}

.listen-content-section p {
  margin: 0.7rem 0 0;
}

.listen-content-section ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.listen-contact-email a {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #d4d4d8;
  border-radius: 999px;
  background: #fafafa;
  color: #1f2937;
  padding: 0.7rem 1rem;
  font-weight: 900;
}

.listen-content-notice {
  border-color: rgba(154, 52, 18, 0.22);
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.listen-paypal-section form {
  margin-top: 1rem;
}

.listen-paypal-section input[type="image"] {
  max-width: 100%;
}

@media (max-width: 900px) {
  .listen-header {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    background: #1f1f1f;
  }

  .listen-nav {
    order: 3;
    width: 100%;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0 2.15rem 0.2rem;
  }

  .listen-nav-wrap {
    display: block;
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .listen-nav-wrap::before {
    background: linear-gradient(90deg, #1f1f1f 0%, rgba(31,31,31,0) 100%);
    opacity: 0.45;
  }

  .listen-nav-wrap::after {
    background:
      linear-gradient(270deg, #1f1f1f 0%, rgba(31,31,31,0) 100%),
      radial-gradient(circle at right center, rgba(255,255,255,0.26), rgba(255,255,255,0) 66%);
  }

  .listen-hero {
    min-height: auto;
  }

  .listen-hero-inner {
    padding-top: 3rem;
  }

  .listen-genre-grid,
  .listen-genre-grid-route,
  .listen-featured-grid,
  .listen-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listen-station-detail {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 640px) {
  .listen-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "pill pill"
      "search random"
      "nav nav";
    align-items: center;
    justify-items: center;
    gap: 0.8rem 0.75rem;
    padding: 1.25rem 1rem 1rem;
  }

  .listen-brand {
    grid-area: brand;
    justify-self: center;
  }

  .listen-brand img {
    width: clamp(9.5rem, 54vw, 11rem);
  }

  .listen-api-pill {
    grid-area: pill;
    justify-self: center;
    padding: 0.48rem 0.8rem;
  }

  .listen-search-button {
    grid-area: search;
    justify-self: stretch;
    width: 100%;
    max-width: 7.25rem;
    margin-left: auto;
    padding: 0.65rem 0.7rem;
    font-size: 0.88rem;
  }

  .listen-random {
    grid-area: random;
    justify-self: stretch;
    width: 100%;
    max-width: 8rem;
    margin-right: auto;
    padding: 0.65rem 0.7rem;
    font-size: 0.88rem;
  }

  .listen-nav-wrap {
    grid-area: nav;
    width: 100%;
    overflow: hidden;
  }

  .listen-nav {
    gap: 1rem;
    padding: 0 0 0.2rem;
    font-size: 0.88rem;
  }

  .listen-nav-scroll {
    display: none;
  }

  .listen-hero h1 {
    font-size: clamp(1.9rem, 8.6vw, 2.45rem);
    line-height: 1.08;
    max-width: 8.5em;
    margin-left: auto;
    margin-right: auto;
  }

  .listen-search-modal {
    align-items: start;
    padding: 1rem;
  }

  .listen-search-dialog {
    width: 100%;
    max-height: calc(100vh - 2rem);
    border-radius: 0.75rem;
    padding: 1rem;
  }

  .listen-search-header h2 {
    font-size: 1.2rem;
  }

  .listen-search-result {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .listen-search-result-art,
  .listen-search-result-icon {
    width: 3rem;
    height: 3rem;
  }

  .listen-hero-inner,
  .listen-section,
  .listen-apps,
  .listen-route {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .listen-genre-grid,
  .listen-genre-grid-route {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .listen-featured-grid,
  .listen-popular-grid {
    grid-template-columns: 1fr;
  }

  .listen-route-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .listen-route-search input {
    width: 100%;
  }

  .listen-station-row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
  }

  .listen-trending-card {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    border-radius: 0.75rem;
  }

  .listen-trending-art {
    width: 3.5rem;
    height: 3.5rem;
  }

  .listen-trending-card button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .listen-station-row-art {
    width: 3.75rem;
    height: 3.75rem;
  }

  .listen-station-row button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .listen-live-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .listen-stream-link-row,
  .listen-stream-link-actions {
    grid-template-columns: 1fr;
  }

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

  .listen-history-item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .listen-player-inner {
    grid-template-columns: 3rem minmax(0, 1fr);
    padding: 0.65rem 1rem 0.8rem;
  }

  .listen-player-art {
    width: 3rem;
    height: 3rem;
  }

  .listen-player-actions {
    grid-column: 1 / -1;
  }

  .listen-player-actions button,
  .listen-player-actions a {
    flex: 1;
    text-align: center;
  }

  .listen-footer {
    padding: 2rem 1rem 6.5rem;
  }

  .listen-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 24rem;
  }

  .listen-footer-brand {
    order: 1;
  }

  .listen-footer-brand img {
    width: min(11rem, 58vw);
    max-height: 6rem;
  }

  .listen-footer nav,
  .listen-social {
    width: 100%;
    gap: 0.65rem 0.9rem;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .listen-footer nav {
    order: 2;
  }

  .listen-social {
    order: 3;
  }

  .listen-footer-pages {
    order: 4;
    margin-top: 0;
  }

  .listen-footer nav a,
  .listen-social a {
    white-space: nowrap;
  }

  .listen-footer p {
    order: 5;
    max-width: 20rem;
    font-size: 0.78rem;
    line-height: 1.45;
  }
}
