/**
 * AIYA Music 반응형 웹 (/)
 * web.css - 스포티파이 스타일 다크 테마 + 아이야 브랜드(퍼플→마젠타) 포인트
 */

:root {
    --bg: #070709;
    --panel: #121216;
    --surface: #18181d;
    --surface-2: #1f1f26;
    --hover: #2a2a33;
    --line: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-2: #b3b3be;
    --text-3: #7d7d8a;
    --accent: #a855f7;
    --accent-2: #e04bd6;
    --grad: linear-gradient(135deg, #7b3fe4 0%, #b23be6 50%, #e04bd6 100%);
    --grad-soft: linear-gradient(135deg, rgba(123, 63, 228, 0.35), rgba(224, 75, 214, 0.25));
    --danger: #f87171;
    --ok: #34d399;
    --radius: 10px;
    --radius-lg: 16px;
    --sidebar-w: 272px;
    --player-h: 88px;
    --mnav-h: 60px;
    --mplayer-h: 60px;
    color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============================== Layout ============================== */
.app {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) var(--player-h);
    gap: 8px;
    height: 100vh;
    height: 100dvh;
    padding: 8px 8px 0;
}

/* Sidebar */
.sidebar { grid-row: 1; grid-column: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.side-box { background: var(--panel); border-radius: var(--radius); padding: 12px; }
.side-box.grow { flex: 1; min-height: 0; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 8px 12px 14px; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-link { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-weight: 700; transition: color .15s, background .15s; }
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface-2); }
.nav-link svg.i { width: 24px; height: 24px; }
.side-title { display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 10px; color: var(--text-2); font-weight: 700; font-size: 14px; }
.side-genre { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: var(--text-2); font-size: 14px; }
.side-genre:hover { background: var(--surface-2); color: var(--text); }
.side-genre.active { color: var(--text); background: var(--surface-2); }
.side-genre .thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.side-genre small { display: block; color: var(--text-3); font-size: 12px; }

/* AI 아티스트 신청 강조 버튼 */
.artist-cta {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius);
    background: var(--grad); color: #fff; font-weight: 800; overflow: hidden; isolation: isolate;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}
.artist-cta::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-100%); animation: shine 3.6s ease-in-out infinite;
}
.artist-cta small { display: block; font-weight: 500; font-size: 12px; opacity: .9; }
.artist-cta .badge-new { margin-left: auto; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: rgba(0,0,0,.25); letter-spacing: .05em; }
@keyframes shine { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }

