/* Pocket Tide Records — 모래빛 종이 · 짙은 바다색 글자 · 강조는 노을빛 하나. 전화 화면을 먼저 짜고 넓은 화면에서 펼친다. */
:root {
  --paper: #f6f1e7; --card: #fffaf0; --ink: #13283b; --ink2: #586877; --line: #e3dac8; --sun: #df5a33; --sun-ink: #fff; --sea: #1d6b75;
  --tintA: .20; --shadow: 0 1px 2px rgba(19, 40, 59, .06), 0 10px 30px -12px rgba(19, 40, 59, .22);
  --disp: Fraunces, "Iowan Old Style", Georgia, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --pad: clamp(16px, 4.6vw, 28px); --r: 16px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0f1a24; --card: #16242f; --ink: #f1eadb; --ink2: #9db0be; --line: #263a4b; --sun: #f0774f; --sun-ink: #10202c; --sea: #6fc6cc; --tintA: .34; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6); }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--body); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; } img { display: block; max-width: 100%; height: auto; } button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; } ul, ol { padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; } .skip:focus { left: 8px; }
.in, main { width: 100%; max-width: 980px; margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }

/* 머리 — 내려도 붙어 있다 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 18px/1 var(--disp); letter-spacing: -.01em; white-space: nowrap; } .brand .logo { width: 28px; height: 28px; }
.top nav { display: flex; gap: 2px; margin-right: -10px; } .top nav a { padding: 10px 10px; font-size: 14px; color: var(--ink2); border-radius: 10px; white-space: nowrap; } .top nav a:hover { color: var(--ink); background: var(--card); }
@media (max-width: 560px) { .brand span { display: none; } .top nav a { font-size: 14.5px; } .brand.sm span { display: inline; } }

.introw { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 20px; } .introw .listen { margin-bottom: 14px; }
.listen { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 30px; background: var(--ink); color: var(--paper); font-size: 14.5px; font-weight: 700; white-space: nowrap; } .listen svg { width: 18px; height: 18px; fill: currentColor; } .listen small { font-weight: 500; opacity: .65; font-size: 12px; } .listen:hover { opacity: .88; } .ahead .listen { margin-top: 14px; }
.intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 22px 0 14px; color: var(--ink2); font-size: 14.5px; }
.intro i { font: italic 500 16px/1.3 var(--disp); color: var(--sea); }

/* 출시 하나 — 표지가 곧 재생기 */
.rel { position: relative; display: grid; gap: 20px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); box-shadow: var(--shadow); isolation: isolate; }
.rel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(160deg, rgb(var(--tint) / var(--tintA)), transparent 62%); }
.rel + .rel { margin-top: 18px; }
.art { position: relative; width: 100%; max-width: 460px; margin: 0 auto; }
.stage { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: rgb(var(--tint) / .35); box-shadow: 0 18px 40px -18px rgb(var(--tint) / .9), 0 2px 6px rgba(0, 0, 0, .12); }
.stage img { width: 100%; height: 100%; object-fit: cover; }
.ytf { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--sun); color: var(--sun-ink); box-shadow: 0 0 0 8px rgb(255 255 255 / .22), 0 12px 30px -6px rgba(0, 0, 0, .6); transition: transform .15s; }
.play svg { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; } .play:hover { transform: scale(1.06); } .play:active { transform: scale(.96); }
.playing .play { display: none; }
.kick { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2); }
.kick span { padding: 2px 10px; border-radius: 20px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 12px; letter-spacing: .02em; } .rel.card .kick span, .rel.page .kick span { background: none; color: var(--ink2); border: 1px solid var(--ink2); font-weight: 500; }
.ttl { margin: 10px 0 4px; font: 700 clamp(27px, 7.4vw, 44px)/1.14 var(--disp); letter-spacing: -.02em; text-wrap: balance; } h3.ttl { font-size: clamp(23px, 5.6vw, 30px); }
.ttl a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.by { display: inline-block; padding: 4px 0; color: var(--sea); font-weight: 600; } .by:hover { text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 16px; border: 1.5px solid var(--ink); border-radius: 30px; font-size: 14.5px; font-weight: 600; background: transparent; transition: background .15s, color .15s; }
.chip svg { width: 18px; height: 18px; opacity: .6; } .chip:hover { background: var(--ink); color: var(--paper); }
details > summary { cursor: pointer; list-style: none; } details > summary::-webkit-details-marker { display: none; }
.more { margin-top: 8px; font-size: 13.5px; color: var(--ink2); } .more summary { display: inline-block; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; } .more p { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-bottom: 4px; } .more p a { padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.lyr { margin-top: 14px; border-top: 1px solid var(--line); }
.lyr summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 700; }
.lyr summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--ink2); transition: transform .2s; } .lyr[open] summary::after { transform: rotate(45deg); }
.ly { padding: 4px 0 10px; font-size: 16px; line-height: 1.85; color: var(--ink); } .ly p + p { margin-top: 1.25em; } .ly span { display: block; padding-left: 1.1em; text-indent: -1.1em; } .ly[lang=en] { font-family: var(--disp); font-weight: 500; font-size: 16.5px; line-height: 1.7; }
.acts { display: flex; gap: 8px; margin-top: 14px; }
.share { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 30px; background: color-mix(in srgb, var(--ink) 9%, transparent); font-size: 14.5px; font-weight: 600; } .share svg { width: 18px; height: 18px; } .share:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.cred { margin-top: 14px; font-size: 12.5px; color: var(--ink2); }
.trks { margin-top: 14px; border-top: 1px solid var(--line); } .trks > li { padding: 10px 0; border-bottom: 1px solid var(--line); } .trks .chips { margin: 8px 0 0 54px; } .trks .chip { min-height: 38px; font-size: 13.5px; } .trks .more { margin-left: 54px; } .trks .lyr { margin: 6px 0 0 54px; border-top: 0; } .trks .lyr summary { min-height: 40px; font-size: 14px; }
.trow { display: flex; align-items: center; gap: 10px; } .trow b { flex: 1; font-size: 16px; } .tn { width: 1.2em; color: var(--ink2); font-variant-numeric: tabular-nums; } .td { color: var(--ink2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tplay { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sun); color: var(--sun-ink); } .tplay svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; } .tplay.off { background: var(--line); }
.tplay.on { background: var(--ink); color: var(--paper); } .tplay.on svg { display: none; } .tplay.on::after { content: ""; width: 14px; height: 14px; border-radius: 3px; background: currentColor; }

