:root {
  color-scheme: dark;
  --black: #05070c;
  --night: #09111f;
  --navy: #101c2f;
  --panel: rgba(16, 24, 39, 0.88);
  --panel-solid: #101722;
  --ink: #f7f1e8;
  --muted: #a9afbb;
  --subtle: #737b89;
  --line: rgba(255, 255, 255, 0.105);
  --gold: #e5b66f;
  --gold-bright: #f6d39a;
  --gold-dark: #8f6431;
  --blue: #7299bd;
  --success: #8ec7ad;
  --danger: #efaaa4;
  --nav-height: 76px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--black); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden; background: var(--black); color: var(--ink); }
body.sheet-open { overflow: hidden; }
body.player-active .app-main { padding-bottom: calc(var(--nav-height) + 340px + env(safe-area-inset-bottom)); }
body.player-expanded { overflow: hidden; }
body.player-expanded .app-header, body.player-expanded .bottom-nav { visibility: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, [role="button"], a { min-height: 44px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
svg { width: 22px; height: 22px; fill: currentColor; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 11px 15px; border-radius: 10px; background: var(--ink); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-atmosphere { position: fixed; z-index: -2; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 4%, rgba(46, 78, 111, 0.28), transparent 27rem), radial-gradient(circle at 8% 35%, rgba(181, 123, 60, 0.13), transparent 23rem), linear-gradient(180deg, #070b13 0, var(--black) 65%); }
.app-atmosphere::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(to bottom, black, transparent 65%); }

.app-header, .app-main { width: min(calc(100% - 28px), 760px); margin-inline: auto; }
.app-header { position: sticky; z-index: 20; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(255,255,255,.065); background: rgba(5, 7, 12, .82); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.brand img { border-radius: 12px; }
.brand span { display: grid; gap: 1px; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1rem; font-weight: 500; letter-spacing: .02em; }
.brand small { color: var(--gold); font-size: .54rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: inline-grid; min-width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.035); color: var(--muted); cursor: pointer; }
.install-button { width: auto; padding-inline: 14px; border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 750; }

.app-main { padding: 30px 0 calc(var(--nav-height) + 40px + env(safe-area-inset-bottom)); }
.app-view { animation: view-in 300ms ease both; }
.screen-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.screen-heading h2, .section-title-row h2, .player-heading h2, .privacy-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; }
.screen-heading h2 { font-size: clamp(2.05rem, 7vw, 3.4rem); }
.screen-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.eyebrow { margin: 0 0 7px; color: var(--gold); font-size: .65rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.catalog-count { max-width: 104px; color: var(--subtle); font-size: .68rem; line-height: 1.35; text-align: right; }

.featured-track { position: relative; min-height: min(55vh, 480px); overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 28px; background: #0d1521; box-shadow: var(--shadow); isolation: isolate; }
.featured-track::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, transparent 5%, rgba(5,7,12,.18) 42%, rgba(5,7,12,.96) 100%); }
.featured-overlay { position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 80% 12%, rgba(245, 202, 135, .16), transparent 30%), linear-gradient(140deg, transparent, rgba(4,7,12,.5)); }
.featured-copy { position: absolute; inset: auto 22px 24px; }
.track-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(5,7,12,.4); color: var(--gold-bright); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(12px); }
.featured-copy h1 { max-width: 520px; margin: 13px 0 6px; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 9vw, 4.8rem); font-weight: 400; line-height: .96; letter-spacing: -.045em; text-wrap: balance; }
.featured-copy > p { margin: 0; color: rgba(247,241,232,.72); font-size: .84rem; }
.featured-actions { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.play-button { display: inline-flex; min-width: 132px; align-items: center; justify-content: center; gap: 8px; padding: 0 19px; border-radius: 999px; background: var(--gold-bright); color: #171109; font-size: .86rem; font-weight: 850; text-decoration: none; box-shadow: 0 12px 28px rgba(229,182,111,.2); }
.play-button svg { width: 20px; }
.round-action { display: inline-grid; width: 46px; min-width: 46px; height: 46px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(5,7,12,.45); color: var(--ink); font-size: 1.35rem; cursor: pointer; backdrop-filter: blur(12px); }
.round-action[aria-pressed="true"] { border-color: rgba(229,182,111,.6); color: var(--gold-bright); }

.cover-art { --atlas-position: 0% 0%; position: relative; overflow: hidden; background-color: #0b121d; background-image: linear-gradient(180deg, rgba(4,7,12,.02), rgba(4,7,12,.48)), url("artwork/music-scenes-atlas-v1.png"); background-position: center, var(--atlas-position); background-repeat: no-repeat; background-size: auto, 200% 200%; }
.cover-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 18%, rgba(246,211,154,.16), transparent 32%), linear-gradient(135deg, transparent 38%, rgba(2,5,9,.22)); }
.cover-art::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(108deg, transparent 0 24px, rgba(255,255,255,.028) 25px 26px); mix-blend-mode: screen; }
.cover-art > span { position: absolute; z-index: 2; top: 18px; right: 18px; color: rgba(255,255,255,.48); font-family: Georgia, serif; font-size: .7rem; letter-spacing: .26em; }
.cover-art--hero { position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(180deg, rgba(4,7,12,.02), rgba(4,7,12,.18)), url("artwork/hero-violin-sunrise-v1.png"); background-position: center, center; background-size: auto, cover; transform: scale(1.015); }
.cover-art--hero::before { background: radial-gradient(circle at 17% 42%, rgba(246,211,154,.13), transparent 28%), linear-gradient(135deg, transparent 45%, rgba(2,5,9,.08)); }