/* Main */
.main { grid-row: 1; grid-column: 2; position: relative; background: var(--panel); border-radius: var(--radius); overflow-y: auto; overflow-x: hidden; min-width: 0; scroll-behavior: auto; }
.topbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
    padding: 12px 24px; background: rgba(18, 18, 22, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.top-nav-btns { display: flex; gap: 8px; }
.circle-btn { width: 34px; height: 34px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; color: var(--text); }
.circle-btn:hover { background: rgba(0,0,0,.8); }
.top-search { flex: 1; max-width: 420px; position: relative; }
.top-search input {
    width: 100%; height: 44px; border-radius: 99px; border: 1px solid transparent; background: var(--surface-2);
    padding: 0 16px 0 46px; color: var(--text); outline: none; transition: border-color .15s, background .15s;
}
.top-search input:hover { background: var(--hover); }
.top-search input:focus { border-color: rgba(255,255,255,.6); }
.top-search svg.i { position: absolute; left: 14px; top: 12px; color: var(--text-2); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .15s, background .15s; }
.pill:hover { transform: scale(1.03); }
.pill-light { background: #fff; color: #000; }
.pill-dark { background: rgba(0,0,0,.55); color: var(--text); border: 1px solid var(--line); }
.pill-grad { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(168,85,247,.35); }
.pill svg.i { width: 18px; height: 18px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 99px; background: rgba(0,0,0,.55); font-weight: 700; font-size: 14px; }
.user-btn .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.user-btn .nick { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: #282830; border-radius: 8px; padding: 4px; box-shadow: 0 16px 40px rgba(0,0,0,.5); display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 4px; font-size: 14px; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: rgba(255,255,255,.1); }

.view { padding: 8px 24px 40px; min-height: calc(100% - 68px); }

/* ============================== Common blocks ============================== */
.section { margin-top: 32px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.section-link { color: var(--text-2); font-size: 14px; font-weight: 700; white-space: nowrap; }
.section-link:hover { color: var(--text); text-decoration: underline; }

.play-fab {
    width: 52px; height: 52px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.4); transition: transform .15s, filter .15s; flex-shrink: 0;
}
.play-fab:hover { transform: scale(1.06); filter: brightness(1.1); }
.play-fab svg.i { width: 24px; height: 24px; }
.btn-text { color: var(--text-2); font-weight: 700; font-size: 14px; padding: 8px 4px; }
.btn-text:hover { color: var(--text); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
.hero {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 28px; min-height: 220px;
    display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
    background: radial-gradient(120% 140% at 0% 0%, #3b1d6e 0%, #1b1030 45%, #120d1c 100%);
}
.hero-visual { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); width: 46%; max-width: 300px; opacity: .9; z-index: -1; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); rotate: -6deg; }
.hero-visual img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: #e2c6ff; text-transform: uppercase; }
.hero-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; margin: 6px 0 8px; max-width: 62%; word-break: keep-all; }
.hero-desc { color: #d6d0e4; max-width: 56%; font-size: 15px; word-break: keep-all; }
.hero-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.artist-hero {
    position: relative; border-radius: var(--radius-lg); padding: 24px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
    background: var(--grad); isolation: isolate; min-height: 220px; transition: transform .2s;
}
.artist-hero:hover { transform: translateY(-2px); }
.artist-hero::before { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: rgba(255,255,255,.14); z-index: -1; }
.artist-hero::after { content: ''; position: absolute; width: 180px; height: 180px; right: 40px; bottom: -110px; border-radius: 50%; background: rgba(0,0,0,.14); z-index: -1; }
.artist-hero .tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.25); }
.artist-hero h3 { font-size: 24px; font-weight: 900; line-height: 1.25; letter-spacing: -0.02em; }
.artist-hero p { font-size: 14px; opacity: .92; margin-top: 6px; }
.artist-hero .go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: #fff; color: #2a0f45; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 99px; }

.banner-strip { display: block; margin-top: 16px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.banner-strip img { width: 100%; max-height: 180px; object-fit: cover; }

/* Track list */
.tracklist { --cols: 40px minmax(0, 4fr) minmax(0, 1.4fr) minmax(0, 1.1fr) 64px 112px; }
.c-act { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.act-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); opacity: 0; transition: opacity .15s, color .15s, transform .15s; }
.act-btn svg.i { width: 18px; height: 18px; }
.act-btn:hover { color: var(--text); transform: scale(1.08); }
.track:hover .act-btn, .track:focus-within .act-btn, .act-btn.on { opacity: 1; }
.act-btn.on, [data-act="like-current"].on { color: #e879f9; }
[data-act="like-current"].on::after { display: none; }
.tl-head, .track { display: grid; grid-template-columns: var(--cols); align-items: center; gap: 16px; padding: 0 16px; }
.tl-head { height: 36px; color: var(--text-2); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tl-head .c-num, .track .c-num { text-align: center; }
.tl-head .c-end, .track .c-end { text-align: right; }
.track { height: 60px; border-radius: 6px; cursor: pointer; color: var(--text-2); font-size: 14px; user-select: none; }
.track:hover { background: rgba(255,255,255,.07); }
.track:focus-visible { outline-offset: -2px; }
.track .c-num { position: relative; font-variant-numeric: tabular-nums; font-size: 15px; }
.track .c-num .ico-play, .track .c-num .eq { display: none; }
.track:hover .c-num .n { display: none; }
.track:hover .c-num .ico-play { display: inline-block; color: var(--text); }
.track.is-playing .c-num .n, .track.is-playing:hover .c-num .ico-play { display: none; }
.track.is-playing .c-num .eq { display: inline-flex; }
.track.is-playing.is-paused .c-num .eq span { animation-play-state: paused; }
.track.is-playing .t-title { color: #d8b4fe; }
.t-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-cover { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.t-text { min-width: 0; }
.t-title { color: var(--text); font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.t-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-genre { overflow: hidden; }
.genre-badge { display: inline-block; max-width: 100%; padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.1); color: var(--text-2); font-size: 12px; font-weight: 800; letter-spacing: -.01em; line-height: 1.5; vertical-align: middle; }
.t-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.t-lock svg.i { width: 11px; height: 11px; }
.tl-body.collapsed .track:nth-child(n+21) { display: none; }
.tl-more { display: flex; justify-content: center; margin-top: 12px; }
.empty { padding: 48px 16px; text-align: center; color: var(--text-2); }

.eq { gap: 2px; align-items: flex-end; height: 14px; }
.eq span { width: 3px; background: #d8b4fe; border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.3s; }
.eq span:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* Card shelf */
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -12px; padding-left: 4px; padding-right: 4px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.card { position: relative; padding: 12px; border-radius: 8px; cursor: pointer; scroll-snap-align: start; transition: background .2s; min-width: 0; }
.card:hover { background: var(--surface-2); }
.card-art { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--surface-2); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card .play-fab { position: absolute; right: 8px; bottom: 8px; width: 46px; height: 46px; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.card:hover .play-fab, .card.is-playing .play-fab { opacity: 1; transform: none; }
.card-title { margin-top: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-sub { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.is-playing .card-title { color: #d8b4fe; }

/* Compact chart (TOP 10) */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.chart-grid .track { --cols: 32px minmax(0, 1fr) auto; height: 64px; }
.chart-grid .track .c-genre, .chart-grid .track .c-date, .chart-grid .track .c-end { display: none; }
.chart-grid .track .c-num { font-size: 18px; font-weight: 800; color: var(--text); }

/* Genre tiles */
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.genre-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.genre-shelf::-webkit-scrollbar { display: none; }
.genre-tile { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; background: var(--g, #3b1d6e); isolation: isolate; transition: transform .2s; }
.genre-tile:hover { transform: translateY(-3px); }
.genre-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.genre-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.65) 100%); }
.genre-tile .g-name { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.genre-tile:nth-child(8n+1) { --g: #7b3fe4; }
.genre-tile:nth-child(8n+2) { --g: #e04bd6; }
.genre-tile:nth-child(8n+3) { --g: #1e3264; }
.genre-tile:nth-child(8n+4) { --g: #e8115b; }
.genre-tile:nth-child(8n+5) { --g: #148a08; }
.genre-tile:nth-child(8n+6) { --g: #dc5b1f; }
.genre-tile:nth-child(8n+7) { --g: #0d73ec; }
.genre-tile:nth-child(8n+8) { --g: #8d67ab; }
.genre-tile .g-count { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.45); }

/* Page header (genre / search) */
.page-head { position: relative; margin: -8px -24px 0; padding: 72px 24px 24px; display: flex; align-items: flex-end; gap: 24px; isolation: isolate; min-height: 280px; }
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--head, #5b2a9c) 0%, rgba(18,18,22,0) 100%); }
.page-head .art { width: 200px; height: 200px; border-radius: 8px; object-fit: cover; box-shadow: 0 16px 48px rgba(0,0,0,.55); background: var(--surface-2); flex-shrink: 0; }
.page-head .kind { font-size: 13px; font-weight: 700; }
.page-head h1 { font-size: clamp(36px, 6vw, 84px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; margin: 6px 0 12px; word-break: keep-all; }
.page-head .meta { color: var(--text-2); font-size: 14px; }
.page-actions { display: flex; align-items: center; gap: 20px; padding: 20px 0; }

/* Search page */
.search-hero { padding-top: 16px; }
.search-box-lg { position: relative; max-width: 560px; }
.search-box-lg input { width: 100%; height: 52px; border-radius: 99px; background: #fff; color: #000; border: 0; padding: 0 20px 0 52px; font-size: 16px; outline: none; }
.search-box-lg svg.i { position: absolute; left: 18px; top: 16px; color: #333; }

/* Landing (기존 소개 / 기능 / 다운로드) */
.intro-band { margin-top: 48px; padding: 40px 32px; border-radius: var(--radius-lg); background: var(--grad-soft); border: 1px solid rgba(255,255,255,.06); text-align: center; }
.intro-band h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.intro-band p { color: #d6d0e4; margin-top: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; transition: background .2s; }
.feature:hover { background: var(--surface-2); }
.feature .emoji { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--grad-soft); margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 800; }
.feature p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.download-band { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--radius-lg); background: var(--surface); }
.download-band h3 { font-size: 22px; font-weight: 900; }
.download-band p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.store-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 12px; background: #000; border: 1px solid #3a3a44; transition: border-color .15s; }
.store-btn:hover { border-color: #888; }
.store-btn svg.i { width: 24px; height: 24px; }
.store-btn small { display: block; font-size: 10px; color: var(--text-2); line-height: 1.1; }
.store-btn strong { display: block; font-size: 16px; line-height: 1.2; }

/* Footer */
.site-footer { margin-top: 56px; padding: 32px 0 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; color: var(--text-2); font-size: 14px; }
.site-footer h4 { color: var(--text); font-size: 15px; margin-bottom: 8px; }
.site-footer li { list-style: none; margin: 4px 0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.copyright { color: var(--text-3); font-size: 13px; padding: 16px 0 0; }

/* ============================== Player bar ============================== */
.player {
    grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) minmax(180px, 1fr);
    align-items: center; gap: 16px; padding: 0 16px; background: var(--bg);
}
.pl-now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-cover { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; cursor: pointer; }
.pl-text { min-width: 0; }
.pl-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.pl-title:hover { text-decoration: underline; }
.pl-artist { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: rgba(168, 85, 247, .18); color: #e2c6ff; }
.preview-chip a { text-decoration: underline; }
.pl-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.pl-ctrls { display: flex; align-items: center; gap: 18px; }
.ctrl { color: var(--text-2); display: grid; place-items: center; position: relative; transition: color .15s, transform .15s; }
.ctrl:hover { color: var(--text); }
.ctrl.on { color: #c084fc; }
.ctrl.on::after { content: ''; position: absolute; bottom: -7px; width: 4px; height: 4px; border-radius: 50%; background: #c084fc; }
.ctrl .one { position: absolute; font-size: 8px; font-weight: 900; top: -3px; right: -5px; }
.ctrl-main { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transition: transform .15s; }
.ctrl-main:hover { transform: scale(1.06); }
.pl-progress { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pl-progress .t { width: 40px; text-align: center; }
.pl-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.pl-volume { display: flex; align-items: center; gap: 8px; width: 140px; }
.player.empty .pl-ctrls, .player.empty .pl-progress { opacity: .45; pointer-events: none; }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 12px; background: transparent; cursor: pointer; --p: 0%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p), #4d4d57 var(--p)); }
.range::-moz-range-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, #fff var(--p), #4d4d57 var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.range:hover::-webkit-slider-runnable-track { background: linear-gradient(90deg, #c084fc var(--p), #4d4d57 var(--p)); }
.range:hover::-moz-range-track { background: linear-gradient(90deg, #c084fc var(--p), #4d4d57 var(--p)); }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { opacity: 1; }
.range:hover::-moz-range-thumb { opacity: 1; }

/* ============================== Now Playing (가사) ============================== */
.np { position: fixed; inset: 0; z-index: 100; display: none; overflow: hidden; isolation: isolate; background: #0d0a14; }
.np.open { display: block; animation: npIn .28s ease-out; }
@keyframes npIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.np-bg { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4) brightness(.55); transform: scale(1.1); }
.np::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,8,16,.35), rgba(10,8,16,.85)); }
.np-inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; padding: 72px 64px 40px; max-width: 1400px; margin: 0 auto; }
.np-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; }
.np-close:hover { background: rgba(0,0,0,.6); }
.np-left { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
.np-art { width: min(100%, 480px); aspect-ratio: 1; border-radius: 12px; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: var(--surface-2); }
.np-meta { margin-top: 24px; max-width: 480px; }
.np-title { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; }
.np-artist { font-size: 17px; color: rgba(255,255,255,.75); margin-top: 4px; }
.np-progress { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; max-width: 480px; }
.np-ctrls { display: flex; align-items: center; justify-content: space-between; max-width: 480px; margin-top: 10px; }
.np-ctrls .ctrl { color: rgba(255,255,255,.8); }
.np-ctrls .ctrl-main { width: 60px; height: 60px; color: #000; }
.np-ctrls .ctrl-main svg.i { width: 28px; height: 28px; }
.np-lyrics { position: relative; min-height: 0; overflow-y: auto; padding: 30vh 0 40vh; scrollbar-width: none; mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 78%, transparent 100%); }
.np-lyrics::-webkit-scrollbar { display: none; }
.lrc-line { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; color: rgba(255,255,255,.35); padding: 8px 0; cursor: pointer; transition: color .25s, transform .25s; transform-origin: left center; word-break: keep-all; }
.lrc-line:hover { color: rgba(255,255,255,.7); }
.lrc-line.past { color: rgba(255,255,255,.55); }
.lrc-line.active { color: #fff; transform: scale(1.02); }
.lrc-line.gap { min-height: 1.2em; }
.lrc-plain { white-space: pre-wrap; font-size: 20px; line-height: 1.8; font-weight: 600; color: rgba(255,255,255,.85); }
.lrc-empty { color: rgba(255,255,255,.6); font-size: 20px; font-weight: 700; }
.lyrics-label { font-size: 13px; font-weight: 800; letter-spacing: .1em; color: rgba(255,255,255,.6); text-transform: uppercase; margin-bottom: 8px; }

/* ============================== Forms / Login / Artist ============================== */
.auth-wrap { display: grid; place-items: center; min-height: calc(100vh - 220px); padding: 24px 0; }
.auth-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, #1d1726, #131218); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; }
.auth-card .logo { width: 52px; height: 52px; margin: 0 auto 12px; }
.auth-card h1 { text-align: center; font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.auth-card .lead { text-align: center; color: var(--text-2); font-size: 14px; margin: 6px 0 24px; }
.sns-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; border-radius: 99px; font-weight: 800; font-size: 15px; margin-bottom: 10px; border: 1px solid transparent; transition: filter .15s, transform .15s; }
.sns-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.sns-btn svg { width: 20px; height: 20px; }
.sns-kakao { background: #fee500; color: #191600; }
.sns-naver { background: #03c75a; color: #fff; }
.sns-google { background: #fff; color: #1f1f1f; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.input, .textarea { width: 100%; background: #121117; border: 1px solid #3a3a46; border-radius: 8px; padding: 12px 14px; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168,85,247,.2); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 99px; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; transition: filter .15s, transform .15s; }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-error { display: none; align-items: center; gap: 8px; background: rgba(248,113,113,.12); color: #fecaca; border: 1px solid rgba(248,113,113,.3); padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.form-error.show { display: flex; }
.auth-note { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 18px; }

.artist-page-hero { position: relative; margin: -8px -24px 0; padding: 72px 24px 40px; isolation: isolate; overflow: hidden; }
.artist-page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 120% at 10% 0%, rgba(168,85,247,.55), transparent 60%), radial-gradient(80% 100% at 100% 0%, rgba(224,75,214,.45), transparent 60%); }
.artist-page-hero .kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 99px; background: rgba(0,0,0,.35); }
.artist-page-hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.08; margin: 14px 0 10px; }
.artist-page-hero p { color: #e4dcf0; max-width: 640px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.step .no { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; font-size: 14px; margin-bottom: 12px; }
.step h3 { font-size: 16px; font-weight: 800; }
.step p { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.artist-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.panel { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; }
.panel h2 { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.panel .desc { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.dropzone { position: relative; border: 1.5px dashed #4a4a58; border-radius: 10px; padding: 22px; text-align: center; color: var(--text-2); font-size: 14px; transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(168,85,247,.08); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { color: var(--text); }
.dropzone .file-name { margin-top: 6px; color: #d8b4fe; font-weight: 700; word-break: break-all; }
.status-card { border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.status-card .st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; padding: 5px 12px; border-radius: 99px; }
.st-Y { background: rgba(250, 204, 21, .15); color: #fde68a; }
.st-R { background: rgba(96, 165, 250, .15); color: #bfdbfe; }
.st-D { background: rgba(148, 163, 184, .18); color: #e2e8f0; }
.st-A { background: rgba(52, 211, 153, .15); color: #a7f3d0; }
.status-card h3 { font-size: 20px; font-weight: 900; margin: 12px 0 6px; }
.status-card p { color: var(--text-2); font-size: 14px; }
.adm-comment { margin-top: 14px; padding: 14px; border-radius: 10px; background: rgba(0,0,0,.3); border-left: 3px solid var(--accent); white-space: pre-wrap; font-size: 14px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin-top: 16px; font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text); word-break: break-all; white-space: pre-wrap; }

/* ============================== 라이브러리 / 모달 / 회원가입 ============================== */
.side-add { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s; }
.side-add:hover { background: var(--surface-2); color: var(--text); }
.side-add svg.i { width: 18px; height: 18px; }
.side-lib { display: flex; flex-direction: column; }
.thumb.liked-thumb, .thumb.pl-thumb { display: grid; place-items: center; color: #fff; }
.thumb.liked-thumb { background: linear-gradient(135deg, #4c1d95, #7c3aed 50%, #c026d3); }
.thumb.pl-thumb { background: var(--surface-2); color: var(--text-2); }
.thumb.liked-thumb svg.i, .thumb.pl-thumb svg.i { width: 18px; height: 18px; }
.side-cta { margin: 0 4px; padding: 16px; border-radius: 8px; background: var(--surface-2); }
.side-cta strong { display: block; font-size: 15px; }
.side-cta p { color: var(--text-2); font-size: 13px; margin: 4px 0 12px; }
.side-cta .pill { height: 32px; font-size: 13px; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.lib-liked { grid-column: span 2; min-height: 220px; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: linear-gradient(135deg, #4c1d95, #7c3aed 50%, #c026d3); transition: filter .2s; }
.lib-liked:hover { filter: brightness(1.08); }
.lib-liked svg.i { width: 36px; height: 36px; margin-bottom: auto; }
.lib-liked strong { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
.lib-liked span { color: rgba(255,255,255,.85); font-size: 14px; }
.card-new { text-align: left; }
.card-art .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); background: linear-gradient(135deg, #24222c, #1a1920); }
.card-art .ph svg.i { width: 44px; height: 44px; }
.page-head .art-liked, .page-head .art-empty { display: grid; place-items: center; }
.page-head .art-liked { background: linear-gradient(135deg, #4c1d95, #7c3aed 50%, #c026d3); }
.page-head .art-liked svg.i { width: 72px; height: 72px; }
.page-head .art-empty { color: var(--text-3); }
.page-head .art-empty svg.i { width: 64px; height: 64px; }
.np-head { display: flex; align-items: center; gap: 8px; }
.np-head .np-title { flex: 1; min-width: 0; }
.pl-now .ctrl { flex-shrink: 0; }

.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.modal-card { position: relative; width: 100%; max-width: 420px; max-height: 82vh; overflow: auto; background: #24222c; border-radius: 12px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: toastIn .2s ease-out; }
.modal-card.wide { max-width: 720px; }
.modal-title { font-size: 20px; font-weight: 900; margin-bottom: 16px; }
.modal-text { color: var(--text-2); font-size: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pick-list { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; margin: 0 -8px; }
.pick-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 6px; text-align: left; }
.pick-item:hover { background: rgba(255,255,255,.08); }
.pick-item .thumb { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.pick-item small { display: block; color: var(--text-2); font-size: 12px; }
.terms-html { font-size: 14px; line-height: 1.8; color: #ddd; word-break: keep-all; }
.terms-html h1, .terms-html h2, .terms-html h3 { margin: 18px 0 8px; color: #fff; }
.terms-html p, .terms-html ul, .terms-html ol { margin-bottom: 10px; }
.terms-html ul, .terms-html ol { padding-left: 20px; }

.auth-card.wide { max-width: 480px; }
.req { color: #f472b6; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.btn-check { white-space: nowrap; padding: 0 14px; border-radius: 8px; background: rgba(168,85,247,.25); font-weight: 700; font-size: 14px; transition: background .15s; }
.btn-check:hover { background: rgba(168,85,247,.4); }
.btn-check.ok { background: rgba(52,211,153,.22); color: #a7f3d0; }
.field .hint.ok { color: #6ee7b7; }
.field .hint.err { color: #fca5a5; }
.input.valid { border-color: #34d399; }
.input.invalid { border-color: #f87171; }
.terms-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 20px 0; background: rgba(255,255,255,.03); }
.terms-lead { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.terms-lead small { font-weight: 400; color: var(--text-2); }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 14px; cursor: pointer; }
.chk.all { font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.chk input { width: 18px; height: 18px; accent-color: #a855f7; flex-shrink: 0; }
.chk .view { margin-left: auto; font-size: 12px; color: #d8b4fe; text-decoration: underline; padding: 2px 4px; }

/* 내 정보 변경 */
.myinfo { max-width: 640px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 16px; }
.myinfo-head { display: flex; align-items: center; gap: 16px; padding: 8px 0 8px; }
.myinfo-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 28px; font-weight: 900; flex-shrink: 0; }
.myinfo-who { min-width: 0; }
.myinfo-who h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myinfo-who p { color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.myinfo .panel h2 small { font-size: 14px; font-weight: 600; color: var(--text-3); }
.input.readonly { color: var(--text-2); background: rgba(255,255,255,.03); border-color: var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.form-actions .pill:disabled { opacity: .6; cursor: not-allowed; }
.sns-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.sns-dot.tiktok { background: #25f4ee; box-shadow: 2px 0 0 #fe2c55; }
.sns-dot.youtube { background: #ff0000; }
.sns-dot.instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
/* 고객센터 - 공지사항 / 1:1문의 */
.cs-wrap { max-width: 820px; margin: 16px auto 0; }
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cs-head .pill { flex-shrink: 0; }
.cs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 16px; text-align: center; color: var(--text-2); background: var(--surface); border-radius: var(--radius-lg); }
.cs-empty svg.i { width: 48px; height: 48px; color: var(--text-3); margin-bottom: 4px; }
.cs-empty strong { color: var(--text); font-size: 17px; }
.cs-empty p { font-size: 14px; }
.cs-more { text-align: center; padding: 20px 0; }
.cs-more .pill:disabled { opacity: .6; cursor: wait; }
.notice-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.notice-item { display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); transition: background .15s; }
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--hover); }
.notice-num { min-width: 32px; height: 32px; padding: 0 6px; border-radius: 8px; background: rgba(255,255,255,.08); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--text-2); flex-shrink: 0; }
.notice-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.notice-title { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; }
.notice-meta { display: flex; gap: 12px; font-size: 13px; color: var(--text-3); }
.qna-list { display: flex; flex-direction: column; gap: 10px; }
.qna-item { background: var(--surface); border-radius: 12px; padding: 16px 18px; cursor: pointer; transition: background .15s; }
.qna-item:hover { background: var(--surface-2); }
.qna-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qna-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qna-date { flex: 1; font-size: 13px; color: var(--text-3); }
.qna-edit { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(168,85,247,.18); color: #d8b4fe; }
.qna-edit:hover { background: rgba(168,85,247,.32); }
.qna-edit svg.i { width: 16px; height: 16px; }
.qna-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.qs-01 { background: rgba(250,204,21,.15); color: #fde68a; }
.qs-02 { background: rgba(96,165,250,.15); color: #bfdbfe; }
.qs-03 { background: rgba(52,211,153,.15); color: #a7f3d0; }
.qna-text { font-size: 15px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qna-answered { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ok); }
.cs-label { font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.cs-label.ok { color: var(--ok); }
.cs-modal-meta { font-size: 13px; color: var(--text-3); margin: -8px 0 14px; }
.cs-modal-meta.row { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.cs-modal-text { font-size: 15px; line-height: 1.8; color: #e5e5ea; white-space: pre-wrap; word-break: break-word; }
.cs-modal-text.boxed { background: rgba(255,255,255,.05); border-radius: 10px; padding: 14px 16px; }
.qna-answer { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.22); }
.qna-answer .cs-modal-meta { margin: 10px 0 0; }
.qna-form .textarea { min-height: 180px; }

/* AI음악 등록신청 */
.req-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.req-tabs a { padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.req-tabs a:hover { color: var(--text); }
.req-tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23b3b3be'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
select.input option { background: #1f1f26; color: var(--text); }
.textarea.short { min-height: 80px; }
.req-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.req-sns-head { margin: 24px 0 12px; }
.req-sns-head strong { display: block; font-size: 14px; font-weight: 700; }
.req-sns-head span { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.req-agree { margin: 24px 0; }
.req-agree-list { margin: 0 0 12px; padding: 0 0 12px 20px; font-size: 13px; line-height: 1.7; color: var(--text-2); border-bottom: 1px solid var(--line); }
.req-agree-list li { padding-left: 2px; }
.req-agree .chk.all { border-bottom: none; padding-bottom: 8px; margin-bottom: 0; }
.req-current { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.req-current img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.req-sub { font-size: 18px; font-weight: 900; margin: 8px 0 12px; }
.req-sub small { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.req-sub ~ .req-sub { margin-top: 32px; }
.req-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.req-item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.req-item:last-child { border-bottom: none; }
.req-cover { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.req-info { flex: 1; min-width: 0; }
.req-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 13px; color: var(--text-3); }
.req-hidden { color: #fca5a5; font-weight: 700; }
.req-stats { display: flex; gap: 14px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.req-stats span { display: inline-flex; align-items: center; gap: 4px; }
.req-stats svg.i { width: 16px; height: 16px; color: var(--text-3); }

.withdraw-text { align-self: flex-start; padding: 0; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: calc(var(--player-h) + 20px); transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: #fff; color: #111; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: toastIn .25s ease-out; max-width: calc(100vw - 32px); }
.toast a, .toast button { color: #7b3fe4; font-weight: 800; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Loading bar (화면 전환) */
.route-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--grad); z-index: 300; transition: width .3s ease, opacity .3s; opacity: 0; }
.route-bar.on { opacity: 1; width: 70%; }
.route-bar.done { opacity: 0; width: 100%; }

/* Mobile nav (기본 숨김) */
.mnav { display: none; }
.mobile-only { display: none; }

/* ============================== Responsive ============================== */
@media (max-width: 1200px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tracklist { --cols: 40px minmax(0, 4fr) minmax(0, 1.4fr) 64px 112px; }
    .tracklist .c-date { display: none; }
}

@media (max-width: 1024px) {
    :root { --sidebar-w: 84px; }
    .side-box .label, .brand-name, .side-title, .side-genres, .side-lib, .side-cta, .artist-cta .txt, .artist-cta .badge-new { display: none; }
    .brand { justify-content: center; padding: 8px 0 12px; }
    .nav-link { justify-content: center; }
    .artist-cta { justify-content: center; padding: 14px 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .artist-hero { min-height: 0; }
    .np-inner { padding: 72px 32px 32px; gap: 32px; }
}

@media (max-width: 860px) {
    body { font-size: 14px; }
    .app { display: block; padding: 0; height: 100dvh; }
    .sidebar, .player .pl-right, .top-nav-btns, .top-search { display: none; }
    .mobile-only { display: revert; }
    .main { height: 100dvh; border-radius: 0; padding-bottom: calc(var(--mnav-h) + var(--mplayer-h) + env(safe-area-inset-bottom)); }
    .topbar { padding: 10px 16px; }
    .top-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; }
    .top-brand img { width: 28px; height: 28px; }
    .top-right .pill-grad { display: none; }
    .view { padding: 4px 16px 24px; }
    .section { margin-top: 28px; }
    .section-title { font-size: 20px; }

    .hero { padding: 20px; min-height: 200px; }
    .hero-title { max-width: 70%; }
    .hero-desc { max-width: 64%; font-size: 13px; }
    .hero-visual { width: 42%; right: -36px; opacity: .45; }
    .artist-hero { padding: 20px; }
    .artist-hero h3 { font-size: 20px; }

    .tracklist { --cols: 28px minmax(0, 1fr) auto; }
    .tl-head { display: none; }
    .track { gap: 10px; padding: 0 4px 0 8px; height: 58px; }
    .act-btn { opacity: 1; width: 34px; height: 34px; }
    .act-btn:not(.on) { color: var(--text-3); }
    .pl-now .pl-add { display: none; }
    .track .c-genre, .track .c-date, .track .c-end { display: none; }
    .chart-grid { grid-template-columns: 1fr; }
    .shelf { grid-auto-columns: 42%; }
    .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .genre-shelf { grid-auto-columns: 46%; gap: 10px; }
    .genre-tile .g-name { font-size: 17px; }
    .page-head { margin: -4px -16px 0; padding: 56px 16px 16px; min-height: 0; flex-direction: column; align-items: flex-start; gap: 16px; }
    .page-head .art { width: 150px; height: 150px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature { padding: 16px; }
    .download-band { flex-direction: column; align-items: flex-start; padding: 22px; }
    .intro-band { padding: 28px 20px; }
    .intro-band h2 { font-size: 22px; }
    .site-footer { grid-template-columns: 1fr; gap: 16px; }
    .steps { grid-template-columns: 1fr; }
    .artist-layout { grid-template-columns: 1fr; }
    .artist-page-hero { margin: -4px -16px 0; padding: 48px 16px 28px; }
    .panel { padding: 20px; }
    .myinfo { margin-top: 8px; }
    .cs-wrap { margin-top: 8px; }
    .notice-item { padding: 14px 16px; }
    .qna-item { padding: 14px 16px; }
    .req-files { grid-template-columns: 1fr; }
    .req-item { gap: 10px; padding: 10px 12px; }
    .req-cover { width: 44px; height: 44px; }
    .req-stats { flex-direction: column; gap: 2px; font-size: 13px; }
    .myinfo-avatar { width: 56px; height: 56px; font-size: 22px; }
    .myinfo-who h1 { font-size: 22px; }

    /* 미니 플레이어 */
    .player {
        position: fixed; left: 8px; right: 8px; bottom: calc(var(--mnav-h) + 6px + env(safe-area-inset-bottom)); z-index: 50;
        height: var(--mplayer-h); display: flex; gap: 10px; padding: 0 8px; border-radius: 10px;
        background: linear-gradient(90deg, #3b1d6e, #2a1540); box-shadow: 0 8px 24px rgba(0,0,0,.5); overflow: hidden;
    }
    .player.empty { display: none; }
    .pl-now { flex: 1; }
    .pl-cover { width: 44px; height: 44px; }
    .pl-center { flex-direction: row; gap: 0; }
    .pl-ctrls { gap: 4px; }
    .pl-ctrls .ctrl:not(.keep) { display: none; }
    .ctrl-main { background: transparent; color: #fff; width: 40px; height: 40px; }
    .ctrl-main svg.i { width: 26px; height: 26px; }
    .pl-progress { position: absolute; left: 8px; right: 8px; bottom: 0; max-width: none; gap: 0; }
    .pl-progress .t { display: none; }
    .pl-progress .range { height: 3px; pointer-events: none; }
    .pl-progress .range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.25) var(--p)); }
    .pl-progress .range::-moz-range-track { height: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(255,255,255,.25) var(--p)); }
    .preview-chip { margin-top: 1px; }

    /* 하단 탭 */
    .mnav {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
        height: calc(var(--mnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: linear-gradient(180deg, rgba(7,7,9,.85), #070709 40%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .mnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--text-2); }
    .mnav a.active { color: var(--text); }
    .mnav a svg.i { width: 24px; height: 24px; }
    .mnav a.artist { color: #e2c6ff; }
    .mnav a.artist .dot { width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-top: -4px; box-shadow: 0 6px 16px rgba(168,85,247,.5); }
    .mnav a.artist .dot svg.i { width: 18px; height: 18px; }

    .toast-wrap { bottom: calc(var(--mnav-h) + var(--mplayer-h) + 24px); }

    /* Now Playing - 모바일 */
    .np-inner { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 64px 20px calc(20px + env(safe-area-inset-bottom)); }
    .np-left { justify-content: flex-start; }
    .np.show-lyrics .np-art { display: none; }
    .np-art { width: min(100%, 360px); margin: 0 auto; }
    .np-meta { margin-top: 16px; }
    .np-title { font-size: 22px; }
    .np-artist { font-size: 15px; }
    .np-lyrics { padding: 4vh 0 30vh; }
    .np:not(.show-lyrics) .np-lyrics { display: none; }
    .np:not(.show-lyrics) .np-left { justify-content: center; }
    .lrc-line { font-size: 22px; }
    .np-close { top: 14px; right: 14px; }
    .np-toggle { position: absolute; top: 14px; left: 14px; height: 40px; padding: 0 14px; border-radius: 99px; background: rgba(0,0,0,.35); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
}

@media (min-width: 861px) {
    .np-toggle, .mobile-brand { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
