:root {
    color-scheme: dark;
    --bg: #090a0a;
    --bg-elevated: #0f1110;
    --surface: #131514;
    --surface-strong: #191b1a;
    --text: #f4f2ea;
    --muted: #92958f;
    --muted-2: #676a67;
    --line: #2a2d2b;
    --line-strong: #3a3e3b;
    --lime: #c7f400;
    --lime-ink: #0b0c08;
    --coral: #ff5a45;
    --warning: #f0b800;
    --display: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Narrow", sans-serif;
    --ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --header-h: 92px;
    --player-h: 96px;
    --gutter: clamp(20px, 4.4vw, 68px);
    --radius: 10px;
    --fast: 160ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; padding-bottom: var(--player-h); background: var(--bg); color: var(--text); font: 400 16px/1.45 var(--ui); text-rendering: optimizeLegibility; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }

.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; }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.page-shell { min-height: calc(100vh - var(--header-h) - var(--player-h)); }

.site-header { position: relative; z-index: 50; height: var(--header-h); display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 32px; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); background: rgba(9, 10, 10, .98); }
.brand { display: inline-flex; width: max-content; flex-direction: column; color: var(--text); font: 900 27px/.75 var(--display); letter-spacing: -.03em; }
.brand span:last-child { margin-top: 8px; }
.brand i { color: var(--lime); font-style: normal; }
.main-nav { display: flex; align-self: stretch; gap: 48px; }
.main-nav a { position: relative; display: grid; place-items: center; color: #d6d5cf; font-size: 15px; font-weight: 650; }
.main-nav a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--lime); content: ""; transform: scaleX(0); transition: transform var(--fast); }
.main-nav a:hover, .main-nav a.is-active { color: var(--lime); }
.main-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; height: 100%; align-items: center; }
.account-link, .cart-trigger, .menu-trigger { display: inline-flex; height: 48px; align-items: center; justify-content: center; gap: 10px; background: transparent; cursor: pointer; }
.account-link { padding: 0 26px; border-right: 1px solid var(--line); font-size: 15px; font-weight: 650; }
.cart-trigger { min-width: 82px; color: var(--lime); }
.cart-trigger span { min-width: 18px; font-size: 16px; font-weight: 800; }
.menu-trigger { display: none; width: 48px; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px; padding: 0 25px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; cursor: pointer; transition: transform var(--fast), background var(--fast), color var(--fast); }
.button:hover { transform: translateY(-2px); }
.button--lime { background: var(--lime); color: var(--lime-ink); }
.button--lime:hover { background: #d6ff16; }
.button--coral { background: var(--coral); color: #fff; }
.button--wide { width: 100%; }
.text-button { padding: 6px 0; background: transparent; color: var(--lime); font-size: 14px; font-weight: 700; cursor: pointer; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; background: transparent; color: var(--text); cursor: pointer; }

/* Catalog hero */
.catalog-hero { position: relative; min-height: 360px; overflow: hidden; border-bottom: 1px solid var(--line); background: #080909; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -1; background: url("/assets/images/hero-unformal.png") center right / cover no-repeat; }
.hero-copy { position: relative; z-index: 2; width: min(730px, 57vw); padding: 31px 0 28px var(--gutter); }
.hero-copy h1 { max-width: 750px; margin-bottom: 12px; font: 400 clamp(55px, 5.2vw, 82px)/.93 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.hero-copy p { margin-bottom: 20px; color: #d0d0ca; font-size: clamp(16px, 1.35vw, 20px); }
.hero-stamp { position: absolute; top: 0; right: 18px; bottom: 0; display: flex; width: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 22px; border-left: 1px solid rgba(244,242,234,.24); color: #bbbcb8; font-size: 11px; letter-spacing: .18em; writing-mode: vertical-rl; }
.hero-stamp i { width: 1px; height: 36px; background: var(--lime); }

.catalog-section { padding: 0 24px 28px; }
.catalog-filters { display: grid; grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, .7fr)) auto; gap: 18px; align-items: end; padding: 16px calc(var(--gutter) - 24px) 12px; border-bottom: 1px solid var(--line); }
.search-field { display: flex; height: 54px; align-items: center; gap: 13px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(15,17,16,.82); }
.search-field .icon { color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; }
.search-field input::placeholder { color: var(--muted); }
.select-field { position: relative; display: grid; gap: 4px; }
.select-field > span { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.select-field select { width: 100%; height: 36px; padding: 0 36px 0 0; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; appearance: none; }
.select-field .icon { position: absolute; right: 4px; bottom: 8px; width: 18px; height: 18px; pointer-events: none; }
.filter-reset { display: inline-flex; height: 44px; align-items: center; gap: 9px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 3px; background: transparent; color: #d8d7d1; font-size: 13px; cursor: pointer; }
.filter-reset:hover { border-color: var(--lime); color: var(--lime); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; padding: 15px calc(var(--gutter) - 24px) 8px; }
.catalog-heading h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.catalog-heading span { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.track-list { border: 1px solid var(--line); }
.track-list-head { display: grid; grid-template-columns: 60px 64px 56px minmax(160px, 220px) minmax(190px, 1fr) minmax(210px, 300px) 190px; height: 30px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.track-list-head span:nth-child(1) { grid-column: 1; text-align: center; }
.track-list-head span:nth-child(2) { grid-column: 2 / 5; padding-left: 20px; }
.track-list-head span:nth-child(3) { grid-column: 5; }
.track-list-head span:nth-child(4) { grid-column: 6; }
.track-list-head span:nth-child(5) { grid-column: 7; }
.track-row { position: relative; display: grid; grid-template-columns: 60px 64px 56px minmax(160px, 220px) minmax(190px, 1fr) minmax(210px, 300px) 190px; min-height: 72px; align-items: center; border-bottom: 1px solid var(--line); background: var(--bg); transition: background var(--fast); }
.track-row:last-child { border-bottom: 0; }
.track-row:hover, .track-row.is-current { background: #11140d; }
.track-row.is-current::before { position: absolute; inset: 0 auto 0 -1px; width: 3px; background: var(--lime); content: ""; }
.track-number { color: var(--muted-2); font: 400 28px/1 var(--display); text-align: center; }
.track-row.is-current .track-number { color: var(--lime); }
.track-cover { width: 54px; height: 54px; object-fit: cover; }
.track-play { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #737771; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
.track-play:hover, .track-row.is-current .track-play { border-color: var(--lime); color: var(--lime); }
.track-play .icon { width: 20px; height: 20px; }
.track-play .icon-pause { display: none; }
.track-row.is-playing .track-play .icon-play { display: none; }
.track-row.is-playing .track-play .icon-pause { display: block; }
.track-title { display: flex; min-width: 0; align-items: center; gap: 10px; padding-right: 14px; }
.track-title a { overflow: hidden; font: 400 21px/1 var(--display); letter-spacing: .015em; text-overflow: ellipsis; white-space: nowrap; }
.track-row.is-current .track-title a { color: var(--lime); }
.track-title button { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; padding: 0; background: transparent; color: var(--muted-2); cursor: pointer; }
.track-title button .icon { width: 18px; height: 18px; }
.track-meta { display: flex; min-width: 0; gap: 8px; padding-right: 16px; color: #d2d1cb; font-size: 13px; white-space: nowrap; }
.track-meta i { color: var(--muted-2); font-style: normal; }
.track-preview { display: grid; grid-template-columns: 1fr 42px; align-items: center; gap: 12px; padding-right: 20px; }
.track-preview time { color: #cfcfca; font-size: 12px; font-variant-numeric: tabular-nums; }
.waveform { display: flex; height: 28px; align-items: center; gap: 2px; overflow: hidden; color: #666a66; }
.waveform i { width: 2px; height: var(--h); flex: 1 1 auto; max-width: 3px; min-height: 2px; background: currentColor; }
.track-row.is-current .waveform { color: var(--lime); }
.track-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 14px; color: var(--lime); font-size: 13px; white-space: nowrap; }
.track-buy > button { display: grid; width: 44px; height: 38px; place-items: center; border-radius: 3px; background: var(--lime); color: var(--lime-ink); cursor: pointer; }
.track-buy > button:hover { background: #dcff32; }
.sold-label { color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.empty-state { padding: 72px 24px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--text); font: 400 38px/1 var(--display); }

/* Global player */
.global-player { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: grid; grid-template-columns: 310px 170px minmax(280px, 1fr) 370px; height: var(--player-h); align-items: center; border-top: 1px solid var(--line-strong); background: rgba(8, 9, 9, .985); box-shadow: 0 -16px 40px rgba(0,0,0,.28); }
.player-track { display: grid; grid-template-columns: 62px 1fr 40px; height: 100%; align-items: center; gap: 13px; padding: 10px 14px 10px 20px; border-right: 1px solid var(--line); }
.player-track img { width: 62px; height: 62px; object-fit: cover; }
.player-track div { display: grid; min-width: 0; gap: 4px; }
.player-track strong { overflow: hidden; font: 400 18px/1 var(--display); text-overflow: ellipsis; white-space: nowrap; }
.player-track span { color: var(--muted); font-size: 12px; }
.player-favorite { color: var(--muted); }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 9px; }
.player-main-button { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--lime-ink); cursor: pointer; }
.player-main-button .icon { grid-area: 1 / 1; }
.player-main-button .icon-pause { display: none; }
.global-player.is-playing .player-main-button .icon-play { display: none; }
.global-player.is-playing .player-main-button .icon-pause { display: block; }
.player-timeline { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 10px; padding: 0 20px; font-size: 11px; font-variant-numeric: tabular-nums; }
input[type="range"] { height: 4px; margin: 0; border-radius: 0; background: linear-gradient(90deg, var(--lime) var(--range-progress, 0%), #3b3f3c var(--range-progress, 0%)); appearance: none; }
input[type="range"]::-webkit-slider-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); appearance: none; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--text); }
.player-tools { display: grid; grid-template-columns: 24px 110px 42px 150px; align-items: center; gap: 12px; padding-right: 18px; }
.player-tools > .icon { color: var(--muted); }
.player-cart-button { display: inline-flex; height: 50px; align-items: center; justify-content: center; gap: 9px; border-radius: 3px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.player-cart-button b { font-weight: 700; }

/* Cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.cart-drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); opacity: 0; transition: opacity 220ms ease; }
.cart-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: grid; width: min(460px, 100vw); grid-template-rows: auto 1fr auto; background: var(--bg-elevated); box-shadow: -20px 0 60px rgba(0,0,0,.55); transform: translateX(100%); transition: transform 260ms ease; }
.cart-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel > header { display: flex; height: 82px; align-items: center; justify-content: space-between; padding: 0 26px; border-bottom: 1px solid var(--line); }
.drawer-panel h2 { margin: 0; font: 400 38px/1 var(--display); text-transform: uppercase; }
.drawer-panel header button { display: grid; width: 42px; height: 42px; place-items: center; background: transparent; cursor: pointer; }
.drawer-items { overflow: auto; }
.drawer-item { display: grid; grid-template-columns: 66px 1fr auto; gap: 14px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.drawer-item img { width: 66px; height: 66px; object-fit: cover; }
.drawer-item div { display: grid; gap: 5px; }
.drawer-item strong { font: 400 19px/1 var(--display); }
.drawer-item select { width: max-content; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-size: 12px; }
.drawer-item button { background: transparent; color: var(--coral); cursor: pointer; }
.drawer-empty { display: none; place-content: center; gap: 8px; color: var(--muted); text-align: center; }
.drawer-empty.is-visible { display: grid; }
.drawer-empty strong { color: var(--text); font: 400 35px/1 var(--display); text-transform: uppercase; }
.drawer-panel > footer { display: grid; gap: 18px; padding: 22px 24px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-panel > footer > div { display: flex; justify-content: space-between; }
.drawer-panel > footer strong { font-size: 24px; }

/* Content pages */
.content-hero { min-height: 330px; padding: 60px var(--gutter); border-bottom: 1px solid var(--line); }
.content-hero--split { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 10vw; }
.content-hero h1 { margin: 0; font: 400 clamp(60px, 7vw, 108px)/.9 var(--display); text-transform: uppercase; }
.content-hero p { max-width: 520px; margin: 0 0 8px; color: #c4c5bf; font-size: 18px; }
.license-table { padding: 0 var(--gutter) 70px; }
.license-table > header, .license-table > article { display: grid; grid-template-columns: 1.3fr .8fr 1fr .65fr; gap: 28px; align-items: center; }
.license-table > header { min-height: 50px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.license-table > article { min-height: 150px; border-top: 1px solid var(--line); }
.license-table h2 { margin: 0 0 6px; font: 400 32px/1 var(--display); text-transform: uppercase; }
.license-table p { margin: 0; color: var(--muted); font-size: 13px; }
.file-list, .terms-list { display: flex; flex-wrap: wrap; gap: 7px; }
.file-list span { padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 2px; color: #d9d9d3; font-size: 11px; }
.terms-list { display: grid; color: #d5d5cf; font-size: 13px; }
.license-table article > div:last-child { display: grid; justify-items: start; gap: 12px; }
.license-table article > div:last-child strong { color: var(--lime); font-size: 22px; }
.license-table article > div:last-child a { display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.license-table article > div:last-child .icon { width: 18px; }

.beat-detail { display: grid; min-height: calc(100vh - var(--header-h) - var(--player-h)); grid-template-columns: minmax(420px, .92fr) 1.08fr; }
.beat-detail-cover { position: relative; overflow: hidden; border-right: 1px solid var(--line); background: #111; }
.beat-detail-cover > img { width: 100%; height: 100%; object-fit: cover; }
.beat-detail-play { position: absolute; bottom: 28px; left: 28px; display: inline-flex; height: 54px; align-items: center; gap: 12px; padding: 0 22px; border-radius: 3px; background: var(--lime); color: var(--lime-ink); font-size: 13px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.beat-detail-copy { align-self: center; max-width: 720px; padding: 55px clamp(30px, 6vw, 92px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 42px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.back-link .icon { width: 18px; transform: rotate(180deg); }
.beat-detail-copy h1 { margin-bottom: 15px; font: 400 clamp(58px, 7vw, 108px)/.86 var(--display); text-transform: uppercase; }
.beat-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.beat-facts span { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 2px; color: #d2d3cc; font-size: 11px; text-transform: uppercase; }
.beat-detail-copy > p { max-width: 520px; color: var(--muted); }
.beat-detail-copy h2 { margin: 36px 0 12px; font-size: 16px; }
.license-options { margin-bottom: 18px; border: 1px solid var(--line); }
.license-option { display: grid; grid-template-columns: 24px 1fr auto; min-height: 68px; align-items: center; gap: 14px; padding: 0 17px; border-bottom: 1px solid var(--line); cursor: pointer; }
.license-option:last-child { border-bottom: 0; }
.license-option:has(input:checked) { background: #11140d; box-shadow: inset 3px 0 var(--lime); }
.license-option input { accent-color: var(--lime); }
.license-option > span { display: grid; }
.license-option b { font-size: 14px; }
.license-option small { color: var(--muted); font-size: 10px; }
.license-option strong { color: var(--lime); font-size: 14px; }
.sold-notice { padding: 16px; border: 1px solid var(--coral); color: #f4b3aa !important; }

.content-hero--support { display: grid; grid-template-columns: 1fr .6fr; align-items: end; gap: 12vw; }
.support-layout { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 480px; padding: 0 var(--gutter) 70px; }
.support-form { display: grid; gap: 22px; padding: 46px 7vw 0 0; border-right: 1px solid var(--line); }
.support-form h2 { margin: 0; font: 400 32px/1 var(--display); text-transform: uppercase; }
.support-form label, .auth-panel label, .checkout-summary > label, .admin-dialog label, .settings-list label { display: grid; gap: 7px; }
.support-form label > span, .auth-panel label > span, .checkout-summary label > span, .admin-dialog label > span, .settings-list label > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
input:not([type="range"]):not([type="radio"]):not([type="checkbox"]), textarea, select { border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg-elevated); }
.support-form input, .support-form textarea, .auth-panel input, .checkout-summary input, .admin-dialog input, .admin-dialog textarea, .admin-dialog select, .settings-list textarea { width: 100%; padding: 14px; outline: 0; }
textarea { resize: vertical; }
.support-form input:focus, .support-form textarea:focus, .auth-panel input:focus { border-color: var(--lime); }
.form-note { margin: -10px 0 0; color: var(--muted); font-size: 12px; }
.support-aside { padding: 46px 0 0 7vw; }
.support-aside h2 { font: 400 42px/1 var(--display); text-transform: uppercase; }
.support-aside dl { margin: 38px 0 0; }
.support-aside dl div { padding: 20px 0; border-top: 1px solid var(--line); }
.support-aside dt { margin-bottom: 5px; font-weight: 700; }
.support-aside dd { margin: 0; color: var(--muted); font-size: 13px; }

.auth-layout { display: grid; min-height: calc(100vh - var(--header-h) - var(--player-h)); grid-template-columns: 1fr 1fr; }
.auth-art { display: grid; place-items: center; overflow: hidden; border-right: 1px solid var(--line); background: url("/assets/images/hero-unformal.png") 67% center / cover no-repeat; }
.auth-art > div { display: grid; padding: 34px; border: 2px solid var(--lime); background: rgba(8,9,9,.92); font: 400 clamp(40px, 6vw, 84px)/.78 var(--display); text-transform: uppercase; transform: rotate(-4deg); }
.auth-art strong { color: var(--lime); font-weight: 400; }
.auth-panel { align-self: center; width: min(480px, calc(100% - 60px)); margin: auto; }
.auth-panel .back-link { margin-bottom: 54px; }
.auth-panel h1 { margin-bottom: 12px; font: 400 clamp(54px, 5vw, 78px)/.9 var(--display); text-transform: uppercase; }
.auth-panel > p { margin-bottom: 30px; color: var(--muted); }
.auth-panel form { display: grid; gap: 18px; }
.auth-switch { margin-top: 22px; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--lime); font-weight: 700; }

.account-page, .checkout-page { min-height: calc(100vh - var(--header-h) - var(--player-h)); padding: 48px var(--gutter) 80px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.account-heading h1, .checkout-page > header h1 { margin: 0 0 5px; font: 400 clamp(54px, 6vw, 88px)/.9 var(--display); text-transform: uppercase; }
.account-heading p, .checkout-page > header p { margin: 0; color: var(--muted); }
.account-tabs { display: flex; gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.account-tabs button { padding: 8px 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.account-tabs button.is-active { border-color: var(--lime); color: var(--lime); }
.account-list { margin-top: 20px; border: 1px solid var(--line); }
.account-order, .account-ticket { display: grid; grid-template-columns: 100px 1fr 160px auto; gap: 24px; align-items: center; min-height: 92px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.account-order:last-child, .account-ticket:last-child { border-bottom: 0; }
.loading-line { padding: 40px; color: var(--muted); text-align: center; }
.profile-panel { max-width: 680px; margin-top: 34px; }
.profile-panel dl div { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }

.checkout-page > header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 60px; padding-top: 34px; }
.checkout-items { border-top: 1px solid var(--line); }
.checkout-item { display: grid; grid-template-columns: 92px 1fr 190px 120px 40px; gap: 18px; align-items: center; min-height: 126px; border-bottom: 1px solid var(--line); }
.checkout-item img { width: 92px; height: 92px; object-fit: cover; }
.checkout-item h2 { margin: 0; font: 400 25px/1 var(--display); }
.checkout-item p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.checkout-item select { width: 100%; padding: 10px; }
.checkout-item > strong { color: var(--lime); }
.checkout-item > button { background: transparent; color: var(--coral); cursor: pointer; }
.checkout-summary { position: sticky; top: 24px; align-self: start; padding: 26px; border: 1px solid var(--line-strong); background: var(--bg-elevated); }
.checkout-summary h2 { font: 400 32px/1 var(--display); text-transform: uppercase; }
.checkout-summary dl { margin: 0 0 24px; }
.checkout-summary dl div { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); }
.checkout-summary dd { margin: 0; color: var(--text); }
.checkout-summary .summary-total { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text); font-weight: 800; }
.checkout-summary .summary-total dd { color: var(--lime); font-size: 24px; }
.checkout-summary > label { margin-bottom: 22px; }
.checkout-summary > label > div { display: grid; grid-template-columns: 1fr auto; }
.checkout-summary > label input { min-width: 0; padding: 12px; }
.checkout-summary > label button { padding: 0 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--lime); cursor: pointer; }
.checkout-summary fieldset { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; border: 0; }
.checkout-summary legend { margin-bottom: 12px; font-size: 13px; font-weight: 800; }
.checkout-summary fieldset label { display: flex; align-items: center; gap: 9px; color: #d5d6d0; font-size: 13px; }
.checkout-summary fieldset input { accent-color: var(--lime); }
.checkout-summary > small { display: block; margin-top: 12px; color: var(--muted); font-size: 10px; text-align: center; }

.toast-region { position: fixed; right: 22px; bottom: calc(var(--player-h) + 20px); z-index: 130; display: grid; width: min(360px, calc(100vw - 40px)); gap: 8px; }
.toast { padding: 14px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--lime); background: #151715; box-shadow: 0 14px 35px rgba(0,0,0,.4); font-size: 13px; animation: toast-in 220ms ease both; }
.toast--error { border-left-color: var(--coral); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
    :root { --gutter: 30px; }
    .site-header { grid-template-columns: 190px 1fr auto; }
    .main-nav { gap: 28px; }
    .catalog-filters { grid-template-columns: minmax(240px, 1.4fr) repeat(3, 1fr); }
    .filter-reset { grid-column: 4; justify-self: end; }
    .track-list-head, .track-row { grid-template-columns: 52px 58px 52px minmax(150px, 1fr) minmax(180px, 1fr) 220px 156px; }
    .global-player { grid-template-columns: 260px 145px 1fr 250px; }
    .player-track { grid-template-columns: 52px 1fr; }
    .player-track img { width: 52px; height: 52px; }
    .player-favorite { display: none; }
    .player-tools { grid-template-columns: 24px 80px 42px 50px; }
    .player-cart-button span { display: none; }
    .checkout-grid { gap: 30px; }
}

@media (max-width: 860px) {
    :root { --header-h: 72px; --player-h: 82px; --gutter: 20px; }
    body { overflow-x: hidden; }
    .site-header { position: sticky; top: 0; grid-template-columns: 1fr auto; height: var(--header-h); padding: 0 18px; }
    .brand { font-size: 21px; }
    .main-nav { position: fixed; top: var(--header-h); right: 0; left: 0; display: grid; height: 0; gap: 0; overflow: hidden; background: var(--bg); transition: height 220ms ease; }
    .site-header.is-menu-open .main-nav { height: 180px; border-bottom: 1px solid var(--line); }
    .main-nav a { min-height: 60px; border-top: 1px solid var(--line); }
    .main-nav a::after { display: none; }
    .header-actions { grid-column: 2; }
    .account-link span { display: none; }
    .account-link { width: 46px; padding: 0; border: 0; }
    .cart-trigger { min-width: 52px; }
    .menu-trigger { display: grid; }
    .catalog-hero { min-height: 410px; }
    .hero-art { background-position: 62% center; opacity: .76; }
    .hero-copy { display: grid; width: auto; min-height: 410px; align-content: end; padding: 26px 20px 34px; }
    .hero-copy h1 { max-width: 600px; font-size: clamp(49px, 13vw, 76px); }
    .hero-copy p { max-width: 460px; font-size: 15px; }
    .hero-copy .button { width: max-content; }
    .hero-stamp { display: none; }
    .catalog-section { padding: 0 14px 20px; }
    .catalog-filters { grid-template-columns: 1fr auto; gap: 10px; padding: 15px 0; }
    .search-field { height: 48px; }
    .select-field { display: none; }
    .filter-reset { grid-column: 2; height: 48px; justify-self: auto; }
    .catalog-heading { padding: 22px 0 12px; }
    .catalog-heading h2 { font: 400 45px/.9 var(--display); text-transform: uppercase; }
    .track-list { border-right: 0; border-left: 0; }
    .track-list-head { display: none; }
    .track-row { grid-template-columns: 34px 70px 50px minmax(0, 1fr) 88px; grid-template-rows: 36px 34px; min-height: 95px; padding: 8px 0; }
    .track-number { grid-column: 1; grid-row: 1 / 3; font-size: 26px; }
    .track-cover { grid-column: 2; grid-row: 1 / 3; width: 68px; height: 68px; }
    .track-play { grid-column: 3; grid-row: 1 / 3; width: 42px; height: 42px; }
    .track-title { grid-column: 4; grid-row: 1; align-self: end; padding: 0 8px 2px 3px; }
    .track-title a { font-size: 22px; }
    .track-title button { display: none; }
    .track-meta { grid-column: 4; grid-row: 2; align-self: start; gap: 5px; padding: 3px 8px 0 3px; color: var(--muted); font-size: 11px; overflow: hidden; }
    .track-preview { grid-column: 5; grid-row: 1; align-self: end; display: block; padding: 0 3px 5px 0; text-align: right; }
    .waveform { display: none; }
    .track-buy { grid-column: 5; grid-row: 2; align-self: start; display: block; padding: 4px 3px 0 0; font-size: 11px; text-align: right; }
    .track-buy > button { display: none; }
    .sold-label { white-space: normal; }
    .global-player { grid-template-columns: minmax(0, 1fr) auto; height: var(--player-h); padding: 8px 12px max(8px, env(safe-area-inset-bottom)); border-top-color: var(--lime); }
    .player-track { grid-template-columns: 54px 1fr; padding: 0; border: 0; }
    .player-track img { width: 54px; height: 54px; }
    .player-track strong { font-size: 17px; }
    .player-controls { grid-column: 2; }
    .player-controls > button:not(.player-main-button) { display: none; }
    .player-main-button { width: 48px; height: 48px; background: transparent; color: var(--text); }
    .player-timeline { position: absolute; right: 76px; bottom: 10px; left: 80px; display: block; padding: 0; }
    .player-timeline span { display: none; }
    .player-timeline input { width: 100%; }
    .player-tools { display: none; }
    .content-hero, .content-hero--split, .content-hero--support { display: grid; min-height: 300px; grid-template-columns: 1fr; align-content: end; gap: 24px; padding: 38px 20px; }
    .content-hero h1 { font-size: 59px; }
    .content-hero p { font-size: 15px; }
    .license-table { padding: 0 20px 50px; }
    .license-table > header { display: none; }
    .license-table > article { grid-template-columns: 1fr auto; gap: 18px; padding: 24px 0; }
    .license-table > article > div:first-child { grid-column: 1 / 3; }
    .license-table > article > div:last-child { grid-column: 2; grid-row: 2 / 4; align-self: center; }
    .beat-detail { grid-template-columns: 1fr; }
    .beat-detail-cover { height: min(100vw, 520px); border-right: 0; border-bottom: 1px solid var(--line); }
    .beat-detail-copy { padding: 32px 20px 60px; }
    .beat-detail-copy .back-link { margin-bottom: 28px; }
    .support-layout { grid-template-columns: 1fr; padding: 0 20px 50px; }
    .support-form { padding: 32px 0 40px; border-right: 0; border-bottom: 1px solid var(--line); }
    .support-aside { padding: 34px 0 0; }
    .auth-layout { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel { width: auto; padding: 42px 20px 70px; }
    .auth-panel .back-link { margin-bottom: 40px; }
    .account-page, .checkout-page { padding: 36px 20px 60px; }
    .account-heading { align-items: start; }
    .account-order, .account-ticket { grid-template-columns: 1fr auto; gap: 8px; }
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-item { grid-template-columns: 76px 1fr 32px; min-height: 110px; }
    .checkout-item img { width: 76px; height: 76px; }
    .checkout-item select, .checkout-item > strong { grid-column: 2; }
    .checkout-item > button { grid-column: 3; grid-row: 1 / 3; }
    .checkout-summary { position: static; }
}

body.is-tma { --header-h: 82px; padding-top: env(safe-area-inset-top); }
body.is-tma .catalog-hero { display: none; }
body.is-tma .site-header { position: sticky; top: 0; display: grid; height: var(--header-h); grid-template-columns: 1fr auto; gap: 12px; padding: 0 20px; }
body.is-tma .brand { font-size: 24px; }
body.is-tma .main-nav, body.is-tma .account-link, body.is-tma .menu-trigger { display: none; }
body.is-tma .header-actions { grid-column: 2; }
body.is-tma .cart-trigger { min-width: 52px; }
body.is-tma .catalog-section { padding-top: 18px; }
body.is-tma .catalog-heading { padding-top: 14px; }
body.is-tma .player-cart-button { display: none; }

@media (max-width: 520px) {
    .catalog-heading h2 { font-size: 40px; }
    body.is-tma .catalog-heading h2 { font-size: 48px; }
    .filter-reset span { display: none; }
    .filter-reset { width: 48px; padding: 0; justify-content: center; }
    .track-row { grid-template-columns: 28px 62px 44px minmax(0, 1fr) 74px; min-height: 88px; }
    .track-cover { width: 60px; height: 60px; }
    .track-play { width: 38px; height: 38px; }
    .track-title a { font-size: 19px; }
    .track-meta { font-size: 10px; }
    .track-buy { font-size: 10px; }
    .license-table > article { grid-template-columns: 1fr; }
    .license-table > article > div:first-child, .license-table > article > div:last-child { grid-column: 1; grid-row: auto; }
    .account-tabs { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