.mood-studio { margin-top: 26px; padding: 22px 0 6px; }
.section-title-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section-title-row h2 { font-size: clamp(1.75rem, 6vw, 2.6rem); }
.section-title-row > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); font-size: .65rem; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mood-chip { position: relative; display: grid; min-height: 92px; overflow: hidden; place-items: center; align-content: center; gap: 6px; padding: 10px 5px; border: 1px solid var(--line); border-radius: 16px; background-color: rgba(16,23,34,.82); background-image: linear-gradient(180deg, rgba(4,7,12,.38), rgba(4,7,12,.92)), url("artwork/music-scenes-atlas-v1.png"); background-repeat: no-repeat; background-size: auto, 200% 200%; color: var(--ink); cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease; }
.mood-chip:nth-child(4n+1) { background-position: center, 0% 0%; }
.mood-chip:nth-child(4n+2) { background-position: center, 100% 0%; }
.mood-chip:nth-child(4n+3) { background-position: center, 100% 100%; }
.mood-chip:nth-child(4n+4) { background-position: center, 0% 100%; }
.mood-chip > span { color: var(--gold); font: 1.12rem Georgia, serif; }
.mood-chip strong { font-size: .75rem; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.mood-chip:hover { transform: translateY(-2px); }
.mood-chip[aria-pressed="true"] { border-color: rgba(229,182,111,.86); color: var(--ink); filter: brightness(1.18); box-shadow: inset 0 0 0 1px rgba(229,182,111,.2), 0 8px 28px rgba(0,0,0,.2); }
.energy-step { margin-top: 17px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,23,34,.62); animation: rise 240ms ease both; }
.energy-label { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; color: var(--muted); font-size: .76rem; }
.energy-label span { color: var(--gold); font-weight: 800; }
.energy-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.energy-choices button { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.energy-choices button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--black); font-weight: 800; }
.primary-action { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 18px; margin-top: 12px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #191108; font-weight: 850; cursor: pointer; box-shadow: 0 14px 32px rgba(229,182,111,.15); }
.primary-action:disabled { opacity: .36; cursor: not-allowed; }
.primary-action svg { width: 18px; }

.player-card { display: grid; grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr); gap: 24px; margin-top: 25px; padding: 14px; border: 1px solid rgba(229,182,111,.25); border-radius: 24px; background: linear-gradient(145deg, rgba(17,25,39,.96), rgba(7,11,18,.98)); box-shadow: var(--shadow); animation: rise 320ms ease both; }
.cover-art--player { min-height: 320px; border-radius: 18px; }
.player-content { align-self: center; padding: 12px 12px 12px 0; }
.player-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.player-heading h2 { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1; text-wrap: balance; }
.song-description { margin: 13px 0; color: var(--muted); font-size: .85rem; line-height: 1.58; }
.song-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.song-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .68rem; }
.reason-panel { display: flex; gap: 10px; margin: 15px 0; padding: 13px; border-left: 2px solid var(--gold); background: rgba(255,255,255,.035); }
.reason-panel span { color: var(--gold); }
.reason-panel p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.song-links a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--black); font-size: .8rem; font-weight: 850; text-decoration: none; }
.availability-note { margin: 9px 0 0; color: var(--subtle); font-size: .65rem; line-height: 1.45; }
.player-actions { margin-top: 10px; }
.text-action, .feedback-row button { border: 0; background: transparent; color: var(--gold-bright); cursor: pointer; }
.text-action { padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.feedback-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 11px; color: var(--subtle); font-size: .7rem; }
.feedback-row button { min-height: 44px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.045); color: var(--muted); }
.feedback-row output { flex-basis: 100%; color: var(--success); }

