/* K-Radio 웹 플레이어 (외부 글꼴·CDN 없이)
   원칙: 한눈에 보이게 · 크게 누르게 · 부드럽게 움직이게 */
:root {
  --bg: #0b0820;
  --card: rgba(255, 255, 255, 0.06);
  --card-solid: #171233;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f4f2ff;
  --muted: #a9a3cc;
  --pink: #ff5f8f;
  --violet: #7b61ff;
  --cyan: #3fd8ff;
  --ok: #43e6a8;
  --grad: linear-gradient(135deg, var(--pink), var(--violet));
  --radius: 22px;
  --tap: 52px; /* 손가락으로 누르기 편한 최소 크기 */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 16.5px;
  line-height: 1.5;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 16px 110px;
  overflow-x: hidden;
}
.ko { color: var(--muted); font-size: 0.86em; font-weight: 500; }
.small { font-size: 0.82em; }
a { color: var(--cyan); }

/* ── 움직이는 배경 ───────────────────────── */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; animation: drift 22s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: #ff4f8b; top: -160px; left: -140px; }
.b2 { width: 600px; height: 600px; background: #6a4dff; bottom: -220px; right: -180px; animation-duration: 28s; }
.b3 { width: 380px; height: 380px; background: #1fc8ff; top: 40%; left: 45%; opacity: 0.25; animation-duration: 34s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 80px) scale(0.95); } }
.hangul span {
  position: absolute; bottom: -60px; color: rgba(255, 255, 255, 0.07); font-weight: 800;
  animation: rise linear infinite; will-change: transform;
}
@keyframes rise { to { transform: translateY(-115vh) rotate(25deg); } }
.grain { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 3, 18, 0.7)); }

