* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  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;
}

.home-page {
  min-height: 100vh;
  background-color: #09090b;
  background-image:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05), transparent 35%);
  color: #fff;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Header */
.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background-color: rgba(9,9,11,0.8);
  backdrop-filter: blur(24px);
}

.home-header-inner {
  height: 4.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .home-header-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.home-header-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.repeat-logo-image {
  display: block;
  width: clamp(10rem, 18vw, 14rem);
  max-height: 3rem;
  object-fit: contain;
  object-position: left center;
}

.home-header-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.home-header-nav-wrap {
  display: contents;
}

@media (min-width: 768px) {
  .home-header-nav {
    display: flex;
  }
}

.home-header-nav a {
  color: #d4d4d8;
  font-size: 0.875rem;
}

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

.api-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  border: 1px solid rgba(125,211,252,0.24);
  border-radius: 999px;
  background: rgba(14,165,233,0.08);
  color: #bae6fd;
  padding: 0 0.8rem;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.api-pill[hidden] {
  display: none;
}

.api-pill[data-state="offline"] {
  border-color: rgba(250,204,21,0.32);
  background: rgba(250,204,21,0.08);
  color: #fef3c7;
}

.home-header-btn-icon {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: #d4d4d8;
  font-size: 1.35rem;
}

.home-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.4rem;
  border-radius: 0.75rem;
  background-color: #0ea5e9;
  padding: 0.625rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(14,165,233,0.2), 0 4px 6px -4px rgba(14,165,233,0.2);
}

.home-header-cta:disabled {
  cursor: not-allowed;
  background-color: rgba(14,165,233,0.42);
  color: rgba(255,255,255,0.72);
  box-shadow: none;
}

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

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

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

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

.repeat-search-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 1rem;
  width: min(100%, 46rem);
  height: auto;
  max-height: min(76vh, 48rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(14,165,233,0.12), transparent 34%),
    rgba(12,13,16,0.96);
  box-shadow: 0 2rem 5rem rgba(0,0,0,0.45);
  padding: 1.25rem;
}

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

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

.repeat-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.1);
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.035);
  color: #d4d4d8;
  font-size: 1.5rem;
  line-height: 1;
}

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

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

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

.repeat-search-input-wrap input:focus {
  border-color: rgba(14,165,233,0.75);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

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

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

.repeat-search-group h3 {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.repeat-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.08);
  border-radius: 0.85rem;
  background: rgba(0,0,0,0.22);
  padding: 0.45rem;
}

.repeat-search-result:hover {
  border-color: rgba(14,165,233,0.45);
  background: rgba(14,165,233,0.08);
}

.repeat-search-result-art,
.repeat-search-result-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.65rem;
  background-color: rgba(14,165,233,0.18);
  background-position: center;
  background-size: cover;
  color: #8ec6ff;
  font-weight: 800;
}

.repeat-search-result-icon {
  font-size: 1.15rem;
}

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

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

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

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

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

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06), transparent 26%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  padding: 3rem 2rem;
}

@media (min-width: 1024px) {
  .home-hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 0.25rem 0.75rem;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 500;
}

.home-hero-title {
  max-width: 48rem;
  margin: 0;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .home-hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-title {
    font-size: 3rem;
  }
}

.home-hero-desc {
  max-width: 42rem;
  margin-top: 1.25rem;
  color: #a1a1aa;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.home-hero-btn-primary,
.home-hero-btn-secondary,
.home-hero-btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.home-hero-btn-primary {
  background-color: #0ea5e9;
  padding: 0.75rem 1.25rem;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(14,165,233,0.2), 0 4px 6px -4px rgba(14,165,233,0.2);
}

.home-hero-btn-secondary {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  padding: 0.75rem 1.25rem;
  color: #f4f4f5;
}

.home-hero-btn-tertiary {
  padding: 0.75rem 1rem;
  color: #d4d4d8;
}

/* Hero card */
.home-hero-card-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
}

.home-hero-card-grid {
  display: grid;
}

@media (min-width: 768px) {
  .home-hero-card-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.home-hero-card-image {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.home-hero-card-image span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #8ec6ff;
  font-size: 4rem;
  font-weight: 800;
}

.home-hero-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.home-hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.2);
  background: rgba(56,189,248,0.1);
  padding: 0.25rem 0.625rem;
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 500;
}

