:root {
  --ink: #111111;
  --muted: #68645e;
  --paper: #f7f4ef;
  --panel: #fffaf2;
  --panel-strong: #ffffff;
  --line: #ded6ca;
  --orange: #e4572e;
  --green: #34746a;
  --blue: #263f72;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
  --grid-orange: rgba(228, 87, 46, 0.035);
  --grid-blue: rgba(38, 63, 114, 0.025);
  --header-bg: rgba(247, 244, 239, 0.92);
}

html[data-theme="dark"] {
  --ink: #f5efe7;
  --muted: #b9aea1;
  --paper: #11100f;
  --panel: #1a1714;
  --panel-strong: #221e19;
  --line: #3a332c;
  --orange: #ff6a3d;
  --green: #5db2a0;
  --blue: #8ba5e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --grid-orange: rgba(255, 106, 61, 0.055);
  --grid-blue: rgba(139, 165, 230, 0.04);
  --header-bg: rgba(17, 16, 15, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--grid-orange) 1px, transparent 1px),
    linear-gradient(var(--grid-blue) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  padding: 0 34px 0 12px;
}

input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  padding: 12px;
  resize: vertical;
}

button,
.button {
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-button,
.nav-link {
  border: 0;
  background: transparent;
  color: inherit;
  min-height: auto;
  padding: 0;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.nav-button:hover,
.nav-link:hover {
  transform: none;
}

.button.nav-button {
  border: 1px solid var(--ink);
  min-height: 42px;
  padding: 0 18px;
}

.button.nav-button:hover {
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.brand,
.main-nav,
.social-links,
.social-link,
.hero-actions,
.card-heading,
.cart-panel,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: var(--panel-strong);
}

.main-nav {
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  min-width: 0;
  text-transform: uppercase;
}

.main-nav button:hover,
.social-link:hover,
.card-heading a:hover {
  color: var(--orange);
}

.main-nav button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 14px;
}

.main-nav button.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.social-links {
  justify-self: end;
  gap: 10px;
}

.social-link {
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.theme-toggle {
  gap: 8px;
  min-height: 34px;
  border-color: var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.theme-toggle:hover {
  color: var(--orange);
}

.theme-icon {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-icon::after {
  content: "";
  position: absolute;
  inset: -2px -2px -2px 7px;
  border-radius: 50%;
  background: var(--panel-strong);
}

html[data-theme="dark"] .theme-icon::after {
  inset: 3px;
  background: currentColor;
}

.page-view {
  display: none;
}

.page-view.active {
  display: block;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  place-items: center;
  padding: 72px 34px 52px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(17, 17, 17, 0.18), rgba(17, 17, 17, 0.42)),
    url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.minimal-hero {
  min-height: calc(86vh - 74px);
  background:
    radial-gradient(circle at 22% 28%, rgba(228, 87, 46, 0.28), transparent 30%),
    linear-gradient(135deg, #050505 0%, #15100a 48%, #0b0b0b 100%);
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 780px;
  text-align: center;
}

.hero-logo {
  width: min(340px, 70vw);
  aspect-ratio: 1;
  display: block;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb08d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 0.86;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.site-footer {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.hero-actions {
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.secondary {
  background: transparent;
  color: inherit;
}

.hero-panel {
  justify-self: center;
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 18px 22px;
  background: rgba(17, 17, 17, 0.38);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.hero-panel:hover {
  border-color: rgba(228, 87, 46, 0.62);
  transform: translateY(-2px);
}

.hero-stat {
  min-height: 96px;
  display: grid;
  gap: 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-stat:hover {
  border-color: var(--orange);
  background: rgba(228, 87, 46, 0.22);
  transform: translateY(-3px) rotate(-1deg);
}

.hero-stat strong {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.9;
}

.hero-stat span {
  font-weight: 900;
  text-transform: uppercase;
}

.section-block {
  padding: 70px 34px;
  border-bottom: 1px solid var(--line);
}

.page-shell {
  padding: 58px 34px 70px;
}

.page-heading,
.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-heading p,
.feature-card > p {
  color: var(--muted);
  line-height: 1.55;
}

.page-heading h1 {
  color: var(--ink);
  font-size: clamp(3.4rem, 10vw, 8rem);
}

.embed-grid,
.product-grid,
.track-grid,
.music-feature {
  display: grid;
  gap: 18px;
}

.embed-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.embed-card,
.track-card,
.product-card,
.feature-card,
.catalog-panel,
.soundcloud-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.track-card,
.product-card,
.feature-card,
.album-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.track-card:hover,
.product-card:hover,
.feature-card:hover,
.album-card:hover {
  border-color: rgba(228, 87, 46, 0.45);
  box-shadow: 0 14px 34px rgba(17, 17, 17, 0.08);
  transform: translateY(-3px);
}

.card-heading {
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  text-transform: uppercase;
}

.card-heading a {
  color: var(--muted);
  font-size: 0.8rem;
}

.music-feature {
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.7fr);
  align-items: start;
  margin-bottom: 18px;
}

.feature-card,
.catalog-panel,
.soundcloud-panel {
  padding: 22px;
}

.random-card h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.92;
}

.random-card {
  position: sticky;
  top: 96px;
}

.shuffle-machine {
  position: relative;
  isolation: isolate;
  min-height: 360px;
}

.shuffle-orbit {
  position: absolute;
  inset: 18px;
  z-index: -1;
  pointer-events: none;
}

.shuffle-orbit span {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(228, 87, 46, 0.42);
  border-radius: 50%;
  animation: drift 5s linear infinite;
}

.shuffle-orbit span:nth-child(1) {
  left: 10%;
  top: 10%;
}

.shuffle-orbit span:nth-child(2) {
  right: 6%;
  top: 35%;
  animation-duration: 7s;
}

.shuffle-orbit span:nth-child(3) {
  left: 38%;
  bottom: 8%;
  animation-duration: 6s;
}

#randomTrack {
  transition: opacity 180ms ease, transform 180ms ease;
}

.shuffle-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 22%, rgba(228, 87, 46, 0.42), transparent 28%),
    linear-gradient(145deg, #12100f, #342019 54%, #111);
  color: #fff;
  overflow: hidden;
}

.shuffle-cover span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  font-size: 3rem;
  font-weight: 900;
  transition: transform 220ms ease;
}

.shuffle-cover strong {
  text-transform: uppercase;
}

.shuffle-cover:hover span {
  transform: rotate(12deg) scale(1.08);
}

.shuffle-cover.revealing {
  animation: revealShuffle 320ms ease forwards;
}

.shuffle-cover.hidden {
  display: none;
}

#randomTrack.is-changing {
  opacity: 0.28;
  transform: rotate(-1deg) scale(0.98);
}

.shuffle-button {
  width: 100%;
  min-height: 58px;
  justify-content: space-between;
  margin: 0 0 12px;
  overflow: hidden;
  font-weight: 900;
  text-transform: uppercase;
}

.shuffle-button strong {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.shuffle-button.spinning {
  animation: pulseButton 260ms ease;
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-title-row h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.catalog-controls {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-tabs {
  display: inline-flex;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
}

.catalog-tab {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-tab.active {
  background: var(--ink);
  color: #fff;
}

.catalog-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-note {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.catalog-panel {
  margin-bottom: 18px;
}

.catalog-view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.catalog-view.active {
  display: block;
  animation: viewIn 260ms ease forwards;
}

.catalog-pop .track-card {
  animation: cardIn 280ms ease both;
}

.catalog-pop .track-card:nth-child(2n) {
  animation-delay: 24ms;
}

.catalog-pop .track-card:nth-child(3n) {
  animation-delay: 48ms;
}

.track-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.album-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-strong);
}

.album-cover-link {
  position: relative;
  display: block;
  background: #171717;
  overflow: hidden;
}

.album-cover-link img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.album-cover-link span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  border-radius: 999px;
  padding: 9px 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.album-cover-link:hover img {
  filter: brightness(0.82);
  transform: scale(1.04);
}

.album-cover-link:hover span {
  opacity: 1;
  transform: translateY(0);
}

.album-body {
  display: flex;
  flex-direction: column;
  padding: 22px;
}

.album-body h3 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.album-body p {
  color: var(--muted);
  line-height: 1.5;
}

.album-body ol {
  margin: auto 0 18px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.album-body span {
  font-weight: 900;
  text-transform: uppercase;
}

.album-player {
  width: 100%;
  height: 120px;
  margin-top: 18px;
}

.album-card.orange .album-body {
  border-left: 6px solid var(--orange);
}

.album-card.green .album-body {
  border-left: 6px solid var(--green);
}

.track-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.track-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.small-card {
  min-height: auto;
}

.product-art {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #171717;
}

.track-art {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  background: #171717;
}

.art-button {
  position: relative;
  width: 100%;
  min-height: 0;
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  background: #171717;
}

.art-button:hover {
  transform: none;
}

.art-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0);
  transition: background 160ms ease;
}

.art-button:hover::after {
  background: rgba(17, 17, 17, 0.22);
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
  transform: translateY(4px);
}

.art-button:hover .play-badge,
.art-button:focus-visible .play-badge,
.art-button.is-playing .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.art-button.is-playing::after {
  background: rgba(17, 17, 17, 0.2);
}

.track-body,
.product-body {
  padding: 18px;
}

.track-body p,
.product-body p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.45;
}

.mini-player {
  width: 100%;
  height: 88px;
  margin-top: 14px;
  accent-color: var(--orange);
}

.track-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.track-body small {
  color: var(--muted);
  display: block;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 250, 242, 0.62);
}

.empty-state p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.clip-stage {
  min-height: 100vh;
  padding: 58px 0 0;
  background: #111;
  color: #fff;
}

.clip-heading {
  position: relative;
  z-index: 2;
  max-width: 980px;
  padding: 0 34px 32px;
}

.clip-heading h1,
.clip-heading p {
  color: #fff;
}

.clip-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.clip-scroll {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.clip-slot {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #050505;
  overflow: hidden;
}

.clip-slot.active {
  opacity: 1;
}

.clip-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  filter: saturate(1.02) contrast(1.04);
  transform: translateZ(0);
}

.clip-slot.active .clip-player {
  opacity: 1;
}

.clip-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 48px));
  opacity: 0;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.72);
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
}