.privacy-note { display: flex; align-items: center; gap: 10px; margin: 26px 0 8px; padding: 14px 16px; border: 1px solid rgba(142,199,173,.16); border-radius: 15px; background: rgba(142,199,173,.05); color: var(--muted); }
.privacy-note > span { color: var(--success); font-size: 1.3rem; }
.privacy-note p { margin: 0; font-size: .74rem; line-height: 1.5; }
.privacy-note strong { color: var(--ink); }

.discover-heading, .favorites-heading { margin: 10px 0 22px; }
.filter-strip { display: flex; gap: 8px; margin: 0 -14px 18px; padding: 0 14px 5px; overflow-x: auto; scrollbar-width: none; }
.filter-strip::-webkit-scrollbar { display: none; }
.filter-strip button { min-height: 44px; flex: 0 0 auto; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16,23,34,.7); color: var(--muted); cursor: pointer; }
.filter-strip button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: #171009; font-weight: 800; }
.song-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.song-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(13,20,31,.88); box-shadow: 0 12px 28px rgba(0,0,0,.18); animation: rise 280ms ease both; }
.song-card .cover-art { aspect-ratio: 1 / .82; }
.song-card-content { padding: 12px; }
.song-card h3 { min-height: 2.4em; margin: 0; overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; font-weight: 400; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.song-card-meta { min-height: 2.6em; margin: 5px 0 10px; color: var(--subtle); font-size: .66rem; line-height: 1.4; }
.song-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.song-card-actions a { display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--gold-bright); font-size: .72rem; font-weight: 800; text-decoration: none; }
.song-card-actions a svg { width: 16px; }
.card-favorite { display: grid; width: 44px; min-width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.card-favorite[aria-pressed="true"] { color: var(--gold-bright); border-color: rgba(229,182,111,.44); }
.favorite-count { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(229,182,111,.38); border-radius: 50%; color: var(--gold-bright); }
.empty-state { display: grid; min-height: 330px; place-items: center; align-content: center; padding: 30px; border: 1px dashed rgba(255,255,255,.14); border-radius: 22px; color: var(--muted); text-align: center; }
.empty-state > span { color: var(--gold); font-size: 2.4rem; }
.empty-state h3 { margin: 13px 0 4px; color: var(--ink); font: 400 1.65rem Georgia, serif; }
.empty-state p { margin: 0 0 15px; }
.empty-state button { padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); color: var(--black); font-weight: 800; cursor: pointer; }