.home-hero-card-tag-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #38bdf8;
  animation: home-pulse 2s ease-in-out infinite;
}

.home-hero-card-title {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.home-hero-card-format {
  margin-top: 0.5rem;
  color: #a1a1aa;
  font-size: 0.875rem;
}

.home-hero-nowplaying {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
  padding: 1rem;
}

.home-hero-nowplaying-label {
  color: #71717a;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-nowplaying-track,
.home-station-card-nowplaying-track {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.5rem;
}

.repeat-nowplaying-thumb {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255,255,255,0.08);
  background-color: rgba(255,255,255,0.04);
  background-position: center;
  background-size: cover;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.home-hero-nowplaying-copy,
.home-station-card-nowplaying-copy {
  flex: 1;
  min-width: 0;
}

.home-hero-nowplaying-artist,
.home-hero-nowplaying-title {
  color: #a1a1aa;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.home-hero-nowplaying-artist {
  color: #e4e4e7;
  font-weight: 600;
}

.home-hero-card-cta-wrap {
  margin-top: 1.5rem;
}

.home-hero-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.625rem 1rem;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 500;
}

.home-hero-trending {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
}

.home-hero-trending-title {
  margin-bottom: 1rem;
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-trending-grid {
  display: grid;
  gap: 0.75rem;
}

.home-hero-trending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  padding: 0.75rem 1rem;
}

.home-hero-trending-item-name {
  color: #fff;
  font-weight: 500;
}

.home-hero-trending-item-meta,
.home-hero-trending-item-action {
  color: #a1a1aa;
  font-size: 0.875rem;
}

.home-hero-trending-item-action {
  background: transparent;
}

/* Sections */
.home-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.home-hero + .home-section {
  border-top: none;
}

@media (min-width: 1024px) {
  .home-section {
    padding: 2.5rem 2rem;
  }
}

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

.home-section-heading-eyebrow {
  margin-bottom: 0.5rem;
  color: rgba(56,189,248,0.8);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-section-heading-title {
  margin: 0;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.home-section-heading-desc,
.home-section-heading-action {
  color: #a1a1aa;
  font-size: 0.875rem;
}

.home-stations-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .home-stations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .home-stations-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.home-station-card {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.home-station-card-image {
  overflow: hidden;
}

.home-station-card-image-inner {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  color: #8ec6ff;
  font-size: 2.5rem;
  font-weight: 800;
}

.home-station-card-body {
  padding: 1.25rem;
}

.home-station-card-title {
  margin: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}

.home-station-card-format {
  margin: 0.25rem 0 0;
  color: #a1a1aa;
  font-size: 0.875rem;
  line-height: 1.35;
}

.home-station-card-nowplaying {
  margin-top: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.2);
  padding: 0.75rem;
}

.home-station-card-nowplaying-label {
  color: #71717a;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-station-card-nowplaying .repeat-nowplaying-thumb {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.home-station-card-nowplaying-artist,
.home-station-card-nowplaying-title {
  overflow: hidden;
  color: #a1a1aa;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-station-card-nowplaying-artist {
  color: #e4e4e7;
  font-weight: 600;
}

.home-station-card-actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-station-card-link {
  color: #d4d4d8;
  font-size: 0.875rem;
  font-weight: 500;
}

.home-station-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #0ea5e9;
  padding: 0.625rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(14,165,233,0.2), 0 4px 6px -4px rgba(14,165,233,0.2);
}

.repeat-live-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .repeat-live-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .repeat-live-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.repeat-live-item {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  overflow: hidden;
  min-height: 5.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
}

.repeat-live-art {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5.25rem;
  background-color: rgba(14,165,233,0.16);
  background-position: center;
  background-size: cover;
  color: #8ec6ff;
  font-weight: 800;
}

.repeat-live-copy {
  display: grid;
  min-width: 0;
  padding: 0 1rem;
}

.repeat-live-copy strong,
.repeat-live-copy span,
.repeat-live-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-live-copy strong {
  color: #fff;
  font-size: 0.95rem;
}

.repeat-live-copy span {
  margin-top: 0.25rem;
  color: #fff;
}

.repeat-live-copy small {
  margin-top: 0.15rem;
  color: #a1a1aa;
}

.repeat-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  color: #5eead4;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.repeat-live-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #34d399;
}

.repeat-genre-card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .repeat-genre-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .repeat-genre-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.repeat-genre-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 8.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  background:
    linear-gradient(135deg, rgba(14,165,233,0.35), rgba(255,255,255,0.04)),
    #111827;
  background-position: center;
  background-size: cover;
}

.repeat-genre-card-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0.68), rgba(0,0,0,0.2));
}

