:root {
  --bg: #0b0d12;
  --bg-soft: #121722;
  --panel: #171d29;
  --panel-2: #1e2635;
  --line: rgba(255,255,255,0.08);
  --text: #f4f7fb;
  --muted: #95a2b7;
  --accent: #84a9ff;
  --accent-strong: #5d87ff;
  --success: #2ec27e;
  --shadow: 0 24px 60px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, #131a26 0%, var(--bg) 45%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(11,13,18,0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-strong), #8d63ff); color: white;
  box-shadow: 0 10px 30px rgba(93,135,255,0.35);
  overflow: hidden;
}
.brand-mark-image {
  background: rgba(255,255,255,0.04);
  box-shadow: none;
}
.brand-mark-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.main-nav { display: flex; gap: 18px; color: var(--muted); }
.main-nav a:hover, .text-link:hover { color: white; }
.hero-block { padding: 72px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr); gap: 40px; align-items: start; }
.eyebrow {
  display: inline-flex; border: 1px solid rgba(132,169,255,0.25); color: #bdd0ff;
  background: rgba(132,169,255,0.08); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; margin: 18px 0 16px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0; }
h3 { margin: 0; }
p { color: var(--muted); line-height: 1.7; }
.flash-stack { padding-top: 18px; display: grid; gap: 10px; }
.flash-message {
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.04); color: var(--text);
}
.flash-message.success { border-color: rgba(46,194,126,0.35); background: rgba(46,194,126,0.12); }
.flash-message.error { border-color: rgba(255,107,107,0.35); background: rgba(255,107,107,0.12); }
.lead { font-size: 18px; }
.hero-actions, .detail-actions, .beat-card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 14px; padding: 14px 18px; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), #8d63ff); color: white; }
.btn-secondary { background: transparent; border-color: var(--line); color: white; }
.btn-dark { background: #ffffff12; border-color: var(--line); color: white; }
.hero-panel, .info-card, .price-card, .filter-panel, .beat-card, .empty-state {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-grid-featured { align-items: start; }
.hero-featured-stack {
  display: grid; gap: 14px; align-self: start;
  padding: 18px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}
.hero-featured-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hero-featured-card {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 12px; border-radius: 22px; border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}
.hero-featured-cover {
  overflow: hidden; border-radius: 16px; aspect-ratio: 1 / 1; background: #0f1420;
  display: block;
}
.hero-featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-featured-copy { min-width: 0; }
.hero-featured-toprow {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.hero-featured-copy span { color: var(--muted); font-size: 13px; }
.hero-featured-copy h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.15; }
.hero-featured-copy p { margin: 0; }
.hero-featured-play {
  flex-shrink: 0;
}
.hero-featured-empty {
  padding: 24px; border: 1px dashed var(--line); border-radius: 24px; background: rgba(255,255,255,0.02);
}
.section-block { padding: 28px 0 40px; }
.section-surface { padding: 32px; border-radius: 28px; background: rgba(255,255,255,0.02); }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 24px; }
.beat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.beat-card { overflow: hidden; }
.beat-card[data-player-beat] { cursor: pointer; }
.beat-card-rich {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.beat-card-rich:hover {
  transform: translateY(-6px);
  border-color: rgba(132,169,255,0.22);
  box-shadow: 0 28px 70px rgba(0,0,0,0.42);
}
.beat-cover { position: relative; aspect-ratio: 1 / 1; background: #0f1420; overflow: hidden; }
.beat-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.beat-card-rich:hover .beat-cover img { transform: scale(1.04); }
.beat-cover-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,10,14,0.05), rgba(8,10,14,0.78));
}
.beat-cover-meta {
  position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px;
}
.beat-cover-meta span {
  padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,0.42); border: 1px solid rgba(255,255,255,0.08); font-size: 12px;
}
.cover-placeholder, .cover-placeholder.large {
  width: 100%; height: 100%; min-height: 220px; display: grid; place-items: center;
  font-size: 54px; font-weight: 800; color: white; background: linear-gradient(135deg, #20283b, #111723);
}
.cover-placeholder.large { min-height: 420px; }
.beat-card-body { padding: 20px; }
.beat-card-topline, .meta-chips, .player-times { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.beat-card-compact-rich .beat-cover { aspect-ratio: 1 / 1; }
.beat-cover-head {
  position: absolute; top: 14px; left: 14px; right: 14px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  z-index: 2;
}
.beat-cover-title {
  border: 0; background: rgba(0,0,0,0.34); color: white; text-align: left; cursor: pointer;
  padding: 9px 12px; border-radius: 14px; font-weight: 700; line-height: 1.2;
  max-width: calc(100% - 86px);
}
.beat-cover-title.inline-play {
  max-width: none; background: transparent; padding: 0; border-radius: 0;
}
.beat-cover-detail {
  padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.08); font-size: 12px; flex-shrink: 0;
}
.beat-cover-detail.inline-detail {
  background: transparent; border: 0; padding: 0;
}
.beat-card-topline span, .meta-chips span {
  padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05);
}
.beat-card p { min-height: 52px; }
.beat-card-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px;
}
.compact .compact-body {
  padding: 16px 18px;
}
.compact .compact-body { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.icon-play {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #ffffff12; color: white; cursor: pointer;
}
.page-intro { padding: 56px 0 12px; }
.page-intro.narrow { max-width: 820px; }
.filter-panel {
  padding: 18px; display: grid; gap: 12px;
}
.filter-panel-premium {
  gap: 20px;
  padding: 24px;
}
.filter-primary-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end;
}
.filter-primary-search,
.filter-field {
  display: grid; gap: 8px; min-width: 0;
}
.filter-primary-search label,
.filter-field label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #b9c6da;
}
.filter-primary-actions {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: end;
}
.filter-secondary-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px;
}
.filter-panel input, .filter-panel select, .player-progress, .player-volume {
  width: 100%; background: #0f1420; color: white; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.filter-panel select {
  appearance: none; -webkit-appearance: none; min-height: 50px;
  background-image: linear-gradient(45deg, transparent 50%, #9fb3d9 50%), linear-gradient(135deg, #9fb3d9 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.btn-compact {
  padding: 10px 14px; border-radius: 12px;
}
.empty-state { padding: 32px; }
.beat-detail-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; padding: 56px 0 24px; }
.beat-artwork img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); }
.pricing-grid, .legal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.price-card, .info-card { padding: 22px; }
.info-card-wide { padding: 28px; }
.info-card-wide h2 { margin-bottom: 18px; }
.info-card-wide h3 { margin-bottom: 10px; }
.price-card strong { display: block; margin-top: 18px; font-size: 30px; }
.price-card-disabled { opacity: 0.58; }
.price-profile-name { color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.checkout-form-card, .checkout-summary-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.checkout-form { display: grid; gap: 20px; }
.form-block { display: grid; gap: 12px; }
.form-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.form-block li { margin: 0; }
.form-block label {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); cursor: pointer;
}
.form-block input[type='email'] {
  width: 100%; background: #0f1420; color: white; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px;
}
.form-block input[type='radio'] { accent-color: var(--accent-strong); }
.checkout-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.summary-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.summary-list li {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.summary-list li span { color: var(--muted); }
.summary-note { margin-top: 18px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; }
.footer-inner p { margin: 8px 0 0; max-width: 420px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.global-player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  border-top: 1px solid var(--line); background: rgba(10,12,18,0.92); backdrop-filter: blur(18px);
  transform: translateY(0); transition: transform .22s ease, opacity .22s ease;
}
.global-player.is-hidden { opacity: 0; pointer-events: none; transform: translateY(100%); }
.player-inner { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: center; padding: 14px 0; }
.player-main { display: flex; gap: 14px; align-items: center; }
.player-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent-strong), #8d63ff); color: white; font-size: 18px;
}
.player-title { font-weight: 700; }
.player-subtitle { color: var(--muted); font-size: 14px; margin-top: 4px; }
.player-controls { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; }
.player-progress { padding: 0; height: 6px; }
.player-volume { max-width: 120px; padding: 0; height: 6px; }
.player-buy {
  padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.08); border: 1px solid var(--line); white-space: nowrap;
}
.player-version-switch { display: inline-flex; gap: 8px; }
.player-version-switch.is-hidden { display: none; }
.version-btn {
  border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 9px 12px; cursor: pointer;
}
.version-btn-ai {
  position: relative;
}
.version-btn.is-active { background: rgba(132,169,255,0.14); color: white; border-color: rgba(132,169,255,0.35); }
@media (max-width: 1100px) {
  .filter-primary-row { grid-template-columns: 1fr; }
  .filter-secondary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .beat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .beat-detail-layout, .player-inner, .player-controls, .checkout-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav, .footer-links { gap: 12px; }
  .beat-grid, .compact-grid, .pricing-grid, .legal-grid { grid-template-columns: 1fr; }
  .filter-secondary-grid { grid-template-columns: 1fr; }
  .filter-primary-actions { align-items: stretch; flex-direction: column; }
  .header-inner, .footer-inner, .section-heading { align-items: flex-start; flex-direction: column; }
  .hero-featured-head { align-items: flex-start; flex-direction: column; }
  .hero-featured-card { grid-template-columns: 88px 1fr; }
  .hero-featured-toprow { flex-direction: column; align-items: flex-start; }
  .beat-card-footer { flex-direction: column; align-items: stretch; }
  .shell { width: min(100% - 24px, 1200px); }
  body { padding-bottom: 156px; }
}
