:root { color-scheme: dark; --bg: #121414; --panel: #191c1b; --text: #f0eee7; --muted: #969c96; --accent: #dbab81; --line: #2c302c; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, audio:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled { opacity: .3; cursor: default; }
.sidebar { width: 236px; position: fixed; inset: 0 auto 0 0; border-right: 1px solid var(--line); padding: 37px 22px; background: #151716; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px; color: var(--text); text-decoration: none; font-size: 27px; font-weight: 650; letter-spacing: -1.3px; }
.brand-mark { width: 36px; height: 36px; border: 1px solid #76624e; border-radius: 9px; color: var(--accent); display: grid; place-content: center; font-family: Georgia, serif; font-size: 27px; position: relative; }
.brand-mark span { display: none; }
.brand-dot { color: var(--accent); }
.nav-caption { margin: 57px 12px 18px; color: #7e867f; font-size: 10px; font-weight: 650; letter-spacing: 1.9px; }
.nav-item { border: 0; background: transparent; width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px; margin-bottom: 7px; border-radius: 7px; color: var(--muted); text-align: left; }
.nav-item > span:first-child { width: 21px; font-size: 23px; line-height: 1; }
.nav-item:hover { background: #202420; color: var(--text); }
.nav-item.active { background: #2a2923; color: #e4bd98; }
.nav-count { margin-left: auto; font-size: 11px; background: #ffffff0b; padding: 3px 7px; border-radius: 4px; }
.sidebar-note { margin-top: auto; font-size: 11px; color: #b5b9af; padding: 24px 8px 0; border-top: 1px solid var(--line); }
.sidebar-note p { color: #737b73; margin: 9px 0 0 13px; font-size: 10px; }
.status-dot { display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: #95b891; margin-right: 5px; vertical-align: middle; }
main { margin-left: 236px; padding: 0 6%; max-width: 1740px; }
.topbar { min-height: 96px; display: flex; gap: 20px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.topbar-label { color: #82897f; font-size: 9px; letter-spacing: 2px; }
.search { background: #1b1e1b; border: 1px solid #30352f; padding: 10px 13px; border-radius: 7px; display: flex; align-items: center; gap: 9px; }
.search > span { color: #aab0a5; font-size: 22px; line-height: 1; }
.search input { background: transparent; color: var(--text); border: 0; width: 235px; font-size: 11px; outline-offset: 7px; }
.search input::placeholder { color: #858e81; }
.hero { position: relative; padding: 61px 0 54px; min-height: 310px; overflow: hidden; }
.eyebrow { font-size: 9px; letter-spacing: 2.1px; color: var(--accent); font-weight: 600; margin: 0 0 18px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(37px, 4.4vw, 65px); line-height: 1.1; font-weight: 400; letter-spacing: -1.9px; margin: 0; position: relative; z-index: 1; }
h1 em { font-weight: 400; color: var(--accent); }
.hero-description { color: var(--muted); line-height: 1.8; max-width: 390px; font-size: 12px; margin: 22px 0 0; position: relative; z-index: 1; }
.hero-decoration { position: absolute; right: 8px; top: 32px; transform: rotate(-15deg); opacity: .85; }
.record { width: 270px; height: 270px; border-radius: 50%; border: 1px solid #393a2f; background: repeating-radial-gradient(circle, #20231d 0px, #20231d 2px, #2d3026 3px, #1a1d19 4px); display: grid; place-items: center; box-shadow: 0 24px 50px #0005; }
.record-label { width: 100px; height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 50%; background: #b2916c; color: #23261f; font-family: Georgia, serif; font-size: 24px; }
.record-label::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1b2119; margin-top: 12px; }
.record-label span { font-family: system-ui, sans-serif; font-size: 4px; letter-spacing: 1px; margin-top: 7px; }
.collection { border-top: 1px solid var(--line); padding-top: 29px; min-height: 320px; }
.section-heading { display: flex; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 23px; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -.3px; margin: 0; }
h2 > span { display: inline-block; margin-left: 13px; font-size: 10px; font-weight: 400; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 20px; vertical-align: middle; letter-spacing: 0; }
.sort-label { color: #7f877d; font-size: 8px; letter-spacing: 1.6px; flex-shrink: 0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 31px 23px; }
.media-card { padding: 0; background: transparent; border: 0; text-align: left; min-width: 0; }
.artwork { aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 6px; isolation: isolate; background: var(--art-bg); color: var(--art-fg); }
.terracotta { --art-bg: #a3634e; --art-fg: #eed4b6; }
.sage { --art-bg: #657565; --art-fg: #e1e3c9; }
.sand { --art-bg: #c4b498; --art-fg: #514a3b; }
.slate { --art-bg: #5b707e; --art-fg: #d0ddd8; }
.plum { --art-bg: #796273; --art-fg: #e2d0c8; }
.gold { --art-bg: #9f8553; --art-fg: #efe4c7; }
.artwork::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #ffffff10, transparent 55%, #0002); pointer-events: none; }
.art-index { position: absolute; top: 17px; left: 18px; font-size: 9px; letter-spacing: 2px; }
.disc-art { position: absolute; width: 78%; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; top: 17%; left: 28%; opacity: .7; box-shadow: 0 0 0 12px #ffffff07, 0 0 0 24px #ffffff06; }
.disc-art::before { content: ""; position: absolute; inset: 22%; border: 1px solid currentColor; border-radius: 50%; }
.disc-art::after { content: ""; position: absolute; inset: 45%; background: currentColor; border-radius: 50%; }
.art-title { font-family: Georgia, serif; font-size: clamp(18px, 2vw, 29px); line-height: 1.1; position: absolute; bottom: 20px; left: 18px; right: 18px; max-height: 3.3em; overflow: hidden; overflow-wrap: anywhere; z-index: 1; }
.art-play { position: absolute; right: 14px; top: 14px; width: 35px; height: 35px; display: grid; place-items: center; padding-left: 2px; background: #141814de; border-radius: 50%; color: white; font-size: 12px; opacity: 0; transform: translateY(5px); transition: opacity .18s, transform .18s; z-index: 2; }
.media-card:hover .art-play, .media-card:focus-visible .art-play { opacity: 1; transform: translateY(0); }
.media-card h3 { font-size: 13px; font-weight: 500; margin: 14px 0 6px; overflow-wrap: anywhere; }
.media-card p { font-size: 10px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.video-art { aspect-ratio: 16 / 10; }
.film-art { position: absolute; width: 50%; height: 160%; border-left: 13px dashed #ffffff30; border-right: 13px dashed #ffffff30; transform: rotate(30deg); top: -30%; right: 6%; background: #0001; }
.video-art .art-title { font-size: 23px; }
footer { margin: 48px 0 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 8px; letter-spacing: 1.7px; color: #737c71; display: flex; justify-content: space-between; gap: 15px; }
footer span { font-family: Georgia, serif; font-style: italic; font-size: 11px; letter-spacing: 0; }
.empty-state { padding: 36px 20px; text-align: center; border: 1px dashed #353b32; background: #191c1880; border-radius: 7px; }
.empty-icon { display: inline-block; font-size: 30px; color: var(--accent); margin-bottom: 5px; }
.empty-state h3 { font-family: Georgia, serif; font-size: 23px; font-weight: 400; margin: 8px 0; }
.empty-state p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 520px; margin: 12px auto; }
.empty-state code { display: inline-block; font-size: 10px; padding: 10px 14px; color: #c5b394; background: #25291f; border-radius: 4px; overflow-wrap: anywhere; max-width: 100%; }
.back-button { background: transparent; border: 0; padding: 0; color: var(--accent); font-size: 11px; margin: 0 0 14px; }
.album-heading { display: flex; align-items: center; gap: 30px; margin: 8px 0 30px; }
.album-heading .artwork { width: 180px; flex-shrink: 0; }
.album-details h3 { font-family: Georgia, serif; font-weight: 400; font-size: 31px; margin: 0 0 13px; overflow-wrap: anywhere; }
.album-details > p:not(.eyebrow) { font-size: 12px; color: var(--muted); line-height: 1.7; }
.primary-button { background: var(--accent); color: #231c16; border: 0; padding: 12px 18px; font-weight: 600; font-size: 12px; border-radius: 5px; margin-top: 8px; }
.primary-button:hover { background: #edc6a4; }
.saved-position { font-size: 11px; color: var(--accent); margin: 10px 0; line-height: 1.6; }
.playback-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.secondary-button { background: transparent; color: var(--muted); border: 1px solid #49503f; padding: 11px 14px; font-size: 11px; border-radius: 5px; margin-top: 8px; }
.secondary-button:hover { color: var(--text); border-color: var(--accent); }
.media-item { min-width: 0; }
.media-item .media-card { width: 100%; }
.card-actions { gap: 6px; }
.card-actions button { font-size: 10px; padding: 9px 10px; margin-top: 0; }
.conversion-controls { margin-top: 8px; min-height: 37px; }
.conversion-button { margin: 0; }
.conversion-button[hidden] { display: none; }
.conversion-status { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 7px 0 0; overflow-wrap: anywhere; }
.conversion-controls progress { display: block; width: 100%; height: 7px; accent-color: var(--accent); }
#restart-video { margin: 0 0 15px; }
.track-list { list-style: none; padding: 0; margin: 0; }
.track-row { display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 17px 15px; border-radius: 4px; }
.track-row:hover { background: #20251f; }
.track-row.current { background: #2b2c23; color: var(--accent); }
.track-number, .track-format { color: var(--muted); font-size: 10px; }
.track-number { width: 22px; flex-shrink: 0; }
.track-name { flex: 1; overflow-wrap: anywhere; }
.track-action { font-size: 11px; width: 18px; }
.has-player main { padding-bottom: 100px; }
.player { position: fixed; inset: auto 0 0; background: #20241fee; backdrop-filter: blur(20px); border-top: 1px solid #404638; padding: 16px 28px; display: flex; align-items: center; gap: 25px; z-index: 10; flex-wrap: wrap; }
.now-playing { display: flex; gap: 12px; align-items: center; flex: 1; min-width: 0; }
.player-art { display: grid; place-items: center; background: #947451; color: #eee0c9; width: 48px; height: 48px; border-radius: 5px; font-size: 25px; flex-shrink: 0; }
.now-playing > div { min-width: 0; }
.now-playing strong, .now-playing div > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing strong { font-size: 12px; font-weight: 500; }
.now-playing div > span { font-size: 10px; color: var(--muted); margin-top: 6px; }
.player-controls { display: flex; align-items: center; gap: 12px; }
.player-controls button { background: transparent; border: 1px solid #454b3f; border-radius: 50%; height: 32px; width: 32px; font-size: 12px; }
audio { width: min(360px, 32vw); height: 38px; }
.track-position { color: var(--muted); font-size: 11px; min-width: 60px; text-align: right; }
.player-error { flex-basis: 100%; margin: 0; color: #f0b69e; font-size: 11px; }
dialog { width: min(1000px, 92vw); padding: 20px; border: 1px solid #434a3d; border-radius: 10px; background: var(--panel); color: var(--text); max-height: 92dvh; }
dialog::backdrop { background: #000d; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.dialog-heading h2 { overflow-wrap: anywhere; }
.dialog-heading button { border: 1px solid var(--line); border-radius: 50%; background: #252a23; width: 36px; height: 36px; flex-shrink: 0; }
video { display: block; width: 100%; max-height: 72dvh; background: #000; }
.video-error { color: #f0b69e; line-height: 1.7; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1600px) { .media-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
@media (max-width: 1100px) { .sidebar { width: 200px; padding-inline: 15px; } main { margin-left: 200px; padding-inline: 5%; } .hero-decoration { right: -110px; opacity: .45; } .topbar-label { display: none; } .topbar { justify-content: flex-end; } .media-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 25px 18px; } }
@media (max-width: 700px) {
    .sidebar { position: static; width: 100%; padding: 18px 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .brand { padding: 0; font-size: 25px; } .brand-mark { width: 31px; height: 31px; }
    .nav-caption, .sidebar-note { display: none; }
    nav { display: flex; gap: 12px; margin-top: 20px; }
    .nav-item { margin: 0 0 12px; padding: 11px 12px; font-size: 12px; }
    main { margin-left: 0; padding-inline: 22px; }
    .topbar { min-height: 73px; }
    .search { width: 100%; } .search input { width: 100%; font-size: 12px; }
    .hero { padding: 37px 0 32px; min-height: auto; }
    h1 { font-size: 43px; letter-spacing: -1.2px; }
    .hero-description { max-width: 260px; font-size: 11px; margin-top: 18px; }
    .hero-decoration { right: -135px; top: 25px; opacity: .25; }
    .collection { padding-top: 23px; }
    .sort-label { display: none; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 15px; }
    .art-title { font-size: 21px; bottom: 15px; left: 14px; }
    .art-index { top: 13px; left: 14px; }
    .art-play { opacity: 1; transform: none; width: 28px; height: 28px; right: 10px; top: 10px; font-size: 9px; }
    .video-art .art-title { font-size: 19px; }
    footer { margin-top: 35px; } footer span { display: none; }
    .album-heading { align-items: flex-start; gap: 18px; }
    .album-heading .artwork { width: 110px; }
    .album-heading .art-title { font-size: 15px; }
    .album-details h3 { font-size: 23px; }
    .album-details .eyebrow { font-size: 8px; margin-bottom: 10px; }
    .album-details > p:not(.eyebrow) { display: none; }
    .album-details > p.saved-position { display: block; }
    .secondary-button { padding: 10px 12px; font-size: 10px; }
    .primary-button { padding: 10px 12px; font-size: 10px; }
    .track-row { gap: 10px; padding-inline: 5px; font-size: 12px; }
    .player { padding: 12px 18px; gap: 10px 12px; }
    .now-playing { flex-basis: calc(100% - 80px); }
    .player-art { width: 35px; height: 35px; font-size: 20px; }
    .player-controls { order: 3; width: 100%; justify-content: center; gap: 12px; }
    audio { width: calc(100% - 88px); height: 38px; }
    .player-error { order: 4; }
    .has-player main { padding-bottom: 160px; }
    dialog { padding: 14px; } .dialog-heading h2 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
