@charset "UTF-8";
/* =========================================================================
   ON AIR — 음악 감상 테마 목업
   심야 라디오 / dark listening room
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  --bg:         #0A0A0C;
  --bg-2:       #0D0D10;
  --panel:      #121216;
  --panel-2:    #17171C;
  --panel-3:    #1E1E25;

  --line:       #26262E;
  --line-soft:  #1C1C22;

  --text:       #F3EFE7;
  --text-2:     #C9C5BC;
  --muted:      #8C8C96;

  --amber:      #FFB347;
  --amber-2:    #FFC978;
  --signal:     #FF4D4D;
  --vu:         #6FE3C1;

  --amber-soft: rgba(255, 179, 71, .12);
  --signal-soft:rgba(255, 77, 77, .12);

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --display: "Black Han Sans", "Pretendard Variable", Pretendard, sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
  --player-h: 86px;
  --wrap: 1320px;
  --gutter: 28px;

  --shadow: 0 30px 70px -40px rgba(0, 0, 0, .95);
  --glow: 0 0 120px -30px rgba(255, 179, 71, .45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

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

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

/* Keep taps immediate on phones: without this iOS/Android may spend the first
   tap on double-tap zoom detection instead of the play button. */
button, a, .track, .pl-card, .freq-card, .mini-row, .queue-row {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--amber); color: #14100A; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--panel-3);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #2E2E38; }

/* ------------------------------------------------------------- utilities */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--amber);
  color: #14100A;
  border-radius: var(--r-sm);
  font-weight: 800;
}
.skip-link:focus { top: 16px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}

.section { padding-block: clamp(38px, 4.4vw, 68px); }

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.sec-head h2 {
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-weight: 400;
}
.sec-head .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.sec-head .more:hover { color: var(--amber); }
.sec-head .more[hidden] { display: none; }
.sec-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-head .more--btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: transparent;
  cursor: pointer;
}
.sec-head .more--btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* ---------------------------------------------------------------- button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--amber);
  border-color: var(--amber);
  color: #171007;
  box-shadow: 0 14px 34px -18px rgba(255, 179, 71, .9);
}
.btn--primary:hover { background: var(--amber-2); border-color: var(--amber-2); }

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .02);
  color: var(--text);
}
.btn--ghost:hover { background: var(--panel-2); border-color: var(--panel-3); }

.btn svg { width: 18px; height: 18px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 19px; height: 19px; }

.icon-play, .icon-pause { transition: opacity .15s var(--ease); }
.icon-pause { display: none; }
body.is-playing .icon-play { display: none; }
body.is-playing .icon-pause { display: block; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
}
.brand__lamp {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal), 0 0 0 4px rgba(255, 77, 77, .1);
  animation: pulse 2.2s var(--ease) infinite;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 9px 14px;
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav a { position: relative; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.topbar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.admin-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.admin-link:hover {
  color: var(--text);
  border-color: var(--amber);
  background: var(--panel-2);
}

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.site-link svg { width: 12px; height: 12px; flex: none; }
.site-link:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: var(--amber-soft);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.search:focus-within { border-color: var(--amber); background: var(--panel); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input {
  width: 150px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
}
.search input:focus { outline: none; }
.search input::placeholder { color: var(--muted); }
.search--mobile { display: none; }

.avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--signal));
  color: #171007;
  font-size: 13px;
  font-weight: 900;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -12%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) saturate(1.25);
  opacity: .3;
  transform: scale(1.12);
  transition: background-image .4s var(--ease);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(10, 10, 12, .82) 42%, rgba(10, 10, 12, .55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 38%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 76% 42%, rgba(255, 179, 71, .13), transparent 42%),
    radial-gradient(circle at 90% 80%, rgba(255, 77, 77, .1), transparent 38%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  min-height: 610px;
  padding-block: 52px 36px;
}

