/* ==========================================================================
   번개라디오 웹 플레이어 — Liquid Glass 디자인 언어 (Apple-inspired)
   시원한 아쿠아 톤 · 흰 유리 베이스 + 아쿠아 틴트 · 스페큘러 엣지 · 부양 컨트롤
   ========================================================================== */
@font-face { font-family:'NotoSansKR'; font-weight:400; font-display:swap; src:url('/assets/intro/font/NotoSansKR-Regular.otf') format('opentype'); }
@font-face { font-family:'NotoSansKR'; font-weight:500; font-display:swap; src:url('/assets/intro/font/NotoSansKR-Medium.otf') format('opentype'); }
@font-face { font-family:'NotoSansKR'; font-weight:700; font-display:swap; src:url('/assets/intro/font/NotoSansKR-Bold.otf') format('opentype'); }
@font-face { font-family:'NotoSansKR'; font-weight:800; font-display:swap; src:url('/assets/intro/font/NotoSansKR-Black.otf') format('opentype'); }

:root {
  color-scheme: dark;
  /* 아쿠아 액센트 — 색은 텍스트/심볼/글로우/틴트로만(꽉 채우지 않음) */
  --aq: #38B6F5;                       /* 아쿠아 액센트 */
  --aq-lite: #8CD6FF;                  /* 다크 위 밝은 아쿠아 라벨 */
  --glass-tint: rgba(255,255,255,.08);    /* 유리 틴트(약·중립 흰색) */
  --glass-tint-2: rgba(255,255,255,.17);  /* 유리 틴트(강·중립 흰색) */
  --glass-line: rgba(255,255,255,.38);    /* 유리 테두리(중립 흰색) */
  --glow: 0 6px 24px rgba(56,182,245,.42);

  --fg: #f2f6f8;                       /* 기본 라벨 */
  --muted: rgba(226,240,245,.62);      /* 보조 라벨 */
  --faint: rgba(226,240,245,.34);      /* 3차 라벨 */

  /* 유리 재질(중립 흰색 베이스) */
  --glass: rgba(255,255,255,.06);
  --glass-2: rgba(255,255,255,.10);
  --glass-hover: rgba(255,255,255,.14);
  --glass-brd: rgba(255,255,255,.14);
  --glass-brd-2: rgba(255,255,255,.24);
  --hi: rgba(255,255,255,.55);         /* 상단 스페큘러 엣지 */
  /* 선택/활성 = 더 밝은 흰 유리(Apple selected material) */
  --sel: rgba(255,255,255,.20);
  --sel-brd: rgba(255,255,255,.42);
  --sel-hi: rgba(255,255,255,.60);
  --blur: 22px;

  --bar-h: 84px; --radius: 22px;
  --shadow: 0 10px 30px rgba(0,0,0,.42);
  --shadow-lg: 0 20px 55px rgba(0,0,0,.55);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'NotoSansKR', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #06131c; color: var(--fg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + 30px + env(safe-area-inset-bottom));
  min-height: 100vh;
}
/* 앰비언트 컬러 메시 — 유리가 굴절할 배경(쿨 아쿠아·틸·스카이, 느린 드리프트) */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 40% at 15% 16%, rgba(20,205,230,.42), transparent 70%),
    radial-gradient(42% 42% at 85% 12%, rgba(40,135,255,.30), transparent 70%),
    radial-gradient(48% 48% at 80% 84%, rgba(40,190,245,.30), transparent 72%),
    radial-gradient(46% 46% at 16% 88%, rgba(95,195,255,.24), transparent 72%);
  filter: saturate(125%);
  animation: drift 26s ease-in-out infinite alternate;
}
/* 상단 밝음 → 하단 비네트로 깊이 */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 120% at 50% -10%, transparent 42%, rgba(0,0,0,.5));
}
@keyframes drift { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(0,-4%,0) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── 아이콘 (SF Symbols 풍 인라인 SVG · currentColor 상속) ── */
.ic { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.chip .ic { width: 15px; height: 15px; }
.section-title .ic { width: 18px; height: 18px; color: var(--aq); }
.st-fav .ic { width: 17px; height: 17px; }
.st-sched .ic { width: 14px; height: 14px; }
.play-ov .pi .ic { width: 24px; height: 24px; }
.pbtn .ic { width: 24px; height: 24px; }
.bar__logo .ic { width: 26px; height: 26px; color: var(--muted); }
.bar__sched .ic { width: 17px; height: 17px; }
.bar__prog .ic { width: 13px; height: 13px; margin-right: 3px; color: var(--aq); }
.bar__vol .ic { width: 20px; height: 20px; }
.bar__err .ic { width: 14px; height: 14px; }
.sched-close .ic { width: 15px; height: 15px; }
.sched-item .rsv .ic { width: 17px; height: 17px; }
.sched-item .sched-play .ic { width: 15px; height: 15px; }
.sched-item .sched-play .spinner { width: 15px; height: 15px; border-width: 2px; }
.sched-hint .ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }

/* ── 헤더 (부양하는 라운드 유리 박스 — 재생바와 동일 언어) ── */
.hdr { position: sticky; top: 12px; z-index: 30; margin: 12px 12px 0; border-radius: 22px;
  background: var(--glass-2); -webkit-backdrop-filter: blur(var(--blur)) saturate(180%); backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-brd-2); box-shadow: inset 0 1px 0 var(--hi), var(--shadow); }
