/* DearRewind — 노을이 지는 저녁, 오래된 종이, 폴라로이드 */

:root {
  --night: #191219;
  --night-2: #221822;
  --plum: #2d1f2c;
  --plum-2: #3a2836;
  --rose: #c88a83;
  --rose-2: #a8676a;
  --amber: #e8b48a;
  --glow: #f4cfa6;
  --paper: #f4ebdf;
  --paper-2: #ecdfcf;
  --paper-3: #e2d1bd;
  --ink: #3a2a29;
  --ink-2: #6e5754;
  --ink-3: #9b8580;
  --cream: #f7efe6;
  --line: rgba(244, 207, 166, .16);
  --cta: linear-gradient(135deg, #8d5d63, #6c4450 60%, #573746);
  --dark-btn: #1f1a24;
  --serif: 'Gowun Batang', 'Nanum Myeongjo', serif;
  --sans: 'Gowun Dodum', 'Apple SD Gothic Neo', system-ui, sans-serif;
  --hand: 'Nanum Pen Script', cursive;
  --script: 'Great Vibes', cursive;
  --r: 18px;
  --side: 232px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {   /* 오래된 필름 같은 아주 옅은 결 */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ── 사이드바 ─────────────────────────────────────────── */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 20;
  display: flex; flex-direction: column; padding: 30px 18px 28px;
  background:
    linear-gradient(180deg, rgba(25, 18, 25, .97) 0%, rgba(25, 18, 25, .82) 38%, rgba(25, 18, 25, .15) 75%, rgba(25, 18, 25, .55) 100%),
    url('/img/side.jpg') center bottom / cover;
  border-right: 1px solid var(--line);
}
.logo { display: block; padding: 0 6px 26px; }
.logo-script { display: block; font-family: var(--script); font-size: 38px; line-height: 1.05; color: var(--paper); letter-spacing: .5px; }
.logo-tag { display: block; margin: 8px 0 0 26px; font-size: 12px; letter-spacing: 2px; color: rgba(247, 239, 230, .7); line-height: 1.5; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: rgba(247, 239, 230, .78); font-size: 14.5px; transition: background .2s, color .2s;
}
.nav a svg { width: 20px; height: 20px; flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: var(--paper); }
.nav a.on { background: rgba(255, 255, 255, .09); color: var(--paper); }
.side-quote {
  margin: auto 0 0; padding: 0 8px; font-family: var(--hand); font-size: 25px; line-height: 1.45;
  color: rgba(247, 239, 230, .85); text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}

.main { margin-left: var(--side); min-height: 100vh; padding: 22px 26px 60px; }

/* ── 공통 ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-size: 14.5px; transition: transform .15s, filter .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-cta { background: var(--cta); color: var(--paper); box-shadow: 0 8px 24px rgba(108, 68, 80, .45); }
.btn-cta:hover { filter: brightness(1.08); }
.btn-dark { background: var(--dark-btn); color: var(--paper); }
.btn-ghost { border: 1px solid rgba(247, 239, 230, .55); color: var(--paper); background: rgba(25, 18, 25, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-line { border: 1px solid var(--paper-3); color: var(--ink-2); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.hand { font-family: var(--hand); }
.serif { font-family: var(--serif); }
.muted { color: rgba(247, 239, 230, .62); }
.section-title { font-family: var(--serif); font-size: 21px; font-weight: 400; margin: 34px 0 14px; color: var(--paper); }
.section-title small { font-family: var(--sans); font-size: 13px; color: rgba(247, 239, 230, .55); margin-left: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 200;
  background: var(--paper); color: var(--ink); padding: 11px 20px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }
.fade-up { animation: fadeUp .7s ease both; }

/* 종이 카드 + 테이프 */
.paper {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink); border-radius: 6px; box-shadow: var(--shadow); position: relative;
}
.tape {
  position: absolute; width: 92px; height: 26px; background: rgba(226, 205, 172, .75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12); transform: rotate(-6deg);
}
.polaroid {
  background: #f8f2ea; padding: 10px 10px 34px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); position: relative;
}
.polaroid img, .polaroid .ph { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #d8c6b4; }

/* ── 홈 ──────────────────────────────────────────────── */
.hero {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 470px;
  display: flex; align-items: flex-end; padding: 46px 48px;
  background: url('/img/hero.jpg') center / cover; box-shadow: var(--shadow);
}
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 18, 25, .88) 0%, rgba(25, 18, 25, .55) 45%, rgba(25, 18, 25, .05) 100%), linear-gradient(0deg, rgba(25, 18, 25, .7), transparent 50%); }
.hero-in { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.38; margin: 0 0 12px; color: var(--paper); }
.hero p { margin: 0 0 26px; color: rgba(247, 239, 230, .8); font-size: 16px; }
.paste {
  display: flex; gap: 8px; background: rgba(247, 239, 230, .95); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.paste input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.paste input::placeholder { color: var(--ink-3); }
.paste .btn { padding: 11px 18px; white-space: nowrap; }
.hint { font-size: 12.5px; color: rgba(247, 239, 230, .6); margin-top: 10px; padding-left: 8px; }

.preview {
  margin-top: 18px; display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px;
  background: rgba(25, 18, 25, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); animation: fadeUp .5s ease both;
}
.preview img { width: 120px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.preview-t { font-family: var(--serif); font-size: 15.5px; line-height: 1.45; }
.preview-a { font-size: 12.5px; color: rgba(247, 239, 230, .6); }
.preview-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preview-acts .btn { padding: 9px 16px; font-size: 13.5px; }
.prior { font-family: var(--hand); font-size: 21px; color: var(--glow); line-height: 1.3; margin: 2px 0 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.step { padding: 22px 22px 20px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.step b { font-family: var(--hand); font-size: 26px; font-weight: 400; color: var(--amber); display: block; line-height: 1.1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; margin: 8px 0 6px; }
.step p { margin: 0; font-size: 13.5px; color: rgba(247, 239, 230, .65); }

.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.song { text-align: left; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.song:hover { transform: translateY(-3px); border-color: rgba(244, 207, 166, .35); }
.song img { width: 100%; aspect-ratio: 16/9; object-fit: cover; filter: sepia(.25) saturate(.9); }
.song div { padding: 10px 12px 12px; }
.song b { display: block; font-family: var(--serif); font-weight: 400; font-size: 14.5px; line-height: 1.4; }
.song span { font-size: 12px; color: rgba(247, 239, 230, .55); }

/* 폴라로이드 그리드 (앨범 · 여행) */
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 26px; padding-top: 6px; }
.memory-card { display: block; transition: transform .25s; }
.memory-card:nth-child(3n+1) { transform: rotate(-1.4deg); }
.memory-card:nth-child(3n+2) { transform: rotate(1deg); }
.memory-card:nth-child(3n) { transform: rotate(-.4deg); }
.memory-card:hover { transform: rotate(0) translateY(-4px); }
.memory-card .polaroid { padding-bottom: 14px; }
.memory-card .cap { color: var(--ink); padding: 10px 4px 0; }
.memory-card .cap b { font-family: var(--hand); font-weight: 400; font-size: 23px; line-height: 1.2; display: block; }
.memory-card .cap small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.memory-card .cap p { margin: 8px 0 0; font-family: var(--serif); font-size: 13px; line-height: 1.6; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); margin-left: 6px; vertical-align: middle; font-family: var(--sans); }

.empty { text-align: center; padding: 60px 20px; }
.empty img { width: min(420px, 100%); margin: 0 auto 22px; border-radius: 14px; opacity: .85; box-shadow: var(--shadow); }
.empty p { font-family: var(--serif); color: rgba(247, 239, 230, .75); }

/* ── 노래 한 곡 (세션) ──────────────────────────────── */
.session { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.col-main { min-width: 0; }
.player-wrap {
  position: relative; border-radius: var(--r); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow);
}
.player-wrap iframe, .player-wrap #player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tabs { display: flex; gap: 6px; margin: 16px 0 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  color: rgba(247, 239, 230, .7); font-size: 14px; transition: background .2s, color .2s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--paper); }
.tab.on { background: var(--paper); color: var(--ink); }

/* 장면 무대 */
.stage {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 330px; background: var(--plum);
  box-shadow: var(--shadow); isolation: isolate;
}
.stage-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity 1.6s ease, transform 14s linear; z-index: -2; transform: scale(1.04); }
.stage-bg.in { transform: scale(1.12); }
.stage::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25, 18, 25, .86) 0%, rgba(25, 18, 25, .55) 50%, rgba(25, 18, 25, .12) 100%), linear-gradient(0deg, rgba(25, 18, 25, .55), transparent 55%); }
.stage-in { padding: 34px 40px 28px; min-height: 330px; display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.stage-in.swap { animation: fadeUp 1.2s ease both; }
.timechip {
  align-self: flex-start; font-family: var(--hand); font-size: 32px; line-height: 1; padding: 8px 18px 6px;
  background: rgba(244, 235, 223, .92); color: var(--ink); transform: rotate(-2deg); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); margin-bottom: 22px;
}
.stage h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.45; margin: 0 0 12px; color: var(--paper); text-shadow: 0 2px 16px rgba(0, 0, 0, .5); }
.stage h2.year { font-family: var(--hand); font-size: 64px; line-height: 1.1; color: var(--glow); }
.stage p.sub { margin: 0; color: rgba(247, 239, 230, .82); font-family: var(--serif); font-size: 15.5px; line-height: 1.75; }
.stage-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.stage-acts .btn { padding: 11px 18px; font-size: 13.5px; }
.stage-photo { position: absolute; right: 26px; bottom: 24px; width: 150px; transform: rotate(4deg); animation: fadeUp 1.4s ease both; }
.stage-photo .polaroid { padding: 7px 7px 22px; }
.stage-photo .tape { top: -12px; left: 30px; width: 70px; height: 20px; }
.stage-quiet { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.stage-quiet .note-ico { font-size: 40px; color: var(--glow); opacity: .7; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .25; transform: translateY(-4px); } }