.hero__copy { max-width: 600px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(255, 77, 77, .32);
  border-radius: var(--r-full);
  background: rgba(255, 77, 77, .08);
  color: #FF9A9A;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
.live__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 77, 77, .14);
  animation: pulse 1.7s var(--ease) infinite;
}
.live__sep { width: 1px; height: 10px; background: rgba(255, 77, 77, .3); }

.hero h1 {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(52px, 6.4vw, 94px);
  line-height: .97;
  letter-spacing: -.015em;
  font-weight: 400;
}
.hero h1 em { font-style: normal; color: var(--amber); }

.hero__desc {
  max-width: 46ch;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
}
.hero__desc strong { color: var(--text); font-weight: 700; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted);
}
.hero__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.hero__meta strong { color: var(--text-2); font-weight: 600; }

/* --------------------------------------------------------------- hero art */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.vinyl {
  position: absolute;
  width: min(390px, 72%);
  aspect-ratio: 1;
  border-radius: 50%;
  z-index: 1;
  background:
    repeating-radial-gradient(circle at center, #191920 0 2px, #0B0B0F 2px 4.5px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95);
  translate: 30% 0;
  animation: spin 26s linear infinite;
  animation-play-state: paused;
}
body.is-playing .vinyl { animation-play-state: running; }
.vinyl::after {
  content: "";
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .08), transparent 42%);
}
.vinyl__label {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 33%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #FFD79A, var(--amber) 62%, #D98A24);
  color: #1A1206;
  font-family: var(--display);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .1em;
  text-align: center;
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .18);
}

.art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.art img { width: 100%; height: 100%; object-fit: cover; }

.hero__art {
  position: relative;
  z-index: 2;
  width: min(390px, 72%);
  transform: rotate(-2.5deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 50px 100px -40px rgba(0, 0, 0, .95),
    var(--glow);
  transition: transform .4s var(--ease);
}
.hero__art:hover { transform: rotate(-1deg) translateY(-4px); }

.onair-badge {
  position: absolute;
  z-index: 3;
  left: 1%;
  bottom: 7%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-full);
  background: rgba(10, 10, 12, .72);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--text-2);
  box-shadow: var(--shadow);
}
.onair-badge span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}

/* ------------------------------------------------------------------ dial */
.dial {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}
.dial__track {
  position: relative;
  height: 16px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(243, 239, 231, .2) 0 1px,
    transparent 1px 14px
  );
  border-bottom: 1px solid var(--line);
  opacity: .9;
}
.dial__needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: 38%;
  width: 2px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}
.dial__needle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px; height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}
.dial__labels {
  position: relative;
  height: 12px;
  margin-top: 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dial__labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.dial__labels span:first-child { transform: none; }
.dial__labels span:last-child { transform: translateX(-100%); }
.dial__labels .is-on { color: var(--amber); }

/* --------------------------------------------------------------- setlist */
.playlists {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.sec-note {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}

.pl-card { position: relative; }

.mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.mosaic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0), rgba(10, 10, 12, .2));
  pointer-events: none;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.02); }
.mosaic--single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.mosaic--single img { grid-column: 1 / -1; grid-row: 1 / -1; }

.pl-card h3 {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.pl-card p { margin-top: 3px; font-size: 11px; color: var(--muted); }
.pl-card__hint { color: rgba(255, 179, 71, .66) !important; }
.pl-card--empty .mosaic { opacity: .48; filter: grayscale(.35); }
.pl-card--empty h3 { color: var(--text-2); }
.pl-card--empty .pl-play { opacity: .32; }

.pl-play {
  position: absolute;
  right: 12px;
  top: calc(50% - 38px);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--amber);
  color: #171007;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .9);
}
.pl-play svg { width: 18px; height: 18px; margin-left: 2px; }
.pl-card:hover .pl-play { opacity: 1; transform: none; }