.hdr__in { max-width: 1200px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { height: 26px; width: auto; display: block; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--glass-tint-2); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 800; box-shadow: var(--glow); }
.brand .wm { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.search { position: relative; flex: 1; max-width: 440px; margin-left: auto; }
.search input { width: 100%; height: 42px; border: 1px solid var(--glass-brd); background: var(--glass-2); color: var(--fg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 999px; padding: 0 18px 0 42px; font-size: 14px; outline: none; transition: .18s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28); }
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--sel-brd); background: var(--glass-hover);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.3); }
.search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hdr__link { color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: .15s; }
.hdr__link:hover { color: var(--aq-lite); }
/* 내 예약 버튼(헤더) */
.hdr__btn { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--glass-brd); background: var(--glass); color: var(--fg); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); transition: .14s; }
.hdr__btn:hover { background: var(--glass-hover); border-color: var(--sel-brd); color: var(--aq-lite); }
.hdr__btn .ic { width: 18px; height: 18px; }
.hdr__badge { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px;
  background: var(--aq); color: #04121c; font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px rgba(6,19,28,.8); }

/* ── 내 예약 목록 ── */
.resv-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; transition: background .12s; }
.resv-row:hover { background: rgba(255,255,255,.04); }
.resv-row__logo { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.06);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.resv-row__logo img { width: 100%; height: 100%; object-fit: cover; }
.resv-row__logo img.real { object-fit: contain; padding: 14%; background: #fff; }
.resv-row__logo .mono { font-size: 17px; font-weight: 800; color: var(--faint); }
.resv-row__txt { flex: 1; min-width: 0; }
.resv-row__title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resv-row__meta { font-size: 12px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resv-row__next { font-size: 11.5px; color: var(--aq-lite); margin-top: 3px; display: flex; align-items: center; gap: 3px; }
.resv-row__next .ic { width: 12px; height: 12px; }
.resv-row__btn { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-brd);
  background: var(--glass); color: var(--aq-lite); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .14s; }
.resv-row__btn .ic { width: 15px; height: 15px; }
.resv-row__btn:hover { background: var(--glass-hover); border-color: var(--sel-brd); color: #fff; }
.resv-row__btn--del { color: var(--muted); }
.resv-row__btn--del:hover { color: #fff; }

/* 알림 켜기 안내 */
.resv-perm { display: flex; align-items: center; gap: 8px; margin: 8px 20px 4px; padding: 10px 12px; border-radius: 13px;
  border: 1px solid var(--glass-brd); background: var(--glass-tint); font-size: 12px; color: var(--muted); }
.resv-perm .ic { width: 15px; height: 15px; flex-shrink: 0; color: var(--aq-lite); }
.resv-perm span { flex: 1; min-width: 0; }
.resv-perm__btn { flex-shrink: 0; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--sel-brd);
  background: var(--sel); color: var(--aq-lite); font-size: 12px; font-weight: 700;
  box-shadow: inset 0 1px 0 var(--sel-hi); transition: .14s; }
.resv-perm__btn:hover { background: var(--glass-hover); color: #fff; }

/* ── 카테고리 칩 ── */
/* 스크롤바를 숨기므로(디자인) PC 에서는 대신 드래그·휠·화살표로 스크롤합니다 — play.js 의 initChipsScroll */
/* .chips 의 패딩이 위아래 비대칭이라 화살표를 컨테이너 중앙(top:50%)에 두면 칩 행과 어긋납니다.
   패딩과 칩 높이를 변수로 공유해, 화살표가 칩 행과 같은 위치·같은 크기가 되게 묶습니다. */
.chips-bar { --chips-pt: 16px; --chips-pb: 2px; --chip-h: 36px;
  position: relative; max-width: 1200px; margin: 0 auto; }
.chips { padding: var(--chips-pt) 22px var(--chips-pb); display: flex; gap: 8px; align-items: center;
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; cursor: grab; }
.chips::-webkit-scrollbar { display: none; }
.chips.dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }

/* 좌우 화살표 — 스크롤할 여지가 있는 방향에만 나타납니다. 칩과 동일한 높이·상단선 */
.chips-nav { position: absolute; top: var(--chips-pt); z-index: 3;
  width: var(--chip-h); height: var(--chip-h); border-radius: 50%;
  display: none; place-items: center; color: var(--fg);
  border: 1px solid var(--glass-brd-2); background: var(--glass-2);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow); transition: .14s; }
.chips-nav.on { display: grid; }
.chips-nav:hover { background: var(--glass-hover); transform: scale(1.08); }
.chips-nav .ic { width: 17px; height: 17px; }
.chips-nav--l { left: 4px; }
.chips-nav--r { right: 4px; }
/* 화살표 아래로 칩이 비쳐 지나가지 않도록 가장자리를 지웁니다.
   배경이 움직이는 그라데이션이라 단색 페이드로는 가려지지 않습니다 → 마스크로 잘라냅니다. */
.chips { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 100%); mask-image: linear-gradient(90deg, #000 0, #000 100%); }
.chips-bar.fade-l:not(.fade-r) .chips {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 54px);
          mask-image: linear-gradient(90deg, transparent 0, #000 54px); }
.chips-bar.fade-r:not(.fade-l) .chips {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 54px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 calc(100% - 54px), transparent 100%); }
.chips-bar.fade-l.fade-r .chips {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 54px, #000 calc(100% - 54px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 54px, #000 calc(100% - 54px), transparent 100%); }

/* 터치 기기는 기본 스와이프가 더 자연스러우므로 화살표를 띄우지 않습니다 */
@media (hover: none) {
  .chips-nav { display: none !important; }
  .chips { cursor: auto; }
}
.chip { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-brd);
  background: var(--glass); color: var(--fg); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22); transition: .15s; }
.chip:hover { background: var(--glass-hover); border-color: var(--glass-brd-2); }
/* 활성 = 밝은 흰 유리 + 아쿠아 라벨/글로우(꽉 찬 색 아님) */
.chip.active { background: var(--sel); color: var(--aq-lite); border-color: var(--sel-brd);
  box-shadow: inset 0 1px 0 var(--sel-hi), 0 4px 14px rgba(0,0,0,.22); }

/* ── 그리드 ── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 18px 22px 40px; }
.section-title { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin: 22px 2px 14px; display: flex; align-items: center; gap: 7px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 16px; }
.st-card { background: var(--glass); border: 1px solid var(--glass-brd); border-radius: var(--radius); padding: 12px; cursor: pointer;
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow); position: relative;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), background .2s, box-shadow .2s, border-color .2s; }
.st-card:hover { transform: translateY(-5px); background: var(--glass-hover); border-color: var(--glass-brd-2);
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow-lg); }
.st-card.playing { border-color: rgba(255,255,255,.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4), inset 0 1px 0 var(--hi), var(--glow); }
.st-logo { width: 100%; aspect-ratio: 1; border-radius: 15px; overflow: hidden; margin-bottom: 11px; position: relative;
  background: rgba(255,255,255,.05); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.st-logo img { width: 100%; height: 100%; object-fit: cover; }
/* 실제 공식 로고(투명 배경): 밝은 타일 위에 여백 두고 contain — 다크 위에서도 로고 가독 */
.st-logo img.real { object-fit: contain; padding: 16%; background: #fff; }
.st-logo .mono { font-size: 34px; font-weight: 800; color: var(--faint); }
.st-logo .play-ov { position: absolute; inset: 0; background: rgba(6,14,20,.42); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  display: grid; place-items: center; opacity: 0; transition: .18s; }
/* 재생 심볼 = 아쿠아 틴트 유리(반투명, 꽉 찬 색 아님) */
.st-logo .play-ov .pi { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--sel-brd); display: grid; place-items: center;
  box-shadow: inset 0 1px 0 var(--sel-hi), var(--shadow); }
.st-card:hover .play-ov { opacity: 1; }
.st-card.playing .play-ov { opacity: 1; background: rgba(6,14,20,.24); }
.st-name { font-weight: 700; font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-meta { color: var(--muted); font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 카드 직계 요소 — 좌표는 카드 기준(카드 패딩 12px + 로고 안쪽 여백 8px) */
.st-badges { position: absolute; top: 20px; left: 20px; display: flex; gap: 5px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.tag.live { background: var(--glass-tint-2); border: 1px solid var(--glass-line); color: var(--aq-lite); }
.tag.vid { background: rgba(16,22,28,.55); }
.tag.app { background: rgba(16,22,28,.6); border: 1px solid rgba(255,255,255,.28); color: #e6ecf2; }
/* 앱 전용 카드 — 흐리게 + 재생 오버레이는 폰 아이콘 */
.st-card.app-only .st-logo { filter: saturate(.85); }
.st-card.app-only .play-ov { background: rgba(10,16,22,.42); }
.st-fav { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(6,14,20,.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: rgba(255,255,255,.75); font-size: 15px; display: grid; place-items: center; opacity: 0; transition: .14s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.st-card:hover .st-fav, .st-fav.on { opacity: 1; }
.st-fav.on { color: var(--aq-lite); border-color: var(--glass-line); }

/* 편성표 유무 — 카드 하단 표시(있으면 아쿠아 틴트 유리 필, 없으면 흐린 점선) */
.st-sched { display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%;
  margin-top: 10px; padding: 7px 8px; border-radius: 11px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--glass-line); background: var(--glass-tint); color: var(--aq-lite);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: .14s; }
.st-sched:hover { background: var(--glass-hover); color: #fff; border-color: var(--sel-brd); }
.st-sched--none { border: 1px dashed var(--glass-brd); background: transparent; color: var(--faint); font-weight: 500; cursor: pointer; }
.st-sched--none:hover { background: var(--glass); color: var(--muted); border-color: var(--glass-brd-2); box-shadow: none; }

.empty { text-align: center; color: var(--muted); padding: 64px 20px; font-size: 14px; }

/* ── 하단 플레이어 바 (부양하는 유리 필) ── */
.bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; height: var(--bar-h);
  padding: 0 16px 10px; background: var(--glass-2); -webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-brd-2); border-radius: 26px; box-shadow: inset 0 1px 0 var(--hi), var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.bar.hidden { transform: translateY(180%); }
.bar__now { display: flex; align-items: center; gap: 13px; min-width: 0; flex: 1; max-width: 360px; }
.bar__logo { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.06); display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--muted); flex-shrink: 0; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.bar__logo img { width: 100%; height: 100%; object-fit: cover; }
.bar__logo img.real { object-fit: contain; padding: 13%; background: #fff; }
.bar__txt { min-width: 0; }
.bar__title { font-weight: 700; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__sub { color: var(--muted); font-size: 12px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.live-dot { color: var(--aq-lite); display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aq); box-shadow: 0 0 8px var(--aq); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.bar__ctrl { display: flex; align-items: center; }
/* 재생 버튼 = 아쿠아 틴트 유리(주요 액션, 반투명·글로우) */
.pbtn { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--sel-brd); background: rgba(255,255,255,.22); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: grid; place-items: center; transition: .14s; box-shadow: inset 0 1px 0 var(--sel-hi), var(--shadow); }
.pbtn:hover { transform: scale(1.06); background: rgba(255,255,255,.3); }
.pbtn:disabled { opacity: .4; box-shadow: none; }
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bar__prog { font-size: 12px; margin-top: 2px; color: var(--aq-lite); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar__prog .t { color: var(--fg); font-weight: 500; }
.bar__prog .nx { color: var(--muted); font-weight: 400; }

.bar__sched { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--glass-brd); background: var(--glass); color: var(--fg); font-size: 13px; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); transition: .14s; }
.bar__sched:hover { border-color: var(--glass-line); color: var(--aq-lite); background: var(--glass-hover); }

/* ── 되감기 슬라이더 (버퍼 보유 구간) + 라이브 복귀 ── */
.bar__seek { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 160px; }
.bar__behind { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--aq-lite); flex-shrink: 0; min-width: 40px; text-align: right; }
.bar__seek.behind .bar__behind { color: var(--muted); }
.bar__range { flex: 1; min-width: 0; height: 4px; accent-color: var(--aq); cursor: pointer; }
.bar__live { flex-shrink: 0; height: 26px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--sel-brd); background: var(--sel); color: var(--aq-lite);
  font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 var(--sel-hi); transition: .14s; }
.bar__live:hover { background: var(--glass-hover); color: #fff; }

/* 현재 프로그램 진행 — 바 하단 얇은 라인(편성표 기준) */
.bar__progline { position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.1); overflow: hidden; pointer-events: auto; }
.bar__progline-fill { height: 100%; width: 0; border-radius: 999px; background: var(--aq); opacity: .8;
  box-shadow: 0 0 6px rgba(56,182,245,.5); transition: width 1s linear; }

.bar__vol { display: flex; align-items: center; gap: 8px; margin-left: 14px; color: var(--muted); }
.bar__vol input[type=range] { width: 104px; accent-color: var(--aq); }
.bar__err { color: var(--aq-lite); font-size: 12px; font-weight: 600; margin-left: auto; max-width: 320px;
  display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }

/* ── 편성표 모달 ── */
.sched-modal { position: fixed; inset: 0; z-index: 80; background: rgba(4,10,16,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: none; align-items: flex-end; justify-content: center; }
.sched-modal.open { display: flex; }
.sched-panel { background: var(--glass-2); -webkit-backdrop-filter: blur(40px) saturate(200%); backdrop-filter: blur(40px) saturate(200%);
  width: 100%; max-width: 560px; max-height: 76vh; border: 1px solid var(--glass-brd-2); border-radius: 28px;
  box-shadow: inset 0 1px 0 var(--hi), var(--shadow-lg); display: flex; flex-direction: column; animation: slideup .24s cubic-bezier(.2,.8,.2,1);
  margin: 0 12px calc(var(--bar-h) + 26px + env(safe-area-inset-bottom)); overflow: hidden; }
@keyframes slideup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sched-head { flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--glass-brd); }
.sched-title { font-size: 17px; font-weight: 800; }
.sched-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sched-close { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--glass-brd); background: var(--glass); color: var(--fg);
  display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .14s; }
.sched-close:hover { background: var(--glass-hover); }
.sched-days { flex-shrink: 0; display: flex; gap: 6px; padding: 12px 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--glass-brd); }
.sched-days::-webkit-scrollbar { display: none; }
.sched-day { flex-shrink: 0; width: 40px; height: 34px; border-radius: 11px; border: 1px solid var(--glass-brd); background: var(--glass); font-size: 13px; font-weight: 600; color: var(--fg);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .14s; }
.sched-day:hover { background: var(--glass-hover); }
/* 활성 요일 = 밝은 흰 유리 + 아쿠아 라벨 */
.sched-day.active { background: var(--sel); color: var(--aq-lite); border-color: var(--sel-brd); box-shadow: inset 0 1px 0 var(--sel-hi), 0 2px 10px rgba(0,0,0,.25); }
.sched-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 0 16px; }
.sched-item { display: flex; gap: 14px; padding: 11px 20px; align-items: baseline; transition: background .12s; }
.sched-item.on { background: var(--glass-tint); }
.sched-item .st { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--muted); width: 44px; flex-shrink: 0; }
.sched-item.on .st { color: var(--aq-lite); font-weight: 700; }
.sched-item .ti { font-size: 14px; font-weight: 500; }
.sched-item.on .ti { font-weight: 700; }
.sched-item .ho { font-size: 12px; color: var(--muted); margin-left: 6px; }
.sched-item .live { font-size: 10.5px; font-weight: 700; color: var(--aq-lite); background: var(--glass-tint-2); border: 1px solid var(--glass-line); padding: 1px 7px; border-radius: 999px; margin-left: 8px; }
.sched-item .rsv { flex-shrink: 0; align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-brd); background: var(--glass); color: var(--muted);
  display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .14s; }