/* ── 버튼 (크게, 누르면 살짝 눌림) ─────────── */
button {
  font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; min-height: var(--tap);
  cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s;
  font-weight: 600;
}
button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.25); }
button:active:not(:disabled) { transform: scale(0.96); }
button:disabled { opacity: 0.4; cursor: default; }
button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
button.primary { background: var(--grad); border: 0; box-shadow: 0 10px 30px -8px rgba(255, 95, 143, 0.6); }
button.primary .ko { color: rgba(255, 255, 255, 0.85); }
button.primary:hover { box-shadow: 0 14px 40px -8px rgba(255, 95, 143, 0.8); filter: brightness(1.08); }
button.active { background: var(--grad); border-color: transparent; color: #fff; }
button.active .ko { color: rgba(255, 255, 255, 0.85); }
select {
  font: inherit; background: var(--card-solid); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; min-height: 46px;
}

/* ── 머리 ───────────────────────────────── */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0; }
.brand { display: flex; gap: 14px; align-items: center; }
.logo {
  position: relative; width: 54px; height: 54px; border-radius: 17px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 8px 26px -6px rgba(123, 97, 255, 0.7);
}
.logo span { font-weight: 900; font-size: 1.7rem; color: #fff; font-family: Arial, sans-serif; }
.logo .wave { position: absolute; inset: -6px; border-radius: 22px; border: 2px solid rgba(255, 95, 143, 0.5); animation: ping 2.6s ease-out infinite; }
.logo .w2 { animation-delay: 1.3s; }
@keyframes ping { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
h1 { font-size: 1.5rem; margin: 0; letter-spacing: -0.02em; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin: 0; color: var(--muted); font-size: 0.92rem; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(123, 97, 255, 0.16);
  border: 1px solid rgba(123, 97, 255, 0.5); border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; font-weight: 600;
}
.spark { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 1.8s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }

/* ── 흐르는 한국어 띠 ─────────────────────── */
.ticker {
  margin: 14px -16px 4px; overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: inline-block; padding: 9px 0; animation: marquee 60s linear infinite; }
.ticker-track span { margin: 0 22px; font-size: 0.92rem; }
.ticker-track b { color: #fff; margin-right: 6px; }
.ticker-track i { color: var(--muted); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 채널 탭 (크게) ──────────────────────── */
.channels { display: flex; gap: 10px; margin: 16px 0; padding: 6px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.channels button { flex: 1 1 0; min-height: 56px; font-size: 1.05rem; border: 0; background: transparent; border-radius: 15px; }
.channels button:hover:not(.active) { background: rgba(255, 255, 255, 0.07); }

/* ── 카드 ───────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card h3 { margin: 0 0 12px; font-size: 1.12rem; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.h-ico { font-size: 1.1rem; }
.label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── 지금 방송 (가장 크게) ─────────────────── */
.hero { padding: 26px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 95, 143, 0.6), rgba(123, 97, 255, 0.2), rgba(63, 216, 255, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.hero-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
.disc-wrap { position: relative; width: 220px; height: 220px; display: grid; place-items: center; }
.disc {
  width: 190px; height: 190px; border-radius: 50%; position: relative; z-index: 1;
  background:
    radial-gradient(circle, transparent 0 30%, rgba(255,255,255,.05) 31% 32%, transparent 33% 40%, rgba(255,255,255,.05) 41% 42%, transparent 43% 52%, rgba(255,255,255,.05) 53% 54%, transparent 55%),
    conic-gradient(from 0deg, #1c1640, #2b1f5e, #1c1640, #3a1d4f, #1c1640);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), inset 0 0 0 6px rgba(255, 255, 255, 0.04);
  display: grid; place-items: center; animation: spin 6s linear infinite; animation-play-state: paused;
}
.disc-label { width: 74px; height: 74px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; align-content: center; line-height: 1; }
.disc-label b { font-size: 1.7rem; font-family: Arial, sans-serif; }
.disc-label small { font-size: 0.6rem; letter-spacing: 0.2em; font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring { position: absolute; inset: 15px; border-radius: 50%; border: 2px solid rgba(255, 95, 143, 0.0); }
body.playing .disc { animation-play-state: running; }
body.playing .ring { animation: ripple 3s ease-out infinite; }
body.playing .r2 { animation-delay: 1s; }
body.playing .r3 { animation-delay: 2s; }
@keyframes ripple { 0% { transform: scale(0.9); border-color: rgba(255, 95, 143, 0.6); } 100% { transform: scale(1.25); border-color: rgba(123, 97, 255, 0); } }

.onair-head { display: flex; align-items: center; gap: 10px; }
.clock { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: #5c5680; flex: none; }
.live-dot.on { background: var(--pink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 95, 143, .7); } 70% { box-shadow: 0 0 0 12px rgba(255, 95, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 95, 143, 0); } }
.onair h2 { margin: 10px 0 4px; font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; }
.onair h2 .ko { display: block; font-size: 1rem; margin-top: 4px; }
.hosts { margin: 0 0 10px; color: var(--muted); }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin: 8px 0 12px; }
.eq i { flex: 1; max-width: 10px; height: 18%; border-radius: 4px; background: var(--grad); opacity: 0.45; transition: height .3s; }
body.playing .eq i { opacity: 1; animation: bounce 1s ease-in-out infinite alternate; }
.eq i:nth-child(2n) { animation-duration: .7s !important; } .eq i:nth-child(3n) { animation-duration: 1.3s !important; }
.eq i:nth-child(4n) { animation-delay: -.4s; } .eq i:nth-child(5n) { animation-duration: .55s !important; } .eq i:nth-child(7n) { animation-delay: -.8s; }
@keyframes bounce { 0% { height: 12%; } 100% { height: 100%; } }

.progress { height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.bar { height: 100%; width: 0; background: var(--grad); transition: width 1s linear; border-radius: 4px; }
.meta { color: var(--muted); font-size: 0.92rem; margin: 10px 0 14px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; }
.controls .big { font-size: 1.15rem; padding: 16px 28px; min-height: 62px; border-radius: 20px; flex: 1 1 260px; }
.controls #btnPause { flex: 0 1 180px; }
.status { color: var(--muted); font-size: 0.88rem; min-height: 1.2em; margin: 10px 0 0; }

/* ── 지금 재생 ──────────────────────────── */
/* 플레이어는 위 '지금 방송 중' 칸 하나. 회색 재생 막대·에피소드 제목은 다시 듣기 때만 보임 */
#audio { width: 100%; margin: 12px 0 8px; height: 48px; border-radius: 14px; }
#audio:not([controls]) { display: none; }
.replay-only { display: none; margin-top: 12px; }
body.replaying .replay-only { display: block; }
.replay-only h3 { margin-top: 4px; font-size: 1.15rem; }
.now-extra .corner-now:empty { display: none; }
#epTopic { margin: 0; }
.corner-now { color: var(--ok); font-weight: 600; min-height: 1.4em; }
.sleep { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.sleep-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sleep-btns button { min-height: 46px; padding: 8px 16px; border-radius: 999px; }
.sleep-left { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ── 두 칸 ──────────────────────────────── */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid .card { margin-bottom: 0; }
.chapters, .vocab, .replay { list-style: none; padding: 0; margin: 0; }
.chapters li { padding: 12px; border-radius: 14px; display: flex; gap: 12px; cursor: pointer; transition: background .2s; min-height: 48px; align-items: center; }
.chapters li:hover:not(.empty) { background: rgba(255, 255, 255, 0.06); }
.chapters li .t { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.4em; font-weight: 600; }
.chapters li.current { background: rgba(67, 230, 168, 0.12); color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
.chapters li.empty, .vocab li.empty, .replay li.empty { color: var(--muted); cursor: default; }
.vocab li { padding: 12px 14px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.vocab li:hover { transform: translateX(4px); border-color: rgba(255, 95, 143, 0.5); }
.vocab li.empty { background: none; border: 0; }
.vocab .w { font-size: 1.35rem; font-weight: 800; }
.vocab .r { color: var(--cyan); font-style: italic; margin-left: 8px; }
.vocab .e { display: block; color: var(--muted); }

/* ── 편성표 ─────────────────────────────── */
table.schedule { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.schedule td { padding: 12px 12px; vertical-align: top; background: rgba(255, 255, 255, 0.03); }
.schedule td:first-child { border-radius: 12px 0 0 12px; }
.schedule td:last-child { border-radius: 0 12px 12px 0; }
.schedule td.time { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; width: 1%; font-weight: 700; }
.schedule tr.onair td { background: linear-gradient(90deg, rgba(255, 95, 143, 0.22), rgba(123, 97, 255, 0.12)); color: #fff; }
.schedule tr.onair td.time { color: var(--pink); }
.schedule tr.onair td.time::before { content: "● "; animation: blink 1.4s infinite; }
#tzLabel { color: var(--muted); font-weight: normal; }
.schedule .rerun { font-size: 0.75rem; color: var(--muted); margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }

/* ── 다시 듣기 ──────────────────────────── */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.9rem; flex: 1 1 200px; }
.replay li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.replay li.empty { background: none; border: 0; }
.replay .info { min-width: 0; }
.replay .info b { display: block; overflow: hidden; text-overflow: ellipsis; }
.replay .info span { color: var(--muted); font-size: 0.86rem; }
.replay li button { flex: none; border-radius: 999px; }

/* ── 뉴스·새 소식·앱 ─────────────────────── */
#newsBox { margin-top: 16px; }
ul.news { list-style: none; padding: 0; margin: 6px 0; font-size: 0.92em; }
ul.news li { padding: 6px 0; border-bottom: 1px solid var(--line); }
ul.news a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
ul.news .src { opacity: 0.7; }
#newsBox .note { font-size: 0.8em; opacity: 0.65; margin: 6px 0 0; }
ul.updates { list-style: none; padding: 0; margin: 6px 0; }
ul.updates li { padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.updates li:last-child { border-bottom: 0; }
ul.updates .when { color: var(--muted); font-size: 0.8rem; margin-right: 6px; font-variant-numeric: tabular-nums; }
ul.updates .tag { display: inline-block; font-size: 0.72rem; padding: 2px 9px; border-radius: 9px; background: rgba(255, 95, 143, 0.18); color: var(--pink); margin-right: 6px; font-weight: 700; }
ul.updates p { margin: 4px 0 0; }
ul.updates p.ko { font-size: 0.86rem; }
ul.updates a { font-weight: 700; }
#updatesMore { margin-top: 6px; }

/* 재방송 안내 */
.replay-banner { background: rgba(123, 97, 255, 0.14); border: 1px solid rgba(123, 97, 255, 0.4); border-radius: 16px; padding: 12px 16px; margin: 18px 0 0; font-size: 0.9rem; }
.replay-banner .ko { font-size: 0.84rem; opacity: 0.9; }

/* 광고 나올 때 누르는 카드 */
.ad-now {
  margin-top: 12px; padding: 14px 16px; border-radius: 16px; font-size: 1rem;
  background: linear-gradient(135deg, rgba(67, 230, 168, 0.18), rgba(63, 216, 255, 0.12)); border: 1px solid rgba(67, 230, 168, 0.5);
  animation: popin .5s cubic-bezier(.2, 1.4, .4, 1);
}
.ad-now .get { display: inline-block; margin: 8px 0 0; padding: 10px 16px; border-radius: 999px; background: var(--ok); color: #062b1c; font-weight: 800; text-decoration: none; }
.ad-now .tag { font-size: 0.72rem; padding: 2px 7px; border-radius: 6px; background: rgba(67, 230, 168, 0.3); color: #dfffee; font-weight: 800; }
@keyframes popin { from { transform: scale(0.9); opacity: 0; } }

footer { text-align: center; color: var(--muted); font-size: 0.86rem; margin-top: 26px; }

/* ── 아래 고정 미니 플레이어 (스크롤 내려도 바로 누르게) ── */
.mini {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translate(-50%, 140%);
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px;
  border-radius: 999px; background: rgba(23, 18, 51, 0.88); border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7);
  transition: transform .45s cubic-bezier(.2, 1.2, .4, 1); z-index: 20;
}
.mini.show { transform: translate(-50%, 0); }
.mini-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.mini-btn { width: 52px; height: 52px; padding: 0; border-radius: 50%; background: var(--grad); border: 0; font-size: 1.2rem; flex: none; }
.mini-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; width: 22px; }
.mini-eq i { flex: 1; height: 30%; background: var(--pink); border-radius: 2px; }
body.playing .mini-eq i { animation: bounce .8s ease-in-out infinite alternate; }
.mini-eq i:nth-child(2) { animation-delay: -.3s !important; } .mini-eq i:nth-child(3) { animation-delay: -.6s !important; }

/* ── 휴대폰 ─────────────────────────────── */
@media (max-width: 760px) {
  body { padding: 10px 12px 110px; font-size: 16px; }
  .hero { padding: 20px 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .disc-wrap { width: 150px; height: 150px; margin: 0 auto; }
  .disc { width: 130px; height: 130px; }
  .disc-label { width: 52px; height: 52px; }
  .disc-label b { font-size: 1.2rem; }
  .onair h2 { font-size: 1.55rem; }
  .grid { grid-template-columns: 1fr; }
  .controls .big { flex-basis: 100%; }
  .controls #btnPause { flex: 1 1 100%; }
  .ticker { margin: 12px -12px 4px; }
  h1 { font-size: 1.3rem; }
  .ai-badge { font-size: 0.8rem; padding: 6px 12px; }
}

/* 움직임 줄이기 설정을 켠 사람 배려 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 손질: 채널 이름 줄바꿈 깔끔하게 · 재생 전엔 일시정지 버튼 숨김 */
.channels button .ko { display: block; font-size: 0.82rem; }
#btnPause:disabled { display: none; }

/* 자동 재생이 막혔을 때: 아무 데나 누르면 시작 */
.tap-start { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(8, 5, 26, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; animation: fadein .4s ease; }
.tap-start[hidden] { display: none; }
.tap-box { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px; }
.tap-box b { font-size: 1.4rem; }
.tap-box span { color: var(--muted); }
.tap-circle { width: 110px; height: 110px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 2.6rem; padding-left: 8px; box-shadow: 0 0 0 0 rgba(255, 95, 143, .6); animation: pulse 1.6s infinite; margin-bottom: 8px; }
@keyframes fadein { from { opacity: 0; } }

/* 볼륨 · 음소거 */
.vol { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); max-width: 420px; }
.vol-mute, .mini-mute { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; font-size: 1.25rem; flex: none; }
.vol-mute.on, .mini-mute.on { background: rgba(255, 95, 143, 0.25); border-color: var(--pink); }
.vol input[type=range] { --p: 80%; flex: 1; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--violet)) 0 / var(--p) 100% no-repeat, rgba(255, 255, 255, 0.15); }
.vol input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.vol input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; }
.vol-num { min-width: 3.2em; text-align: right; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.mini-mute { width: 44px; height: 44px; min-height: 44px; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 760px) { .vol { max-width: none; } }

/* ── 청취자 참여: 듣는 사람 수 · 채팅 · 사연 ── */
.listen-count { padding: 3px 10px; border-radius: 999px; background: rgba(67, 230, 168, 0.15); color: var(--ok); font-size: 0.8rem; font-weight: 700; }
.note { color: var(--muted); font-size: 0.82rem; margin: 8px 0 0; }
.note.warn, .form-msg.warn { color: #ffb4c6; }
.form-msg.ok { color: var(--ok); }
input:not([type=range]), textarea {
  font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--violet); background: rgba(255, 255, 255, 0.09); }
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #7f78a8; }

.chat-ch { color: var(--muted); font-weight: 500; }
.chat-list { list-style: none; margin: 0 0 12px; padding: 6px; height: 280px; overflow-y: auto; border-radius: 16px; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--line); scroll-behavior: smooth; }
.chat-list li { padding: 7px 10px; border-radius: 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; animation: popin .3s ease; }
.chat-list li.empty { color: var(--muted); justify-content: center; padding-top: 110px; }
.chat-list li:hover { background: rgba(255, 255, 255, 0.04); }
.chat-list .who { flex: none; }
.chat-list .msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chat-list time { color: #6f6894; font-size: 0.75rem; }
.chat-form { display: grid; grid-template-columns: 150px 1fr auto; gap: 8px; }
.chat-form button { padding: 0 20px; }

.letters .lead { color: var(--muted); margin: 0 0 14px; }
.letter-form { display: grid; gap: 10px; margin-bottom: 18px; }
.letter-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.kinds button { border-radius: 999px; min-height: 46px; padding: 8px 14px; font-size: 0.92rem; }
.send-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.send-row .count { color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 0; min-height: 1.2em; font-weight: 600; }
.letter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.letter-list li { padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.letter-list li.empty { color: var(--muted); text-align: center; }
.l-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.l-country { color: var(--muted); font-size: 0.86rem; }
.l-kind { font-size: 0.75rem; padding: 2px 9px; border-radius: 999px; background: rgba(123, 97, 255, 0.2); }
.l-head time { margin-left: auto; color: #6f6894; font-size: 0.78rem; }
.l-body { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.l-reply { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 95, 143, 0.14), rgba(123, 97, 255, 0.14)); border-left: 3px solid var(--pink); }
.l-reply p { margin: 4px 0 0; }
.l-air { display: inline-block; margin-top: 6px; font-size: 0.82rem; color: var(--ok); font-weight: 700; }

@media (max-width: 760px) {
  .chat-form { grid-template-columns: 1fr auto; }
  .chat-form #chatNick { grid-column: 1 / -1; }
  .letter-form .row { grid-template-columns: 1fr; }
  .chat-list { height: 240px; }
}

/* 사연함: 방송 동의 체크 */
.letter-form .consent { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: 0.92rem; cursor: pointer; }
.letter-form .consent input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; }
.letter-form .note { color: var(--muted); font-size: 0.82rem; margin: 2px 0 8px; }

/* 어느 나라에서 듣는지 (국기) */
.from-countries { font-size: 0.95rem; letter-spacing: 2px; opacity: 0.9; }

/* 대본 보기 */
#transcriptCard summary { cursor: pointer; list-style: none; }
#transcriptCard summary::-webkit-details-marker { display: none; }
#transcriptCard summary::after { content: ' ▾'; color: var(--muted); }
.transcript { list-style: none; margin: 12px 0 0; padding: 0; max-height: 420px; overflow-y: auto; }
.transcript li { display: flex; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; line-height: 1.45; }
.transcript li .t { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; font-size: 0.85em; padding-top: 2px; }
.transcript li.ko-line span:last-child { color: var(--ok); font-weight: 600; }
.transcript li.current { background: rgba(255, 255, 255, 0.10); }

/* 연속 청취일 🔥 */
.streak { font-size: 0.82rem; font-weight: 700; color: #ffcf70; background: rgba(255, 160, 60, 0.14); border: 1px solid rgba(255, 160, 60, 0.35); border-radius: 999px; padding: 3px 10px; }
.streak.pop { animation: streakPop 0.9s ease; }
@keyframes streakPop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .streak.pop { animation: none; } }

/* 큰 버튼 하나 + 음악만 듣기 */
#btnLive.playing { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.music-only { min-height: 56px; padding: 0 18px; border-radius: 16px; font-weight: 700; }
.music-only.on { background: var(--ok); color: #062b1c; border-color: transparent; }

/* 컴퓨터: 재생 바 끌어서 옮기기 */
.mini-grip { display: none; cursor: grab; font-size: 1.2rem; color: var(--muted); user-select: none; touch-action: none; padding: 0 2px; }
@media (pointer: fine) and (min-width: 900px) { .mini-grip { display: inline-block; } }
.mini.moved { bottom: auto; transform: none; width: 380px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.mini.moved.show { opacity: 1; pointer-events: auto; transform: none; }
.mini.dragging { transition: none; cursor: grabbing; }
.mini.dragging .mini-grip { cursor: grabbing; }

/* 📲 앱 설치 버튼 */
.install-btn { margin-left: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.25); }
.install-tip { margin: 6px 16px 0; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 0.9rem; }

/* 친구 초대 · 바로 가기 · 환영 */
.invite-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.invite-row input { flex: 1 1 160px; min-height: 48px; }
.invite-row button { min-height: 48px; }
.quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 16px 0; }
.quick a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: inherit; text-decoration: none; font-weight: 700; font-size: 0.88rem; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.welcome-ref { margin: 8px 16px 0; padding: 12px 16px; border-radius: 14px; background: rgba(67, 230, 168, 0.15); border: 1px solid rgba(67, 230, 168, 0.4); font-weight: 600; text-align: center; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* "잠깐만요!" 새 친구 감사 인사 */
.live-thanks { position: fixed; left: 50%; top: 16px; transform: translate(-50%, -160%); z-index: 40; max-width: min(640px, calc(100% - 24px)); padding: 14px 18px; border-radius: 16px; background: linear-gradient(135deg, #ff5f8f, #7b61ff); color: #fff; font-weight: 700; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6); transition: transform .5s cubic-bezier(.2, 1.2, .4, 1); text-align: center; }
.live-thanks.show { transform: translate(-50%, 0); }

/* 생방송 뒤로 돌려 듣기: 진행 막대를 누르기 쉽게 */
.progress.seekable { position: relative; height: 14px; border-radius: 7px; cursor: pointer; touch-action: none; overflow: visible; }
.progress.seekable .bar { height: 100%; border-radius: 7px; }
.progress.seekable .bar-play { position: absolute; left: 0; top: 0; height: 100%; border-radius: 7px; background: rgba(255, 255, 255, 0.85); }
.progress.seekable .live-mark { display: none; }
.progress.seekable:focus-visible { outline: 2px solid var(--ok); outline-offset: 3px; }
@media (pointer: coarse) { .progress.seekable { height: 18px; border-radius: 9px; } }

/* 휴대폰: 재생 버튼이 첫 화면에 바로 보이게 (회장님 지적 2026-11-23 "재생이 맨 위에 있어야") */
@media (max-width: 760px) {
  .hero { position: relative; }
  .hero-grid { display: block; }
  .disc-wrap { position: absolute; top: 14px; right: 14px; width: 60px; height: 60px; margin: 0; }
  .disc { width: 56px; height: 56px; }
  .disc-wrap .ring { display: none; }
  .disc-label { width: 24px; height: 24px; }
  .disc-label b { font-size: 0.7rem; }
  .disc-label small { display: none; }
  .hero-info { display: flex; flex-direction: column; }
  .onair-head { order: 0; padding-right: 70px; }
  #nowTitle { order: 1; padding-right: 64px; }
  .hero-info .hosts { order: 2; }
  .hero-info .controls { order: 3; margin-top: 10px; }
  .hero-info .progress { order: 4; margin-top: 14px; }
  .hero-info .meta { order: 5; }
  .hero-info .vol { order: 6; }
  .hero-info .status { order: 7; }
  .hero-info .now-extra { order: 8; }
  .hero-info .eq { display: none; }
  .quick { margin-top: 14px; }
}
