/* Экраны: главная, станции, треки, библиотека, подборки, путешествие, «Моё», плейлисты, вход. */

/* заголовки и общий ритм */
.h-hero { font-size: clamp(2.3rem, 5.6vw, 4.5rem); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: var(--paper); text-shadow: 0 0 40px rgba(255, 179, 71, .22), 0 2px 0 rgba(0, 0, 0, .5); }
.h-hero.sm { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
.h-lg { font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 600; }
.h-md { font-size: 1.1rem; font-weight: 600; }
.h-sm { font-size: .95rem; font-weight: 600; }
.small { font-size: .8125rem; }
.hero-lead { max-width: 62ch; margin-top: 14px; color: var(--mute); font-size: 1.0625rem; line-height: 1.6; }
.page-head { margin-bottom: 28px; max-width: 880px; }
.sec { margin-top: clamp(40px, 6vw, 72px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-note { margin: -6px 0 16px; max-width: 70ch; font-size: .9rem; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; text-decoration: none; color: var(--brass); }
.more:hover { color: var(--amber-hot); }
.more .i { width: 1em; height: 1em; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--mute); text-decoration: none; font-size: .9rem; }
.back:hover { color: var(--amber-hot); }
.rot-l { transform: rotate(-90deg); }
.head-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.head-acts.solo { margin-bottom: 14px; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.pad-l { padding: 28px 26px 24px; display: grid; gap: 14px; }
.pad-l .h-md { padding-right: 36px; }
.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0; width: 100%; }
.btn.big { --h: 52px; padding: 0 1.6em; font-size: 1rem; border-radius: 14px; }
.spinner.big { width: 34px; height: 34px; border-width: 3px; }
.ver { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); color: #1c1005; vertical-align: middle; }
.ver .i { width: 10px; height: 10px; stroke-width: 3; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 4px 0 0; align-items: center; }
.keys dt { margin: 0; } .keys dd { margin: 0; color: var(--mute); font-size: .9rem; }
kbd { display: inline-block; min-width: 28px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--brass-lo); background: #2a1c0e; font: 500 .8rem var(--f-mono); color: var(--amber-hot); box-shadow: 0 2px 0 #0f0a05; text-align: center; white-space: nowrap; }

/* главная */
.home-hero { padding: clamp(6px, 3vh, 34px) 4px clamp(20px, 3.4vh, 36px); }
.home-hero .hero-lead { font-size: clamp(1rem, 1.4vw, 1.125rem); min-height: 3.2em; }
.rx-slot { position: relative; }
.hist-sec { margin-top: 18px; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(23, 16, 10, .72); }
.hist-sec[hidden] { display: none; }
.hist-head { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; margin-bottom: 10px; }
.hist { display: grid; gap: 2px; }
.hist li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 12px; }
.hist li + li { border-top: 1px solid var(--line-soft); }
.hist li.now { background: rgba(255, 179, 71, .08); }
.hist .cv { width: 40px; height: 40px; border-radius: 9px; }
.hist-t { display: grid; min-width: 0; line-height: 1.3; }
.hist-t b { font-weight: 500; font-size: .92rem; }
.hist-t span { font-size: .82rem; }
.hist-when { font-size: .72rem; white-space: nowrap; }
.hist-note { margin: 12px 4px 0; font-size: .7rem; color: var(--faint); line-height: 1.5; }
.mood-grid, .ed-grid { display: grid; gap: 14px; }
.mood-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.ed-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.mood { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 148px; padding: 18px; border-radius: 20px; text-decoration: none; color: var(--paper); overflow: hidden; isolation: isolate;
  border: 1px solid color-mix(in oklab, var(--hue) 35%, #3a2a14);
  background: radial-gradient(130% 120% at 100% 0%, color-mix(in oklab, var(--hue) 34%, transparent), transparent 62%), linear-gradient(180deg, rgba(34, 23, 14, .9), rgba(17, 11, 7, .92));
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.mood:hover { transform: translateY(-3px); border-color: var(--hue); box-shadow: 0 16px 36px -14px color-mix(in oklab, var(--hue) 60%, transparent); color: var(--paper); }
.mood-ic { position: absolute; right: 12px; top: 10px; width: 66px; height: 66px; fill: none; stroke: var(--hue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; z-index: -1; filter: drop-shadow(0 0 10px color-mix(in oklab, var(--hue) 55%, transparent)); }
.mood-t { display: grid; gap: 4px; }
.mood-t b { font: 600 1.25rem var(--f-display); }
.mood-t span { color: var(--mute); font-size: .88rem; max-width: 22ch; }
.mood-n { font-size: .72rem; color: var(--faint); }
.ed { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 14px 16px 16px; border-radius: 18px; text-decoration: none; color: var(--paper); border: 1px solid var(--line); background: rgba(23, 16, 10, .66); transition: transform .25s var(--ease), border-color .25s; }
.ed:hover { transform: translateY(-3px); border-color: var(--hue); color: var(--paper); }
.ed-art { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-bottom: 8px; }
.ed-art i { width: 10px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--hue), color-mix(in oklab, var(--hue) 30%, #1a1008)); }
.ed-art i:nth-child(1) { height: 55%; } .ed-art i:nth-child(2) { height: 100%; } .ed-art i:nth-child(3) { height: 72%; }
.ed:hover .ed-art i { animation: bar .9s ease-in-out infinite alternate; }
.ed:hover .ed-art i:nth-child(2) { animation-delay: .15s; } .ed:hover .ed-art i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { to { transform: scaleY(.45); } }
.ed-art i { transform-origin: bottom; }
.ed-t { font: 600 1.02rem/1.25 var(--f-display); }
.ed-b { color: var(--mute); font-size: .86rem; }
.ed-n { font-size: .72rem; color: var(--faint); }
.wait-note { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: .75rem; color: var(--faint); }
.pick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pick-meta { margin-top: 12px; font-size: .75rem; color: var(--faint); }

/* фильтры */
.filters { display: grid; gap: 12px; margin-bottom: 18px; }
.f-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.f-search { position: relative; display: block; }
.f-search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; z-index: 1; }
.f-search .input { padding-left: 44px; }
.f-sel { display: block; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.chips-row::-webkit-scrollbar { display: none; }
.chip-sep { flex: none; width: 1px; margin: 6px 4px; background: var(--line); }
.chip.reset { color: var(--amber-hot); border-style: dashed; }

/* аватары, обложки */
.av { position: relative; display: block; flex: none; width: 54px; height: 54px; border-radius: 13px; overflow: hidden; background: linear-gradient(145deg, #3a2a16, #17100a); box-shadow: inset 0 0 0 1px rgba(200, 161, 90, .28); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #f4ead6; }
.av-mono { position: absolute; inset: 0; display: none; place-items: center; font: 700 1rem var(--f-display); color: hsl(var(--h) 90% 78%); background: linear-gradient(150deg, hsl(var(--h) 45% 24%), hsl(var(--h) 55% 11%)); text-shadow: 0 0 12px hsl(var(--h) 90% 55% / .7); }
.av.noimg .av-mono { display: grid; }
.av.noimg img { display: none; }
.cv { position: relative; display: block; flex: none; width: 52px; height: 52px; border-radius: 11px; overflow: hidden; background: #1a1209 url(/img/vinyl-sleeve.webp) center / cover; box-shadow: inset 0 0 0 1px rgba(200, 161, 90, .25); }
.cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv.noimg { filter: hue-rotate(var(--hue, 0deg)); }
.cv.sm { width: 40px; height: 40px; border-radius: 9px; }

/* станции */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.st { position: relative; display: flex; align-items: center; border-radius: 18px; border: 1px solid var(--line-soft); background: rgba(23, 16, 10, .66);
  transition: border-color .2s, background .2s, box-shadow .3s, transform .2s var(--ease); animation: card-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.st:hover { border-color: var(--brass-lo); background: rgba(34, 23, 14, .78); }
.st.cur { border-color: var(--amber); background: linear-gradient(90deg, rgba(255, 179, 71, .12), rgba(23, 16, 10, .7)); box-shadow: 0 0 0 1px rgba(255, 179, 71, .22), 0 0 28px -6px rgba(255, 179, 71, .35); }
.st-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 80px; padding: 11px 6px 11px 12px; text-align: left; border: 0; background: none; color: inherit; border-radius: 18px; }
.st-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.st-t b { font-weight: 600; font-size: .97rem; line-height: 1.25; }
.st.cur .st-t b { color: var(--amber-hot); }
.st-sub { font-size: .82rem; color: var(--mute); }
.cc { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 4px; background: rgba(200, 161, 90, .16); color: var(--amber-hot); font: 500 .68rem/1.55 var(--f-mono); vertical-align: 1px; }
.st-tags { font: 400 .72rem var(--f-mono); color: var(--faint); }
.st-acts { display: flex; align-items: center; padding-right: 4px; }
.eq { display: none; align-items: flex-end; gap: 2px; width: 18px; height: 16px; flex: none; margin-right: 2px; }
.eq i { flex: 1; background: var(--amber); border-radius: 1px; height: 100%; transform-origin: bottom; animation: eq .8s ease-in-out infinite alternate; box-shadow: 0 0 6px rgba(255, 179, 71, .6); }
.eq i:nth-child(2) { animation-delay: .25s; animation-duration: .65s; } .eq i:nth-child(3) { animation-delay: .1s; animation-duration: .95s; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.cur .eq { display: flex; }
.cur:not(.live) .eq i { animation-play-state: paused; transform: scaleY(.4); }

/* треки */
.tr-list { display: grid; gap: 4px; }
.tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 10px; border-radius: 16px; border: 1px solid transparent; transition: background .2s, border-color .2s; animation: card-in .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 24ms); }
.tr:hover { background: rgba(34, 23, 14, .6); border-color: var(--line-soft); }
.tr.cur { background: linear-gradient(90deg, rgba(255, 179, 71, .12), transparent); border-color: rgba(255, 179, 71, .35); }
.tr-main { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 6px 4px 6px 8px; text-align: left; border: 0; background: none; color: inherit; border-radius: 14px; }
.tr-t { display: grid; min-width: 0; flex: 1; gap: 1px; }
.tr-t b { font-weight: 500; font-size: .97rem; }
.tr.cur .tr-t b { color: var(--amber-hot); }
.tr-sub { font-size: .83rem; color: var(--mute); }
.tr-meta { display: flex; align-items: center; gap: 12px; font-size: .75rem; color: var(--faint); white-space: nowrap; }
.tr-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tr-meta .i { width: .8em; height: .8em; }
.tr-acts { display: flex; align-items: center; padding-right: 4px; }

/* библиотека */
.lib-search { display: flex; gap: 10px; margin: 24px 0 14px; max-width: 760px; }
.lib-field { position: relative; flex: 1; display: block; }
.lib-field .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--amber); z-index: 1; pointer-events: none; }
.lib-field .input { min-height: 52px; padding-left: 46px; font-size: 1.0625rem; border-radius: 14px; }
.lib-search .btn { --h: 52px; }
.lib-note { margin-top: 28px; font-size: .72rem; color: var(--faint); line-height: 1.6; max-width: 90ch; }
.lib-note.top { margin: 0 0 16px; }
.lib-note a { color: var(--brass); }
.artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-bottom: 30px; }
.artist { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(23, 16, 10, .66); text-decoration: none; color: var(--paper); transition: border-color .2s, transform .2s var(--ease); }
.artist:hover { border-color: var(--brass); transform: translateY(-2px); color: var(--paper); }
.artist img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: #2a1c0e; }
.artist-t { display: grid; min-width: 0; }
.artist-head { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 30px; flex-wrap: wrap; }
.artist-ava { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 35% 30%, #5a4020, #1a1008); box-shadow: 0 0 0 3px #0d0906, 0 0 0 4px var(--brass-lo), 0 0 36px rgba(255, 179, 71, .2); flex: none; }
.ext-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* путешествие */
.jr-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.map-wrap { position: relative; border-radius: 22px; border: 1px solid var(--brass-lo); background: radial-gradient(90% 90% at 50% 40%, #1c130a, #0c0805); padding: 14px; box-shadow: inset 0 0 60px rgba(0, 0, 0, .6), 0 20px 50px -20px #000; overflow: hidden; }
.map-load { min-height: 320px; }
.map { width: 100%; height: auto; }
.map .grid polyline { fill: none; stroke: rgba(200, 161, 90, .1); stroke-width: .6; }
.ctry { fill: #1f160d; stroke: rgba(200, 161, 90, .22); stroke-width: .5; transition: fill .2s; }
.ctry.has { fill: rgba(255, 179, 71, var(--a)); stroke: rgba(255, 216, 154, .35); cursor: pointer; }
.ctry.has:hover, .ctry.has:focus-visible { fill: rgba(255, 216, 154, .95); outline: none; }
.ctry.sel { fill: rgba(255, 216, 154, .92); stroke: #fff2d0; stroke-width: 1.1; }
.ctry.flash { fill: #ffe3b0; }
.dot { fill: #fff1cc; stroke: rgba(255, 179, 71, .55); stroke-width: 2.4; cursor: pointer; paint-order: stroke; transition: r .15s; animation: twinkle 3.4s ease-in-out infinite; }
.dot:hover { r: 4; }
.dots circle:nth-child(3n) { animation-delay: 1.1s; } .dots circle:nth-child(3n+1) { animation-delay: 2.2s; }
@keyframes twinkle { 50% { opacity: .55; } }
.ring { fill: none; stroke: var(--needle); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 1.6s ease-out 3; opacity: 0; }
.ring.r2 { animation-delay: .5s; }
@keyframes ring { 0% { transform: scale(.4); opacity: .95; } 100% { transform: scale(7); opacity: 0; } }
.map-tip { position: absolute; z-index: 5; padding: 5px 10px; border-radius: 8px; background: #1a1008; border: 1px solid var(--brass-lo); font-size: .8125rem; pointer-events: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 8px 6px 0; font-size: .68rem; color: var(--faint); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg1 { background: rgba(255, 179, 71, .2); } .lg2 { background: rgba(255, 179, 71, .78); } .lg3 { width: 8px; height: 8px; border-radius: 50%; background: #fff1cc; box-shadow: 0 0 8px var(--amber); }
.jr-side { display: grid; gap: 16px; }
.jr-card, .jr-pass { padding: 20px; border-radius: 20px; border: 1px solid var(--line); background: rgba(23, 16, 10, .72); }
.jr-empty { display: grid; justify-items: center; gap: 14px; padding: 10px 0; text-align: center; color: var(--mute); }
.jr-empty .i-big { width: 44px; height: 44px; color: var(--amber); }
.jr-empty.err .i-big { color: var(--needle); }
.jr-found { display: grid; gap: 12px; }
.jr-stamp { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; border: 2px dashed var(--amber); color: var(--amber); font: 600 1.6rem var(--f-mono); transform: rotate(-8deg); box-shadow: inset 0 0 0 5px rgba(255, 179, 71, .08), 0 0 24px rgba(255, 179, 71, .18); text-shadow: 0 0 12px rgba(255, 179, 71, .5); animation: stamp .5s var(--spring) both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(1.8); opacity: 0; } }
.jr-where { font-size: .75rem; color: var(--amber-hot); }
.jr-st { display: flex; align-items: center; gap: 12px; }
.jr-st-t { display: grid; min-width: 0; }
.jr-st-t b { font-size: 1.05rem; }
.pass { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.stamp { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: 10px; border: 1px dashed var(--brass-lo); background: rgba(255, 179, 71, .06); color: var(--amber-hot); font-size: .78rem; transform: rotate(var(--r, 0deg)); transition: background .2s, transform .2s; }
.stamp:nth-child(3n) { --r: -2deg; } .stamp:nth-child(3n+1) { --r: 1.5deg; }
.stamp:hover { background: rgba(255, 179, 71, .16); transform: rotate(0) scale(1.05); }

/* «Моё» */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); padding-bottom: 0; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px 12px 0 0; text-decoration: none; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--paper); }
.tab[aria-current='page'] { color: var(--amber-hot); border-bottom-color: var(--amber); background: linear-gradient(180deg, transparent, rgba(255, 179, 71, .08)); }
.tab-n { font-size: .72rem; color: var(--faint); }
.tab-n:empty { display: none; }
.air-list { display: grid; gap: 8px; }
.air { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line-soft); background: rgba(23, 16, 10, .66); }
.air-when { font-size: .72rem; color: var(--faint); }
.air-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.invite { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; align-items: center; }
.invite-art { aspect-ratio: 4 / 5; border-radius: 24px; background: linear-gradient(180deg, rgba(13, 9, 6, .1), rgba(13, 9, 6, .55)), url(/img/login-dial.webp) center / cover; border: 1px solid var(--brass-lo); box-shadow: 0 24px 60px -20px #000, 0 0 50px rgba(255, 179, 71, .15); }
.pl-layout { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.pl-side { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 14px); }
.pl-new { display: flex; gap: 8px; }
.pl-list { display: grid; gap: 4px; }
.pl-row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 14px; text-align: left; border-radius: 12px; border: 1px solid transparent; background: rgba(23, 16, 10, .55); color: var(--paper); }
.pl-row span:first-child { flex: 1; min-width: 0; }
.pl-row:hover { border-color: var(--brass-lo); }
.pl-row.on { border-color: var(--amber); background: rgba(255, 179, 71, .1); color: var(--amber-hot); }
.pl-row .i { width: 1em; height: 1em; color: var(--brass); }
.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pl-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pl-share { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 0 20px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(23, 16, 10, .5); }
.pl-link { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; min-width: 0; }
.pl-link .input { min-height: 38px; font-size: .85rem; font-family: var(--f-mono); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #2a1c0e; border: 1px solid var(--brass-lo); transition: background .25s, border-color .25s; flex: none; }
.sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6e2b0, #a8873f); transition: transform .3s var(--spring), background .25s; box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.switch input:checked + .sw { background: rgba(255, 179, 71, .3); border-color: var(--amber); }
.switch input:checked + .sw::after { transform: translateX(18px); background: radial-gradient(circle at 35% 30%, #fff1cc, #ffb347); box-shadow: 0 0 12px var(--amber); }
.switch input:focus-visible + .sw { outline: 2px solid var(--amber); outline-offset: 3px; }
.pl-items { display: grid; gap: 4px; counter-reset: n; }
.pl-it { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 2px 6px 2px 2px; border-radius: 14px; border: 1px solid transparent; background: rgba(23, 16, 10, .5); transition: background .2s, box-shadow .2s; }
.pl-it:hover { background: rgba(34, 23, 14, .7); }
.pl-it.dragging { z-index: 5; background: #2a1c0e; border-color: var(--amber); box-shadow: 0 16px 36px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 179, 71, .3); cursor: grabbing; }
.pl-items.ro .pl-it { grid-template-columns: minmax(0, 1fr); }
.grip { display: grid; place-items: center; width: 34px; height: 44px; border: 0; background: none; color: var(--faint); cursor: grab; touch-action: none; border-radius: 10px; }
.grip:hover, .grip:focus-visible { color: var(--amber-hot); }
.pl-play { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 60px; padding: 4px; text-align: left; border: 0; background: none; color: inherit; border-radius: 12px; }

/* вход */
.modal.auth-modal { width: min(100%, 860px); }
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 440px; }
.auth-art { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px; border-radius: 22px 0 0 22px; color: var(--paper);
  background: linear-gradient(180deg, rgba(13, 9, 6, .15) 20%, rgba(13, 9, 6, .88)), url(/img/login-dial.webp) center / cover; }
.auth-logo { font-size: 2rem; letter-spacing: .16em; color: var(--brass-hi); text-shadow: 0 0 24px rgba(255, 179, 71, .5); }
.auth-art p { color: var(--mute); max-width: 26ch; }
.auth-form { display: grid; align-content: center; gap: 14px; padding: 30px 28px; }
.auth-form form { display: grid; gap: 12px; }
.auth-reason { padding: 10px 12px; border-radius: 12px; background: rgba(255, 179, 71, .09); border: 1px solid rgba(255, 179, 71, .3); color: var(--amber-hot); font-size: .9rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: #0e0905; border: 1px solid var(--line); }
.seg button { min-height: 40px; border: 0; border-radius: 10px; background: none; color: var(--mute); font-weight: 500; }
.seg button[aria-selected='true'] { background: linear-gradient(180deg, #ffd089, #ffb347); color: #1c1005; box-shadow: 0 0 16px rgba(255, 179, 71, .35); }
.login-page { max-width: 860px; margin: 4vh auto 0; border-radius: 22px; border: 1px solid var(--brass-lo); background: linear-gradient(180deg, #261a0e, #17100a); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: hidden; }
.prof { gap: 12px; }
.prof form { display: grid; gap: 10px; }

/* прочее */
.qlist { display: grid; gap: 4px; margin: 6px 0 0; }
.qlist li { display: flex; align-items: center; gap: 4px; border-radius: 12px; }
.qlist li.cur { background: rgba(255, 179, 71, .12); }
.q-play { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px; text-align: left; background: none; border: 0; color: inherit; border-radius: 12px; }
.q-t { display: grid; flex: 1; min-width: 0; font-size: .9rem; }
.modal.wide { width: min(100%, 620px); }
.pl-pick { display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.pl-b { width: 100%; justify-content: space-between; }
.pl-new[data-new] { margin-top: 4px; }
.nf { display: grid; gap: 14px; max-width: 560px; margin: 6vh auto 0; }
.nf-code { font-size: clamp(4rem, 14vw, 8rem); text-align: center; color: transparent; -webkit-text-stroke: 2px var(--brass); letter-spacing: .06em; text-shadow: 0 0 40px rgba(255, 179, 71, .3); }

/* адаптив */
@media (max-width: 1080px) {
  .jr-grid { grid-template-columns: 1fr; }
  .pl-layout { grid-template-columns: 1fr; }
  .pl-side { position: static; }
}
@media (max-width: 760px) {
  .f-row { grid-template-columns: 1fr 1fr; }
  .f-search { grid-column: 1 / -1; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tr-meta { display: none; }
  .air { grid-template-columns: auto minmax(0, 1fr); }
  .air-acts { grid-column: 1 / -1; justify-content: flex-start; }
  .air-acts .btn span { display: inline; }
  .invite { grid-template-columns: 1fr; }
  .invite-art { aspect-ratio: 16 / 9; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { display: none; }
  .auth-form { padding: 28px 20px 22px; }
  .lib-search { flex-direction: column; }
  .lib-search .btn { width: 100%; }
  .hist li { grid-template-columns: 40px minmax(0, 1fr) auto auto; }
  .hist-when { display: none; }
  .artist-ava { width: 96px; height: 96px; }
  .tabs { gap: 0; }
  .tab { flex: 1; justify-content: center; padding: 0 6px; min-height: 44px; font-size: .88rem; }
  .tab .i { display: none; }
}
@media (max-width: 560px) {
  .mood-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mood { min-height: 124px; padding: 14px; gap: 10px; }
  .mood-t b { font-size: 1.05rem; }
  .mood-t span { display: none; }
  .mood-ic { width: 44px; height: 44px; right: 8px; top: 8px; }
  .mood-n { font-size: .66rem; }
  .ed-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ed { padding: 12px; }
  .ed-b { display: none; }
}
@media (hover: none) { .st:hover, .mood:hover, .ed:hover, .artist:hover { transform: none; } }

/* тач-экраны: цели не меньше 44 px */
@media (pointer: coarse) {
  .btn.sm, .vfd-btn { --h: 44px; }
  .icon-btn.sm { width: 44px; height: 44px; }
  .chip { min-height: 44px; padding: 0 1.1em; }
  .key, .brand, .seg button, .tab { min-height: 44px; }
  .more, .back { min-height: 44px; display: inline-flex; align-items: center; }
  .pop-i { min-height: 48px; }
  .grip { width: 44px; }
  .acct-btn { min-height: 44px; }
}
