/* ============================================================
   Signal — radio & podcast platform
   ============================================================ */

:root {
  --bg: #07080c;
  --bg-soft: #0a0c12;
  --surface: #11141d;
  --surface-2: #171b26;
  --surface-3: #1e2330;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f7;
  --muted: #98a0b3;
  --muted-dim: #6c7488;
  --accent: #ff5a3c;
  --accent-2: #ffb03a;
  --violet: #7b5cff;
  --mint: #2fe0a8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --max: 1240px;
  --header-h: 68px;
  --player-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--player-h) + 16px);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(255, 90, 60, 0.35);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* ------------------------------------------------------------ layout -- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translate(-50%, -140%);
  background: var(--accent);
  color: #170702;
  font-weight: 650;
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 200;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------ header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding: 7px 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #ff8a3d 45%, var(--violet));
  box-shadow: 0 8px 22px -8px rgba(255, 90, 60, 0.8);
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: rgba(12, 6, 3, 0.82);
  animation: eq 1.1s ease-in-out infinite;
}

.brand-mark span:nth-child(1) { height: 46%; animation-delay: -0.1s; }
.brand-mark span:nth-child(2) { height: 92%; animation-delay: -0.5s; }
.brand-mark span:nth-child(3) { height: 64%; animation-delay: -0.25s; }
.brand-mark span:nth-child(4) { height: 100%; animation-delay: -0.7s; }

@keyframes eq {
  0%, 100% { transform: scaleY(0.52); }
  50% { transform: scaleY(1); }
}

.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: -3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.search-toggle:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.search-toggle kbd {
  font: inherit;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted-dim);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.6px;
  background: var(--text);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ----------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6a3d, var(--accent) 55%, #ff3d63);
  color: #fff;
  box-shadow: 0 16px 34px -14px rgba(255, 90, 60, 0.85);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px -14px rgba(255, 90, 60, 0.95);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* -------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 20%;
  background:
    radial-gradient(46% 58% at 18% 22%, rgba(255, 90, 60, 0.28), transparent 68%),
    radial-gradient(42% 52% at 78% 8%, rgba(123, 92, 255, 0.26), transparent 70%),
    radial-gradient(38% 46% at 62% 84%, rgba(47, 224, 168, 0.12), transparent 72%);
  filter: blur(14px);
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(70% 62% at 50% 30%, #000 10%, transparent 82%);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 30%, #000 10%, transparent 82%);
  opacity: 0.55;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.35);
  background: rgba(255, 90, 60, 0.1);
  color: #ffcbb8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.1vw, 4.05rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 22px 0 0;
}

.hero h1 .grad {
  background: linear-gradient(96deg, #ff8a3d 0%, #ff5a3c 42%, #ff4bb0 78%, #9b7bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: #b9c0d0;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  max-width: 33em;
  margin: 22px 0 0;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 540px;
}

.hero-stats div {
  min-width: 96px;
}

.hero-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-stats span {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 550;
}

/* hero art */

.hero-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.disc {
  position: absolute;
  width: min(360px, 78%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.055) 0 1.5px, transparent 1.5px 9px),
    radial-gradient(circle at 38% 32%, #2a3040, #10131b 62%, #080a10);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.9), var(--shadow);
  animation: spin 26s linear infinite;
}

.disc::after {
  content: "";
  position: absolute;
  inset: 37%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: 0 0 44px rgba(255, 90, 60, 0.55);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-card {
  position: relative;
  z-index: 2;
  width: min(340px, 100%);
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(30, 35, 48, 0.94), rgba(13, 16, 23, 0.96));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.hero-card .logo-tile {
  width: 62px;
  border-radius: 14px;
  flex-shrink: 0;
}

.hero-card-meta {
  min-width: 0;
}

.hero-card-label {
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-card-name {
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.hero-card-sub {
  font-size: 12.5px;
  color: var(--muted);
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
  margin-top: 16px;
}

.waveform i {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform-origin: bottom;
  animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.28); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 15px;
  background: rgba(18, 22, 31, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 550;
  animation: float 7s ease-in-out infinite;
}

.float-card .logo-tile {
  width: 34px;
  border-radius: 10px;
}

.float-card small {
  display: block;
  font-size: 10.5px;
  color: var(--muted-dim);
  font-weight: 500;
}

.float-card.fa {
  top: 8%;
  left: -2%;
  animation-delay: -1.4s;
}

.float-card.fb {
  bottom: 12%;
  right: -3%;
  animation-delay: -3.6s;
}

.float-card.fc {
  bottom: 34%;
  left: -5%;
  animation-delay: -2.2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ------------------------------------------------------------- logos -- */

.logo-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-2);
}

.logo-tile img.is-broken {
  display: none;
}

.logo-mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: uppercase;
  background: linear-gradient(140deg, hsl(var(--h) 78% 54%), hsl(calc(var(--h) + 46) 72% 42%));
}

.logo-tile.round {
  border-radius: 50%;
}

/* ---------------------------------------------------------- sections -- */

.section {
  padding: 54px 0;
}

.section + .section {
  padding-top: 22px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), transparent);
  border-block: 1px solid var(--line);
  padding: 62px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.section-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin: 9px 0 0;
  max-width: 62ch;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.16s ease, gap 0.16s ease;
}