.repeat-genre-card-content {
  display: grid;
  align-content: end;
  min-height: 8.25rem;
  padding: 1rem;
}

.repeat-genre-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.repeat-genre-card small,
.repeat-genre-card em {
  margin-top: 0.25rem;
  color: #e4e4e7;
  font-size: 0.875rem;
  font-style: normal;
}

.repeat-route-view {
  max-width: 80rem;
  min-height: 62vh;
  margin: 0 auto;
  padding: 3rem 2rem;
}

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

.repeat-route-title {
  margin: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.1;
}

.repeat-route-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
  color: #a1a1aa;
}

.repeat-station-groups {
  display: grid;
  gap: 3rem;
}

.repeat-station-group {
  display: grid;
  gap: 1.25rem;
}

.repeat-station-group-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 0.9rem;
}

.repeat-station-group-heading h2 {
  margin: 0.15rem 0 0;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.15;
}

.repeat-station-group-heading span {
  color: #a1a1aa;
  font-size: 0.875rem;
  white-space: nowrap;
}

.repeat-stream-links {
  display: grid;
  gap: 0.875rem;
}

.repeat-stream-link-row {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.035);
  padding: 1rem;
}

.repeat-stream-link-copy {
  min-width: 0;
}

.repeat-stream-link-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.repeat-stream-link-copy p {
  margin: 0.25rem 0 0;
  color: #a1a1aa;
  font-size: 0.875rem;
}

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

.repeat-stream-link-actions a {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  background: rgba(0,0,0,0.2);
  padding: 0.75rem 0.875rem;
}

.repeat-stream-link-actions a:hover {
  border-color: rgba(14,165,233,0.45);
  background: rgba(14,165,233,0.08);
}

.repeat-stream-link-actions strong {
  color: #fff;
  font-size: 0.875rem;
}

.repeat-stream-link-actions span {
  overflow: hidden;
  color: #a1a1aa;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-code-builder {
  display: grid;
  gap: 1rem;
}

.repeat-code-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  background: rgba(255,255,255,0.035);
  padding: 1rem;
}

.repeat-code-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1rem;
}

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

.repeat-code-field span,
.repeat-code-switches span {
  color: #d4d4d8;
  font-size: 0.8rem;
  font-weight: 600;
}

.repeat-code-field select {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.75rem;
  background: #111318;
  color: #fff;
  padding: 0 0.85rem;
  font: inherit;
}

.repeat-code-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.repeat-code-switches label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.2);
  padding: 0 0.8rem;
}

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

.repeat-code-output-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
}

.repeat-code-actions {
  display: flex;
  gap: 0.5rem;
}

.repeat-code-actions button {
  min-height: 2.35rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.7rem;
  background: rgba(14,165,233,0.14);
  color: #fff;
  padding: 0 0.85rem;
  font-weight: 700;
}

.repeat-code-actions button:hover {
  border-color: rgba(14,165,233,0.5);
  background: rgba(14,165,233,0.22);
}

.repeat-code-output textarea {
  width: 100%;
  min-height: 20rem;
  resize: vertical;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.28);
  color: #d4d4d8;
  padding: 1rem;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.repeat-code-preview-frame {
  display: grid;
  justify-items: center;
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 0.75rem;
  background: rgba(0,0,0,0.24);
  padding: 1.25rem;
}

.repeat-content-page {
  display: grid;
  gap: 1.5rem;
}

.repeat-content-heading {
  margin-bottom: 0;
}

.repeat-content-body {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.repeat-content-section {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  background: rgba(255,255,255,0.035);
  padding: 1.25rem;
}

.repeat-content-section h2 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1.2rem;
}

.repeat-content-section p,
.repeat-content-section li {
  color: #b8bec9;
  line-height: 1.7;
}

.repeat-content-section p {
  margin: 0;
}