.sched-item .rsv:hover { border-color: var(--glass-line); color: var(--aq-lite); background: var(--glass-hover); }
.sched-item .rsv.on { background: var(--sel); border-color: var(--sel-brd); color: var(--aq-lite); box-shadow: inset 0 1px 0 var(--sel-hi); }
.sched-item .sched-play { flex-shrink: 0; align-self: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--sel-brd); background: var(--sel); color: var(--aq-lite); display: grid; place-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .14s; box-shadow: inset 0 1px 0 var(--sel-hi); }
.sched-item .sched-play:hover { background: var(--glass-hover); color: #fff; }
.sched-empty { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 13px; }
.sched-hint { text-align: center; color: var(--muted); font-size: 11.5px; padding: 4px 20px 12px; }

/* ── 최대화 버튼(모바일 전용) ── */
.bar__max { display: none; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--glass-brd); background: var(--glass); color: var(--muted);
  place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: .14s; }
.bar__max:hover { color: var(--fg); background: var(--glass-hover); }
.bar__max .ic { width: 17px; height: 17px; }

@media (max-width: 720px) {
  .hdr { margin-left: 8px; margin-right: 8px; }
  .bar { left: 8px; right: 8px; gap: 12px; }
  .bar__max { display: grid; }
  /* 최소화 상태에서만 숨김 — 최대화하면 다시 보입니다 */
  .bar:not(.max) .bar__seek { display: none; }
  .bar:not(.max) .bar__vol { display: none; }
  .bar__now { max-width: none; }
  .hdr__link.hide-sm { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 13px; }

  /* 최소화 상태: 로고/제목 영역을 눌러도 펼쳐지도록 */
  .bar:not(.max) .bar__now { cursor: pointer; }

  /* 최소화 상태에서 제목이 "SBS…"로 잘리지 않도록 좌우 요소 폭을 줄여 텍스트 칸을 확보 */
  .bar:not(.max) { gap: 10px; padding: 0 12px 10px; }
  .bar:not(.max) .bar__logo { width: 46px; height: 46px; border-radius: 12px; }
  .bar:not(.max) .bar__now { gap: 10px; }
  .bar:not(.max) .pbtn { width: 48px; height: 48px; }
  .bar:not(.max) .bar__sched { width: 40px; padding: 0; justify-content: center; }
  .bar:not(.max) .bar__sched .lbl { display: none; }
}