.clip-slot.show-copy .clip-copy {
  opacity: 1;
  transform: translateY(0);
}

.clip-slot h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.clip-slot span {
  color: rgba(255, 255, 255, 0.68);
}

.clip-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.clip-slot.active:hover .clip-controls,
.clip-controls:focus-within {
  opacity: 1;
}

.clip-control {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-body {
  display: flex;
  min-height: 210px;
  flex-direction: column;
}

.price {
  margin-top: auto;
  margin-bottom: 12px;
  font-weight: 900;
}

.cart-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  gap: 10px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

body[data-page="clips"] .cart-panel {
  display: none;
}

.cart-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cart-panel button {
  min-height: 34px;
  padding: 0 12px;
  border-color: var(--line);
  background: transparent;
}

.cart-panel .nav-button {
  border: 1px solid var(--line);
}

.cart-icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}

.cart-icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 28px 34px 92px;
}

.site-footer span {
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer p,
.site-footer small,
.site-footer a,
.footer-link {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
}

.footer-link {
  border: 0;
  min-height: auto;
  padding: 0;
  background: transparent;
  font: inherit;
}

.footer-link:hover {
  color: var(--orange);
  transform: none;
}

.site-footer small {
  grid-column: 1 / -1;
}

.legal-shell {
  min-height: calc(100vh - 74px);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.legal-card,
.contact-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
}

.legal-card h2 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.legal-card p,
.contact-panel p,
.contact-form p {
  color: var(--muted);
  line-height: 1.6;
}

.legal-card a,
.contact-panel a {
  color: var(--orange);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.contact-form {
  display: grid;
  gap: 16px;
  max-width: 920px;
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel-strong);
}

.form-result h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 4vw, 3rem);
}