.section-link:hover {
  color: var(--accent);
  gap: 11px;
}

/* ------------------------------------------------------------- rails -- */

.rail-wrap {
  position: relative;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(168px, 1fr);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  scroll-snap-align: start;
}

.rail-nav {
  position: absolute;
  top: -58px;
  right: 0;
  display: flex;
  gap: 8px;
}

.rail-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.rail-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface-2);
}

/* ------------------------------------------------------------- cards -- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 20px 18px;
}

.st-card {
  display: block;
  text-align: left;
  width: 100%;
}

.st-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 14px 30px -20px rgba(0, 0, 0, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.st-card .logo-tile {
  border-radius: 16px;
}

.st-card:hover .st-media {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.95);
}

.st-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(4, 5, 8, 0.78));
  opacity: 0;
  transition: opacity 0.2s ease;
  display: grid;
  place-items: center;
}

.st-card:hover .st-overlay,
.st-card:focus-within .st-overlay {
  opacity: 1;
}

.st-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff6a3d, var(--accent));
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(255, 90, 60, 0.95);
  transform: scale(0.86);
  transition: transform 0.2s ease, background 0.2s ease;
}

.st-card:hover .st-play {
  transform: scale(1);
}

.st-play.is-playing {
  background: #fff;
  color: #0b0d13;
}

.st-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 9, 13, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.st-card:hover .st-fav,
.st-fav.is-on {
  opacity: 1;
  transform: scale(1);
}

.st-fav.is-on {
  color: var(--accent);
}

.st-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 11px 2px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-meta {
  font-size: 12px;
  color: var(--muted-dim);
  margin: 3px 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* equalizer shown on the card that is currently playing */
.playing-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
  margin-right: 5px;
  vertical-align: -1px;
}

.playing-bars i {
  width: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1.05s ease-in-out infinite;
}

.playing-bars i:nth-child(1) { height: 55%; animation-delay: -0.2s; }
.playing-bars i:nth-child(2) { height: 100%; animation-delay: -0.55s; }
.playing-bars i:nth-child(3) { height: 70%; animation-delay: -0.35s; }

/* ------------------------------------------------------------ genres -- */

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}

.genre-chip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px;
  font-weight: 550;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.genre-chip:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.genre-chip .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  color: #08090d;
  background: linear-gradient(135deg, hsl(var(--h) 85% 66%), hsl(calc(var(--h) + 40) 85% 52%));
  flex-shrink: 0;
}

.genre-chip .count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- countries -- */

.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.country-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.country-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.country-card .flag {
  font-size: 19px;
  line-height: 1;
}