/* ══════════════ 최대화 플레이어 (모바일) ══════════════
   같은 DOM을 재사용하고 레이아웃만 전환 → 재생/타임라인 상태 코드가 그대로 동작 */
@media (max-width: 720px) {
  body.bar-max { overflow: hidden; }

  .bar.max {
    top: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 8px; right: 8px;
    height: auto; border-radius: 28px; padding: 62px 22px 26px;
    flex-direction: column; align-items: center; justify-content: center; gap: 0;
    /* 전체화면 플레이어 — 뒤 페이지가 비치지 않도록 불투명한 다크 글래스 */
    background: linear-gradient(180deg, rgba(12, 30, 42, .94), rgba(5, 16, 24, .97));
    -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
    border-color: var(--glass-brd-2);
  }

  /* 상단 고정: 접기 버튼(좌) · 편성표(우) */
  .bar.max .bar__max { position: absolute; top: 16px; left: 16px; width: 38px; height: 38px;
    color: var(--fg); background: var(--glass-2); border-color: var(--glass-brd-2); }
  .bar.max .bar__max .ic { width: 20px; height: 20px; }
  .bar.max .bar__sched { position: absolute; top: 15px; right: 16px; }

  /* 아트워크 + 텍스트 */
  .bar.max .bar__now { flex: 0 0 auto; flex-direction: column; align-items: center; text-align: center; gap: 22px; width: 100%; }
  .bar.max .bar__logo { width: min(58vw, 240px); height: min(58vw, 240px); border-radius: 26px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), var(--shadow-lg); }
  .bar.max .bar__logo .ic { width: 56px; height: 56px; }
  .bar.max .bar__txt { width: 100%; }
  .bar.max .bar__title { font-size: 21px; white-space: normal; }
  .bar.max .bar__sub { font-size: 13px; margin-top: 5px; justify-content: center; }
  .bar.max .bar__prog { font-size: 13px; margin-top: 8px; white-space: normal; line-height: 1.45; }
  .bar.max .bar__prog .ic { width: 14px; height: 14px; }

  /* 프로그램 진행 라인 → 정상 흐름의 막대로 */
  .bar.max .bar__progline { position: static; width: 100%; height: 4px; margin-top: 26px; order: 2; }

  /* 되감기 슬라이더 */
  .bar.max .bar__seek { order: 3; width: 100%; flex: 0 0 auto; margin-top: 18px; gap: 11px; }
  .bar.max .bar__behind { font-size: 12px; min-width: 44px; }

  /* 재생 컨트롤 */
  .bar.max .bar__ctrl { order: 4; margin-top: 26px; }
  .bar.max .pbtn { width: 72px; height: 72px; }
  .bar.max .pbtn .ic { width: 30px; height: 30px; }
  .bar.max .spinner { width: 28px; height: 28px; }

  /* 볼륨 */
  .bar.max .bar__vol { order: 5; display: flex; width: 100%; max-width: 260px; margin: 26px 0 0; justify-content: center; }
  .bar.max .bar__vol input[type=range] { flex: 1; width: auto; }

  .bar.max .bar__err { order: 6; margin: 14px 0 0; max-width: none; justify-content: center; text-align: center; }
  .bar.max .bar__now { order: 1; }
}