.form-result.success {
  border-color: rgba(54, 196, 123, 0.58);
}

.form-result.error {
  border-color: rgba(228, 87, 46, 0.58);
}

.contact-panel a {
  font-size: clamp(2rem, 7vw, 5rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.checkout-shell {
  min-height: calc(100vh - 74px);
}

.checkout-grid,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: start;
}

.checkout-form,
.checkout-summary,
.checkout-result,
.checkout-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.checkout-step {
  padding: 22px;
  background: var(--panel-strong);
}

.checkout-step h2,
.checkout-summary h2,
.checkout-result h2 {
  font-size: clamp(1.7rem, 4vw, 3.4rem);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.checkout-submit {
  min-height: 56px;
  font-weight: 900;
  text-transform: uppercase;
}

.checkout-summary {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 58px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span,
.empty-cart-note,
.summary-line span,
.checkout-result p {
  color: var(--muted);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line.total {
  border-bottom: 0;
  font-size: 1.1rem;
}

.checkout-result {
  margin-top: 18px;
  padding: 28px;
  background: var(--panel-strong);
}

.payment-fail-scene {
  display: grid;
  grid-template-columns: minmax(120px, 260px) 1fr;
  gap: 28px;
  align-items: center;
}

.payment-fail-face {
  width: 100%;
  align-self: end;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.22));
}

.payment-fail-content {
  display: grid;
  gap: 14px;
}

.payment-fail-content h2 {
  max-width: 820px;
}

.payment-fail-video {
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #000;
}

.payment-methods {
  display: grid;
  gap: 12px;
}

.payment-method {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.payment-method:hover,
.payment-method.active {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.payment-method input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--orange);
}

.payment-method span,
.payment-method small {
  grid-column: 2;
}

.payment-method span {
  font-weight: 900;
  text-transform: uppercase;
}

.payment-method small,
.lps-fields p {
  color: var(--muted);
}

.payment-warning {
  margin-bottom: 14px;
  border: 1px solid rgba(228, 87, 46, 0.45);
  border-radius: 6px;
  padding: 12px;
  background: rgba(228, 87, 46, 0.08);
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
}

.payment-checks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.payment-checks span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-checks span.valid {
  border-color: rgba(54, 196, 123, 0.55);
  color: #2c9a62;
}

.not-found-page {
  min-height: calc(100vh - 74px);
}

.not-found-shell {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 58px 34px;
}

.not-found-shell img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(17, 17, 17, 0.2));
}