/* playlist management */
.pl-card__menu {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .15s var(--ease), transform .15s var(--ease);
  z-index: 2;
}
.pl-card:hover .pl-card__menu,
.pl-card:focus-within .pl-card__menu { opacity: 1; transform: none; pointer-events: auto; }
.pl-menu__btn {
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(10, 10, 12, .74);
  color: var(--text-2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.pl-menu__btn:hover {
  background: #000;
  border-color: var(--amber);
  color: var(--amber);
}
.pl-menu__btn svg { width: 14px; height: 14px; }

.pl-card--new { cursor: pointer; }
.mosaic--new {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  border: 1px dashed rgba(255, 179, 71, .42);
  background: rgba(255, 179, 71, .04);
  box-shadow: none;
}
.mosaic--new::after { display: none; }
.mosaic--new span {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.mosaic--new svg { width: 22px; height: 22px; }
.pl-card--new:hover .mosaic--new {
  border-color: var(--amber);
  background: rgba(255, 179, 71, .08);
}
.pl-card--new:hover .mosaic--new span { background: rgba(255, 179, 71, .2); transform: scale(1.06); }
.pl-card--new h3 { color: var(--amber-2); }

/* --------------------------------------------------------------- picker */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: end center;
}
.sheet[hidden] { display: none; }
.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, .66);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.sheet__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(460px, 100%);
  max-height: 78vh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--panel);
  box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .9);
  animation: sheet-up .22s var(--ease);
}
@keyframes sheet-up {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sheet__head h2 { font-family: var(--display); font-size: 20px; font-weight: 400; }
.sheet__track { font-size: 12px; color: var(--muted); }
.sheet__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
  margin: 0 -4px;
  padding: 0 4px;
}
.sheet__empty { padding: 10px 0; font-size: 12px; color: var(--muted); }
.sheet__new { width: 100%; }
.pl-pick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-2);
  text-align: left;
}
.pl-pick:hover { border-color: var(--panel-3); }
.pl-pick.is-in { border-color: rgba(255, 179, 71, .5); background: var(--amber-soft); }
.pl-pick__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.pl-pick__meta { font-size: 11px; color: var(--muted); }
.pl-pick__check {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  color: var(--muted);
}
.pl-pick.is-in .pl-pick__check {
  border-color: var(--amber);
  background: var(--amber);
  color: #171007;
}
body.is-sheet { overflow: hidden; }

/* -------------------------------------------------------------- tracklist */
.tracklist { border-top: 1px solid var(--line); }

.track {
  display: grid;
  grid-template-columns: 34px 50px minmax(0, 1fr) 84px 30px 40px 42px;
  gap: 14px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color .15s var(--ease);
}
.track:hover { background: rgba(255, 255, 255, .035); }

.track__num {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.track__art {
  width: 50px; height: 50px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--panel-2);
}
.track__main { min-width: 0; }
.track__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.track__sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.track__dur {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.track__add {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: var(--muted);
  opacity: 0;
  transition: color .15s var(--ease), background-color .15s var(--ease), opacity .15s var(--ease);
}
.track:hover .track__add,
.track__add:focus-visible { opacity: 1; }
.track__add:hover { background: var(--panel-2); color: var(--amber); }
.track__add svg { width: 15px; height: 15px; }

.track__like {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--muted);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.track__like:hover { background: var(--panel-2); color: var(--text); }.track__like.is-liked { color: var(--signal); }
.track__like svg { width: 16px; height: 16px; }
.track__like.is-liked svg,
[data-like].is-liked svg { fill: currentColor; }

.track__play {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.track:hover .track__play { border-color: var(--amber); color: var(--amber); }
.track__play svg { width: 13px; height: 13px; margin-left: 1px; }

.track.is-current .track__title { color: var(--amber); }
.track.is-current .track__num { color: var(--amber); }

.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 13px;
}
.eq i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--amber);
  transform-origin: bottom;
  animation: vu .8s ease-in-out infinite alternate;
}
.eq i:nth-child(2) { animation-delay: .18s; }
.eq i:nth-child(3) { animation-delay: .36s; }