.repeat-content-section p + p {
  margin-top: 0.85rem;
}

.repeat-content-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
}

.repeat-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.repeat-content-notice {
  border: 1px solid rgba(56,189,248,0.32);
  border-radius: 1rem;
  background: rgba(14,165,233,0.1);
  color: #e0f2fe;
  padding: 1rem 1.25rem;
}

.repeat-paypal-section {
  display: grid;
  justify-items: start;
}

.repeat-paypal-form {
  margin-top: 0.25rem;
}

.repeat-paypal-form input[type="image"] {
  display: block;
  max-width: 100%;
  height: auto;
}

.repeat-station-detail {
  display: grid;
  gap: 2rem;
  align-items: stretch;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.repeat-station-page {
  display: grid;
  gap: 1.5rem;
  width: min(100%, 58rem);
  margin-inline: auto;
}

@media (min-width: 820px) {
  .repeat-station-detail {
    grid-template-columns: minmax(18rem, 0.86fr) 1.14fr;
  }
}

.repeat-station-detail-art {
  display: grid;
  place-items: center;
  min-height: 22rem;
  background-color: rgba(14,165,233,0.16);
  background-position: center;
  background-size: cover;
  color: #8ec6ff;
  font-size: 4rem;
  font-weight: 800;
}

.repeat-station-detail-body {
  padding: 2rem;
}

.repeat-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.repeat-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.repeat-detail-tags a {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: #d4d4d8;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
}

.repeat-history-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.025);
  padding: 1.5rem;
  scroll-margin-top: 6rem;
  scroll-margin-bottom: 6rem;
}

.repeat-related-panel {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.02);
  padding: 1.5rem;
}

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

.repeat-history-heading h2 {
  margin: 0.25rem 0 0;
  color: #fff;
  font-size: 1.4rem;
}

.repeat-history-heading span {
  color: #a1a1aa;
  font-size: 0.875rem;
}

.repeat-history-heading a {
  color: #d4d4d8;
  font-size: 0.875rem;
}

.repeat-history-list {
  display: grid;
  gap: 0.65rem;
}

.repeat-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.9rem;
  background: rgba(0,0,0,0.22);
  padding: 0.75rem 0.9rem;
}

.repeat-history-item strong,
.repeat-history-item span {
  display: block;
}

.repeat-history-item strong {
  color: #fff;
  font-size: 0.95rem;
}

.repeat-history-item span,
.repeat-history-item time {
  color: #a1a1aa;
  font-size: 0.84rem;
}

.repeat-history-item time {
  flex: 0 0 auto;
}

.repeat-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.repeat-related-card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-height: 5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.9rem;
  background: rgba(0,0,0,0.22);
  padding: 0.55rem;
}

.repeat-related-art {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 0.7rem;
  background-color: rgba(14,165,233,0.18);
  background-position: center;
  background-size: cover;
  color: #8ec6ff;
  font-size: 1rem;
  font-weight: 800;
}

.repeat-related-copy {
  min-width: 0;
}

.repeat-related-copy strong,
.repeat-related-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-related-copy strong {
  color: #fff;
  font-size: 0.95rem;
}

.repeat-related-copy small {
  margin-top: 0.2rem;
  color: #a1a1aa;
  font-size: 0.82rem;
}

.repeat-browse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.repeat-genre-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.repeat-genre-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: #fff;
  padding: 0 0.9rem;
  cursor: pointer;
}

.repeat-genre-chip small,
.repeat-station-count {
  color: #a1a1aa;
}

.repeat-genre-chip.is-active {
  border-color: rgba(56,189,248,0.65);
}

.repeat-search-box {
  display: grid;
  gap: 0.45rem;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.repeat-search-box input {
  width: min(360px, 74vw);
  height: 2.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.025);
  color: #fff;
  padding: 0 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.empty-panel {
  grid-column: 1 / -1;
  color: #a1a1aa;
}

.home-footer {
  margin-top: 4rem;
  padding-bottom: 5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.01);
}

.home-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 1.75rem;
}

.repeat-footer-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 18rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(14,165,233,0.12), transparent 45%),
    rgba(255,255,255,0.02);
  text-align: center;
}

.repeat-footer-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9,9,11,0.94), rgba(9,9,11,0.62), rgba(9,9,11,0.94));
}