/* 토스트 */
#toast { position: fixed; bottom: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast-item { background: rgba(16,22,28,.72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--glass-brd);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow); max-width: 90vw; text-align: center; }

/* ── 앱 전용 채널 안내 팝업 ── */
.app-panel { max-width: 380px; padding: 30px 24px 22px; text-align: center; position: relative; }
.app-hero { margin-bottom: 14px; }
.app-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 17px;
    display: grid; place-items: center; font-size: 31px;
    background: linear-gradient(140deg, #ffd54a, #ff9f1a); box-shadow: 0 8px 22px rgba(255,159,26,.32); }
.app-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.app-sub { margin-top: 5px; font-size: 13px; opacity: .62;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-desc { margin: 0 0 18px; font-size: 13px; line-height: 1.62; opacity: .74; word-break: keep-all; }

.app-actions { display: flex; flex-direction: column; gap: 8px; }
.app-btn { display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 12px; font-size: 14px; font-weight: 700;
    background: #fff; color: #10151c; text-decoration: none; transition: transform .12s ease, opacity .12s ease; }
.app-btn:hover { transform: translateY(-1px); }
.app-btn__ic { font-size: 15px; line-height: 1; }
.app-btn--soon { background: rgba(255,255,255,.09); color: rgba(255,255,255,.55);
    cursor: default; }
.app-btn--soon:hover { transform: none; }
.app-btn__soon { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .02em;
    padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.14); }
.app-soon-note { margin: 10px 2px 0; font-size: 12px; line-height: 1.6; opacity: .55; word-break: keep-all; }

.app-later { margin-top: 14px; width: 100%; height: 40px; border: 0; background: none;
    color: inherit; opacity: .55; font-size: 13px; font-weight: 600; cursor: pointer; }
.app-later:hover { opacity: .85; }

/* ── 보기 방식 전환 (갤러리 / 목록) ── */
.view-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px;
    background: var(--glass); border: 1px solid var(--glass-brd);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.view-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 0; border-radius: 9px; background: none; color: var(--muted);
    font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .14s; }
.view-btn .ic { width: 16px; height: 16px; }
.view-btn:hover { color: inherit; }
.view-btn.on { background: var(--glass-tint); color: var(--aq-lite);
    box-shadow: inset 0 1px 0 var(--sel-hi); }
@media (max-width: 560px) { .view-btn span { display: none; } .view-btn { padding: 0 11px; } }

/* 목록 보기 — 카드 마크업은 그대로 두고 배치만 바꿉니다.
   로고는 두 줄을 세로로 가로지르고, 편성표 버튼은 오른쪽에 붙습니다. */
.grid--list { display: flex; flex-direction: column; gap: 8px; }
.grid--list .st-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto auto auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "logo name badges sched fav"
        "logo meta badges sched fav";
    align-items: center; column-gap: 13px; row-gap: 2px; padding: 10px 12px; }