.country-card .cname {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.country-card .ccount {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- podcasts -- */

.pc-card {
  display: block;
  width: 100%;
  text-align: left;
}

.pc-card .st-media,
.pc-card .logo-tile {
  border-radius: 16px;
}

.pc-genre {
  display: inline-block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent-2);
}

/* ------------------------------------------------------------ toolbar -- */

.page-hero {
  padding: 52px 0 26px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -60% 30% 0 -10%;
  background: radial-gradient(40% 60% at 30% 40%, rgba(123, 92, 255, 0.22), transparent 70%),
    radial-gradient(34% 52% at 70% 20%, rgba(255, 90, 60, 0.2), transparent 72%);
  z-index: -1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 12px 0 0;
}

.page-hero p {
  color: var(--muted);
  max-width: 64ch;
  margin: 14px 0 0;
}

.toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  background: rgba(7, 8, 12, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  min-width: 200px;
}

.field svg {
  position: absolute;
  left: 14px;
  color: var(--muted-dim);
  pointer-events: none;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 41px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.field input::placeholder {
  color: var(--muted-dim);
}

.field input:focus {
  outline: none;
  border-color: rgba(255, 90, 60, 0.5);
  background: var(--surface-2);
}

.field .clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: none;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.field .clear.show {
  display: grid;
}

select.select {
  height: 42px;
  padding: 0 34px 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2398a0b3' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 13.5px;
  appearance: none;
  cursor: pointer;
  max-width: 220px;
}

select.select:focus {
  outline: none;
  border-color: rgba(255, 90, 60, 0.5);
}

.toolbar-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.toolbar-count b {
  color: var(--text);
  font-weight: 600;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px 0 2px;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  font-weight: 550;
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.is-active {
  color: #170702;
  background: linear-gradient(135deg, #ffb03a, var(--accent));
  border-color: transparent;
  font-weight: 650;
}

.results {
  padding: 30px 0 70px;
}

/* ------------------------------------------------------------- player -- */

.player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  height: var(--player-h);
  background: rgba(10, 12, 18, 0.9);
  border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 1);
}

.player-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-now {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  flex: 1 1 300px;
}

.player-now .logo-tile {
  width: 52px;
  border-radius: 12px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 1);
}

.player-text {
  min-width: 0;
}

.player-title {
  font-size: 13.5px;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 11.5px;
  color: var(--muted-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.pbtn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: color 0.16s ease, background 0.16s ease;
}

.pbtn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.pbtn-main {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6a3d, var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255, 90, 60, 0.9);
}

.pbtn-main:hover {
  background: linear-gradient(135deg, #ff7a4d, #ff4b63);
  color: #fff;
}

.pbtn-main.is-loading {
  pointer-events: none;
}

.pbtn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 220px;
  justify-content: flex-end;
  min-width: 0;
}

.player-status {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.player-status.is-idle {
  color: var(--muted-dim);
}

.player-status.is-error {
  color: #ff7d6b;
}

.vol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--text);
}

.player-empty .player-title {
  color: var(--muted);
  font-weight: 500;
}

/* -------------------------------------------------------------- modal -- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 9, 0.76);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(84vh, 720px);
  overflow-y: auto;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #171b26, #0c0f16);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  animation: pop 0.22s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.14);
}

.modal-head {
  display: flex;
  gap: 16px;
}

.modal-head .logo-tile {
  width: 96px;
  border-radius: 16px;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 4px 0 4px;
  padding-right: 30px;
}

.modal-sub {
  font-size: 13px;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
}

.ep-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ep {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  transition: background 0.16s ease, border-color 0.16s ease;
}

.ep:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
}

.ep .ep-play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  flex-shrink: 0;
}

.ep:hover .ep-play {
  background: var(--accent);
}

.ep-title {
  font-size: 12.8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ep-date {
  font-size: 11px;
  color: var(--muted-dim);
  margin-top: 2px;
}

/* ---------------------------------------------------------- app promo -- */

.apps {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 90% at 12% 10%, rgba(255, 90, 60, 0.3), transparent 66%),
    radial-gradient(50% 80% at 88% 90%, rgba(123, 92, 255, 0.34), transparent 68%),
    linear-gradient(150deg, #14171f, #0a0c12);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.apps h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.apps p {
  color: #c3c9d8;
  margin: 14px 0 0;
  max-width: 46ch;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 18, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.16s ease, transform 0.16s ease;
}

.store-badge small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.device-stack {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
}

.phone {
  width: 148px;
  height: 244px;
  border-radius: 26px;
  border: 5px solid #232838;
  background: linear-gradient(170deg, #1b2030, #0b0d14);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 1);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 4px;
  background: #333a4d;
}

.phone .p-row {
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
}

.phone .p-row i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  flex-shrink: 0;
}

.phone .p-row span {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}

.phone .p-title {
  font-family: var(--font-display);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 2px 2px 0;
}

.phone-2 {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 120px;
  height: 196px;
  transform: rotate(7deg);
  opacity: 0.9;
}

/* ------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 40px;
  margin-top: 30px;
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 36px;
}

.footer-about p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 42ch;
  margin: 14px 0 0;
}

.footer-col h3 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 6px 0 14px;
  font-weight: 650;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a {
  font-size: 13.5px;
  color: #b3bacb;
  transition: color 0.16s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-dim);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------- misc -- */

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
}