.repeat-footer-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -2;
  width: min(72rem, 135vw);
  max-width: none;
  opacity: 0.18;
  transform: translate(-50%, -50%);
  filter: saturate(0.8);
}

.repeat-footer-cta-content {
  max-width: 54rem;
  padding: 3rem 1.5rem;
}

.repeat-footer-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
}

.repeat-footer-cta p {
  margin: 1.25rem auto 0;
  max-width: 44rem;
  color: #d4d4d8;
  font-size: 1.05rem;
  line-height: 1.65;
}

.repeat-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.repeat-footer-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.repeat-footer-app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.025);
  color: #a1a1aa;
}

.repeat-footer-app-link:hover {
  color: #fff;
  border-color: rgba(56,189,248,0.42);
}

.repeat-footer-app-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.repeat-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(9,9,11,0.92);
  backdrop-filter: blur(24px);
}

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

.repeat-player-art {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.8rem;
  background-color: rgba(14,165,233,0.16);
  background-position: center;
  background-size: cover;
  color: #8ec6ff;
  font-weight: 800;
}

.repeat-player-meta {
  min-width: 0;
}

.repeat-player-kicker {
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.repeat-player-title,
.repeat-player-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repeat-player-title {
  color: #fff;
  font-weight: 700;
}

.repeat-player-subtitle {
  margin-top: 0.1rem;
  color: #a1a1aa;
  font-size: 0.875rem;
}

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

.repeat-player-button {
  border-radius: 0.75rem;
  background: #0ea5e9;
  color: #fff;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.repeat-player-button-secondary {
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #e4e4e7;
}

.repeat-player-link {
  color: #d4d4d8;
  font-size: 0.875rem;
}

.home-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.75rem;
  color: rgba(234,239,246,0.58);
  font-size: 0.875rem;
  text-align: center;
}

.repeat-footer-page-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.repeat-footer-page-links a {
  color: #a1a1aa;
  font-weight: 600;
}

.repeat-footer-page-links a:hover {
  color: #fff;
}