.grid--list .st-card:hover { transform: none; }   /* 행이 들썩이면 목록에선 산만합니다 */
.grid--list .st-logo { grid-area: logo; width: 54px; height: 54px; margin: 0; border-radius: 12px; }
.grid--list .st-name { grid-area: name; align-self: end; }
.grid--list .st-meta { grid-area: meta; align-self: start; margin-top: 0; }
.grid--list .st-sched { grid-area: sched; width: auto; margin-top: 0; padding: 7px 12px; white-space: nowrap; }
.grid--list .st-sched--none { font-size: 11.5px; }

/* 로고가 작아지므로 그 위 요소들도 함께 줄입니다 */
.grid--list .st-logo .mono { font-size: 20px; }
.grid--list .st-logo .play-ov .pi { width: 30px; height: 30px; }
.grid--list .st-logo .play-ov .pi .ic { width: 15px; height: 15px; }
/* 뱃지·즐겨찾기는 카드 직계라 그리드 칸에 그대로 배치됩니다.
   작은 타일 위에 겹쳐 두면 로고를 가리므로 행 오른쪽으로 뺍니다. */
.grid--list .st-badges { position: static; grid-area: badges; align-self: center; }
.grid--list .st-fav { position: static; grid-area: fav; align-self: center;
    width: 30px; height: 30px; opacity: 1; }