/* 구역 */
.sec { padding-top: 40px; } .sec > h2 { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink2); }
.rows { border-top: 1px solid var(--line); } .row { border-bottom: 1px solid var(--line); }
.rowin { display: flex; align-items: center; gap: 12px; padding: 10px 0; } .rc img, .rc .ph { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; background: var(--line); }
.rt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rt b { font: 700 17.5px/1.3 var(--disp); } .rt span { font-size: 13px; color: var(--ink2); }
.stage.wide { display: none; aspect-ratio: 16 / 9; margin: 0 0 12px; box-shadow: none; border-radius: 12px; } .row.playing .stage.wide { display: block; }
/* 곧 나올 곡 — 전화에서는 옆으로 넘겨 본다 */
.ups { display: grid; grid-auto-flow: column; grid-auto-columns: min(44vw, 200px); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; } .ups::-webkit-scrollbar { display: none; }
.up { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; }
.up img, .up .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--line); box-shadow: var(--shadow); }
.dday { position: absolute; left: 8px; top: 8px; padding: 3px 10px; border-radius: 20px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.up b { margin-top: 10px; font: 700 16.5px/1.3 var(--disp); } .ua { font-size: 13.5px; color: var(--sea); font-weight: 600; } .up time { font-size: 12.5px; color: var(--ink2); }
/* 아티스트 */
.arts { display: grid; gap: 10px; }
.artc { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center; min-height: 88px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, transform .15s; }
.artc:hover { border-color: var(--ink); transform: translateY(-1px); } .artc img, .artc .ph { grid-row: span 2; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--line); } .artc b { align-self: end; font-size: 17px; } .artc span { align-self: start; font-size: 13.5px; line-height: 1.45; color: var(--ink2); }
/* 가수 페이지 머리 · 길잡이 */
.crumb { display: flex; flex-wrap: wrap; gap: 0 6px; padding-top: 12px; font-size: 14px; color: var(--ink2); } .crumb a { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; } .crumb a + a::before { content: "/"; margin-right: 6px; opacity: .5; } .crumb a:hover { color: var(--ink); } .crumb svg { width: 18px; height: 18px; margin-left: -5px; }
.crumb + .rel { margin-top: 6px; }
.ahead { display: flex; align-items: center; gap: 18px; padding: 14px 0 6px; } .ahead img, .ahead .ph { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ink); }
.ahead h1 { font: 700 clamp(28px, 7.6vw, 46px)/1.12 var(--disp); letter-spacing: -.02em; } .ahead .en { font: italic 500 15px/1.3 var(--disp); color: var(--sea); margin-bottom: 4px; } .ahead .ko { margin-top: 6px; color: var(--ink2); font-size: 15px; }
.empty { padding: 70px 0; text-align: center; } .empty h1 { font: 700 30px/1.2 var(--disp); margin-bottom: 18px; }
footer { margin-top: 56px; padding: 26px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); } footer p { max-width: 44em; margin-top: 10px; line-height: 1.6; } .brand.sm { font-size: 15px; color: var(--ink); } .brand.sm .logo { width: 22px; height: 22px; }
.fl { display: flex; flex-wrap: wrap; gap: 6px 18px; } .fl a { text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 40; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 30px; background: var(--ink); color: var(--paper); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; } .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 넓은 화면 — 전화 화면을 늘린 꼴이 아니라 따로 짠다: 표지는 왼쪽에 붙박이, 글은 오른쪽에서 가운데 맞춤 */
@media (min-width: 720px) {
  .rel { grid-template-columns: minmax(0, 40%) 1fr; gap: 32px; padding: 26px; align-items: start; }
  .rel.card { grid-template-columns: 240px 1fr; }
  .art { margin: 0; max-width: none; position: sticky; top: 82px; align-self: start; }
  .info { align-self: center; min-width: 0; }
  .ups { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 22px 18px; }
  .arts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
  .ahead { gap: 26px; padding-top: 24px; } .ahead img, .ahead .ph { width: 140px; height: 140px; }
  .sec { padding-top: 56px; } .sec > h2 { font-size: 14px; margin-bottom: 18px; }
  .intro { padding: 34px 0 20px; font-size: 16px; } .intro i { font-size: 19px; }
  .stage.wide { max-width: 560px; }
}
@media (min-width: 1040px) {
  .in, main { max-width: 1180px; }
  .top .in { min-height: 64px; } .brand { font-size: 20px; } .top nav a { font-size: 15px; padding: 10px 14px; }
  .rel { grid-template-columns: 440px 1fr; gap: 48px; padding: 36px; border-radius: 28px; }
  .rel.feat { grid-template-columns: 480px 1fr; padding: 40px; }
  .rel.card { grid-template-columns: 300px 1fr; gap: 36px; padding: 28px; }
  .rel.feat .ttl, .rel.page .ttl { font-size: 54px; margin-top: 14px; } .by { font-size: 18px; }
  .chips { gap: 10px; margin-top: 22px; flex-wrap: nowrap; } .rel.card .chips { flex-wrap: wrap; } .chip { white-space: nowrap; }
  .lyr { margin-top: 22px; } .acts { margin-top: 18px; } .cred { font-size: 13px; }
  .ly { font-size: 17px; } .ly[lang=en] { font-size: 18px; line-height: 1.75; }
  .ups { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 22px; } .up b { font-size: 18px; margin-top: 12px; }
  /* 아티스트 — 넓은 화면에서는 세로 카드 다섯 줄(명단처럼) */
  .arts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .artc { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 26px 16px 22px; min-height: 0; }
  .artc img, .artc .ph { width: 108px; height: 108px; margin-bottom: 12px; } .artc b { align-self: center; font-size: 17px; } .artc span { align-self: center; }
  .ahead { padding-top: 34px; } .ahead img, .ahead .ph { width: 168px; height: 168px; } .ahead .ko { font-size: 17px; }
  footer { margin-top: 80px; } footer .in { display: grid; grid-template-columns: auto 1fr; gap: 6px 40px; align-items: start; } footer p { margin-top: 2px; } .fl { grid-column: 2; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .top, .play, .tplay, .acts, .chips, .more, footer .fl { display: none !important; } .lyr > .ly { display: block; } }