/* ------------------------------------------------------------- frequency */
.myfreq {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 179, 71, .26);
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(255, 179, 71, .16), transparent 60%),
    var(--panel);
}
.myfreq__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.myfreq__kicker {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
}
.myfreq__copy strong {
  font-family: var(--display);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.myfreq__meta { font-size: 12.5px; color: var(--muted); }
.myfreq .btn { flex: none; }
.myfreq.is-empty { border-style: dashed; border-color: var(--line); }
.myfreq.is-empty .btn { opacity: .55; }

.freq-note { margin-bottom: 16px; max-width: 70ch; }

.freq-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.freq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--r-md);
  isolation: isolate;
  text-align: left;
  transition: transform .2s var(--ease);
}
.freq-card:hover { transform: translateY(-4px); }
.freq-card.is-on {
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .72),
              0 22px 45px -30px rgba(255, 179, 71, .35);
}
.freq-card.is-on .freq-card__play {
  opacity: 1;
  background: var(--amber);
  border-color: var(--amber);
  color: #171007;
}
.freq-card.is-on .freq-card__num { color: var(--amber-2); }
.freq-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
  transition: transform .4s var(--ease);
}
.freq-card:hover img { transform: scale(1.05); }
.freq-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg,
      rgba(10, 10, 12, .98) 0%,
      rgba(10, 10, 12, .86) 34%,
      rgba(10, 10, 12, .38) 62%,
      rgba(10, 10, 12, .05) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, .35), transparent 60%);
}
.freq-card__num {
  font-family: var(--display);
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  color: var(--amber);
  letter-spacing: -.01em;
}
.freq-card__name {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}
.freq-card__meta {
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--text-2);
  opacity: .75;
}
.freq-card__desc {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(243, 239, 231, .58);
}
.freq-card__play {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(10, 10, 12, .5);
  backdrop-filter: blur(6px);
  color: var(--text);
  opacity: 0;
  transition: opacity .18s var(--ease), background-color .18s var(--ease);
}
.freq-card:hover .freq-card__play { opacity: 1; }
.freq-card__play:hover { background: var(--amber); border-color: var(--amber); color: #171007; }
.freq-card__play svg { width: 12px; height: 12px; margin-left: 1px; }

/* --------------------------------------------------------------- history */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.mini-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.mini-head h3 { font-size: 15px; font-weight: 700; }
.mini-head span { font-size: 11px; color: var(--muted); }

.mini-list { border-top: 1px solid var(--line); }
.mini-row {
  display: grid;
  grid-template-columns: 22px 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  color: inherit;
  font: inherit;
  text-align: left;
}
.mini-row:hover .mini-row__title { color: var(--amber); }
.mini-row__rank {
  font-family: var(--display);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.mini-row__art { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; }
.mini-row__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.mini-row__sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  font-size: 10px;
  color: var(--muted);
}
.mini-row__meta { font-size: 10px; color: var(--muted); white-space: nowrap; }
.mini-row.is-current .mini-row__title { color: var(--amber); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: clamp(36px, 5vw, 72px);
  padding-block: 40px 46px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer__brand { max-width: 320px; }
.footer__brand p { margin-top: 10px; line-height: 1.7; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------------- player */
.player {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  height: var(--player-h);
  background: color-mix(in srgb, #0C0C10 92%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -30px 80px -50px rgba(255, 179, 71, .35);
}
.player::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 71, .55), transparent);
}
.player__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  height: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.player__now {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.player__art {
  width: 50px; height: 50px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.player__text { min-width: 0; }
.player__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.player__artist {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}
.player__like, .player__add { flex: none; }

.mode-btn { position: relative; }
.mode-btn.is-active { color: var(--amber); background: var(--amber-soft); }
.mode-btn.is-one::after {
  content: "1";
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 12px;
  height: 12px;
  border-radius: 6px;
  background: var(--amber);
  color: #0A0A0C;
  font-size: 8px;
  font-weight: 800;
  line-height: 12px;
  text-align: center;
}

.player__center {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.transport {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.transport:hover { background: var(--panel-2); color: var(--text); }
.transport svg { width: 15px; height: 15px; }

.play-btn {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: #0A0A0C;
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.play-btn:hover { transform: scale(1.06); background: var(--amber); }
.play-btn svg { width: 15px; height: 15px; }
.play-btn .icon-play { margin-left: 2px; }

.player__play-mobile { display: none; }

.player__seek {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
}
.time {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.time--right { text-align: right; }

.seek {
  position: relative;
  height: 16px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.seek::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 3px;
  height: 10px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(243, 239, 231, .14) 0 1px,
    transparent 1px 9px
  );
  opacity: .7;
}
.seek__rail {
  position: absolute;
  left: 0; right: 0;
  top: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}
.seek__fill {
  position: absolute;
  left: 0;
  top: 11px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--signal));
}
.seek__needle {
  position: absolute;
  top: 7px;
  left: 0;
  width: 2px;
  height: 10px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  transform: translateX(-1px);
}

.player__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.vu {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  margin-right: 4px;
}
.vu i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: var(--vu);
  transform-origin: bottom;
  transform: scaleY(.25);
  opacity: .85;
  animation: vu .9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
/* 재생 중에만 VU가 움직인다 */
body.is-playing .vu i { animation-play-state: running; }
.vu i:nth-child(2) { animation-delay: .12s; background: var(--amber); }
.vu i:nth-child(3) { animation-delay: .24s; }
.vu i:nth-child(4) { animation-delay: .36s; background: var(--amber); }
.vu i:nth-child(5) { animation-delay: .48s; }

.volume {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.volume svg { width: 16px; height: 16px; flex: none; }
.volume input {
  width: 74px;
  height: 3px;
  appearance: none;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) 50%, var(--line) 50%);
  cursor: pointer;
}
.volume input::-webkit-slider-thumb {
  appearance: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 3px rgba(10, 10, 12, .8);
}

.player__mobile-progress { display: none; }

/* ------------------------------------------------------------ now playing */
.np {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.np.is-open { opacity: 1; visibility: visible; }
.np:focus { outline: none; }

.np__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(90px) saturate(1.3);
  opacity: .38;
  transform: scale(1.1);
  transition: background-image .4s var(--ease);
}
.np__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, .62), rgba(10, 10, 12, .82) 48%, #0A0A0C 100%),
    radial-gradient(circle at 24% 38%, rgba(255, 179, 71, .12), transparent 42%);
}

.np__head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.np__label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--muted);
}
.np__close { margin-left: auto; }