@media (max-width: 560px) {
    /* 좁은 화면에선 태그를 빼고 4칸으로 — 칸 수와 영역 정의를 함께 맞춰야 합니다 */
    .grid--list .st-card {
        grid-template-columns: 46px minmax(0, 1fr) auto auto;
        grid-template-areas:
            "logo name sched fav"
            "logo meta sched fav";
        column-gap: 10px; padding: 9px 10px; }
    .grid--list .st-badges { display: none; }
    .grid--list .st-logo { width: 46px; height: 46px; }
    .grid--list .st-sched span { display: none; }
    .grid--list .st-sched { padding: 7px 10px; }
    .grid--list .st-sched--none { display: none; }
}

/* 무한 스크롤 — 더 받을 게 남아 있을 때만 표시되는 로딩 표시 */
.scroll-end { height: 1px; }
.scroll-end.on { height: 46px; position: relative; }
.scroll-end.on::after {
    content: ""; position: absolute; left: 50%; top: 12px; width: 20px; height: 20px;
    margin-left: -10px; border-radius: 50%;
    border: 2px solid var(--glass-brd-2); border-top-color: var(--aq-lite);
    animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ── 하위 장르 줄 ──
   칩 바와 같은 컨테이너 폭·좌측 정렬을 씁니다. 예전엔 없는 변수를 참조해
   16px 로 떨어지면서 칩(62px)과 46px 어긋났습니다. */
.subbar { max-width: 1200px; margin: 14px auto 0; padding: 0 22px; }
/* 하위 장르는 15개까지 늘어나 한 줄에 안 들어갑니다.
   가로 스크롤은 잘린 줄로 보여서, 줄바꿈으로 전부 드러냅니다. */
.chips--sub { display: flex; flex-wrap: wrap; gap: 6px; }
/* 좁은 화면에서는 줄바꿈하면 5줄까지 늘어나 목록을 밀어냅니다 → 가로 스크롤로. */
@media (max-width: 700px) {
  .chips--sub { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; }
  .chips--sub::-webkit-scrollbar { display: none; }
}
.chip--sub { flex-shrink: 0; height: 30px; padding: 0 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 600; cursor: pointer;
    background: var(--glass); border: 1px solid var(--glass-brd); color: var(--muted); }
.chip--sub:hover { color: inherit; border-color: var(--glass-brd-2); }
.chip--sub.active { background: var(--glass-tint); color: var(--aq-lite); border-color: var(--glass-line); }

/* ── 지역 필터 ── */
.regionbar { max-width: 1200px; margin: 14px auto 0; display: flex; align-items: center; gap: 8px;
    padding: 0 22px 16px; }
.region-toggle { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
    border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
    background: var(--glass); border: 1px solid var(--glass-brd); color: var(--muted); }
.region-toggle:hover { color: inherit; }
.region-toggle.on { background: var(--glass-tint); color: var(--aq-lite); border-color: var(--glass-line); }
.region-toggle .ic { width: 15px; height: 15px; }
.region-toggle .caret { width: 13px; height: 13px; opacity: .6; }
.region-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.region-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: var(--aq-lite); color: #06121a; font-size: 11px; font-weight: 800;
    display: inline-grid; place-items: center; }