.empty h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.skeleton {
  border-radius: 16px;
  background: linear-gradient(100deg, var(--surface) 20%, var(--surface-3) 42%, var(--surface) 62%);
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

.skel-card {
  aspect-ratio: 1;
  border-radius: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 18px);
  transform: translate(-50%, 16px);
  z-index: 180;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0b0d13;
  font-size: 13px;
  font-weight: 560;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* card tap target + playing state */
.st-tap {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.st-media .logo-tile {
  z-index: 0;
}

.st-overlay,
.st-play {
  pointer-events: none;
}

.st-overlay {
  z-index: 1;
}

.st-fav {
  z-index: 3;
}

.st-card.is-playing .st-media {
  box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -22px rgba(255, 90, 60, 0.9);
}

.st-card.is-playing .st-name {
  color: var(--accent);
}

.st-card.is-playing .st-overlay {
  opacity: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(4, 5, 8, 0.72));
}

.st-card.is-playing .st-play {
  transform: scale(1);
  background: #fff;
  color: #0b0d13;
}

/* player progress (episodes only) */
.player-progress {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.player-progress input[type="range"] {
  width: 100%;
  height: 3px;
  border-radius: 0;
  display: block;
  background: rgba(255, 255, 255, 0.16);
}

.player-progress input[type="range"]::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 90, 60, 0.25);
}

.player-progress input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.pbtn.is-on,
.st-fav.is-on {
  color: var(--accent);
}