.note-box { margin-top: 18px; display: flex; gap: 8px; animation: fadeUp .4s ease both; }
.note-box input {
  flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(247, 239, 230, .4);
  background: rgba(25, 18, 25, .55); color: var(--paper); outline: 0; backdrop-filter: blur(6px);
}
.note-box input::placeholder { color: rgba(247, 239, 230, .5); }
.note-box .btn { padding: 10px 18px; }

/* 타임라인 */
.timeline { margin-top: 20px; }
.tl-bar { position: relative; height: 22px; margin: 0 8px 12px; cursor: pointer; }
.tl-bar::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 2px; background: rgba(247, 239, 230, .2); }
.tl-fill { position: absolute; left: 0; top: 10px; height: 2px; background: var(--amber); width: 0; }
.tl-dot { position: absolute; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: rgba(247, 239, 230, .55); }
.tl-dot.past { background: var(--amber); }
.tl-dot.on { width: 18px; height: 18px; margin-left: -9px; top: 2px; background: var(--night); border: 3px solid var(--paper); }
.tl-cards { display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.tl-card { flex: 0 0 132px; text-align: left; scroll-snap-align: start; opacity: .62; transition: opacity .3s, transform .3s; }
.tl-card:hover { opacity: .9; }
.tl-card.on { opacity: 1; }
.tl-card.on .tl-thumb { outline: 2px solid var(--paper); outline-offset: 2px; }
.tl-thumb { width: 100%; aspect-ratio: 4/3; border-radius: 8px; background: var(--plum-2) center / cover; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; overflow: hidden; }
.tl-thumb.text { background: linear-gradient(160deg, #4a3242, #2d1f2c); font-family: var(--hand); font-size: 19px; line-height: 1.15; color: var(--glow); }
.tl-thumb.wait { background: linear-gradient(90deg, #3a2836 0, #4c3546 40px, #3a2836 80px) var(--plum-2); background-size: 400px 100%; animation: shimmer 1.6s linear infinite; }
.tl-card time { display: block; font-size: 13px; margin-top: 6px; color: var(--paper); }
.tl-card span { display: block; font-size: 12px; color: rgba(247, 239, 230, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 오른쪽: 인터뷰 종이 */
.interview { padding: 30px 24px 22px; position: sticky; top: 18px; max-height: calc(100vh - 36px); display: flex; flex-direction: column; }
.interview .tape { top: -10px; right: 34px; transform: rotate(8deg); }
.interview h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.45; margin: 0 0 8px; color: var(--ink); }
.interview .lead { font-family: var(--serif); font-size: 14px; color: var(--ink-2); margin: 0 0 18px; }
.chat { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding: 4px 2px 8px; flex: 0 1 auto; min-height: 60px; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: fadeUp .5s ease both; }
.msg .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e3c9b4; color: #8a5b55; }
.msg .av svg { width: 19px; height: 19px; }
.msg .bub { background: rgba(255, 255, 255, .55); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-family: var(--serif); font-size: 14px; line-height: 1.6; color: var(--ink); box-shadow: 0 1px 2px rgba(58, 42, 41, .06); }
.msg .bub em { display: block; font-style: normal; color: var(--ink-3); font-size: 13px; margin-bottom: 2px; }
.msg.me { justify-content: flex-end; }
.msg.me .bub { background: #e9d8c5; border-radius: 14px 14px 4px 14px; font-family: var(--sans); font-size: 13.5px; }
.msg.me .bub.skip { color: var(--ink-3); font-style: italic; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); margin-right: 4px; animation: breathe 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px 48px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--paper-3); background: rgba(255, 255, 255, .45); font-size: 12.5px; color: var(--ink-2); }
.chip:hover { background: #fff; }
.ask { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.ask textarea {
  flex: 1; min-width: 0; resize: none; border: 1px solid var(--paper-3); background: rgba(255, 255, 255, .6); color: var(--ink);
  border-radius: 16px; padding: 10px 14px; outline: 0; font-size: 14px; line-height: 1.5; max-height: 120px;
}
.ask .send { width: 42px; height: 42px; border-radius: 50%; background: var(--dark-btn); color: var(--paper); display: grid; place-items: center; flex: none; }
.ask .send svg { width: 18px; height: 18px; }
.ask-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }
.ask-sub button { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.ask-sub button:hover { color: var(--ink); }
.go { margin-top: 16px; width: 100%; padding: 15px 22px; font-size: 15px; }
.weaving { margin-top: 14px; font-family: var(--serif); font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.weaving div { display: flex; gap: 10px; align-items: center; animation: fadeUp .6s ease both; }
.weaving .spinner { width: 14px; height: 14px; color: var(--rose-2); }

/* 기억 지도 (인터뷰가 끝난 뒤의 오른쪽) */
.map { padding: 26px 24px 22px; position: sticky; top: 18px; }
.map .tape { top: -10px; left: 30px; }
.map h3 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 0 0 14px; color: var(--ink); }
.map dl { margin: 0; display: grid; grid-template-columns: 64px 1fr; gap: 9px 10px; font-size: 13.5px; }
.map dt { color: var(--ink-3); font-size: 12px; letter-spacing: 1px; padding-top: 2px; }
.map dd { margin: 0; font-family: var(--serif); color: var(--ink); }
.map .unsaid { margin-top: 16px; font-family: var(--hand); font-size: 22px; color: var(--rose-2); line-height: 1.3; }
.map .notes { margin-top: 18px; border-top: 1px dashed var(--paper-3); padding-top: 14px; }
.map .notes h4 { margin: 0 0 8px; font-weight: 400; font-size: 12px; letter-spacing: 1px; color: var(--ink-3); }
.map .notes p { margin: 0 0 8px; font-family: var(--hand); font-size: 21px; line-height: 1.25; color: var(--ink); }
.map .notes time { font-family: var(--sans); font-size: 11px; color: var(--ink-3); margin-right: 6px; }
.map .song-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.map .song-meta img { width: 64px; aspect-ratio: 1; object-fit: cover; border-radius: 6px; filter: sepia(.2); }
.map .song-meta b { font-family: var(--serif); font-weight: 400; font-size: 14px; line-height: 1.4; display: block; color: var(--ink); }
.map .song-meta small { font-size: 12px; color: var(--ink-3); }

/* 다른 탭 */
.panel { border-radius: var(--r); min-height: 330px; padding: 28px 30px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 0 0 6px; }
.panel .count { font-family: var(--hand); font-size: 26px; color: var(--amber); }
.share-list { display: grid; gap: 14px; margin-top: 18px; }
.share-item { display: flex; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.share-item img, .share-item .ph { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; flex: none; background: var(--plum-2); }
.share-item b { font-family: var(--hand); font-size: 22px; font-weight: 400; color: var(--glow); line-height: 1.2; }
.share-item p { margin: 4px 0 0; font-family: var(--serif); font-size: 13.5px; color: rgba(247, 239, 230, .75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.transcript { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.transcript .q { font-family: var(--serif); color: var(--glow); font-size: 15px; }
.transcript .a { font-size: 14px; color: rgba(247, 239, 230, .8); padding-left: 14px; border-left: 2px solid var(--line); margin-top: 4px; }

/* 노래가 끝난 후 */
.finale {
  margin-top: 26px; padding: 30px; display: grid; grid-template-columns: 210px minmax(0, 1fr) 330px; gap: 30px; align-items: center;
  animation: fadeUp 1.4s ease both;
}
.finale .polaroid { transform: rotate(-4deg); }
.finale .polaroid .tape { top: -12px; left: 50px; }
.finale h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.letter { font-family: var(--serif); font-size: 16px; line-height: 1.95; color: var(--ink); margin: 0; white-space: pre-line; }
.letter .ln { opacity: 0; animation: fadeUp 1.2s ease forwards; }
.places { margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--hand); font-size: 22px; line-height: 1.35; color: var(--ink-2); }
.places li::before { content: '— '; color: var(--rose); }
.keep { padding: 22px; border-radius: 10px; background: rgba(255, 255, 255, .45); position: relative; }
.keep .tape { top: -12px; right: 18px; transform: rotate(10deg); width: 70px; }
.keep h4 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--rose-2); }
.keep-title { display: flex; align-items: center; gap: 10px; background: #fffaf3; border: 1px solid var(--paper-3); border-radius: 10px; padding: 6px 6px 6px 14px; }
.keep-title input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 14.5px; padding: 8px 0; }
.keep-title img { width: 46px; height: 34px; object-fit: cover; border-radius: 4px; }
.keep .btn { width: 100%; margin-top: 14px; }
.keep .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.keep .row button { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--paper-3); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--rose-2); }
.switch input:checked::after { transform: translateX(16px); }
.saved-note { font-family: var(--hand); font-size: 22px; color: var(--rose-2); text-align: center; margin-top: 10px; }

.dusk { position: fixed; inset: 0; background: #0c080c; z-index: 90; pointer-events: none; opacity: 0; transition: opacity 1.8s ease; }
.dusk.on { opacity: .82; }

.readonly-cta { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.err { padding: 60px 20px; text-align: center; font-family: var(--serif); color: rgba(247, 239, 230, .75); }

/* ── 반응형 ───────────────────────────────────────────── */
@media (max-width: 1280px) {
  .finale { grid-template-columns: 170px minmax(0, 1fr); }
  .finale .keep { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .session { grid-template-columns: minmax(0, 1fr); }
  .interview, .map { position: relative; top: 0; max-height: none; }
  .interview .chat { max-height: 52vh; }
  .session.asking #tabs, .session.asking #tabbody, .session.asking #timeline { display: none; }
  .session.asking .interview { margin-top: 2px; }
}
@media (max-width: 860px) {
  :root { --side: 0px; }
  .side {
    inset: auto 0 0 0; width: auto; height: auto; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom);
    background: rgba(25, 18, 25, .94); backdrop-filter: blur(14px); border-right: 0; border-top: 1px solid var(--line);
  }
  .side .logo, .side-quote { display: none; }
  .nav { flex-direction: row; width: 100%; gap: 0; }
  .nav a { flex: 1; flex-direction: column; gap: 3px; padding: 9px 4px 8px; font-size: 11px; border-radius: 0; }
  .nav a.on { background: transparent; color: var(--glow); }
  .main { padding: 0 16px 100px; }
  .topbar { display: flex !important; }
  .hero { min-height: 420px; padding: 28px 22px; border-radius: 16px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14.5px; }
  .paste { flex-direction: column; border-radius: 18px; padding: 10px; gap: 8px; }
  .paste input { padding: 8px 8px; }
  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 16px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 78%; scroll-snap-align: center; padding: 18px; }
  .songs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stage, .stage-in { min-height: 300px; }
  .stage::after { background: linear-gradient(0deg, rgba(25, 18, 25, .9) 0%, rgba(25, 18, 25, .62) 55%, rgba(25, 18, 25, .45) 100%); }
  .stage-acts .btn { width: 100%; justify-content: flex-start; }
  .stage-in { padding: 26px 22px 24px; }
  .stage h2 { font-size: 22px; }
  .stage h2.year { font-size: 50px; }
  .stage-photo { width: 104px; right: 14px; bottom: auto; top: 16px; }
  .timechip { font-size: 26px; }
  .finale { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
  .finale .polaroid { width: 180px; margin: 0 auto; }
  .album { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .memory-card .cap b { font-size: 20px; }
  .panel { padding: 22px 18px; }
  .preview { flex-direction: column; align-items: stretch; }
  .preview img { width: 100%; }
  .session { gap: 14px; }
  .tabs { margin: 12px 0 10px; }
}
.topbar { display: none; align-items: baseline; justify-content: space-between; padding: 14px 2px 12px; }
.topbar .logo-script { font-size: 30px; }
.topbar small { font-size: 10.5px; white-space: nowrap; letter-spacing: 1.5px; color: rgba(247, 239, 230, .55); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 400px) { .topbar small { display: none; } }

/* 홈의 샘플 기억 */
.sample { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 26px 30px; border-radius: 12px; transition: transform .25s; }
.sample:hover { transform: translateY(-3px); }
.sample .polaroid { transform: rotate(-3deg); }
.sample .polaroid .tape { top: -12px; left: 50px; }
.sample-t b { display: block; font-family: var(--hand); font-weight: 400; font-size: 32px; line-height: 1.15; color: var(--ink); }
.sample-t small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.sample-t p { font-family: var(--serif); font-size: 14px; color: var(--ink-2); margin: 12px 0 16px; line-height: 1.75; }
@media (max-width: 860px) {
  .sample { grid-template-columns: 1fr; padding: 22px 20px; gap: 18px; }
  .sample .polaroid { width: 170px; margin: 0 auto; }
  .sample-t .btn { width: 100%; }
}

/* ── 하단 탭 ＋ 버튼 · 홈 선반 · 카드 · 쇼츠 (v2) ─────────── */
.nav a.nav-plus svg { border-radius: 8px; background: var(--cta); color: var(--paper); padding: 2px; width: 22px; height: 22px; }

.hero-sm { min-height: 330px; padding: 36px 40px; }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-acts .btn svg { width: 17px; height: 17px; }

.shelf { margin-top: 8px; }
.row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 10px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .rcard { flex: 0 0 168px; scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }

.rcard { display: block; position: relative; border-radius: 14px; overflow: hidden; background: var(--plum); aspect-ratio: 3 / 4; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: transform .2s; }
.rcard:hover { transform: translateY(-3px); }
.rcard-img { position: absolute; inset: 0; background: center / cover; }
.rcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 14, 20, .92) 0%, rgba(20, 14, 20, .2) 55%, transparent 75%); }
.rcard-t { position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 1; }
.rcard-t b { display: block; font-family: var(--hand); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--paper); }
.rcard-t small { display: block; font-size: 11.5px; color: rgba(247, 239, 230, .65); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips-row { display: flex; gap: 6px; overflow-x: auto; margin: -4px 0 12px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: rgba(247, 239, 230, .75); font-size: 13px; }
.pill span { opacity: .55; margin-left: 2px; font-size: 12px; }
.pill.on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.new { max-width: 640px; padding-top: 10px; }
.new-h { font-family: var(--serif); font-weight: 400; font-size: 30px; margin: 10px 0 6px; }
.new-p { color: rgba(247, 239, 230, .7); margin: 0 0 20px; }

/* 쇼츠 */
.shorts { position: fixed; top: 0; bottom: 0; left: var(--side); right: 0; display: flex; flex-direction: column; align-items: center; background: #0f0a0f; z-index: 5; }
.shorts-player { width: min(480px, 100%); aspect-ratio: 16 / 9; flex: none; background: #000; position: relative; }
.shorts-player iframe, .shorts-player #splayer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shorts-feed { width: min(480px, 100%); flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.shorts-feed::-webkit-scrollbar { display: none; }
.short { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; isolation: isolate; }
.short-bg { position: absolute; inset: -4%; background: center / cover; z-index: -2; transition: opacity .6s ease; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.short::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 10, 15, .55) 0%, rgba(15, 10, 15, .25) 35%, rgba(15, 10, 15, .5) 60%, rgba(15, 10, 15, .95) 100%); }
.short-stage { position: absolute; left: 22px; right: 22px; top: 22px; bottom: 170px; display: flex; align-items: center; pointer-events: none; }
.short-cue .timechip { display: inline-block; font-size: 24px; padding: 6px 14px 4px; margin-bottom: 14px; }
.short-cue h2 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.5; margin: 0 0 10px; color: var(--paper); text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.short-cue h2.year { font-family: var(--hand); font-size: 54px; line-height: 1.1; color: var(--glow); }
.short-cue p { margin: 0; font-family: var(--serif); font-size: 15px; line-height: 1.7; color: rgba(247, 239, 230, .85); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.short-cue.swap { animation: fadeUp 1s ease both; }
.short-info { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; }
.short-info b { display: block; font-family: var(--hand); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--paper); }
.short-info small { display: block; font-size: 12.5px; color: rgba(247, 239, 230, .7); margin-top: 4px; }
.short-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.short-tags span { font-size: 11.5px; padding: 2px 9px; border-radius: 999px; background: rgba(247, 239, 230, .14); color: rgba(247, 239, 230, .85); }
.short-tags span:empty { display: none; }
.short-acts { display: flex; gap: 8px; margin-top: 14px; }
.short-acts .btn { padding: 9px 14px; font-size: 13px; position: relative; z-index: 3; }
.short-acts .btn svg { width: 16px; height: 16px; }
.short-tap { position: absolute; inset: 0; z-index: 1; background: transparent; }
.short.paused .short-tap::after, .short.gate .short-tap::after, .short.muted .short-tap::after {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 999px;
  background: rgba(15, 10, 15, .7); color: var(--paper); font-size: 14px; backdrop-filter: blur(6px); white-space: nowrap;
}
.short.paused .short-tap::after { content: '▶  탭해서 이어 듣기'; }
.short.gate .short-tap::after { content: '▶  탭해서 소리와 함께 시작'; }
.short.muted .short-tap::after { content: '🔇  탭해서 소리 켜기'; top: 14%; font-size: 13px; padding: 8px 14px; }
.short-letter { position: absolute; left: 16px; right: 16px; top: 16px; bottom: 196px; z-index: 2; overflow-y: auto; padding: 22px 20px; border-radius: 12px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); box-shadow: var(--shadow); animation: fadeUp .8s ease both; }
.short-letter h3 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 0 0 10px; }
.short-letter p { font-family: var(--serif); font-size: 15px; line-height: 1.9; margin: 0 0 12px; }
.short-letter .muted { color: var(--ink-3); font-size: 12.5px; display: none; }
.short.ended .short-letter .next-hint { display: inline; }
.short.lettered .short-stage { display: none; }

@media (max-width: 860px) {
  .hero-sm { min-height: 300px; padding: 26px 20px; }
  .hero-acts .btn { flex: 1; padding: 12px 8px; font-size: 13.5px; white-space: nowrap; gap: 6px; }
  .row .rcard { flex-basis: 140px; }
  .rcard-t b { font-size: 19px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nav a.nav-plus span { display: none; }
  .nav a.nav-plus svg { width: 40px; height: 32px; padding: 6px 10px; border-radius: 12px; }
  .nav a.nav-plus { justify-content: center; }
  .shorts { left: 0; bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.in-shorts .main { padding: 0; }
  body.in-shorts { overflow: hidden; }
}

/* 노래 검색 */
.search { display: flex; align-items: center; gap: 10px; background: rgba(247, 239, 230, .96); border-radius: 16px; padding: 4px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.search svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; padding: 12px 0; -webkit-appearance: none; }
.search input::placeholder { color: var(--ink-3); }
.results { margin-top: 8px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.results:empty { display: none; }
.result { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); transition: background .15s; }
.result:last-child { border-bottom: 0; }
.result:hover, .result:focus-visible { background: rgba(255, 255, 255, .07); outline: 0; }
.result img { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; flex: none; background: var(--plum-2); }
.result span { min-width: 0; }
.result b { display: block; font-weight: 400; font-size: 15px; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result small { display: block; font-size: 12.5px; color: rgba(247, 239, 230, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-none { padding: 14px; font-size: 13.5px; color: rgba(247, 239, 230, .65); }
.preview-song { font-family: var(--hand); font-size: 22px; color: var(--glow); line-height: 1.2; margin-bottom: 2px; }
.versions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.versions > span { font-size: 12px; color: rgba(247, 239, 230, .55); margin-right: 2px; }
.versions .pill { padding: 5px 12px; font-size: 12.5px; }

/* ── v3: 큰 줄 · 제목 카드 · 좋아하는 부분 · 움직이는 그림 · 닉네임 ── */
.stage h2.line, .short-cue h2.line { font-family: var(--serif); font-weight: 700; letter-spacing: -.3px; }
.stage h2.line { font-size: 36px; line-height: 1.42; }
.short-cue h2.line { font-size: 31px; line-height: 1.42; }
.stage h2.line.year, .short-cue h2.line.year { font-family: var(--hand); font-weight: 400; font-size: 66px; line-height: 1.05; color: var(--glow); }
.stage p.sub, .short-cue p { font-size: 18px; }
h2.line.fav { color: #ffd9c9; text-shadow: 0 0 24px rgba(255, 170, 140, .55), 0 2px 16px rgba(0, 0, 0, .5); }
.fav-mark { display: inline-block; margin-right: 10px; color: #ff8f86; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }
.stage-in.swap, .short-cue.swap { animation: lineIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes lineIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.intro { display: flex; flex-direction: column; align-items: flex-start; }
.intro-tag { font-size: 11px; letter-spacing: 4px; color: var(--glow); opacity: .85; margin-bottom: 10px; }
.intro-title { font-family: var(--hand); font-weight: 400; font-size: 52px; line-height: 1.1; margin: 0 0 12px; color: var(--paper); text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.intro-by { margin: 0; font-size: 15px; color: var(--glow); }
.intro-song { margin: 4px 0 0; font-size: 13.5px; color: rgba(247, 239, 230, .7); }

/* 그림마다 다른 움직임 */
.stage-bg, .short-bg { animation: none; transform: none; }
.kb-in { animation: kbIn 16s ease-out forwards !important; }
.kb-out { animation: kbOut 16s ease-out forwards !important; }
.kb-left { animation: kbLeft 18s linear forwards !important; }
.kb-right { animation: kbRight 18s linear forwards !important; }
@keyframes kbIn { from { transform: scale(1.02); } to { transform: scale(1.18); } }
@keyframes kbOut { from { transform: scale(1.2); } to { transform: scale(1.04); } }
@keyframes kbLeft { from { transform: scale(1.18) translateX(4%); } to { transform: scale(1.18) translateX(-4%); } }
@keyframes kbRight { from { transform: scale(1.18) translateX(-4%); } to { transform: scale(1.18) translateX(4%); } }

.short-by { display: block; font-size: 13px; color: var(--glow); margin-top: 2px; }
.short.ended .short-tap::after { content: '다음 리와인드로 ↓'; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 12px 20px; border-radius: 999px; background: rgba(15, 10, 15, .7); color: var(--paper); font-size: 14px; }
.short-stage { bottom: 190px; }
.rcard-t i { display: block; font-style: normal; font-size: 11px; color: var(--glow); margin-top: 2px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.finale { grid-template-columns: 200px minmax(0, 1fr) 330px; }
.finale-title { font-family: var(--hand); font-weight: 400; font-size: 40px; line-height: 1.15; margin: 6px 0 8px; color: var(--ink); }
.finale-meta { margin: 0; font-family: var(--serif); color: var(--ink-2); }
.finale-song { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

.me { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; font-size: 13.5px; color: rgba(247, 239, 230, .6); }
.me b { font-family: var(--hand); font-weight: 400; font-size: 23px; color: var(--glow); }
.me button { text-decoration: underline; text-underline-offset: 3px; color: rgba(247, 239, 230, .7); font-size: 13px; }

@media (max-width: 860px) {
  .stage h2.line { font-size: 28px; }
  .short-cue h2.line { font-size: 28px; }
  .stage h2.line.year, .short-cue h2.line.year { font-size: 54px; }
  .stage p.sub, .short-cue p { font-size: 16px; }
  .intro-title { font-size: 42px; }
  .stage-acts .btn { width: auto; flex: 1; justify-content: center; }
  .stage-acts { flex-wrap: nowrap; }
}

/* ── 모바일 가로 모드: 왼쪽 YouTube, 오른쪽 리와인드 ── */
@media (orientation: landscape) and (max-height: 540px) {
  .topbar { display: none !important; }
  .main { padding-top: 10px; }
  /* Rewinds */
  .shorts { flex-direction: row; align-items: stretch; }
  .shorts-player { width: 50%; aspect-ratio: auto; height: 100%; }
  .shorts-feed { width: 50%; }
  .short-stage { top: 12px; bottom: 92px; left: 16px; right: 16px; }
  .short-cue h2.line { font-size: 22px; }
  .short-cue h2.line.year { font-size: 40px; }
  .short-cue p { font-size: 14px; }
  .intro-title { font-size: 32px; }
  .short-info { left: 14px; right: 14px; bottom: 10px; }
  .short-info b { font-size: 21px; }
  .short-tags { display: none; }
  .short-acts { margin-top: 6px; }
  .short-acts .btn { padding: 6px 10px; font-size: 12px; }
  /* 만들기 · 재생 화면 */
  .session .col-main { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; align-items: start; }
  .session .col-main .player-wrap { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: 8px; }
  .session .col-main > :not(.player-wrap) { grid-column: 2; }
  .session .tabs { margin-top: 0; }
  .stage, .stage-in { min-height: 0; }
  .stage-in { min-height: calc(100vh - 150px); padding: 18px 20px; }
  .stage h2.line { font-size: 24px; }
  .stage h2.line.year { font-size: 44px; }
  .stage-photo { display: none; }
  .session.asking .col-main { display: block; }
}
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1000px) {
  .nav a { padding: 6px 4px; }
  .nav a span { display: none; }
  .nav a.nav-plus svg { width: 34px; height: 26px; padding: 4px 8px; }
  .shorts { bottom: calc(38px + env(safe-area-inset-bottom)); }
  .main { padding-bottom: 50px; }
}

/* 재생 중에는 아래 정보를 숨기고 썰을 크게 */
.short-info { transition: opacity .5s ease, transform .5s ease; }
.short-stage { transition: bottom .6s ease; }
.short.chrome-hidden .short-info { opacity: 0; transform: translateY(12px); pointer-events: none; }
.short.chrome-hidden .short-stage { bottom: 40px; }

/* ── v4: 전체 화면 채팅 인터뷰 ─────────────────────────── */
body.in-chat { overflow: hidden; }
.chatscreen { position: fixed; left: 0; right: 0; top: 0; height: 100dvh; z-index: 60; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #f6eee3, #efe3d3); color: var(--ink); }
@media (min-width: 861px) { .chatscreen { left: var(--side); } .cs-body, .cs-foot { width: min(720px, 100%); margin: 0 auto; } }
.cs-head { flex: none; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--paper-3); background: rgba(246, 238, 227, .92); backdrop-filter: blur(8px); }
.cs-back { font-size: 30px; line-height: 1; color: var(--ink-2); padding: 0 6px 4px 0; }
.cs-head img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.cs-head b { display: block; font-weight: 400; font-family: var(--serif); font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.cs-head small { font-size: 12px; color: var(--ink-3); }
.cs-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.cs-note { align-self: center; max-width: 520px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--ink-2); background: rgba(255, 255, 255, .55); border: 1px solid var(--paper-3); border-radius: 14px; padding: 12px 16px; margin-bottom: 6px; }
.cs-msg { display: flex; animation: fadeUp .4s ease both; }
.cs-msg.me { justify-content: flex-end; }
.cs-bub { max-width: 82%; padding: 11px 15px; border-radius: 18px; font-size: 15.5px; line-height: 1.6; white-space: pre-line; }
.cs-msg.ai .cs-bub { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(58, 42, 41, .08); font-family: var(--serif); }
.cs-msg.me .cs-bub { background: #6c4450; color: #fff6ee; border-bottom-right-radius: 6px; }
.cs-msg.me .cs-bub.skip { background: transparent; color: var(--ink-3); font-style: italic; }
.cs-ack { display: block; color: var(--rose-2); margin-bottom: 4px; }
.cs-q { display: block; }
.cs-bub.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); margin-right: 4px; animation: breathe 1.2s infinite; }
.cs-bub.typing span:nth-child(2) { animation-delay: .2s; }
.cs-bub.typing span:nth-child(3) { animation-delay: .4s; }
.cs-foot { flex: none; padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--paper-3); background: rgba(246, 238, 227, .96); }
.cs-ask { display: flex; gap: 8px; align-items: flex-end; }
.cs-ask textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--paper-3); background: #fff; color: var(--ink); border-radius: 20px; padding: 11px 16px; outline: 0; font-size: 16px; line-height: 1.45; max-height: 160px; font-family: var(--sans); }
.cs-ask .send { width: 44px; height: 44px; border-radius: 50%; background: #6c4450; color: #fff; display: grid; place-items: center; flex: none; }
.cs-ask .send svg { width: 19px; height: 19px; }
.cs-sub { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 0 6px; font-size: 13px; }
.cs-sub button { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.cs-sub button[data-finish] { color: var(--rose-2); }
.cs-foot .go { margin-top: 2px; }
.cs-foot:empty { display: none; }

/* ── 세 줄 가사식 ─────────────────────────────────────── */
.stage-in.swap, .short-cue.swap { animation: none; }
.swap .intro, .swap .ln.l-cur { animation: lineIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.lines { display: flex; flex-direction: column; gap: 10px; }
.ln { font-family: var(--serif); font-weight: 700; letter-spacing: -.3px; color: var(--paper); text-shadow: 0 2px 16px rgba(0, 0, 0, .55); transition: opacity .6s, font-size .6s; }
.ln small { display: block; font-weight: 400; font-size: .55em; color: rgba(247, 239, 230, .82); margin-top: 6px; letter-spacing: 0; }
.ln.l-old { opacity: .3; font-size: 19px; }
.ln.l-prev { opacity: .55; font-size: 22px; }
.ln.l-cur { opacity: 1; font-size: 32px; line-height: 1.4; }
.ln.k-year.l-cur { font-family: var(--hand); font-weight: 400; font-size: 60px; line-height: 1.05; color: var(--glow); }
.ln.k-fav.l-cur { color: #ffd9c9; text-shadow: 0 0 24px rgba(255, 170, 140, .55), 0 2px 16px rgba(0, 0, 0, .5); }
.ln.k-aside { font-family: var(--hand); font-weight: 400; color: #f8e3c4; }
.ln.k-aside.l-cur { font-size: 36px; }
.aside-mark { margin-right: 8px; opacity: .8; }
.stage .lines { max-width: 640px; }
.short-stage { align-items: flex-end; }
@media (max-width: 860px) {
  .ln.l-old { font-size: 16px; }
  .ln.l-prev { font-size: 19px; }
  .ln.l-cur { font-size: 26px; }
  .ln.k-year.l-cur { font-size: 48px; }
  .ln.k-aside.l-cur { font-size: 30px; }
}

/* ── 시점 댓글 ────────────────────────────────────────── */
.stage-cmts, .short-cmts { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; z-index: 2; }
.stage-cmts { right: 20px; bottom: 18px; align-items: flex-end; max-width: 46%; }
.short-cmts { left: 16px; right: 16px; bottom: 196px; transition: bottom .6s ease; }
.short.chrome-hidden .short-cmts { bottom: 18px; }
.short.chrome-hidden .short-stage { bottom: 130px; }
.cmt { max-width: 100%; padding: 7px 12px; border-radius: 14px; background: rgba(15, 10, 15, .62); backdrop-filter: blur(8px); color: var(--paper); font-size: 13.5px; line-height: 1.45; animation: cmtIn .5s ease both; }
.cmt b { font-weight: 400; color: var(--glow); margin-right: 6px; font-size: 12px; }
.cmt.mine { background: rgba(108, 68, 80, .85); }
.cmt.out { opacity: 0; transform: translateY(-8px); transition: opacity .6s, transform .6s; }
@keyframes cmtIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.cmt-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(70px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 20px)); z-index: 70;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow); animation: fadeUp .3s ease both; }
.cmt-at { font-size: 12px; color: var(--rose-2); flex: none; }
.cmt-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.cmt-bar .btn { padding: 8px 14px; font-size: 13px; }
.cmt-x { font-size: 22px; color: var(--ink-3); padding: 0 6px; }
@media (orientation: landscape) and (max-height: 540px) {
  .short-cmts { bottom: 90px; }
  .short.chrome-hidden .short-cmts { bottom: 10px; }
  .short.chrome-hidden .short-stage { bottom: 90px; }
  .ln.l-cur { font-size: 21px; } .ln.l-prev { font-size: 15px; } .ln.l-old { display: none; }
  .ln.k-year.l-cur { font-size: 36px; }
  .cmt-bar { bottom: 44px; }
}

/* 글씨가 나타나는 방식 (줄마다 번갈아) */
.swap .ln.l-cur { animation: none; }
.swap .ln.l-cur.fx-rise { animation: lineIn 1s cubic-bezier(.2, .7, .2, 1) both; }
.swap .ln.l-cur.fx-wipe { animation: wipeIn 1.4s cubic-bezier(.3, .6, .2, 1) both; }
.swap .ln.l-cur.fx-gather { animation: gatherIn 1.3s ease-out both; }
.ln.fx-type span { display: inline-block; white-space: pre; }
.swap .ln.l-cur.fx-type span { animation: typeIn .35s ease-out both; }
.swap .ln.l-cur small { animation: fadeIn 1s ease 1s both; }
@keyframes wipeIn { from { clip-path: inset(0 100% 0 0); opacity: .4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes gatherIn { from { opacity: 0; letter-spacing: .35em; filter: blur(3px); } to { opacity: 1; letter-spacing: -.3px; filter: none; } }
@keyframes typeIn { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ln.l-prev, .ln.l-old { transition: opacity .8s ease, font-size .8s ease; }

/* ── v5: 쇼츠 진행 바(드래그) · 늘 보이는 댓글 입력창 ── */
.sbar { width: min(480px, 100%); flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 12px; background: #0f0a0f; }
.sbar-track { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.sbar-track::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: rgba(247, 239, 230, .2); }
.sbar-fill { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 3px; background: var(--amber); width: 0; }
.sbar-knob { position: absolute; top: 5px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, .5); left: 0; }
.sbar-time { flex: none; font-size: 11.5px; color: rgba(247, 239, 230, .6); font-variant-numeric: tabular-nums; }
.scmt { width: min(480px, 100%); flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #0f0a0f; border-top: 1px solid var(--line); }
.scmt-at { flex: none; font-size: 12.5px; color: var(--glow); min-width: 34px; font-variant-numeric: tabular-nums; }
.scmt input { flex: 1; min-width: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--paper); border-radius: 999px; padding: 9px 14px; outline: 0; font-size: 16px; }
.scmt input::placeholder { color: rgba(247, 239, 230, .45); }
.scmt .btn { padding: 9px 14px; font-size: 13px; }
.scmt.inline { width: 100%; margin-top: 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
#tlbar { touch-action: none; }
/* 쇼츠 안의 배치: 아래 정보와 댓글이 서로 겹치지 않게 */
.short-info { bottom: 14px; }
.short-cmts { bottom: 168px; }
.short-stage { bottom: 170px; }
.short.chrome-hidden .short-cmts { bottom: 14px; }
.short.chrome-hidden .short-stage { bottom: 120px; }
.short.at-intro .short-stage { align-items: center; bottom: 170px; }
@media (orientation: landscape) and (max-height: 540px) {
  .shorts { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto; }
  .shorts-player { grid-column: 1; grid-row: 1 / span 3; width: 100%; height: 100%; }
  .shorts-feed { grid-column: 2; grid-row: 1; width: 100%; }
  .sbar { grid-column: 2; grid-row: 2; width: 100%; padding: 2px 10px; }
  .scmt { grid-column: 2; grid-row: 3; width: 100%; padding: 4px 8px; }
  .scmt input { padding: 6px 12px; font-size: 14px; }
  .short-cmts { bottom: 80px; } .short-stage { bottom: 80px; }
}
/* 처음 제목 카드가 떠 있는 동안 아래 정보의 제목은 겹치지 않게 숨긴다 */
.short.at-intro .short-info > b, .short.at-intro .short-by, .short.at-intro .short-info > small, .short.at-intro .short-tags { display: none; }

/* ── 댓글 핀 · 목록 · 진행 바 위 점 ── */
.scmt-pin { flex: none; font-size: 12.5px; padding: 7px 10px; border-radius: 999px; border: 1px dashed rgba(244, 207, 166, .5); color: var(--glow); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scmt-pin.on { border-style: solid; background: rgba(232, 180, 138, .18); }
.scmt-pin.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.12); } }
.scmt-list { flex: none; font-size: 12.5px; color: rgba(247, 239, 230, .75); padding: 7px 4px; white-space: nowrap; }
.scmt .scmt-at { display: none; }
.sbar-marks { position: absolute; inset: 0; pointer-events: none; }
.sbar-marks i { position: absolute; top: 15px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(244, 207, 166, .75); }
.tl-bar .sbar-marks i { top: 16px; }
.sbar-marks .pin { position: absolute; top: -12px; margin-left: -7px; font-size: 13px; font-weight: 400; animation: pop .35s ease; }
button.cmt { text-align: left; pointer-events: auto; cursor: pointer; border: 0; font: inherit; }
.csheet { position: fixed; inset: 0; z-index: 80; background: rgba(10, 6, 10, .5); display: flex; align-items: flex-end; justify-content: center; }
.csheet-in { width: min(560px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--night-2); border-radius: 18px 18px 0 0; border: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.csheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.csheet-head b { font-weight: 400; font-family: var(--serif); }
.csheet-head button { font-size: 24px; color: rgba(247, 239, 230, .6); }
.csheet-list { overflow-y: auto; padding: 6px 0 10px; }
.csheet-item { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px 18px; font-size: 14px; line-height: 1.5; color: var(--paper); }
.csheet-item:hover { background: rgba(255, 255, 255, .05); }
.csheet-item .ct { flex: none; font-size: 12px; color: var(--glow); padding: 2px 8px; border-radius: 999px; background: rgba(232, 180, 138, .14); height: fit-content; font-variant-numeric: tabular-nums; }
.csheet-item b { font-weight: 400; color: rgba(247, 239, 230, .55); margin-right: 6px; font-size: 12.5px; }
@media (max-width: 400px) { .scmt .btn { padding: 9px 11px; } .scmt-list { padding: 7px 2px; } }

/* 내 앨범: 아직 저장하지 않은 리와인드 */
.sub-title { font-family: var(--serif); font-weight: 400; font-size: 15px; color: rgba(247, 239, 230, .65); margin: 6px 0 10px; }
.drafts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.draft { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.draft img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; }
.draft span { flex: 1; min-width: 0; }
.draft b { display: block; font-weight: 400; font-family: var(--hand); font-size: 20px; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft small { display: block; font-size: 12px; color: rgba(247, 239, 230, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft em { flex: none; font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(247, 239, 230, .8); display: inline-flex; align-items: center; gap: 6px; }
.draft em .spinner { width: 11px; height: 11px; }
.draft em.st-ready, .draft em.st-done { background: rgba(232, 180, 138, .2); color: var(--glow); }

/* 완성 알림 */
.ready-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 90; width: min(520px, calc(100% - 24px));
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); animation: fadeUp .5s ease both; font-size: 14px; }
.ready-banner b { font-weight: 400; font-family: var(--serif); }
.ready-banner span:nth-child(2) { flex: 1; min-width: 0; }
.ready-banner em { flex: none; font-style: normal; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--dark-btn); color: var(--paper); }
@media (min-width: 861px) { .ready-banner { bottom: 28px; left: calc(50% + var(--side) / 2); } }
.nav a.dot { position: relative; }
.nav a.dot::after { content: ''; position: absolute; top: 8px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: #ff8f86; box-shadow: 0 0 0 2px var(--night); }
@media (min-width: 861px) { .nav a.dot::after { top: 50%; right: 14px; margin-top: -4px; } }
.notify-me { margin-top: 10px; font-size: 13px; padding: 9px 14px; }
.notify-ok { margin: 10px 0 0; font-size: 13px; color: var(--rose-2); }

/* 내 리와인드 관리 (기억 지도 아래) */
.owner { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--paper-3); display: flex; flex-direction: column; gap: 10px; }
.owner .keep-title { padding: 4px 4px 4px 12px; }
.owner .keep-title .btn { padding: 7px 12px; font-size: 12.5px; flex: none; }
.owner-note { margin: 0; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.owner-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); }
.owner-row button { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; font-size: 12.5px; }

/* 썸네일: 노래 제목과 가수를 따로, 잘리지 않게 */
.rcard-song, .rcard-artist { display: block; overflow-wrap: anywhere; line-height: 1.35; }
.rcard-song { font-size: 12px; color: rgba(247, 239, 230, .85); margin-top: 4px; }
.rcard-artist { font-size: 11.5px; color: rgba(247, 239, 230, .6); }
.rcard::after { background: linear-gradient(0deg, rgba(20, 14, 20, .95) 0%, rgba(20, 14, 20, .55) 45%, transparent 78%); }

/* beta · 의견 · 자매 서비스 */
.logo-script .beta { font-family: var(--sans); font-size: 10px; letter-spacing: 1px; text-transform: uppercase; vertical-align: super; margin-left: 4px; padding: 2px 6px; border-radius: 999px; border: 1px solid rgba(244, 207, 166, .5); color: var(--glow); }
.topbar .logo-script .beta { font-size: 9px; }
.side-fb { margin-top: 14px; align-self: flex-start; padding: 0 8px; font-size: 12.5px; color: rgba(247, 239, 230, .65); text-decoration: underline; text-underline-offset: 3px; }
.foot { margin-top: 40px; padding: 22px 0 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-link { font-size: 12.5px; color: rgba(247, 239, 230, .65); text-decoration: underline; text-underline-offset: 3px; }
.sister { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 22px; }
.sister-title { width: 100%; text-align: center; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(247, 239, 230, .45); margin-bottom: 4px; }
.sister a { font-family: var(--serif); font-size: 20px; color: var(--paper); opacity: .85; }
.sister a i { font-family: var(--script); font-style: normal; color: var(--glow); margin-right: 2px; }
.sister a:hover { opacity: 1; }
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(10, 6, 10, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.fb-sheet { position: relative; width: min(440px, 100%); background: var(--paper); color: var(--ink); border-radius: 18px; padding: 26px 22px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.fb-sheet h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.fb-sub { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.fb-close { position: absolute; top: 10px; right: 14px; font-size: 26px; color: var(--ink-3); }
.fb-stars { display: flex; gap: 4px; }
.fb-stars button { font-size: 28px; color: var(--paper-3); line-height: 1; }
.fb-stars button.on { color: #e8a24f; }
.fb-sheet textarea { resize: vertical; border: 1px solid var(--paper-3); background: #fffaf3; border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--ink); outline: 0; }
.fb-error { margin: 0; font-size: 13px; color: #b0413e; }

/* ── 헤더 검색창 ── */
.hbar { position: sticky; top: 0; z-index: 15; margin-left: var(--side); display: flex; align-items: center; gap: 10px; padding: 12px 26px; background: rgba(25, 18, 25, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hbar-logo { display: none; flex: none; }
.hbar-logo .logo-script { font-size: 27px; }
.hsearch { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.hsearch:focus-within { border-color: rgba(244, 207, 166, .5); background: rgba(255, 255, 255, .1); }
.hsearch svg { width: 18px; height: 18px; color: rgba(247, 239, 230, .55); flex: none; }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: 16px; padding: 10px 0; -webkit-appearance: none; }
.hsearch input::placeholder { color: rgba(247, 239, 230, .45); }
.hsearch-cancel { flex: none; font-size: 14px; color: var(--glow); }
body.in-shorts .hbar, body.in-chat .hbar { display: none; }
.main { padding-top: 16px; }
@media (max-width: 860px) {
  .hbar { margin-left: 0; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
  .hbar-logo { display: block; }
  .hbar:focus-within .hbar-logo { display: none; }
  .main { padding-top: 12px; }
}
@media (orientation: landscape) and (max-height: 540px) { .hbar { padding-top: 6px; padding-bottom: 6px; } }

/* ── 검색 결과 · 노래 페이지 ── */
.find-hint { color: rgba(247, 239, 230, .6); font-family: var(--serif); line-height: 1.8; padding: 20px 4px; }
.find-songs { display: flex; flex-direction: column; gap: 8px; }
.find-song { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.find-song img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: var(--plum-2); }
.find-song span { flex: 1; min-width: 0; }
.find-song b { display: block; font-weight: 400; font-size: 15.5px; color: var(--paper); overflow-wrap: anywhere; }
.find-song small { display: block; font-size: 12.5px; color: rgba(247, 239, 230, .6); }
.find-song em { flex: none; font-style: normal; font-size: 12px; color: var(--glow); padding: 4px 10px; border-radius: 999px; background: rgba(232, 180, 138, .14); }
.song-head { display: flex; gap: 22px; align-items: flex-end; padding: 10px 0 6px; }
.song-head img { width: 160px; height: 160px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); flex: none; background: var(--plum-2); }
.song-head h1 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.3; margin: 4px 0 2px; overflow-wrap: anywhere; }
.song-artist { margin: 0; color: rgba(247, 239, 230, .75); }
.song-count { margin: 8px 0 16px; font-size: 13px; color: var(--glow); }
.rcard-ver { position: absolute; top: 8px; left: 8px; z-index: 1; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(15, 10, 15, .65); color: var(--paper); }
.short-song { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(247, 239, 230, .8); position: relative; z-index: 3; }
.short-song span { color: var(--glow); margin-left: 4px; }
@media (max-width: 860px) {
  .song-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .song-head img { width: 120px; height: 120px; }
  .song-head h1 { font-size: 25px; }
}

/* 자매 서비스 로고: 각 서비스의 원래 모양 그대로 (밝은 바탕 위에 — 원래 색이 살도록) */
.sister { background: #fbf8f2; border-radius: 16px; padding: 16px 18px 18px; gap: 10px 24px; }
.sister .sister-title { color: #8a8378; }
.sister a.sl { opacity: 1; text-decoration: none; }
.sister a.sl:hover { opacity: .7; }
.sister .sl.cast, .sister .sl.cameo { font-family: "Instrument Serif", Georgia, serif; font-size: 22px; letter-spacing: .2px; color: #16140f; }
.sister .sl.cast i, .sister .sl.cameo i { font-family: inherit; font-style: italic; color: inherit; margin-right: 1px; }
.sister .sl.writer { font: 800 13px/1 "Noto Sans KR", system-ui, sans-serif; letter-spacing: .18em; color: #16140f; }
.sister .sl.writer span { font: inherit; letter-spacing: inherit; color: #c8431f; }
.sister .sl.mintchoco { font: 900 18px/1 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif; letter-spacing: -.045em; }
.sister .sl.mintchoco span { font: inherit; letter-spacing: inherit; color: #674F3F; font-weight: 800; }
.sister .sl.mintchoco b { font: inherit; letter-spacing: inherit; color: #22BBBB; font-weight: 900; }

/* 같은 노래, 다른 그때 (옆으로) */
.variants { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4; display: flex; align-items: center; gap: 8px; }
.variants button { width: 30px; height: 30px; border-radius: 50%; background: rgba(15, 10, 15, .55); color: var(--paper); font-size: 20px; line-height: 1; display: grid; place-items: center; backdrop-filter: blur(6px); }
.variants button[disabled] { opacity: .25; }
.v-dots { display: flex; gap: 4px; }
.v-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(247, 239, 230, .35); }
.v-dots i.on { background: var(--glow); }
.v-label { flex: 1; font-size: 12px; color: rgba(247, 239, 230, .85); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.short.chrome-hidden .variants { opacity: .55; }
/* 모바일: 의견 보내기는 하단 탭이 아니라 홈 · 앨범 맨 아래에만 */
@media (max-width: 860px) { .side .side-fb { display: none; } }
/* 모바일 가로: 넘치지 않게 */
@media (orientation: landscape) and (max-height: 540px) {
  .hbar-logo .logo-script { font-size: 22px; }
  .hsearch input { padding: 7px 0; }
  .hero-sm { min-height: 0; padding: 20px 22px; }
  .hero h1 { font-size: 22px; margin-bottom: 6px; }
  .hero p { margin-bottom: 12px; font-size: 13px; }
  .hero-acts .btn { flex: 0 0 auto; padding: 9px 16px; }
  .row .rcard { flex-basis: 130px; }
  .song-head { flex-direction: row; align-items: center; }
  .song-head img { width: 90px; height: 90px; }
  .find-song img, .result img { width: 40px; height: 40px; }
  .new-h { font-size: 22px; }
  html, body { overflow-x: hidden; }
}

/* Rewinds: 의견 보내기 — 리와인드 창 오른쪽 아래에 잠깐 */
.short-fb { position: absolute; right: max(12px, calc(50% - 240px + 12px)); bottom: 70px; z-index: 6; padding: 8px 14px; border-radius: 999px;
  background: rgba(247, 239, 230, .92); color: var(--ink); font-size: 13px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); animation: fadeUp .5s ease both; transition: opacity .7s ease; }
.short-fb.out { opacity: 0; }
@media (orientation: landscape) and (max-height: 540px) { .short-fb { right: 12px; bottom: 50px; } }
/* "같은 노래, 다른 그때" 표시와 이야기가 겹치지 않게 */
.short:has(.variants) .short-stage { top: 52px; }
@media (orientation: landscape) and (max-height: 540px) {
  .short.at-intro .short-stage { bottom: 92px; align-items: flex-end; }
  .short:has(.variants) .short-stage { top: 48px; }
  .intro-tag { margin-bottom: 4px; }
  .intro-title { margin-bottom: 4px; }
}
/* 모바일: 무엇도 페이지를 옆으로 넓히지 못하게 (넓어지면 하단 탭까지 밀려 오른쪽 탭이 안 보인다) */
html, body { overflow-x: clip; max-width: 100%; }
.hbar { max-width: 100vw; }
.hsearch { min-width: 0; }
.hsearch input { width: 100%; }
@media (max-width: 860px) {
  .hbar { gap: 8px; }
  .hbar-logo .logo-script { font-size: 24px; white-space: nowrap; }
  .hbar-logo .beta { font-size: 8px; padding: 1px 5px; margin-left: 3px; }
  .side { left: 0; right: 0; width: 100%; max-width: 100vw; }
  .nav a { min-width: 0; }
}
@media (max-width: 360px) { .hbar-logo .logo-script { font-size: 21px; } }

/* 내 리와인드: ⋯ 관리 */
.short-more { position: absolute; top: 10px; right: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(15, 10, 15, .55); color: var(--paper); font-size: 20px; line-height: 1; backdrop-filter: blur(6px); }
.short:has(.variants) .short-more { top: 52px; }
.manage-body { padding: 14px 18px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.m-label { font-size: 12px; color: rgba(247, 239, 230, .55); }
.m-title { display: flex; gap: 8px; }
.m-title input { flex: 1; min-width: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--paper); border-radius: 12px; padding: 10px 12px; font-size: 16px; outline: 0; font-family: var(--serif); }
.m-title .btn { padding: 9px 14px; font-size: 13px; }
.m-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-top: 6px; cursor: pointer; }
.m-switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; margin: 0; cursor: pointer; transition: background .2s; }
.m-switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.m-switch input:checked { background: var(--rose-2); }
.m-switch input:checked::after { transform: translateX(18px); }
.m-note { margin: 0; font-size: 12.5px; color: rgba(247, 239, 230, .6); line-height: 1.55; }
.m-sec { border-top: 1px solid var(--line); padding-top: 10px; }
.m-sec summary { cursor: pointer; font-size: 14px; color: var(--paper); }
.m-qa { margin-top: 8px; }
.m-qa .q { margin: 10px 0 2px; font-family: var(--serif); color: var(--glow); font-size: 14px; white-space: pre-line; }
.m-qa .a { margin: 0; font-size: 14px; color: rgba(247, 239, 230, .8); padding-left: 10px; border-left: 2px solid var(--line); }
.m-map { display: grid; grid-template-columns: 70px 1fr; gap: 6px 10px; margin: 10px 0 0; font-size: 14px; }
.m-map dt { color: rgba(247, 239, 230, .55); font-size: 12px; padding-top: 2px; }
.m-map dd { margin: 0; color: var(--paper); font-family: var(--serif); }
.m-delete { margin-top: 8px; align-self: flex-start; font-size: 13px; color: #e8968f; text-decoration: underline; text-underline-offset: 3px; }

/* ♥ 마음이 닿은 순간 */
.heart-btn svg { color: #ff8f86; }
.fheart { position: absolute; z-index: 7; pointer-events: none; color: #ff8f86; font-size: 22px; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); animation: heartUp 1.7s ease-out forwards; transform: translate(-50%, -50%); }
.fheart.big { font-size: 44px; animation-duration: 1.2s; }
@keyframes heartUp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -260%) scale(.9); } }
.heart-count { position: absolute; right: 16px; top: 46%; z-index: 6; padding: 6px 12px; border-radius: 999px; background: rgba(15, 10, 15, .6); color: #ffd9c9; font-size: 12.5px; backdrop-filter: blur(6px); animation: fadeUp .5s ease both; pointer-events: none; }
.sbar-heat { position: absolute; left: 0; right: 0; top: 0; height: 10px; pointer-events: none; }
.sbar-heat i { position: absolute; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px 2px 0 0; background: rgba(255, 143, 134, .55); }
.sbar-heat i.top { background: #ff8f86; }
.album-tabs { margin: 0 0 16px; }

.scmt-heart { flex: none; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; color: #ff8f86; background: rgba(255, 143, 134, .12); border: 1px solid rgba(255, 143, 134, .35); }
.scmt-heart.pop { animation: pop .35s ease; }
@media (max-width: 400px) { .scmt { gap: 6px; padding: 8px; } .scmt-pin { padding: 7px 8px; } .scmt-heart { width: 34px; height: 34px; font-size: 18px; } }
.rcard-stats { display: block; font-style: normal; font-size: 11px; color: #ffd9c9; margin-top: 3px; }
.link-btn { color: var(--glow); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.preview .preview-song { font-size: 26px; margin: 4px 0 0; }
.preview .preview-a { font-size: 14px; margin-bottom: 4px; }
.bm-btn.on { background: rgba(232, 180, 138, .22); border-color: var(--glow); }
.bm-btn.on svg { fill: var(--glow); color: var(--glow); }
.like-btn { gap: 6px; }
.like-btn .lk-n { font-size: 13px; }
.like-btn.on { background: rgba(232, 180, 138, .22); border-color: var(--glow); color: var(--glow); }
.like-btn.on svg { fill: rgba(232, 180, 138, .5); }
.like-btn.pop { animation: pop .35s ease; }

/* 18세 확인 · 닉네임 고르기 */
.onboard { position: fixed; inset: 0; z-index: 150; background: rgba(12, 8, 12, .82); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.ob-card { position: relative; width: min(400px, 100%); background: var(--night-2); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px 22px; display: flex; flex-direction: column; gap: 12px; text-align: center; box-shadow: var(--shadow); }
.ob-card .logo-script { font-size: 34px; color: var(--paper); }
.ob-card h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.4; }
.ob-card p { margin: 0; font-size: 13.5px; color: rgba(247, 239, 230, .7); line-height: 1.6; }
.ob-card .tiny { font-size: 11.5px; color: rgba(247, 239, 230, .5); }
.ob-x { position: absolute; top: 10px; right: 14px; font-size: 18px; color: rgba(247, 239, 230, .6); }
.ob-opts { display: flex; flex-direction: column; gap: 8px; margin: 4px 0; }
.ob-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); text-align: left; }
.ob-opt.on { border-color: var(--glow); background: rgba(232, 180, 138, .12); }
.ob-opt b { font-weight: 400; font-size: 15.5px; }
.uav { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--ring, transparent); background: #fff; }
.mini { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: -4px; margin-right: 5px; box-shadow: 0 0 0 1.5px var(--ring, transparent); background: #fff; }
.me .uav { width: 34px; height: 34px; }
