:root {
  color-scheme: dark;
  --base: #0f0e15;
  --rail: #111018;
  --surface: #181720;
  --surface-2: #201e2a;
  --line: #2a2835;
  --text: #f5f2fa;
  --muted: #a7a1b6;
  --subtle: #817a92;
  --accent: #bdabff;
  --accent-ink: #1c1333;
  --accent-strong: #b49aff;
  --danger: #ffadbd;
  --radius: 17px;
  --sidebar-width: 232px;
  --panel-width: 326px;
  --top-height: 72px;
  --dock-height: 92px;
  font: 14px/1.5 Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--base); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button, a { touch-action: manipulation; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.17; }
h1 { font-size: clamp(2rem, 3.2vw, 3.3rem); letter-spacing: -.057em; font-weight: 780; }
h2 { font-size: 1.5rem; letter-spacing: -.037em; font-weight: 740; }
h3 { font-size: 1.08rem; letter-spacing: -.018em; }
p { color: var(--muted); }
svg { display: block; flex-shrink: 0; }
a, button, input { transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
* { scrollbar-width: thin; scrollbar-color: #4b445d transparent; }
.skip-link { position: fixed; left: 12px; top: 10px; z-index: 30; transform: translateY(-150%); padding: 10px 16px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; }
.skip-link:focus { transform: none; }
.app-shell { display: grid; grid-template: var(--top-height) minmax(0, 1fr) var(--dock-height) / var(--sidebar-width) minmax(0, 1fr) var(--panel-width); height: 100vh; height: 100dvh; overflow: hidden; }
.rail { grid-area: 1 / 1 / 3 / 2; min-height: 0; background: var(--rail); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 15px 12px; gap: 23px; }
.brand { display: inline-flex; gap: 11px; align-items: center; border: 0; background: transparent; padding: 2px 8px; align-self: flex-start; font-size: 1.53rem; letter-spacing: -.055em; font-weight: 800; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: #211139; background: linear-gradient(143deg,#dac7ff 5%,#ad8dff 86%); box-shadow: inset 0 1px 0 #f6eaff90, 0 4px 12px #a67dff27; }
.brand-mark svg { width: 23px; height: 23px; stroke-width: 1.9; }
.brand-dot { color: var(--accent); }
.rail-nav { display: grid; gap: 4px; }
.nav-button, .rail-list-button { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 9px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; font-weight: 650; width: 100%; }
.nav-button:hover, .rail-list-button:hover { color: var(--text); background: #211e2b; }
.nav-button[aria-current="page"], .rail-list-button[aria-current="page"] { color: #eee6ff; border-color: #3c3155; background: #2a213d; }
.nav-button[aria-current="page"] svg { color: var(--accent); }
.rail-library { min-height: 0; display: flex; flex: 1; flex-direction: column; }
.rail-label { display: flex; align-items: center; justify-content: space-between; gap: 3px; padding: 0 3px 3px 10px; color: var(--subtle); font-size: .74rem; text-transform: uppercase; font-weight: 760; letter-spacing: .11em; }
.rail-label .icon-button { min-width: 32px; width: 32px; height: 31px; }
.rail-label svg { width: 16px; height: 16px; }
.playlists-label { margin-top: 18px; }
.rail-playlists { min-height: 0; overflow-y: auto; }
.rail-list-button { min-height: 48px; padding: 7px 9px; }
.rail-list-button .palette-icon { width: 34px; height: 34px; border-radius: 9px; }
.rail-list-button .palette-icon svg { width: 17px; height: 17px; }
.rail-list-button strong, .rail-list-button small { display: block; }
.rail-list-button strong { font-size: .91rem; color: var(--text); }
.rail-list-button small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.rail-footer { border-top: 1px solid var(--line); padding-top: 8px; }
.topbar { grid-area: 1 / 2 / 2 / 4; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-width: 0; padding: 0 25px; border-bottom: 1px solid var(--line); background: #13121a; }
.mobile-brand, .mobile-nav, .mobile-controls { display: none !important; }
.quick-search { display: flex; align-items: center; gap: 10px; width: min(100%, 485px); height: 43px; padding: 0 10px; background: #1c1a25; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.quick-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #ad92ff16; }
.quick-search input { width: 100%; min-width: 0; height: 100%; background: transparent; border: 0; color: var(--text); outline: 0; padding: 0; }
.quick-search input::placeholder { color: #a39ab3; opacity: 1; }
.search-icon { display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); padding: 3px 0; }
kbd { color: var(--muted); border: 1px solid #3c3848; border-radius: 5px; padding: 1px 5px; font: .71rem/1.55 Inter, system-ui, sans-serif; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.button, .icon-button, .text-button, .chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-weight: 700; line-height: 1.1; text-decoration: none; }
.button { min-height: 40px; padding: 10px 13px; white-space: normal; text-align: center; }
.button svg, .text-button svg { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: var(--accent-ink); border-color: #dbc8ff3f; }
.button-primary:hover { background: #d4c4ff; }
.button-outline { background: #211b30; border-color: #3d3152; color: #e4d8ff; }
.button-outline:hover { background: #322444; border-color: #68518d; }
.button-plain { background: #24212e; border-color: #332f40; color: var(--text); }
.button-plain:hover { background: #302b3b; }
.button-danger { background: #3a2330; color: var(--danger); border-color: #673345; }
.button-danger:hover { background: #502739; }
.icon-button { height: 38px; width: 38px; min-width: 38px; padding: 0; color: var(--muted); }
.icon-button:hover, .icon-button:focus-visible { background: #ffffff0c; color: var(--text); }
.icon-button.is-on { color: var(--accent); }
.icon-button.is-on[data-action="favorite"] svg { fill: currentColor; }
.text-button { padding: 7px 3px; color: var(--accent); white-space: nowrap; }
.text-button:hover { color: #e1d5ff; }
.top-settings { border-color: var(--line); border-radius: 11px; }
.workspace { grid-area: 2 / 2 / 3 / 3; min-width: 0; min-height: 0; position: relative; }
.view { height: 100%; padding: 25px 25px 34px; overflow: auto; overscroll-behavior: contain; }
.view:focus { outline: none; }
.view-inner { max-width: 1240px; margin: 0 auto; min-width: 0; }
.hero { min-height: 290px; display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; background: #211833; border: 1px solid #413257; border-radius: 21px; padding: 28px 33px; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("./assets/vinilo.webp") right center / cover no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#171126f2 0%,#191129e8 24%,#1a122a8a 53%,#22143108 82%); }
.hero-copy { max-width: 350px; }
.hero h1 { font-size: clamp(2.8rem,4.05vw,4.7rem); letter-spacing: -.067em; line-height: .99; margin-bottom: 14px; }
.hero h1 span { color: #dacaff; }
.hero p { color: #e0d6ee; max-width: 310px; font-size: 1.03rem; }
.hero .buttons { margin-top: 20px; }
.hero .button-plain { background: #29203bb0; border-color: #6a548465; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.home-section { margin-top: 27px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.section-heading h2, .section-heading h3 { min-width: 0; }
.section-heading .text-button { font-size: .86rem; }
.quick-grid, .card-grid, .group-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-tile { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 67px; text-align: left; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.quick-tile:hover { background: var(--surface-2); border-color: #4d425f; }
.quick-tile strong, .quick-tile small { display: block; }
.quick-tile strong { font-size: .98rem; }
.quick-tile small { color: var(--muted); font-size: .78rem; }
.palette-icon { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border-radius: 11px; color: var(--tile-color, #e7d9ff); background: var(--tile-fill, #3a2d57); }
.palette-iris { --tile-fill: linear-gradient(150deg,#493173,#322448); --tile-color: #e7d7ff; }
.palette-peach { --tile-fill: linear-gradient(150deg,#6c443b,#3b2d39); --tile-color: #ffd2b7; }
.palette-mint { --tile-fill: linear-gradient(150deg,#285750,#23373f); --tile-color: #acf0dd; }
.palette-rose { --tile-fill: linear-gradient(150deg,#694054,#412939); --tile-color: #ffc0d5; }
.palette-blue { --tile-fill: linear-gradient(150deg,#344c77,#2c304b); --tile-color: #c9d9ff; }
.palette-gold { --tile-fill: linear-gradient(150deg,#664d32,#403036); --tile-color: #ffdda8; }
.media-card, .group-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.media-card { padding: 8px; }
.media-card:hover, .group-card:hover { border-color: #504363; background: var(--surface-2); }
.card-art { position: relative; isolation: isolate; aspect-ratio: 16 / 9; min-height: 70px; border-radius: 9px; overflow: hidden; background: #28213a; }
.cover { display: grid; place-items: center; overflow: hidden; position: relative; width: 100%; height: 100%; background: radial-gradient(ellipse at 80% 5%, #584074, #302343 70%); color: #c3abd9; }
.cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #181421; }
.cover.has-failed img { display: none; }
.cover a { position: absolute; inset: 0; }
.card-play { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; border: 1px solid #e8d9ff64; border-radius: 50%; width: 42px; height: 42px; color: var(--accent-ink); background: var(--accent); box-shadow: 0 4px 13px #08050d8a; text-decoration: none; }
.card-play:hover { background: #e0d1ff; }
.card-play svg { margin-left: 1px; }
.card-meta { padding: 7px 2px 1px 4px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.card-meta .icon-button { width: 34px; min-width: 34px; height: 34px; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.copy-block { flex: 1; min-width: 0; }
.copy-block strong { font-size: .94rem; line-height: 1.42; }
.copy-block small { display: block; color: var(--muted); font-size: .81rem; }
.attribution { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); text-decoration: none; }
.attribution:hover { color: var(--text); }
.attribution img { display: block; width: 96px; height: 18px; object-fit: contain; }
.attribution img:not([hidden]) + span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.attribution a { color: inherit; }
.page-heading { margin-bottom: 23px; }
.page-heading h1 { margin-bottom: 6px; }
.page-heading p { max-width: 620px; }
.page-heading .buttons { margin-top: 14px; }
.page-heading .back-button { margin-bottom: 9px; }
.back-button { color: var(--muted); font-size: .9rem; }
.list-hero { display: flex; gap: 17px; align-items: flex-end; flex-wrap: wrap; padding: 18px; margin-bottom: 18px; border: 1px solid var(--line); background: linear-gradient(125deg,#282137,var(--surface) 70%); border-radius: var(--radius); }
.list-hero .palette-icon { width: 78px; height: 78px; border-radius: 15px; }
.list-hero .palette-icon svg { width: 35px; height: 35px; }
.list-hero .page-heading { margin: 0; min-width: 0; flex: 1; }
.list-hero h1 { overflow-wrap: anywhere; }
.list-hero p { overflow-wrap: anywhere; }
.list-hero .buttons { margin-top: 10px; }
.group-card { display: flex; flex-direction: column; gap: 11px; padding: 13px; text-align: left; min-height: 116px; }
.group-card .palette-icon { width: 48px; height: 48px; }
.group-card strong { display: block; font-size: .97rem; }
.group-card small { display: block; color: var(--muted); }
.group-card .copy-block { width: 100%; }
.hub-grid { margin-bottom: 21px; }
.search-form, .filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: end; }
.search-form { margin-bottom: 12px; }
.search-form label { flex: 1; min-width: 160px; }
.field-label { display: block; color: var(--muted); font-size: .83rem; font-weight: 650; }
.field-label input, .field-label textarea, .field-label select { margin-top: 5px; }
input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, select { min-width: 0; }
.field-input { color: var(--text); background: #181621; border: 1px solid #3a3448; border-radius: 9px; width: 100%; min-height: 41px; padding: 9px 10px; }
.field-input::placeholder { color: #8e859e; }
textarea.field-input { display: block; resize: vertical; min-height: 85px; }
.field-input:focus { outline: 0; border-color: var(--accent); }
.filters { margin: 13px 0 20px; }
.filters summary { color: var(--muted); cursor: pointer; width: fit-content; }
.filters[open] summary { color: var(--text); }
.filter-bar { padding: 11px 0 0; }
.filter-bar .field-label { flex: 1; min-width: 115px; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 40px; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
.search-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.chip { border-color: var(--line); background: #1d1a27; color: var(--muted); min-height: 34px; padding: 7px 10px; }
.chip:hover, .chip[aria-pressed="true"] { background: #37284e; border-color: #644d89; color: #eee4ff; }
.search-status { margin-bottom: 13px; }
.callout { padding: 13px; border: 1px solid #4d3d62; background: #231b32; border-radius: 12px; }
.callout p { color: #d6c8e5; }
.callout .buttons { margin-top: 8px; }
.form-stack { display: grid; gap: 12px; }
.track-table { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; }
.track-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto auto; align-items: center; gap: 10px; min-height: 61px; padding: 7px 9px; border-bottom: 1px solid #282633; }
.track-row:last-child { border-bottom: 0; }
.track-row:hover { background: #22202c; }
.track-row.is-current { background: #2a213c; box-shadow: inset 2px 0 var(--accent); }
.track-row .cover { width: 68px; height: 39px; border-radius: 6px; }
.row-title, .row-subtitle { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-title { color: var(--text); font-weight: 690; }
.row-subtitle { color: var(--muted); font-size: .81rem; }
.row-buttons { display: flex; align-items: center; gap: 2px; }
.row-buttons .icon-button { width: 35px; min-width: 35px; height: 35px; }
.row-buttons .icon-button svg { width: 18px; height: 18px; }
.track-time { color: var(--muted); font-size: .75rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.empty-state { display: grid; justify-items: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.empty-state .palette-icon { margin-bottom: 3px; }
.empty-state .buttons { margin-top: 5px; }
.load-more { margin-top: 13px; }
.play-panel { grid-area: 2 / 3 / 3 / 4; min-width: 0; min-height: 0; padding: 17px 17px 0; display: flex; flex-direction: column; background: #13121a; border-left: 1px solid var(--line); }
.play-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 10px; }
.play-panel-head h2 { font-size: 1.12rem; letter-spacing: -.015em; }
.play-panel-head .icon-button { width: 31px; height: 32px; min-width: 31px; }
.video-stage { position: relative; width: 100%; min-width: 200px; min-height: 200px; height: auto; aspect-ratio: 16/9; flex: none; background: #07060a; border-radius: 12px; overflow: hidden; isolation: isolate; }
.video-stage.has-frame { border-radius: 0; }
.stage-empty { display: grid; place-content: center; justify-items: center; gap: 10px; width: 100%; height: 100%; position: absolute; inset: 0; background: radial-gradient(ellipse at 48% 37%,#39264e 0%,#251a35 49%,#1b1526 90%); border: 1px solid #3c2d4d; border-radius: inherit; }
.has-frame .stage-empty { display: none; }
.stage-record { display: grid; place-items: center; width: 118px; height: 118px; border-radius: 50%; color: #d8c0ff; background: repeating-radial-gradient(circle,#221932 0,#221932 5px,#8e67ab40 6px,#261d36 7px,#2e223e 9px); border: 1px solid #9675b047; box-shadow: 0 8px 22px #120b1b80; }
.stage-record span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 50%; background: #5b4075; }
.stage-record svg { width: 27px; height: 27px; }
.stage-resume { display: inline-flex; align-items: center; gap: 3px; color: #ede3ff; background: #3b2b51; border: 1px solid #604a7d; border-radius: 9px; padding: 6px 10px; }
.stage-resume svg { width: 17px; height: 17px; }
.youtube-mount, .youtube-mount iframe { position: absolute; display: block; inset: 0; width: 100%; height: 100%; border: 0; }
.side-track { min-width: 0; padding: 13px 0 15px; }
.side-track .track-current { display: flex; align-items: center; gap: 4px; }
.side-track .track-current strong { font-size: 1.04rem; }
.side-track .side-empty-copy p { margin-top: 3px; font-size: .86rem; }
.player-message { margin: 0 0 11px; border-radius: 8px; color: var(--muted); font-size: .83rem; overflow: auto; max-height: 88px; }
.player-message.is-error { background: #362533; border: 1px solid #583649; color: #ffd2de; padding: 7px 8px; }
.player-message a, .player-message button { display: inline-flex; margin-left: 4px; color: var(--accent); }
.side-queue { padding-top: 13px; border-top: 1px solid var(--line); min-height: 0; flex: 1; overflow-y: auto; }
.side-queue .section-heading { margin-bottom: 7px; }
.side-queue .section-heading .text-button { font-size: .78rem; }
.queue-empty { display: grid; justify-items: center; text-align: center; gap: 6px; color: var(--subtle); padding: 20px 10px 10px; }
.queue-empty p { font-size: .86rem; }
.queue-compact-row { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 4px 0; }
.queue-compact-row .cover { width: 52px; height: 30px; border-radius: 5px; flex: none; }
.queue-compact-row .icon-button { width: 29px; min-width: 29px; height: 31px; }
.queue-compact-row .icon-button svg { width: 16px; height: 16px; }
.queue-compact-row small { font-size: .74rem; }
.dock { grid-area: 3 / 1 / 4 / 4; display: grid; grid-template-columns: minmax(130px,1fr) minmax(240px,580px) minmax(145px,1fr); align-items: center; gap: 15px; padding: 8px 19px; border-top: 1px solid #332e40; background: #17151f; min-width: 0; }
.dock-now { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dock-now .cover, .dock-now .palette-icon { width: 64px; height: 40px; border-radius: 7px; flex: none; }
.dock-now .palette-icon { width: 43px; height: 43px; }
.dock-now strong { color: var(--text); }
.transport { min-width: 0; width: 100%; }
.transport-buttons { display: flex; justify-content: center; align-items: center; gap: 10px; }
.transport-buttons .icon-button svg { width: 19px; height: 19px; }
.play-button { display: grid; place-items: center; border: 1px solid #ebddff66; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.play-button:hover { background: #dfccff; }
.play-button svg { width: 24px; height: 24px; }
.seek { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .74rem; font-variant-numeric: tabular-nums; margin-top: 3px; }
.seek span { min-width: 31px; text-align: center; }
input[type="range"] { --range: 0%; display: block; accent-color: var(--accent); margin: 0; height: 16px; min-width: 0; cursor: pointer; }
.seek input { width: 100%; flex: 1; }
.seek input:disabled { cursor: default; opacity: .45; }
.dock-extra { display: flex; align-items: center; justify-content: flex-end; gap: 5px; min-width: 0; }
.dock-extra input { width: clamp(35px,7vw,106px); }
.local-file .dock { display: flex; justify-content: space-between; align-items: center; }
.local-file .dock :is(.transport,.dock-extra,.mobile-controls) { display: none !important; }
.dialog-layer { position: absolute; inset: 0; z-index: 8; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; padding: 12px; overflow: hidden; background: #09070ed2; }
#app-dialog { position: relative; inset: auto; margin: 0; width: min(100%, 530px); min-height: 0; max-width: none; max-height: 100%; overflow: hidden; color: var(--text); background: #201c2b; border: 1px solid #493d5f; border-radius: 16px; padding: 18px; box-shadow: 0 22px 64px #08061088; }
#app-dialog[open] { display: flex; flex-direction: column; }
#app-dialog h2 { font-size: 1.33rem; }
.dialog-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.dialog-header h2 { overflow-wrap: anywhere; }
.dialog-header .icon-button { flex-shrink: 0; }
.dialog-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px; scrollbar-gutter: stable; }
.dialog-body { display: grid; gap: 12px; }
.dialog-body p { font-size: .91rem; }
.dialog-body .callout h3 { margin-bottom: 5px; }
.local-setup ol { margin: 6px 0 0; padding-inline-start: 22px; color: var(--muted); font-size: .91rem; }
.local-setup li + li { margin-top: 4px; }
.dialog-body hr { border: 0; border-top: 1px solid #40374f; width: 100%; margin: 2px 0; }
.dialog-body details summary { cursor: pointer; }
.dialog-body details > p { margin-top: 7px; }
.dialog-footer { margin-top: 4px; justify-content: flex-end; }
.dialog-error { color: var(--danger) !important; }
.dialog-actions { display: grid; gap: 4px; }
.action-item { justify-content: flex-start; background: #292337; color: var(--text); text-align: left; min-height: 38px; }
.action-item:hover { background: #362a46; }
.action-item.danger { color: var(--danger); }
.color-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.color-picker label { cursor: pointer; }
.color-picker input { position: absolute; opacity: 0; }
.color-picker .palette-icon { width: 34px; height: 34px; border: 2px solid transparent; }
.color-picker input:checked + .palette-icon, .color-picker input:focus-visible + .palette-icon { border-color: var(--accent); }
.controls-volume { display: flex; align-items: center; gap: 10px; }
.controls-volume input { flex: 1; }
.toast { position: fixed; left: 50%; bottom: calc(var(--dock-height) + 14px); transform: translateX(-50%); max-width: calc(100% - 26px); z-index: 12; padding: 10px 15px; border-radius: 12px; border: 1px solid #7b66a8; color: #eee5ff; background: #35274a; box-shadow: 0 8px 26px #09070cb0; }
@media (min-width: 1510px) {
  :root { --sidebar-width: 246px; --panel-width: 362px; }
  .view { padding-inline: 31px; }
}
@media (max-width: 1240px) {
  :root { --sidebar-width: 202px; --panel-width: 284px; }
  .view { padding-inline: 19px; }
  .play-panel { padding-inline: 12px; }
  .hero { padding-inline: 24px; }
  .quick-tile { gap: 7px; padding: 7px; }
  .quick-tile .palette-icon { width: 36px; height: 36px; }
}
@media (max-width: 1050px) and (min-width: 801px) {
  :root { --sidebar-width: 66px; --panel-width: 265px; }
  .rail { align-items: center; padding-inline: 7px; gap: 14px; }
  .rail .brand { margin: auto; margin-top: 0; margin-bottom: 0; padding: 0; }
  .rail .brand > span:nth-child(2), .rail-label > span, .rail-list-button .copy-block, .rail .nav-label, .rail-footer .nav-button { font-size: 0; gap: 0; }
  .rail-label > span, .rail .brand > span:nth-child(2), .rail-list-button .copy-block { display: none; }
  .rail-nav, .rail-library, .rail-playlists, .rail-footer { width: 100%; }
  .rail .nav-button, .rail-list-button, .rail-label { justify-content: center; gap: 0; padding-inline: 0; }
  .rail-label .icon-button { height: 34px; }
  .rail-list-button { min-height: 42px; }
  .hero h1 { font-size: clamp(2.5rem,5vw,4rem); }
  .card-grid { gap: 7px; }
}
@media (max-width: 800px) {
  :root { --top-height: 59px; --dock-height: 76px; }
  body.local-file { --dock-height: 58px; }
  .app-shell { grid-template: var(--top-height) auto minmax(0,1fr) var(--dock-height) calc(57px + env(safe-area-inset-bottom)) / minmax(0,1fr); }
  .rail { display: none; }
  .topbar { grid-area: 1 / 1; gap: 9px; padding: 0 10px; }
  .mobile-brand { display: inline-flex !important; padding: 0; align-self: center; }
  .mobile-brand .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
  .quick-search { width: 100%; height: 39px; padding-inline: 8px; gap: 6px; }
  .quick-search kbd { display: none; }
  .top-actions { gap: 4px; }
  .top-actions .icon-button, .add-button { width: 35px; min-width: 35px; min-height: 35px; height: 35px; padding: 0; }
  .add-label { display: none; }
  .workspace { grid-area: 3 / 1; }
  .view { padding: 14px 12px 23px; }
  .play-panel { grid-area: 2 / 1; padding: 7px 10px; display: grid; grid-template-columns: minmax(200px, 1.35fr) minmax(0, 1fr); align-items: start; column-gap: 8px; border: 0; border-bottom: 1px solid var(--line); }
  body:not(.has-current) .play-panel { display: none; }
  .play-panel-head, .side-queue { display: none; }
  .video-stage { grid-area: 1 / 1 / 3 / 2; height: 200px; aspect-ratio: auto; }
  body.video-unavailable .play-panel:has(.video-stage:not(.has-frame)) { grid-template-columns: minmax(0,1fr); }
  body.video-unavailable .video-stage:not(.has-frame) { display: none; }
  body.video-unavailable .play-panel:has(.video-stage:not(.has-frame)) :is(.side-track,.player-message) { grid-column: 1; }
  .side-track { grid-area: 1 / 2; padding: 2px 0 4px; }
  .side-track .track-current { align-items: flex-start; }
  .side-track .track-current .icon-button { display: none; }
  .side-track .track-current strong { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; }
  .player-message { grid-area: 2 / 2; max-height: 113px; margin: 0; font-size: .78rem; }
  .player-message.is-error { padding: 5px; }
  .dock { grid-area: 4 / 1; grid-template: 44px 20px / minmax(0,1fr) auto 34px; gap: 0 3px; padding: 4px 8px; }
  .dock-now { grid-area: 1 / 1; gap: 6px; }
  .dock-now .cover { width: 41px; height: 27px; }
  .dock-now .palette-icon { width: 35px; height: 35px; }
  .dock-now .icon-button { display: none; }
  .dock-now strong { font-size: .86rem; }
  .dock-now small { font-size: .72rem; }
  .transport { display: contents; }
  .transport-buttons { grid-area: 1 / 2; gap: 2px; }
  .transport-buttons .icon-button { width: 31px; min-width: 31px; height: 35px; }
  .transport-buttons .mode-button { display: none; }
  .transport-buttons .play-button { width: 36px; height: 36px; }
  .transport-buttons .play-button svg { width: 22px; height: 22px; }
  .seek { grid-area: 2 / 1 / 3 / 4; margin: 0; }
  .dock-extra { display: none; }
  .mobile-controls { display: inline-flex !important; grid-area: 1 / 3; width: 32px; min-width: 32px; }
  .mobile-nav { display: grid !important; grid-template-columns: repeat(5,minmax(0,1fr)); grid-area: 5 / 1; padding: 0 4px env(safe-area-inset-bottom); background: #14121c; border-top: 1px solid var(--line); }
  .mobile-nav .nav-button { display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 0; padding: 3px 0; min-height: 0; border: 0; font-size: .69rem; }
  .mobile-nav .nav-button svg { width: 19px; height: 19px; }
  .mobile-nav .nav-button[aria-current="page"] { color: var(--accent); background: #21192f; }
  .toast { bottom: calc(var(--dock-height) + 64px + env(safe-area-inset-bottom)); }
  .hero { min-height: 245px; padding: 20px; }
  .hero h1 { font-size: clamp(2.45rem,8vw,3.95rem); }
  .quick-grid, .card-grid, .group-grid { gap: 8px; }
  .list-hero .palette-icon { width: 58px; height: 58px; }
  .list-hero .palette-icon svg { width: 27px; height: 27px; }
}
@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .quick-tile { display: grid; gap: 3px; min-height: 77px; }
  .quick-tile strong { font-size: .87rem; }
  .quick-tile small { font-size: .72rem; }
  .quick-tile .palette-icon { width: 31px; height: 29px; border-radius: 7px; }
  .quick-tile .palette-icon svg { width: 16px; height: 16px; }
  .card-grid, .group-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { min-height: 234px; }
  .hero::before { background-position: 70% center; }
  .hero::after { background: linear-gradient(90deg,#171126f7 0%,#191129d6 35%,#1a122a40 100%); }
  .section-heading { margin-bottom: 9px; }
  .home-section { margin-top: 21px; }
  .track-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 6px; padding-inline: 5px; }
  .track-row .cover { width: 46px; height: 28px; }
  .track-time { display: none; }
  .track-row .row-buttons .icon-button { width: 31px; min-width: 31px; }
  .track-row .row-buttons .desktop-row-action { display: none; }
  .dialog-layer { padding: 6px; }
  #app-dialog { padding: 12px; }
}
@media (max-width: 800px) and (max-height: 520px) {
  body.has-current .app-shell { grid-template: 46px minmax(0,1fr) 63px calc(41px + env(safe-area-inset-bottom)) / minmax(0,1fr) minmax(216px,37%); }
  body.has-current .dock { grid-template-rows: 35px 20px; }
  body.has-current .topbar, body.has-current .dock, body.has-current .mobile-nav { grid-column: 1 / 3; }
  body.has-current .workspace { grid-area: 2 / 1; }
  body.has-current .play-panel { grid-area: 2 / 2; display: flex; padding: 4px 5px; border-left: 1px solid var(--line); }
  body.has-current .dock { grid-row: 3; }
  body.has-current .mobile-nav { grid-row: 4; }
  .player-message { min-height: 0; }
}
@media (min-width: 801px) and (max-height: 490px) {
  :root { --top-height: 49px; --dock-height: 73px; }
  .play-panel { padding-top: 6px; }
  .play-panel-head { display: none; }
  .rail { gap: 7px; padding-top: 6px; overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