.not-found-shell h1 {
  font-size: clamp(4rem, 12vw, 10rem);
}

.admin-shell {
  min-height: calc(100vh - 74px);
}

.admin-login,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 24px;
}

.admin-login {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.admin-login label,
.admin-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-error {
  margin: 0;
  color: var(--orange);
  font-weight: 900;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-product {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-strong);
}

.admin-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-fields label:last-child {
  grid-column: 1 / -1;
}

@keyframes drift {
  from {
    transform: rotate(0deg) translateX(8px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(8px) rotate(-360deg);
  }
}

@keyframes pulseButton {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes revealShuffle {
  to {
    opacity: 0;
    transform: scale(1.04) rotate(1deg);
  }
}

@keyframes viewIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .music-feature,
  .album-card,
  .checkout-grid,
  .payment-layout,
  .payment-fail-scene,
  .not-found-shell {
    grid-template-columns: 1fr;
  }

  .random-card {
    position: static;
  }

  .site-header {
    gap: 12px;
    padding: 14px 20px;
  }

  .main-nav {
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav,
  .social-links {
    justify-self: start;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding: 58px 20px 42px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .section-block,
  .page-shell,
  .clip-stage {
    padding: 54px 20px;
  }

  .clip-stage {
    padding: 54px 0 0;
  }

  .clip-heading {
    padding: 0 20px 28px;
  }

  .embed-grid,
  .track-grid,
  .track-grid.compact,
  .album-grid,
  .legal-grid,
  .form-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .main-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .social-link span {
    display: none;
  }

  .hero-logo {
    width: min(280px, 82vw);
  }

  .hero-stat {
    min-height: 78px;
  }

  .clip-slot {
    min-height: 100svh;
    background: #000;
  }

  .clip-player {
    object-fit: contain;
    opacity: 1;
  }

  .clip-slot h2 {
    font-size: clamp(2.4rem, 15vw, 5rem);
  }

  .clip-controls {
    right: 12px;
    bottom: 12px;
  }

  .payment-fail-face {
    max-width: 220px;
  }

  .embed-grid,
  .track-grid,
  .track-grid.compact,
  .album-grid,
  .legal-grid,
  .admin-fields,
  .form-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .admin-product {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-controls {
    display: grid;
  }

  .cart-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