.np__main {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 30px var(--gutter) 26px;
  overflow-y: auto;
}

.np__left { position: relative; display: grid; place-items: center; }
.np__vinyl {
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  translate: 24% 0;
  background: repeating-radial-gradient(circle at center, #191920 0 2px, #0B0B0F 2px 4.5px);
  box-shadow: 0 40px 80px -40px #000;
  animation: spin 26s linear infinite;
  animation-play-state: paused;
}
body.is-playing .np__vinyl { animation-play-state: running; }
.np__art {
  position: relative;
  width: 100%;
  border-radius: var(--r-md);
  transform: rotate(-1.5deg);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 50px 100px -40px #000,
    var(--glow);
}
.np__caption {
  position: absolute;
  left: 0; bottom: -26px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--muted);
}

.np__right { min-width: 0; display: flex; flex-direction: column; }
.np__right h2 {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  font-weight: 400;
}
.np__artist { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.np__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.np__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.np__status {
  margin-top: 10px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 77, 77, .32);
  border-radius: 8px;
  background: rgba(255, 77, 77, .08);
  color: #ff9a9a;
  font-size: 11px;
  line-height: 1.5;
}
.np__status[hidden] { display: none; }

.tabs {
  display: flex;
  gap: 4px;
  margin-top: 26px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  position: relative;
  padding: 9px 14px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: color .15s var(--ease);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); }
.tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber);
}

.panel { margin-top: 16px; min-height: 248px; max-height: 300px; overflow-y: auto; }
.panel[hidden] { display: none; }

