@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url('/assets/manrope-cyrillic-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
:root {
  color-scheme: dark;
  --canvas: #11131a;
  --surface: #1b1f29;
  --field: #151922;
  --paper: #dce5ff;
  --ink: #eef1ff;
  --muted: #b8c2db;
  --line: #343e56;
  --field-border: #647294;
  --action: #a8c0ff;
  --action-hover: #c4d5ff;
  --action-ink: #131f40;
  --danger: #ffb1a1;
  --focus: var(--action);
  font: 16px/1.5 Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; }
main { flex: 1; position: relative; }
.shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.nav, .footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav { min-height: 76px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; font-size: 1.24rem; letter-spacing: -.05em; text-decoration: none; }
.masthead .nav { border-bottom: 0; }
.masthead { display: grid; grid-template-rows: auto 1fr; min-height: calc(100svh - clamp(86px, 13svh, 126px)); }
.home-page, .wall-page { isolation: isolate; }
.home-page::before, .wall-page::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #11131a66, #11131a1a 26%, #11131a48 100%), url('/sleeve/blue-waves.webp') center 53% / cover no-repeat;
}
.wall-page::before { opacity: .48; }
.nav-tools, .hero-actions, .status-actions, .inline { display: flex; gap: 12px 19px; align-items: center; flex-wrap: wrap; }
.link-button { color: var(--ink); border: 0; background: none; min-height: 44px; padding: 5px 0; font-weight: 700; font-size: .88rem; }
.link-button { text-decoration: underline; text-underline-offset: .27em; text-decoration-color: var(--muted); }
.link-button:hover { text-decoration-color: currentColor; }
.hero { display: grid; place-items: center; min-height: clamp(410px, 68svh, 650px); padding: 46px 0 56px; text-align: center; }
.hero-copy { min-width: 0; width: min(740px, calc(100% - 32px)); }
p, h1, h2, figure { margin: 0; }
.hero h1 { font-size: clamp(2.7rem, 6.1vw, 5.7rem); font-weight: 800; line-height: .96; letter-spacing: -.058em; color: var(--paper); overflow-wrap: anywhere; }
.hero h1 span { display: block; }
.lede { max-width: 42ch; margin: 20px auto 0; color: var(--muted); font-size: clamp(.99rem, 1.8vw, 1.12rem); }
.hero-actions { justify-content: center; margin-top: 26px; }
.desktop-drop-hint, .desktop-picker-label { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-actions { display: grid; justify-items: center; gap: 5px; }
  .screenshot-drop { width: min(390px, 100%); padding: 14px 18px; border: 1px dashed var(--muted); border-radius: 10px; }
  .screenshot-drop.is-over { border-style: solid; border-color: var(--action); background: #252f4b; }
  .desktop-drop-hint { display: block; margin-bottom: 10px; font-size: .9rem; font-weight: 700; }
  .desktop-picker-label { display: inline; }
  .mobile-picker-label { display: none; }
}
.hero-hint, .upload-status { margin-top: 9px; color: var(--muted); font-size: .83rem; }
.upload-status { color: var(--action); }
.upload-status.error { color: var(--danger); }
.upload-icon { position: relative; display: block; width: 17px; height: 16px; border: 1.5px solid currentColor; border-top: 0; flex: none; }
.upload-icon::before, .upload-icon::after { content: ''; position: absolute; left: 50%; }
.upload-icon::before { top: -1px; width: 7px; height: 7px; border-top: 1.5px solid; border-left: 1.5px solid; transform: translateX(-50%) rotate(45deg); }
.upload-icon::after { top: -2px; height: 11px; border-left: 1.5px solid; transform: translateX(-50%); }
.button { display: inline-flex; gap: 10px; align-items: center; justify-content: center; min-height: 46px; border-radius: 6px; padding: 9px 16px; border: 1px solid transparent; background: var(--paper); color: var(--canvas); font-weight: 800; font-size: .94rem; text-decoration: none; }
.button.primary { background: var(--action); color: var(--action-ink); padding-inline: 17px; }
.button.primary:hover:enabled { background: var(--action-hover); }
.button.secondary { background: var(--surface); border-color: var(--field-border); color: var(--ink); }
.button.outline { background: transparent; color: var(--paper); border-color: var(--action); }
.button.outline:hover { background: #7799e329; }
.entry-grid { width: min(740px, calc(100% - 32px)); margin: 0 auto; scroll-margin-top: 14px; }
.panel { margin: 0 0 25px; padding: clamp(19px, 4vw, 34px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; letter-spacing: -.045em; }
.review { margin-top: 15px; padding: 10px 12px; border-left: 2px solid var(--action); background: #252f4b; color: var(--ink); font-size: .91rem; }
fieldset { padding: 0; margin: 22px 0 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; color: var(--ink); font-weight: 800; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
label { min-width: 0; display: block; font-size: .88rem; font-weight: 680; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; margin-top: 5px; border: 1px solid var(--field-border); border-radius: 5px; background: var(--field); color: var(--ink); padding: 8px 11px; min-height: 46px; font-size: 1rem; }
textarea { resize: vertical; }
.twin-message { margin-top: 12px; }
input::placeholder { color: var(--muted); }
.optional { margin-top: 15px; }
summary { cursor: pointer; font-size: .9rem; font-weight: 700; color: var(--ink); padding: 9px 0; }
.optional .fields { margin-top: 9px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; }
.check input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--action); }
.submit { width: 100%; margin-top: 17px; justify-content: space-between; }
.help, .small, .muted { color: var(--muted); font-size: .85rem; }
.help, .output, #status-copy, #expiry, #status-output { margin-top: 9px; }
.output, .danger { color: var(--danger); }
.footer { padding: 10px 0 max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer .link-button { font-size: inherit; }
#personal-link, #challenge, #add-contact, .status-actions { margin-top: 16px; }
.inline { flex-wrap: nowrap; gap: 9px; }
.inline input { margin-top: 0; }
.inline button { flex: none; }
.match { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.match ul { margin-block: 8px; padding-inline-start: 18px; font-size: .86rem; }
.match a { overflow-wrap: anywhere; }
.match-message { margin-block: 10px; padding-inline-start: 10px; border-inline-start: 2px solid var(--line); }
.match-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
#add-contact fieldset { margin-bottom: 12px; }
dialog { width: min(540px, calc(100% - 32px)); max-height: 88vh; color: var(--ink); background: var(--surface); border: 1px solid var(--field-border); border-radius: 8px; padding: 21px; }
dialog::backdrop { background: #090807b8; }
dialog p, dialog label, dialog .button { margin-top: 10px; }
.dialog-close { float: right; }
.dialog-close button { background: none; color: var(--ink); border: 0; font-size: 1.6rem; width: 44px; min-height: 44px; }
@media (max-width: 780px) {
  .shell { width: calc(100% - 44px); }
  .hero { min-height: clamp(400px, 65svh, 540px); padding: 33px 0 52px; }
  .hero h1 { font-size: clamp(2.05rem, 10.1vw, 4.65rem); }
  .home-page::before, .wall-page::before { background-position: center, 60% bottom; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .nav { min-height: 62px; }
  .nav-tools { gap: 8px; }
  .nav-tools .link-button { font-size: .8rem; }
  .hero { min-height: 0; padding: 48px 0 78px; }
  .lede { margin-top: 14px; }
  .hero-actions { display: grid; gap: 3px; margin-top: 18px; }
  .hero-actions .button { width: 100%; }
  .hero-actions .link-button { justify-self: center; }
  .hero-hint { margin-top: 3px; }
  .panel { padding: 16px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .footer { gap: 15px; font-size: .75rem; }
}

.my-poster { margin-block: 25px; padding-block: 16px; border-block: 1px solid var(--line); }
.my-poster h3 { margin: 0 0 12px; }
.poster-layout { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 20px; align-items: start; }
#poster-preview { display: block; width: 100%; height: auto; }
.poster-actions { display: grid; justify-items: start; gap: 7px; }
.poster-actions .help { margin: 0; }
@media (max-width: 470px) {
  .poster-layout { grid-template-columns: minmax(0, 145px) minmax(0, 1fr); gap: 12px; }
}

.wall { padding-block: 36px 64px; }
.wall-intro { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: end; gap: clamp(20px, 5vw, 65px); margin-bottom: 36px; }
.wall-intro h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .96; letter-spacing: -.05em; }
.wall-intro p { margin-top: 18px; color: var(--muted); max-width: 39ch; }
.wall-intro .status-actions { margin-top: 12px; }
.wall-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin-top: 12px; }
.wall-filters select {
  appearance: none; padding-inline: 8px 25px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: right 13px center, right 8px center; background-size: 5px 5px; background-repeat: no-repeat;
}
.world { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: clamp(12px, 5vw, 65px); padding-block: 10px 64px; }
.world h2 { max-width: 20ch; font-size: clamp(2.05rem, 4vw, 3.65rem); }
.world p { max-width: 36ch; margin-block: 16px; color: var(--muted); }
.world .link-button { display: inline-flex; align-items: center; }
.world-globe { text-align: center; background: radial-gradient(ellipse at 48% 49%, #293a70 0%, #171f37 30%, transparent 65%); }
#world-globe { width: min(100%, 520px); aspect-ratio: 1; height: auto; display: block; margin-inline: auto; cursor: grab; touch-action: pan-y; }
#world-globe:active { cursor: grabbing; }
.wall-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 20px; margin-block: 16px; }
.wall-results article { min-width: 0; display: grid; align-content: start; gap: 10px; }
.wall-results .button { text-align: center; }
.wall-poster { display: grid; align-items: center; aspect-ratio: 2 / 3; background: var(--surface); color: var(--muted); text-align: center; overflow: hidden; border-radius: 6px; }
.wall-poster canvas { display: block; width: 100%; height: auto; }
.poster-teaser { display: grid; justify-items: center; gap: 18px; padding-block: 38px 80px; text-align: center; }
.poster-teaser h2 { font-size: clamp(2.05rem, 4vw, 3.65rem); }
.poster-stack { width: min(100%, 590px); }
.poster-fan { position: relative; aspect-ratio: 1.65; }
.poster-fan img { width: 35%; height: auto; position: absolute; top: 50%; left: 50%; border-radius: 4px; box-shadow: 0 9px 22px #080915b8; }
.poster-fan img:nth-child(1) { transform: translate(-120%, -44%) rotate(-12deg); }
.poster-fan img:nth-child(2) { z-index: 1; transform: translate(-50%, -52%); }
.poster-fan img:nth-child(3) { transform: translate(20%, -44%) rotate(12deg); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .poster-fan img { transition: transform 230ms ease-out; }
  .poster-fan:hover img:nth-child(1) { transform: translate(-129%, -46%) rotate(-14deg); }
  .poster-fan:hover img:nth-child(2) { transform: translate(-50%, -55%); }
  .poster-fan:hover img:nth-child(3) { transform: translate(29%, -46%) rotate(14deg); }
}
.track-manager { margin-block: 20px; padding-block: 10px 15px; border-block: 1px solid var(--line); }
.track-form { margin-top: 12px; }
.track-form + .track-form { margin-top: 18px; }
.track-form .status-actions { margin-top: 8px; }
.listening-room { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(18px, 5vw, 64px); padding-block: 52px 72px; }
.listening-heading h2 { font-size: clamp(2.05rem, 4vw, 3.65rem); }
.listening-heading p { max-width: 24ch; margin-top: 12px; color: var(--muted); }
.listening-heading .outline { margin-top: 20px; }
#radio-entry-hint .link-button { margin-inline-end: 14px; }
.track-window { min-width: 0; }
.track-scroll { max-height: 390px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; padding: 4px 8px 26px 4px; }
.track-scroll.has-more-below:not(:focus-within) { mask-image: linear-gradient(#000 84%, transparent); }
.track-list { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.track-row { position: relative; overflow: hidden; border: 1px solid #879bd24a; border-radius: 12px; background: linear-gradient(120deg, #53679831, #28315062); backdrop-filter: blur(16px); }
.track-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.track-art { position: relative; flex: 0 0 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 7px; color: var(--action); background: #131e34; }
.track-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.track-names { flex: 1; min-width: 0; display: grid; }
.track-names strong, .track-names span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-names span { color: var(--muted); font-size: .79rem; }
.track-stats { display: flex; align-items: center; gap: 8px; }
.track-count { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.track-line svg { width: 17px; height: 17px; flex: none; }
.track-play, .track-external, .track-like { flex: none; min-height: 44px; padding: 0 7px; border: 0; background: transparent; color: var(--paper); }
.track-play, .track-external { display: grid; place-items: center; min-width: 44px; border-radius: 7px; }
.track-play { background: #8facf434; }
.track-external:hover, .track-play:hover, .track-like:hover { background: #a4baff32; }
.track-like { border-radius: 7px; }
.track-like[aria-pressed=true] { color: #ff9db7; }
.track-like[aria-pressed=true] svg { fill: currentColor; }
.track-timeline { display: grid; align-items: center; min-height: 20px; margin-inline: 10px; }
.track-timeline > * { grid-area: 1 / 1; }
.track-progress { display: block; width: 100%; height: 3px; border: 0; border-radius: 2px; overflow: hidden; appearance: none; background: #7d93bc24; color: var(--action); }
.track-progress::-webkit-progress-bar { background: #7d93bc24; }
.track-progress::-webkit-progress-value { background: var(--action); }
.track-progress::-moz-progress-bar { background: var(--action); }
.track-timeline .track-seek { display: block; appearance: none; margin: 0; padding: 0; width: 100%; height: 20px; min-height: 0; border: 0; background: transparent; cursor: ew-resize; }
.track-seek:disabled { visibility: hidden; }
.track-seek::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--action); }
.track-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--action); }
.track-widget .help { margin: 0; padding: 0 10px 8px; }
.track-widget .help:empty { display: none; }
.soundcloud-engine { position: fixed; inset: 0 auto auto 0; width: min(390px, 100vw); height: 166px; border: 0; opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .wall-intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .wall-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall-filters label:first-child { grid-column: 1 / -1; }
  .wall-results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
  .wall-results .button { font-size: .79rem; padding-inline: 6px; }
  .poster-teaser { padding-block: 25px 55px; }
  .world { grid-template-columns: minmax(0, 1fr); padding-block: 6px 44px; }
  .world-globe { grid-row: 1; }
  #world-globe { width: min(100%, 380px); }
  .listening-room { grid-template-columns: minmax(0, 1fr); padding-block: 28px 48px; }
  .track-line { gap: 6px; padding-inline: 7px; }
  .track-art { flex-basis: 38px; height: 38px; }
  .track-names strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.16; }
  .track-stats { gap: 4px; }
  .track-line svg { width: 15px; height: 15px; }
  .track-count { gap: 3px; }
  .track-external, .track-play { min-width: 36px; }
  .track-like { padding-inline: 3px; }
  .nav .nav-tools .link-button { font-size: .72rem; }
}