.region-clear { background: none; border: 0; color: var(--muted); font-size: 12.5px;
    font-weight: 600; cursor: pointer; text-decoration: underline; }
.region-clear:hover { color: inherit; }

.region-panel { max-width: 1156px; margin: 0 auto 16px; padding: 14px 16px; border-radius: 14px;
    background: var(--glass); border: 1px solid var(--glass-brd);
    -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
.region-sec + .region-sec { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--glass-brd); }
.region-sec__t { font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    color: var(--muted); margin-bottom: 9px; }
.region-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rgn { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    display: inline-flex; align-items: center;
    cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid var(--glass-brd);
    color: var(--muted); }
.rgn:hover { color: inherit; border-color: var(--glass-brd-2); }
.rgn.on { background: var(--glass-tint); color: var(--aq-lite); border-color: var(--glass-line); }
.rgn--sm { height: 27px; padding: 0 10px; font-size: 12px; }

/* 칩의 채널 수 — 라벨보다 약하게, 숫자 폭이 흔들리지 않게 */
.chip__n { margin-left: 6px; font-size: 11.5px; font-weight: 700; opacity: .55;
    font-variant-numeric: tabular-nums; }
.chip.active .chip__n { opacity: .8; }
.chip--sub { display: inline-flex; align-items: center; }

/* ── 언어 전환 ──
   JS 없이도 링크로 동작하게 두고, 메뉴만 스크립트로 여닫습니다. */
.lang { position: relative; flex-shrink: 0; }
/* .hdr__btn 은 display:grid 라 아이콘과 라벨이 세로로 쌓였습니다.
   두 개를 나란히 두려면 flex 로 덮어써야 합니다. */
.lang__btn { display: inline-flex; align-items: center; justify-content: center;
    width: auto; min-width: 40px; height: 40px; padding: 0 13px; gap: 6px; border-radius: 999px; }
.lang__btn .ic { flex-shrink: 0; }
.lang__cur { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 136px;
    padding: 6px; border-radius: 13px; border: 1px solid var(--glass-brd-2);
    /* 아래로 목록·보기토글이 비쳐 글자가 읽기 어려워 불투명하게 깝니다 */
    background: #0d1b26; background: color-mix(in srgb, #0d1b26 92%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
    box-shadow: inset 0 1px 0 var(--hi), 0 12px 32px rgba(0,0,0,.45); }
.lang__item { display: block; padding: 8px 11px; border-radius: 9px; font-size: 13.5px;
    font-weight: 500; color: var(--muted); white-space: nowrap; }
.lang__item:hover { background: var(--glass-hover); color: var(--fg); }
.lang__item.on { background: var(--glass-tint); color: var(--aq-lite); font-weight: 700; }

/* 좁은 화면에선 코드 라벨을 숨기고 지구본만 둡니다(헤더 폭 확보) */
@media (max-width: 560px) {
  .lang__cur { display: none; }
  .lang__btn { width: 40px; padding: 0; }
}
