:root {
  color-scheme: light;
  --ink: #0b1020;
  --muted: #4d5566;
  --paper: #f5f5f6;
  --panel: #ffffff;
  --line: #dbdee3;
  --brand: #1941d8;
  --brand-hover: #1235b9;
  --brand-soft: #3154d8;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
body.cart-open { overflow: hidden; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 5vw, 72px); background: color-mix(in srgb, var(--panel) 94%, transparent); border-bottom: 1px solid var(--line); box-shadow: 0 2px 16px rgb(10 16 32 / .04); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: cover; }
.cart-button, .add-button { border: 0; background: var(--brand); color: #fff; padding: 12px 16px; font-weight: 800; cursor: pointer; transition: background-color .16s ease; }
.cart-button:hover, .add-button:hover, .checkout-button:hover { background: var(--brand-hover); }
.cart-button:disabled, .add-button:disabled { opacity: .42; cursor: default; }
.cart-button span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 7px; background: #fff; color: var(--brand); border-radius: 50%; }
main { width: min(1440px, 100%); margin: auto; }
.hero { min-height: 64vh; display: flex; flex-direction: column; justify-content: end; padding: 80px clamp(20px, 7vw, 100px); background: radial-gradient(circle at 78% 30%, rgb(25 65 216 / .09) 0, transparent 32%), linear-gradient(135deg, #ffffff, #f3f5fb); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--brand-soft); letter-spacing: .18em; font-size: 12px; font-weight: 900; }
h1 { max-width: 920px; margin: 10px 0 24px; font-size: clamp(52px, 9vw, 130px); line-height: .85; letter-spacing: -.065em; text-transform: uppercase; }
.hero-copy { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.catalog-section { padding: 72px clamp(20px, 5vw, 72px) 140px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
h2 { margin: 5px 0 0; font-size: clamp(34px, 5vw, 70px); letter-spacing: -.045em; text-transform: uppercase; }
.filter-label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
select { min-width: 180px; padding: 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); }
.status { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 44px 18px; }
.product-card { display: flex; min-width: 0; flex-direction: column; }
.cover-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--panel); }
.cover { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .cover { transform: scale(1.025); }
.product-state { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 6px 8px; background: rgb(255 255 255 / .94); color: var(--ink); border: 1px solid rgb(11 16 32 / .08); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 3px 12px rgb(10 16 32 / .08); pointer-events: none; }
.product-state.preorder { background: var(--brand); color: #fff; }
.product-state.sold-out { color: #697386; }
.wishlist-button, .card-play-button { position: absolute; z-index: 3; display: grid; place-items: center; border-radius: 50%; cursor: pointer; }
.wishlist-button { top: 10px; right: 10px; width: 38px; height: 38px; border: 1px solid rgb(11 16 32 / .16); background: rgb(255 255 255 / .9); color: var(--ink); font-size: 23px; box-shadow: 0 4px 16px rgb(10 16 32 / .12); backdrop-filter: blur(8px); }
.wishlist-button:hover, .wishlist-button.selected { border-color: var(--brand-soft); color: var(--brand-soft); }
.card-play-button { left: 50%; top: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border: 0; background: var(--brand); color: #fff; box-shadow: 0 8px 28px rgb(0 0 0 / .45); font-size: 17px; }
.card-play-button:hover { transform: translate(-50%, -50%) scale(1.06); }
.card-play-button:disabled { opacity: .45; cursor: default; }
.card-play-button:disabled:hover { transform: translate(-50%, -50%); }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 16px 2px 0; }
.artist { margin: 0 0 4px; overflow: hidden; color: var(--brand-soft); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.artist a { color: inherit; text-decoration: none; }
h3 { margin: 0; font-size: 21px; line-height: 1.1; }
h3 a { color: inherit; text-decoration: none; }
.product-card h3 { display: -webkit-box; min-height: 46px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card h3 a { display: block; }
.card-taxonomy { margin: 12px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.card-availability { margin: 7px 0 0; overflow: hidden; color: var(--brand-soft); font-size: 11px; font-weight: 800; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.add-button { padding: 9px 13px; }
.product-detail { padding: 60px clamp(20px, 5vw, 72px) 150px; }
.back-link { display: inline-block; margin-bottom: 35px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--brand-soft); }
.detail-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); gap: clamp(35px, 7vw, 110px); align-items: start; }
.detail-cover-wrap { position: sticky; top: 100px; aspect-ratio: 1; background: var(--panel); }
.detail-cover { width: 100%; height: 100%; object-fit: cover; }
.detail-copy h1 { margin: 12px 0 20px; font-size: clamp(48px, 7vw, 105px); overflow-wrap: anywhere; }
.detail-label { color: var(--muted); font-size: 18px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.detail-tags span { padding: 7px 9px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.release-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 30px 0; border-top: 1px solid var(--line); }
.release-facts div { padding: 15px 0; border-bottom: 1px solid var(--line); }
.release-facts dt { color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.release-facts dd { margin: 6px 0 0; }
.detail-buy { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.detail-buy strong { font-size: 30px; }
.detail-add { padding: 15px 24px; }
.description { margin-top: 20px; color: var(--muted); line-height: 1.65; }
.tracklist-section { margin-top: 90px; }
.tracklist { margin: 25px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tracklist li { display: grid; grid-template-columns: 55px 1fr auto; gap: 15px; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); }
.tracklist small { display: block; margin-top: 4px; color: var(--muted); }
.track-position, .no-audio { color: var(--muted); font-size: 12px; }
.tracklist button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--brand-soft); cursor: pointer; }
.tracklist button:hover { background: var(--brand); color: #fff; }
.player { position: fixed; z-index: 20; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(780px, calc(100% - 30px)); padding: 12px 16px; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--brand); box-shadow: 0 20px 60px rgb(10 16 32 / .2); }
.player:not([hidden]) { display: flex; align-items: center; gap: 12px; }
.player-buttons { display: flex; align-items: center; gap: 6px; }
.player button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; }
.player #player-toggle { width: 46px; height: 46px; }
.player .player-close { flex: 0 0 auto; background: transparent; color: var(--muted); font-size: 28px; }
.player .player-close:hover { color: var(--ink); }
.player-copy { min-width: 0; flex: 1; display: grid; }
.player-copy span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.player-progress { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin-top: 7px; }
.player-progress input { width: 100%; accent-color: var(--brand); cursor: pointer; }

.cart-scrim { position: fixed; z-index: 29; inset: 0; background: rgb(10 16 32 / .42); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 30; top: 0; right: 0; width: min(520px, 100%); height: 100dvh; padding: 28px; background: var(--panel); border-left: 1px solid var(--line); box-shadow: -30px 0 90px rgb(10 16 32 / .2); overflow-y: auto; }
.cart-drawer:not([hidden]) { display: flex; flex-direction: column; }
.cart-header { display: flex; justify-content: space-between; align-items: start; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.cart-header h2 { font-size: 48px; }
.cart-header .eyebrow { margin: 0; }
.cart-close { width: 44px; height: 44px; color: var(--ink); background: transparent; border: 1px solid var(--line); font-size: 30px; cursor: pointer; }
.cart-close:hover { color: var(--brand-soft); border-color: var(--brand-soft); }
.cart-empty { margin: 38px 0; color: var(--muted); }
.cart-items { display: grid; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 88px; height: 88px; object-fit: cover; background: var(--paper); }
.cart-line-copy { min-width: 0; }
.cart-line-copy a { color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.2; }
.cart-line-copy a:hover { color: var(--brand-soft); }
.cart-line-copy small { display: block; margin-top: 6px; color: var(--muted); }
.cart-line-price { white-space: nowrap; }
.cart-line-unavailable { margin: 8px 0 0; color: #b42318; font-size: 12px; }
.quantity-control { display: flex; align-items: center; width: max-content; margin-top: 12px; border: 1px solid var(--line); }
.quantity-control button { width: 34px; height: 32px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.quantity-control button:hover { color: var(--brand-soft); }
.quantity-control span { min-width: 30px; text-align: center; font-size: 13px; }
.remove-line { margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.remove-line:hover { color: var(--ink); }
.cart-summary { margin-top: auto; padding-top: 30px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); font-size: 20px; }
.cart-note, .cart-status { color: var(--muted); font-size: 12px; line-height: 1.45; }
.cart-status { min-height: 18px; color: #b42318; }
.checkout-button { width: 100%; padding: 16px; border: 0; background: var(--brand); color: #fff; font-weight: 900; cursor: pointer; transition: background-color .16s ease; }
.checkout-button:disabled { opacity: .42; cursor: default; }

@media (max-width: 1180px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 920px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .brand { font-size: 12px; }
  .hero { min-height: 55vh; padding: 50px 20px; }
  .catalog-heading { align-items: stretch; flex-direction: column; }
  .product-grid { gap: 38px 14px; }
  .catalog-section { padding: 55px 16px 120px; }
  .product-detail { padding: 30px 16px 130px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cover-wrap { position: relative; top: auto; }
  .detail-copy h1 { font-size: 48px; }
  .player { bottom: 8px; padding: 10px; }
  .player-buttons { gap: 2px; }
  .player button { width: 30px; height: 30px; }
  .player #player-toggle { width: 38px; height: 38px; }
  .cart-drawer { padding: 20px 16px; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line-price { grid-column: 2; }
}

@media (max-width: 420px) { .product-grid { grid-template-columns: 1fr; } }
