/* Locale Radio — passive listening page */
body.locale-listen {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(99, 102, 241, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(14, 165, 233, 0.2), transparent 50%),
    #0f172a;
}
body.locale-listen .wrap.lr-wrap {
  max-width: 720px;
  padding-bottom: 6.5rem;
}
.lr-hero .soft {
  font-weight: 600;
  opacity: 0.75;
  font-size: 0.85em;
}
.lr-radio {
  margin: 12px 0 24px;
  display: grid;
  gap: 14px;
}
.lr-stage {
  border-radius: 22px;
  padding: 22px 18px 18px;
  text-align: center;
  color: #f8fafc;
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #0ea5e9 140%);
  border: 1px solid rgba(165, 180, 252, 0.35);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.45);
}
.lr-radio.is-active .lr-stage {
  box-shadow: 0 0 0 2px #a5b4fc, 0 18px 50px rgba(15, 23, 42, 0.5);
}
.lr-art {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: lrPulse 2.8s ease-in-out infinite;
}
.lr-radio.is-active .lr-art {
  animation-duration: 1.2s;
}
@keyframes lrPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.lr-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}
.lr-line {
  margin: 0 0 4px;
  line-height: 1.35;
  word-break: break-word;
}
.lr-line.en {
  font-size: 1.35rem;
  font-weight: 800;
}
.lr-line.th {
  font-family: "Sarabun", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.95;
}
.lr-line.nv {
  font-family: var(--font-native), "Noto Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fef08a;
}
.lr-clip {
  margin: 12px 0 8px;
  min-height: 1.3em;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.9;
}
.lr-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  margin: 0 auto 8px;
  max-width: 280px;
}
.lr-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #f8fafc);
  transition: width 0.25s ease;
}
.lr-prog {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0.9;
}
.lr-controls {
  border-radius: 18px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}
.lr-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
@media (min-width: 560px) {
  .lr-tools {
    grid-template-columns: 1.4fr 1fr 0.7fr;
  }
}
.lr-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.9;
}
.lr-field .lh-mode {
  width: 100%;
}
.lr-main-btns {
  justify-content: center;
  margin-bottom: 10px;
}
.lr-play {
  min-width: 9rem !important;
  padding: 12px 18px !important;
  font-size: 1rem !important;
}
.lr-extra-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.lr-extra-btns .lh-ctrl.on {
  background: #fbbf24;
  color: #1e1b4b;
  border-color: #fbbf24;
}
.lr-playlist-wrap {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}
.lr-pl-title {
  margin: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #f1f5f9;
}
.lr-pl-title .l-th,
.lr-pl-title .l-nv {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.8;
}
.lr-pl-title em {
  margin-left: auto;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #a5b4fc;
}
.lr-playlist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(52vh, 480px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.lr-track {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  cursor: pointer;
  color: #e2e8f0;
}
.lr-track:hover {
  background: rgba(99, 102, 241, 0.15);
}
.lr-track.playing {
  background: rgba(251, 191, 36, 0.18);
  box-shadow: inset 3px 0 0 #fbbf24;
}
.lr-track .n {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
  font-size: 0.8rem;
  padding-top: 2px;
}
.lr-track .t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lr-track .t strong {
  font-size: 0.92rem;
}
.lr-track .t em {
  font-style: normal;
  font-family: "Sarabun", sans-serif;
  font-size: 0.88rem;
  opacity: 0.92;
}
.lr-track .t b {
  font-weight: 700;
  font-family: var(--font-native), "Noto Sans", sans-serif;
  font-size: 0.95rem;
  color: #fde68a;
}
.lr-track .cat {
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.55;
  text-transform: uppercase;
  padding-top: 3px;
}