.player-view { position: fixed; z-index: 25; right: 8px; bottom: calc(var(--nav-height) + 8px + env(safe-area-inset-bottom)); width: min(380px, calc(100% - 16px)); min-width: 0; max-height: calc(100dvh - var(--nav-height) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow: hidden; padding: 6px; border: 1px solid rgba(229,182,111,.32); border-radius: 18px; background: rgba(7,10,16,.96); box-shadow: 0 18px 70px rgba(0,0,0,.62); animation: view-in 260ms ease both; }
.player-view.is-mini.is-dragged { top: var(--player-y); right: auto; bottom: auto; left: var(--player-x); }
.player-view.is-dragging { transition: none; user-select: none; }
.player-view.is-expanded { z-index: 70; top: 0; right: 0; bottom: 0; left: 0; width: min(100%, 760px); max-height: 100dvh; margin-inline: auto; overflow-y: auto; padding: max(18px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom)); border-radius: 0; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.player-back { display: inline-flex; align-items: center; gap: 8px; margin-inline: 14px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16,23,34,.82); color: var(--ink); cursor: pointer; }
.player-back svg { width: 19px; }
.player-expand { display: grid; width: 44px; min-width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--gold-bright); font-size: 1.15rem; font-weight: 780; cursor: pointer; }
.player-view.is-expanded .player-expand, .player-view.is-mini .player-back { display: none; }
.mini-player-bar { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 0 0 6px; }
.player-drag-handle { display: flex; min-width: 0; flex: 1; align-items: center; gap: 7px; padding: 4px 5px; border-radius: 10px; cursor: grab; touch-action: none; }
.player-drag-handle:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 1px; }
.player-view.is-dragging .player-drag-handle { cursor: grabbing; }
.player-view.is-expanded .player-drag-handle { cursor: default; touch-action: auto; }
.player-drag-grip { flex: 0 0 auto; color: var(--gold); font-size: 1rem; letter-spacing: -.28em; transform: rotate(90deg); }
.mini-player-copy { display: grid; min-width: 0; gap: 3px; }
.mini-player-bar span { color: var(--subtle); font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.mini-player-bar strong { overflow: hidden; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.player-favorite { display: grid; width: 44px; min-width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.35rem; cursor: pointer; }
.player-favorite[aria-pressed="true"] { color: var(--gold-bright); border-color: rgba(229,182,111,.48); }
.player-view.is-expanded .mini-player-bar { margin: 15px 14px 0; }
.player-view.is-expanded .player-drag-grip { display: none; }
.player-view.is-mini .player-intro { display: none; }
.player-intro { margin: 28px 14px 18px; }
.player-intro h2 { margin: 0; overflow-wrap: anywhere; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 9vw, 4.8rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.player-intro > p:last-child { margin: 10px 0 0; color: var(--muted); }
.youtube-frame-shell { display: grid; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; place-items: center; aspect-ratio: 16 / 9; border: 1px solid rgba(229,182,111,.3); border-radius: 0; background: radial-gradient(circle at 50% 35%, rgba(229,182,111,.13), transparent 42%), #05070c; box-shadow: var(--shadow); }
.youtube-frame { display: block; width: 100%; max-width: 100%; min-width: 0; height: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.player-view.is-mini .youtube-frame-shell { border-radius: 14px; }
.player-transport { display: flex; align-items: center; gap: 8px; padding: 8px 2px 0; }
.player-transport button { min-width: 0; flex: 1; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(16,23,34,.82); color: var(--ink); font-size: .72rem; font-weight: 760; cursor: pointer; }
.player-transport .continue-playback { background: var(--ink); color: var(--black); }
.youtube-player-status { margin: 13px 14px 0; color: var(--muted); font-size: .74rem; line-height: 1.55; }
.player-view.is-mini .youtube-player-status { position: absolute; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.youtube-fallback { margin: 22px 14px 0; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(16,23,34,.7); }
.youtube-fallback p { margin: 0 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.youtube-fallback-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 999px; background: var(--ink); color: var(--black); font-size: .8rem; font-weight: 850; text-decoration: none; }
.youtube-fallback-link svg { width: 18px; }
.player-view.is-mini .youtube-fallback { display: none; }

.bottom-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 760px); min-height: calc(var(--nav-height) + env(safe-area-inset-bottom)); margin-inline: auto; padding: 7px 14px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.11); background: rgba(7,10,16,.91); box-shadow: 0 -16px 45px rgba(0,0,0,.34); backdrop-filter: blur(22px); }
.bottom-nav button { display: grid; min-height: 58px; place-items: center; align-content: center; gap: 3px; padding: 4px; border: 0; background: transparent; color: var(--subtle); cursor: pointer; }
.bottom-nav button span { font-size: .65rem; font-weight: 720; }
.bottom-nav button svg { width: 22px; height: 22px; }
.bottom-nav button[aria-selected="true"] { color: var(--gold-bright); }

.privacy-sheet { position: fixed; z-index: 80; inset: 0; }
.privacy-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.privacy-panel { position: absolute; right: 0; bottom: 0; left: 0; max-height: min(82vh, 680px); overflow-y: auto; padding: 13px 22px calc(28px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 27px 27px 0 0; background: #101722; box-shadow: 0 -30px 90px rgba(0,0,0,.56); animation: sheet-up 280ms ease both; }
.sheet-handle { width: 42px; height: 4px; margin: 0 auto 22px; border-radius: 999px; background: rgba(255,255,255,.22); }
.privacy-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.privacy-heading h2 { font-size: clamp(2rem, 7vw, 3rem); }
.privacy-panel > p { color: var(--muted); line-height: 1.7; }
.privacy-panel ul { margin: 20px 0; padding: 0; list-style: none; }
.privacy-panel li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.45; }
.privacy-panel li span { color: var(--gold); font-size: .67rem; font-weight: 800; }
.danger-link { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--danger); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.privacy-panel output { display: block; color: var(--success); font-size: .78rem; }
.offline-banner { position: fixed; z-index: 60; right: 14px; bottom: calc(var(--nav-height) + 14px); left: 14px; max-width: 500px; margin-inline: auto; padding: 11px 14px; border: 1px solid rgba(229,182,111,.34); border-radius: 12px; background: #241c13; color: var(--gold-bright); font-size: .78rem; text-align: center; box-shadow: var(--shadow); }

@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

@media (max-width: 560px) {
  .app-header, .app-main { width: min(calc(100% - 22px), 760px); }
  .app-main { padding-top: 22px; }
  .featured-track { min-height: 440px; border-radius: 23px; }
  .featured-copy { inset: auto 18px 20px; }
  .player-card { grid-template-columns: 1fr; gap: 0; padding: 10px; }
  .cover-art--player { min-height: 265px; }
  .player-content { padding: 17px 7px 9px; }
  .song-grid { gap: 8px; }
  .song-card-content { padding: 10px; }
}

@media (min-width: 480px) and (min-height: 560px) {
  body.player-active .app-main { padding-bottom: calc(var(--nav-height) + 40px + env(safe-area-inset-bottom)); }
}

@media (max-width: 479px), (max-height: 559px) {
  .player-view.is-mini, .player-view.is-mini.is-dragged {
    top: auto;
    right: 8px;
    bottom: calc(var(--nav-height) + 8px + env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
  }
  .player-view.is-mini .player-drag-handle { cursor: default; touch-action: auto; }
  .player-view.is-mini .player-drag-grip { opacity: .45; }
}

@media (min-width: 700px) {
  .privacy-panel { left: 50%; width: min(660px, calc(100% - 32px)); transform: translateX(-50%); border-radius: 27px 27px 0 0; }
  .song-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 200px) {
  .youtube-frame-shell, .youtube-frame { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