.queue-row {
  display: grid;
  grid-template-columns: 20px 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 7px 6px;
  border-radius: 6px;
  cursor: pointer;
}
.queue-row:hover { background: rgba(255, 255, 255, .045); }
.queue-row__idx { font-size: 10px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.queue-row__art { width: 38px; height: 38px; border-radius: 5px; object-fit: cover; }
.queue-row__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.queue-row__sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
}
.queue-row__dur { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.queue-row.is-current .queue-row__title,
.queue-row.is-current .queue-row__idx { color: var(--amber); }

.lyrics {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.1;
  color: var(--muted);
  text-align: center;
  padding-block: 8px;
}
.lyrics p { transition: color .2s var(--ease); }
.lyrics p.is-current { color: var(--text); }
.lyrics p.is-current span { color: var(--amber); }
.lyrics .gap { height: 10px; }

.info-list { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px 16px; font-size: 12px; }
.info-list dt { color: var(--muted); }
.info-list dd { color: var(--text-2); }

.np__controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.np__transport { display: flex; align-items: center; gap: 8px; }
.np__transport .play-btn { width: 46px; height: 46px; background: var(--amber); }
.np__transport .play-btn:hover { background: var(--amber-2); }
.np__transport .play-btn svg { width: 17px; height: 17px; }

.np__seek { min-width: 0; }
.np__seek .seek { margin-top: 4px; }
.np__seek-times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.np__tools { display: flex; align-items: center; gap: 8px; }
.np__volume { display: none; }

.sleep {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sleep__chip {
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.sleep__chip:hover { border-color: var(--panel-3); color: var(--text); }
.sleep__chip.is-active { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }

/* -------------------------------------------------------------- toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--player-h) + 18px);
  z-index: 200;
  transform: translate(-50%, 20px);
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(18, 18, 22, .95);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  white-space: nowrap;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* -------------------------------------------------------------- keyframes */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 77, 77, .28); }
  50% { opacity: .75; box-shadow: 0 0 0 5px rgba(255, 77, 77, 0); }
}
@keyframes vu {
  from { transform: scaleY(.22); }
  to { transform: scaleY(1); }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .playlists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .freq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .freq-card { aspect-ratio: 4 / 3; }
  .player__inner { grid-template-columns: minmax(0, 1fr) minmax(320px, 1.4fr) auto; }
  .volume input { width: 56px; }
  .np__main { grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; --player-h: 72px; --gutter: 20px; }

  .nav { display: none; }
  .search { display: none; }
  .search--mobile {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
  }
  .search--mobile input { width: 100%; }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 32px 24px;
    gap: 28px;
  }
  .hero__visual { order: -1; min-height: 320px; }
  .hero__art { width: min(300px, 62%); }
  .vinyl { width: min(300px, 62%); }
  .hero__copy { max-width: none; }
  .hero h1 { font-size: clamp(46px, 10vw, 72px); }
  .onair-badge { left: 4%; bottom: 2%; }

  .player__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .player__center { display: none; }
  .player__right .vu,
  .player__right .volume,
  .player__right [data-queue-open] { display: none; }
  .player__right { gap: 4px; }
  .player__play-mobile { display: grid; }
  .player__mobile-progress {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--line);
  }
  .player__mobile-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--amber), var(--signal));
  }

  .two-col { grid-template-columns: 1fr; }
  .np__main {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    padding-top: 22px;
  }
  .np__left { width: min(260px, 62vw); margin-inline: auto; }
  .np__caption { display: none; }
  .np__right h2 { font-size: 30px; }
  .panel { max-height: none; }

  /* Mobile dock: transport, seek and quick tools stay visible no matter how
     long the queue is, so shuffle/repeat/volume/add/like are always in reach. */
  .np__main { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
  .np__controls {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(10, 10, 12, .94);
    border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .np__transport { justify-content: center; }
  .np__tools { grid-column: auto; justify-content: space-between; }
  .np__volume {
    display: flex;
    flex: 1;
    min-width: 0;
    margin-right: auto;
  }
  .np__volume input { width: 100%; max-width: 190px; }
}

@media (max-width: 620px) {
  .hero__art { width: min(250px, 66%); }
  .vinyl { width: min(250px, 66%); }
  .hero__visual { min-height: 270px; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero__desc { font-size: 14px; }
  .hero__actions .btn { flex: 1 1 auto; min-height: 44px; }

  .playlists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pl-card h3 { font-size: 12px; }
  .pl-play { opacity: 1; transform: none; width: 36px; height: 36px; top: calc(50% - 44px); }

  .freq-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .freq-grid::-webkit-scrollbar { display: none; }
  .freq-card { flex: none; width: 170px; aspect-ratio: 3 / 4; }
  .freq-card__play { opacity: 1; }

  .myfreq { flex-direction: column; align-items: flex-start; padding: 16px; }
  .myfreq .btn { width: 100%; justify-content: center; }

  .track { grid-template-columns: 22px 44px minmax(0, 1fr) 30px 32px; gap: 8px; padding: 8px 4px; }
  .track__art { width: 44px; height: 44px; }
  .track__dur, .track__like { display: none; }
  .track__add { display: grid; opacity: 1; width: 30px; height: 30px; }
  .track__play { width: 30px; height: 30px; }
  .track__num { font-size: 10px; }

  .player__now { gap: 7px; }
  .player__art { width: 44px; height: 44px; }
  .player__like, .player__add { display: inline-flex; width: 30px; height: 30px; }
  .player__like svg, .player__add svg { width: 17px; height: 17px; }

  .sec-head h2 { font-size: 26px; }
  .sec-head .more { font-size: 11px; }

  .site-footer { padding-bottom: 30px; }

  .np__head { height: 60px; }
  .np__label { display: none; }
  .np__main { padding-top: 16px; gap: 28px; }
  .np__left { width: min(210px, 56vw); }
  .np__right h2 { font-size: 26px; }
  .np__controls { grid-template-columns: 1fr; gap: 14px; }
  .np__transport { justify-content: center; }
  .np__tools { justify-content: space-between; flex-wrap: nowrap; }
  .np__volume input { max-width: 140px; }
  .sleep { display: none; }

  .sec-actions { gap: 8px; }
  .sec-head .more--btn { padding: 6px 10px; min-height: 34px; }
  .sheet__panel {
    max-height: 86vh;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero__actions .btn { width: 100%; }
  #setlist .sec-actions .more:not(.more--btn) { display: none; }
  .pl-menu__btn { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  /* 미니 플레이어의 VU는 작은 장식용 표시라서, 감속 모션 설정에서도
     멈추지 않도록 예외로 둔다. */
  .vu i {
    animation-duration: .9s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ============================================================ real playback */
#onairAudio { display: none; }

/* Touch screens keep :hover on the tapped element, which makes cards look
   stuck and can swallow the first tap. Keep the layout still there. */
@media (hover: none) {
  .btn:hover,
  .freq-card:hover,
  .freq-card:hover img,
  .hero__art:hover,
  .play-btn:hover { transform: none; }
  .pl-play,
  .freq-card__play { opacity: 1; transform: none; }
  .pl-card__menu { opacity: 1; transform: none; pointer-events: auto; }
  .track__add { opacity: 1; }
}

/* YouTube IFrame API host — 화면에는 보이지 않지만 재생 가능한 크기 */
.yt-host {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  opacity: .001;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.yt-host iframe { width: 200px; height: 200px; border: 0; }

/* 빈 상태 */
.empty {
  padding: 26px 18px;
  border: 1px dashed var(--line, rgba(255,255,255,.14));
  border-radius: var(--r-md, 14px);
  color: var(--muted, rgba(255,255,255,.55));
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.empty strong { display: block; margin-bottom: 4px; color: var(--text, #f5f1e8); font-weight: 600; }
.lyrics .empty { border: 0; padding: 40px 10px; font-family: var(--sans, sans-serif); }

.track.is-loading .track__play svg { opacity: .35; }

/* YouTube IFrame API가 div를 iframe으로 교체하므로 id에도 스타일을 준다 */
#onairYt {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 200px;
  height: 200px;
  opacity: .001;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  border: 0;
}

.playlists--few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