/* load more */
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.sub-section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------- responsive -- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .hero-art {
    min-height: 380px;
    order: -1;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-stats {
    max-width: none;
  }

  .apps {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .device-stack {
    height: 230px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 18px;
    background: rgba(8, 10, 15, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .nav-toggle {
    display: grid;
  }

  .search-toggle span,
  .search-toggle kbd {
    display: none;
  }

  .search-toggle {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .player-right .vol {
    display: none;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 16px 12px;
  }

  .float-card.fb,
  .float-card.fc {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --player-h: 76px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 8.6vw, 2.7rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stats div {
    min-width: 78px;
  }

  .apps {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .player-status,
  .player-sub {
    display: none;
  }

  .player-right {
    flex: 0 0 auto;
  }

  .player-now .logo-tile {
    width: 44px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rail {
    grid-auto-columns: 132px;
  }

  .rail-nav {
    display: none;
  }

  .toolbar-count {
    display: none;
  }

  select.select {
    max-width: none;
    flex: 1 1 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Theme toggle + language switcher
   ============================================================ */

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease,
    transform 0.16s ease;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(-12deg);
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.nav .gtranslate_wrapper {
  display: flex;
  align-items: center;
  margin-left: 4px;
}

.nav .gtranslate_wrapper select,
.nav .gt_selector {
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

.nav .gtranslate_wrapper select:hover {
  border-color: var(--line-strong);
}

/* ============================================================
   Light theme
   ============================================================ */

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --surface-3: #e4e8f2;
  --line: rgba(14, 18, 32, 0.1);
  --line-strong: rgba(14, 18, 32, 0.18);
  --text: #111420;
  --muted: #586074;
  --muted-dim: #7b8397;
  --accent: #e8452a;
  --accent-2: #d98400;
  --violet: #5b3df5;
  --mint: #0c8f68;
  --shadow: 0 24px 60px -30px rgba(20, 26, 48, 0.32);
}

:root[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="light"] .nav a:hover {
  background: rgba(14, 18, 32, 0.06);
}

:root[data-theme="light"] .nav a[aria-current="page"] {
  background: rgba(14, 18, 32, 0.08);
}

:root[data-theme="light"] .nav.open {
  background: rgba(255, 255, 255, 0.98);
}

:root[data-theme="light"] .search-toggle,
:root[data-theme="light"] .btn-ghost,
:root[data-theme="light"] .genre-chip,
:root[data-theme="light"] .country-card,
:root[data-theme="light"] .chip,
:root[data-theme="light"] .theme-toggle {
  background: rgba(14, 18, 32, 0.035);
}

:root[data-theme="light"] .genre-chip:hover,
:root[data-theme="light"] .country-card:hover,
:root[data-theme="light"] .chip:hover,
:root[data-theme="light"] .search-toggle:hover,
:root[data-theme="light"] .btn-ghost:hover,
:root[data-theme="light"] .theme-toggle:hover {
  background: rgba(14, 18, 32, 0.075);
}

:root[data-theme="light"] .hero::before {
  opacity: 0.52;
  filter: blur(26px);
}

:root[data-theme="light"] .hero::after {
  background-image: linear-gradient(rgba(14, 18, 32, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 18, 32, 0.055) 1px, transparent 1px);
}

:root[data-theme="light"] .hero-sub {
  color: var(--muted);
}

:root[data-theme="light"] .eyebrow {
  color: #9c3a22;
  background: rgba(232, 69, 42, 0.09);
  border-color: rgba(232, 69, 42, 0.28);
}

:root[data-theme="light"] .hero-card {
  background: linear-gradient(170deg, #ffffff, #f2f4fa);
  border-color: var(--line-strong);
}

:root[data-theme="light"] .float-card {
  background: rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .disc {
  background: repeating-radial-gradient(circle at 50% 50%, rgba(14, 18, 32, 0.07) 0 1.5px, transparent 1.5px 9px),
    radial-gradient(circle at 38% 32%, #ffffff, #eceef6 62%, #e0e4ee);
  box-shadow: inset 0 0 70px rgba(20, 28, 50, 0.06), var(--shadow);
}

:root[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, rgba(14, 18, 32, 0.022), transparent);
}

:root[data-theme="light"] .toolbar {
  background: rgba(246, 247, 251, 0.93);
}

:root[data-theme="light"] .field input {
  background: #ffffff;
}

:root[data-theme="light"] .field .clear {
  background: rgba(14, 18, 32, 0.08);
}

:root[data-theme="light"] .rail-btn {
  background: #ffffff;
}

:root[data-theme="light"] .player {
  background: rgba(255, 255, 255, 0.94);
  border-top-color: var(--line-strong);
  box-shadow: 0 -20px 50px -34px rgba(20, 28, 50, 0.42);
}

:root[data-theme="light"] .pbtn:hover {
  background: rgba(14, 18, 32, 0.06);
}

:root[data-theme="light"] input[type="range"] {
  background: rgba(14, 18, 32, 0.18);
}

:root[data-theme="light"] input[type="range"]::-webkit-slider-thumb {
  background: #111420;
  box-shadow: 0 0 0 4px rgba(14, 18, 32, 0.08);
}

:root[data-theme="light"] input[type="range"]::-moz-range-thumb {
  background: #111420;
}

:root[data-theme="light"] .modal-panel {
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
}

:root[data-theme="light"] .modal-close {
  background: rgba(14, 18, 32, 0.07);
}

:root[data-theme="light"] .ep {
  background: rgba(14, 18, 32, 0.03);
}

:root[data-theme="light"] .ep:hover {
  background: rgba(14, 18, 32, 0.07);
}

:root[data-theme="light"] .ep .ep-play {
  background: rgba(14, 18, 32, 0.09);
  color: var(--text);
}

:root[data-theme="light"] .tag {
  background: rgba(14, 18, 32, 0.05);
}

:root[data-theme="light"] .site-footer {
  background: var(--bg-soft);
}

:root[data-theme="light"] .footer-col a {
  color: var(--muted);
}

:root[data-theme="light"] .toast {
  background: #111420;
  color: #f6f7fb;
}

:root[data-theme="light"] .skeleton {
  background: linear-gradient(100deg, #eef1f7 20%, #ffffff 42%, #eef1f7 62%);
  background-size: 220% 100%;
}

/* The app promo panel and phone mock stay dark in both themes. */
:root[data-theme="light"] .apps h2,
:root[data-theme="light"] .apps .store-badge {
  color: #f2f4fa;
}

:root[data-theme="light"] .apps .store-badge small {
  color: #a8b0c2;
}

:root[data-theme="light"] .apps .store-badge:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Keep the header from crowding once the language selector is present. */
@media (max-width: 1080px) {
  .header-actions .search-toggle {
    display: none;
  }
}

@media (max-width: 620px) {
  .header-actions .btn-primary {
    display: none;
  }

  .site-header .brand-text small {
    display: none;
  }
}

.nav.open .gtranslate_wrapper {
  padding: 10px 14px;
}

.nav .gtranslate_wrapper .gt_switcher {
  font-family: var(--font-body);
}