@media (max-width: 1023px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .home-header-inner {
    height: auto;
    min-height: 4rem;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.65rem;
  }

  .repeat-logo-image {
    width: clamp(7.9rem, 36vw, 9rem);
  }

  .home-header-logo {
    flex: 1 1 auto;
  }

  .home-header-nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: none;
  }

  .home-header-nav-wrap {
    position: relative;
    display: block;
    order: 3;
    width: 100%;
    min-width: 0;
  }

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

  .home-header-nav-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #09090b 0%, rgba(9,9,11,0) 100%);
    opacity: 0.68;
  }

  .home-header-nav-wrap::after {
    right: 0;
    background:
      linear-gradient(270deg, #09090b 0%, rgba(9,9,11,0) 100%),
      radial-gradient(circle at right center, rgba(56,189,248,0.26), rgba(56,189,248,0) 66%);
  }

  .home-header-nav-wrap .home-header-nav::after {
    content: "›";
    position: sticky;
    right: 0;
    z-index: 3;
    display: inline-grid;
    flex: 0 0 1.8rem;
    place-items: center;
    min-width: 1.8rem;
    border-radius: 999px;
    background: rgba(14,165,233,0.18);
    color: rgba(224,242,254,0.9);
    font-size: 1.2rem;
    font-weight: 800;
    pointer-events: none;
    box-shadow: 0 0 1rem rgba(14,165,233,0.24);
  }

  .home-header-nav::-webkit-scrollbar {
    display: none;
  }

  .home-header-nav a {
    flex: 1 0 auto;
    min-width: max-content;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.6rem;
    background: rgba(255,255,255,0.025);
    padding: 0.45rem 0.65rem;
    text-align: center;
    font-size: 0.74rem;
  }

  .home-header-actions {
    gap: 0.5rem;
  }

  .home-header-btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    font-size: 1.1rem;
  }

  .home-header-cta {
    min-height: 2.25rem;
    border-radius: 0.65rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .repeat-search-modal {
    align-items: start;
    padding: 0.75rem;
  }

  .repeat-search-dialog {
    width: 100%;
    height: calc(100dvh - 1.5rem);
    max-height: none;
    border-radius: 1rem;
    padding: 1rem;
  }

  @supports not (height: 100dvh) {
    .repeat-search-dialog {
      height: calc(100vh - 1.5rem);
    }
  }

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

  .repeat-search-header {
    gap: 0.75rem;
  }

  .repeat-search-input-wrap {
    gap: 0.35rem;
  }

  .repeat-search-input-wrap input {
    height: 2.65rem;
  }

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

  .repeat-search-result-art,
  .repeat-search-result-icon {
    width: 2.9rem;
    height: 2.9rem;
  }

  .home-hero-inner {
    gap: 1.5rem;
    padding: 1.75rem 1rem;
  }

  .home-hero-badge {
    margin-bottom: 0.75rem;
  }

  .home-hero-title {
    font-size: clamp(2rem, 11vw, 2.75rem);
    line-height: 1.08;
  }

  .home-hero-desc {
    margin-top: 1rem;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 1.25rem;
  }

  .home-hero-btn-primary,
  .home-hero-btn-secondary,
  .home-hero-btn-tertiary {
    min-height: 2.65rem;
    padding: 0.65rem 0.8rem;
  }

  .home-hero-btn-tertiary {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .home-hero-card-grid {
    grid-template-columns: 1fr;
  }

  .home-hero-card-wrap,
  .home-station-card,
  .repeat-station-detail,
  .repeat-history-panel,
  .repeat-related-panel {
    border-radius: 1rem;
  }

  .home-hero-card-image {
    min-height: 12.5rem;
  }

  .home-hero-card-body,
  .home-hero-trending,
  .home-station-card-body,
  .repeat-station-detail-body,
  .repeat-history-panel,
  .repeat-related-panel {
    padding: 1rem;
  }

  .home-hero-card-title,
  .repeat-route-title {
    font-size: 1.75rem;
  }

  .home-hero-nowplaying {
    padding: 0.8rem;
  }

  .home-hero-trending-item {
    border-radius: 0.8rem;
    padding: 0.7rem 0.8rem;
  }

  .home-section {
    padding: 2rem 1rem;
  }

  .home-section-heading {
    margin-bottom: 1.25rem;
  }

  .home-section-heading-title {
    font-size: 1.55rem;
  }

  .home-stations-grid,
  .repeat-live-grid,
  .repeat-genre-card-grid {
    gap: 1rem;
  }

  .repeat-station-groups {
    gap: 2.25rem;
  }

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

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

  .repeat-station-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .repeat-station-group-heading h2 {
    font-size: 1.35rem;
  }

  .home-station-card-image-inner {
    aspect-ratio: 16 / 10;
  }

  .home-station-card-actions {
    gap: 1rem;
  }

  .home-station-card-cta {
    padding-inline: 0.85rem;
  }

  .repeat-live-item {
    grid-template-columns: 4rem minmax(0, 1fr);
    min-height: 4.5rem;
  }

  .repeat-live-art {
    width: 4rem;
    height: 4.5rem;
  }

  .repeat-live-pill {
    grid-column: 2;
    justify-self: start;
    margin: 0.2rem 0 0;
    padding-left: 1rem;
    font-size: 0.68rem;
  }

  .repeat-genre-card,
  .repeat-genre-card-content {
    min-height: 7rem;
  }

  .home-footer-inner {
    padding: 2.5rem 1rem 1.5rem;
  }

  .repeat-footer-cta {
    min-height: 14rem;
    border-radius: 1rem;
  }

  .repeat-footer-watermark {
    width: min(58rem, 165vw);
    opacity: 0.16;
  }

  .repeat-footer-cta-content {
    padding: 2rem 1rem;
  }

  .repeat-footer-cta h2 {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  .repeat-footer-cta p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .home-section-heading,
  .repeat-browse-row,
  .repeat-route-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .repeat-route-view {
    padding: 2rem 1rem;
  }

  .repeat-station-detail-art {
    min-height: 15.5rem;
  }

  .repeat-history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .repeat-history-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .repeat-history-item time {
    align-self: flex-start;
  }

  .repeat-related-grid {
    grid-template-columns: 1fr;
  }

  .repeat-player-inner {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.6rem 1rem 0.8rem;
  }

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

  .repeat-player-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .repeat-player-button {
    flex: 1;
    padding: 0.6rem 0.75rem;
  }

  .repeat-player-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0 0.25rem;
  }
}
