/* Dance Record Store – site styles (ported from the approved mockup) */

/* ---------- Colour themes ---------- */
:root {
  --logo: #BEE243; --accent: #BEE243; --accent-ink: #BEE243; --on-accent: #0F0F0D;
  --bg: #0F0F0D; --bg2: #0A0A09; --surface: #1A1A17; --line: #2C2C27; --line2: #3E3E37;
  --fg: #F2F1EA; --fg2: #D3D2C8; --muted: #A8A79C;
}
html[data-accent="pink"]  { --logo: #EF75B2; --accent: #EF75B2; --accent-ink: #EF75B2; }
html[data-accent="cream"] { --logo: #EBE9E0; --accent: #EBE9E0; --accent-ink: #EBE9E0; }
html[data-accent="blue"]  { --logo: #6ECBEE; --accent: #6ECBEE; --accent-ink: #6ECBEE; }

html[data-theme="light"] {
  --bg: #F6F5EF; --bg2: #ECEBE3; --surface: #FFFFFF; --line: #E2E0D6; --line2: #C9C7BB;
  --fg: #161613; --fg2: #3B3A34; --muted: #66655C; --accent-ink: #4A6300;
}
html[data-theme="light"][data-accent="pink"]  { --accent-ink: #A3446F; }
html[data-theme="light"][data-accent="blue"]  { --accent-ink: #2F6F87; }
html[data-theme="light"][data-accent="cream"] { --accent: #161613; --accent-ink: #161613; --on-accent: #F6F5EF; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.disp { font-family: 'Bricolage Grotesque', Georgia, serif; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }
.ink { color: var(--accent-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', Georgia, serif; letter-spacing: -0.02em; line-height: 1.05; }
.h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; margin: 0; }
.h2 { font-size: 32px; font-weight: 800; margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; text-decoration: none !important; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line2); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg); cursor: pointer; flex: none; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; color: var(--fg2); }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.notice { background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }

/* ---------- Utility bar ---------- */
.util { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.util .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.util-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mode-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; }
.swatch { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--line2); cursor: pointer; padding: 0; }
.swatch[aria-pressed="true"] { border: 3px solid var(--fg); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 14px 24px; }
.logo { position: relative; display: inline-flex; align-items: center; height: 120px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; overflow: hidden; text-decoration: none !important; }
.logo-disc { position: absolute; left: 30px; top: 5px; width: 110px; height: 110px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.6), 0 0 14px color-mix(in srgb, var(--logo) 14%, transparent); }
.logo-disc .vinyl { position: absolute; inset: 0; border-radius: 999px;
  background: radial-gradient(circle, #0A0A09 0 2.6%, transparent 3%), radial-gradient(circle, #F4F2EA 0 17%, #0A0A09 17.4% 18.2%, transparent 18.6%), radial-gradient(circle, #1A1A18 0 30%, transparent 30.5%), conic-gradient(from 0deg, rgba(255,255,255,.42) 0deg, rgba(255,255,255,.08) 32deg, rgba(255,255,255,0) 90deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.36) 190deg, rgba(255,255,255,.07) 222deg, rgba(255,255,255,0) 270deg), repeating-radial-gradient(circle, #2A2A27 0 .8px, #121211 .8px 1.8px), #121211; }
.logo-disc .sheen { position: absolute; inset: 0; border-radius: 999px; background: conic-gradient(from 20deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.06) 25deg, rgba(255,255,255,0) 55deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.04) 205deg, rgba(255,255,255,0) 235deg); -webkit-mask: radial-gradient(circle, transparent 0 18.6%, #000 19% 100%); mask: radial-gradient(circle, transparent 0 18.6%, #000 19% 100%); box-shadow: inset 0 0 0 1.5px #3A3A36; }
.logo-text { position: relative; font-family: 'Bricolage Grotesque', Georgia, serif; font-weight: 800; font-size: 27px; line-height: .9; letter-spacing: -.01em; color: var(--logo); text-shadow: 0 0 3px #000, 0 0 1px #000; }
.logo-text .dotcom { font-size: 14px; line-height: 1; background: var(--logo); color: #0A0A09; border-radius: 4px; padding: 2px 5px 3px; margin-left: 4px; vertical-align: 3px; text-shadow: none; }
@keyframes drs-spin { to { transform: rotate(360deg); } }
.spin { animation: drs-spin 6s linear infinite; }

@property --bnr-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes bnr-rot { to { --bnr-a: 360deg; } }
.bnr-wrap { flex: 1 1 420px; display: flex; justify-content: center; min-width: 0; }
.bnr { position: relative; border-radius: 999px; padding: 2px; max-width: 100%; background: conic-gradient(from var(--bnr-a), var(--accent), #EF75B2, #6ECBEE, var(--accent)); animation: bnr-rot 6s linear infinite; box-shadow: 0 0 20px rgba(190,226,67,.22), 0 0 40px rgba(239,117,178,.10); }
.bnr-in { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px 26px; border-radius: 999px; background: var(--surface); text-align: center; font-family: 'Bricolage Grotesque', Georgia, serif; font-weight: 800; font-size: 21px; }
.bnr-in em { font-style: normal; color: var(--accent-ink); }
.bnr-disc { flex: none; width: 26px; height: 26px; border-radius: 999px; background: radial-gradient(circle, #0A0A09 0 10%, var(--accent) 11% 26%, transparent 27%), repeating-radial-gradient(circle, #55554E 0 1px, #2A2A26 1px 2.6px); box-shadow: 0 0 0 1px #6A6A62; }

.hdr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.hdr-right .ask { font-size: 13px; color: var(--muted); }
.hdr-nav { display: flex; align-items: center; gap: 8px; }
.basket-btn, .acct-btn { background: var(--surface); border: 1px solid var(--line2); color: var(--fg); }
.basket-count { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 8px; font-size: 13px; font-family: 'IBM Plex Mono', monospace; }

/* Genre menu */
.gtoggle-wrap { display: none; padding: 0 16px 12px; }
.gtoggle { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-radius: 14px; border: 0; background: var(--accent); color: var(--on-accent); font-family: 'Bricolage Grotesque', Georgia, serif; font-weight: 800; font-size: 20px; cursor: pointer; }
.gnav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0 24px 14px; }
.gnav .chip { position: relative; justify-content: center; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 48px; border-radius: 14px; padding: 0 14px; font-family: 'Bricolage Grotesque', Georgia, serif; font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--fg); background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--line2); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease; }
.gnav .chip:hover, .gnav .chip:focus-visible { transform: translateY(-3px) rotate(-1deg); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); text-decoration: none; }
.gnav .chip:nth-child(3n+2) { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--bg)); }
.gnav .chip.hot { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* Search */
.search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line2); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: 0; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--fg); font: inherit; font-size: 15px; padding: 10px 12px; outline: none; }
.search select { background: var(--line); color: var(--fg); border: 0; border-radius: 999px; font: inherit; font-size: 14px; padding: 0 12px; height: 40px; margin-right: 4px; }
.srch-under { padding: 4px 24px 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.srch-under .search { flex: 0 1 900px; }
.adv-link { flex: none; font-family: 'Bricolage Grotesque', Georgia, serif; font-size: 16px; font-weight: 500; color: var(--accent-ink); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.srch-top { display: none; flex: 1 1 360px; }

/* ---------- Record cards ---------- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.rcard { display: flex; gap: 16px; padding: 12px; }
.rcard .cover { flex: none; width: 150px; height: 150px; border-radius: 10px; background: #000; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.35); display: block; }
.rcard .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcard .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rcard .tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.rcard .title { font-weight: 600; font-size: 17px; line-height: 1.25; }
.rcard .meta { font-size: 13px; color: var(--muted); }
.rcard .catno-line { font-size: 11px; line-height: 1.1; margin-top: -3px; }
.rcard .row { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.rcard .price { font-family: 'Bricolage Grotesque', Georgia, serif; font-weight: 800; font-size: 22px; margin-right: auto; }
.nocover { width: 100%; height: 100%; display: block; background: radial-gradient(circle, #F4F2EA 0 9%, #0A0A09 9.5% 10.5%, transparent 11%), repeating-radial-gradient(circle, #232320 0 1px, #111110 1px 2.4px); }
.oos { font-size: 13px; color: var(--muted); }

/* Lists / filters */
.pagehead { padding: 28px 0 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 24px; }
.filters select { background: var(--surface); color: var(--fg); border: 1px solid var(--line2); border-radius: 999px; height: 36px; padding: 0 12px; font: inherit; font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 32px 0; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line2); padding: 0 12px; }
.pager .on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 24px; }
.crumbs a { color: var(--muted); }

/* Home */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 16px 0 56px; }
.hero-text { flex: 1 1 420px; padding-top: 40px; }
.totm { flex: 1 1 420px; position: relative; height: 280px; border-radius: 20px; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 40px; }
.totm .bg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55); }
.totm img { position: relative; width: 200px; height: 200px; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.totm .t { position: relative; color: #F2F1EA; }
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.section { padding-bottom: 72px; }

/* Record page */
.rec { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 24px; align-items: flex-start; }
.rec-media { flex: 0 0 150px; width: 150px; min-width: 0; }
.rec-media .big { width: 150px; height: 150px; aspect-ratio: 1; border-radius: 10px; background: #000; overflow: hidden; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.rec-media p.muted { font-size: 12px !important; line-height: 1.35; }
.rec { gap: 32px; }
.rec-media .big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-info { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rec-price { font-family: 'Bricolage Grotesque', Georgia, serif; font-size: 44px; font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.spec { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 4px 16px; margin: 0; }
.spec dt { color: var(--muted); font-size: 14px; }
.spec dd { margin: 0; font-size: 15px; }
.cond { background: #E9E6DA; color: #141412; border-radius: 14px; padding: 14px 18px; font-size: 15px; }

/* Player */
@keyframes eqb { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq i { display: block; width: 3px; height: 14px; background: var(--accent); border-radius: 2px; transform-origin: bottom; animation: eqb .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
.eq.paused i { animation-play-state: paused; }
.playing-under { display: none; align-items: center; gap: 8px; margin-top: 8px; }
.is-playing .playing-under { display: flex; }
.prog { flex: 1; height: 3px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.prog span { display: block; height: 100%; width: 0; background: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--fg2); }

/* Prose (blog, info pages) */
.prose { max-width: 760px; font-size: 17px; }
.prose a { text-decoration: underline; color: var(--accent-ink); }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .site-header { position: relative; }
  .hdr-row { padding: 12px 16px; gap: 12px; }
  .bnr-wrap, .srch-under { display: none; }
  .srch-top { display: flex; }
  .gtoggle-wrap { display: block; }
  .gnav { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 12px; }
  .gnav.open { display: grid; }
  .hdr-right { align-items: flex-start; margin-left: 0; }
  .rcard .cover { width: 118px; height: 118px; }
  .rgrid { grid-template-columns: 1fr; }
  .hero { padding-top: 12px; gap: 32px; }
  .hero-text { padding-top: 8px; }
  .totm { padding: 24px; height: auto; }
  .totm img { width: 120px; height: 120px; }
  .spec { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .spin, .bnr, .eq i { animation: none; }
  .gnav .chip { transition: none; }
  .gnav .chip:hover { transform: none; }
}

/* ---- Desktop only: slimmer genre menu and compact "Dig by genre" ---- */
@media (min-width: 761px) {
  .gnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 24px 12px; }
  .gnav::-webkit-scrollbar { display: none; }
  .gnav .chip { flex: none; min-height: 34px; padding: 0 13px; border-radius: 999px; font-size: 14px; }
  .gnav .chip:hover, .gnav .chip:focus-visible { transform: translateY(-1px); box-shadow: none; }

  .ggrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .gcard { gap: 4px; padding: 12px 14px; }
  .gcard .gname { font-size: 16px !important; line-height: 1.2; }
  .gcard .gtop { flex-direction: column; align-items: flex-start !important; gap: 2px !important; }
  .gcard .geras { display: none !important; }
}

/* Homepage genre tiles at the top (desktop only); phones keep "Dig by genre" lower down */
.home-genres { display: none; }
@media (min-width: 761px) {
  .home-genres { display: block; padding: 16px 0 4px; }
  .home-genres .gcard { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; text-decoration: none; color: var(--fg);
    background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--line2);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease; }
  .home-genres .gcard img { width: 44px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; }
  .home-genres .gname { font-size: 15px; font-weight: 600; line-height: 1.2; }
  .home-genres .gcard:hover, .home-genres .gcard:focus-visible { transform: translateY(-3px) rotate(-1deg); border-color: var(--accent); color: var(--accent-ink);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); text-decoration: none; }
  .home-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
  .home-links .chip { min-height: 32px; font-size: 14px; }
  .home-links .chip.hot { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  .dig-genres { display: none; }
}
/* Homepage: the All genres picture cards, six to a row so they fit in two rows above the fold */
@media (min-width: 761px) {
  .home-gstrips { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .home-gstrips .gstrip .strip { gap: 8px; padding: 10px 10px 0; }
  .home-gstrips .gstrip .gname { padding: 9px 10px 10px; font-size: 16px; }
}
@media (min-width: 1100px) { .home-gstrips { grid-template-columns: repeat(6, 1fr); } }
@media (prefers-reduced-motion: reduce) { .home-genres .gcard { transition: none; } .home-genres .gcard:hover { transform: none; } }

/* "Dig by genre" in the thin top bar, desktop homepage only */
.util-dig { display: none; }
@media (min-width: 761px) { .util-dig { display: inline; font-family: 'Bricolage Grotesque', Georgia, serif; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--fg); } }

/* Desktop: search bar in the header instead of the banner; new homepage headline */
.fmt-desk, .desk-only { display: none; }
@media (min-width: 761px) {
  .bnr-wrap, .srch-under { display: none; }
  .srch-top { display: flex; flex: 1 1 520px; max-width: 760px; margin: 0 auto; }
  .fmt-desk { display: inline-block; }
  .desk-only { display: inline; }
  .phone-only { display: none; }
}

/* All genres page: one cover per genre */
.gstack { display: flex; flex-direction: column; gap: 8px; padding: 18px; text-decoration: none; color: var(--fg);
  background: linear-gradient(180deg, var(--surface), var(--bg)); border: 1px solid var(--line2);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.gstack .one { display: block; width: 120px; height: 120px; margin-bottom: 6px; }
.gstack .one img, .gstack .one .nocover { display: block; width: 120px; height: 120px; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.45); transform: rotate(-3deg); transition: transform .25s ease; }
.gstack .gname { font-size: 19px; font-weight: 800; letter-spacing: -.01em; transition: color .18s ease; }
.gstack:hover, .gstack:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); text-decoration: none; }
.gstack:hover .gname, .gstack:focus-visible .gname { color: var(--accent-ink); }
.gstack:hover .one img { transform: rotate(0deg) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .gstack, .gstack .one img { transition: none; } .gstack:hover { transform: none; } }
.gstack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* All genres page: a strip of three covers on each card */
.gstrip { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: var(--fg); border: 1px solid var(--line2);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.gstrip .strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px 14px 0; }
.gstrip .strip img, .gstrip .strip .nocover { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.gstrip .gname { padding: 12px 14px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; transition: color .18s ease; }
.gstrip:hover, .gstrip:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); text-decoration: none; }
.gstrip:hover .gname, .gstrip:focus-visible .gname { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .gstrip { transition: none; } .gstrip:hover { transform: none; } }

/* Bigger logo on every desktop page */
@media (min-width: 761px) {
  .logo { height: 156px; padding: 0 24px 0 20px; border-radius: 18px; }
  .logo-disc { left: 38px; top: 7px; width: 142px; height: 142px; }
  .logo-text { font-size: 35px; }
  .logo-text .dotcom { font-size: 18px; padding: 2px 6px 3px; vertical-align: 4px; border-radius: 5px; }
}

/* Reserve a sold-out record */
.reserve-box { border: 1px solid var(--line2); border-radius: 12px; padding: 16px; background: var(--surface); }

/* ---- Listening queue ---- */
.q-add.in-queue { border-color: var(--accent); color: var(--accent-ink); }
body.has-qbar { padding-bottom: 96px; }
.qbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--line2);
  box-shadow: 0 -6px 24px rgba(0,0,0,.35); padding-bottom: env(safe-area-inset-bottom, 0px); }
.qbar[hidden] { display: none; }
.qmain { display: flex; align-items: center; gap: 12px; max-width: 1280px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 10px max(16px, env(safe-area-inset-right, 0px)); }
.qcover img { display: block; width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.qinfo { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qtitle { font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qartist { color: var(--fg2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qprog { display: block; height: 3px; background: var(--line2); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.qprog span { display: block; height: 100%; width: 0; background: var(--accent); }
.qctrl { display: flex; align-items: center; gap: 8px; flex: none; }
.qctrl .iconbtn { width: 40px; height: 40px; }
.qplay { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.qbuy[hidden] { display: none; }
.qpanel { max-width: 1280px; margin: 0 auto; max-height: min(55vh, 460px); overflow: auto; border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left, 0px)) 6px; }
.qpanel[hidden] { display: none; }
.qpanel-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.qlist { list-style: none; margin: 0; padding: 0; }
.qlist li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.qlist li.on .qli-txt strong { color: var(--accent-ink); }
.qlist img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; flex: none; }
.qli-play, .qli-x { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.qli-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--fg); text-decoration: none; }
.qli-txt strong, .qli-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qli-txt span { color: var(--fg2); font-size: 13px; }
.qlink { background: none; border: 0; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px; }
.qlink[disabled] { color: var(--muted); cursor: default; }
.qbar .qm { display: none; }
@media (max-width: 700px) {
  .qbar .qd { display: none; }
  .qbar .qm { display: inline; }
  .qmain { flex-wrap: wrap; gap: 8px 10px; position: relative; padding-top: 8px; padding-bottom: 8px; }
  .qcover { flex: none; }
  .qcover img { width: 44px; height: 44px; }
  .qinfo { flex: 1 1 0; padding-right: 40px; }
  .qctrl { width: 100%; justify-content: space-between; gap: 6px; }
  .qbuy { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .qcount { min-height: 40px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
  .qclose { position: absolute; top: 10px; right: max(16px, env(safe-area-inset-right, 0px)); margin: 0; }
  body.has-qbar { padding-bottom: 130px; }
}

.qclose { width: 34px !important; height: 34px !important; margin-left: 4px; }
.rec-btns { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; }
.rec-btns .btn { width: 100%; justify-content: center; white-space: nowrap; padding-left: 10px; padding-right: 10px; }

.rcard .cvbox { position: relative; }
.q-cv { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; background: rgba(12,12,12,.78); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(2px); }
.q-cv:hover { background: rgba(12,12,12,.92); }
.q-cv.in-queue { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.q-head[hidden] { display: none; }

.rcard .qline { margin-top: auto; display: flex; justify-content: flex-end; padding-top: 4px; }
.rcard .qline + .row { margin-top: 6px; }
.q-sm { width: 34px; height: 34px; }
.q-sm.in-queue { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.q-all-row { display: flex; flex-wrap: wrap; gap: 8px; }
.q-all-row[hidden] { display: none; }

/* sale badge next to a sale price */
.sale-badge { display:inline-block; vertical-align:middle; background:#e0242b; color:#fff; font-family:system-ui, sans-serif; font-weight:800; font-size:12px; letter-spacing:.04em; line-height:1; padding:4px 6px; border-radius:5px; margin-right:6px; position:relative; top:-2px; }
.rec-price .sale-badge { font-size:14px; padding:5px 8px; }

/* Bigger picture of the sleeve (record page) */
.rec-media .big { position: relative; }
.rec-media .big .zoom-btn { position: absolute; right: 6px; top: 6px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(15,15,13,.72); color: #fff; cursor: zoom-in; padding: 0; }
.rec-media .big .zoom-btn:hover, .rec-media .big .zoom-btn:focus-visible { background: var(--accent); color: var(--on-accent); }
.zoom-view { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); cursor: zoom-out; }
.zoom-view[hidden] { display: none; }
.zoom-view img { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); cursor: default; }
.zoom-view .zoom-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; }
.zoom-view .zoom-close:hover, .zoom-view .zoom-close:focus-visible { background: var(--accent); color: var(--on-accent); }

/* forms outside checkout (contact, sign in, account) - same look as the checkout */
.co-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--fg2); margin-bottom: 12px; }
.co-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .co-form select, .co-form textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; }
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* record page on phones: the YouTube box sits to the right of the record picture */
@media (max-width: 640px) {
  .rec-media { flex: 1 1 100%; width: 100%; display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .rec-media > * { grid-column: 1; }
  .rec-media > .rec-yt { grid-column: 2; grid-row: 1 / span 4; margin-top: 0 !important; }
  .rec-media > .rec-yt .btn { width: 100%; justify-content: center; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
}

/* record cards: the whole text block opens the record; on phones "Click for condition" under the cat no */
.rcard .rtext { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.rcard .rtext:hover .title { text-decoration: underline; }
.rcard .cond-link { display: none; }
@media (max-width: 760px) {
  .rcard .cond-link { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 2px; margin-top: 2px; }
}

/* genre menu: the extra genres - shown by "All genres" on computers, always listed under "Browse genres" on phones */
.gnav .chip.more-g { display: none; }
.gnav.show-all .chip.more-g { display: inline-flex; }
@media (max-width: 760px) {
  .gnav .chip.more-g { display: inline-flex; }
  .gnav .chip.all-g-btn { display: none; }
}
/* phones: a long genre name (Acid, Techno & Balearic) goes onto two lines inside the same size button, same text size */
@media (max-width: 760px) {
  .gnav .chip { white-space: normal; text-overflow: clip; line-height: 1.15; padding: 4px 10px; }
}
/* record page: the YouTube box text - shorter on phones so the box ends level with the buttons under the picture */
.rec-yt .yt-short { display: none; }
@media (max-width: 640px) {
  .rec-yt .yt-long { display: none; }
  .rec-yt .yt-short { display: inline; }
  .rec-media > .rec-yt { align-self: stretch; }
}
@media (max-width: 380px) {
  .rec-media > .rec-yt { padding: 10px !important; }
  .rec-media > .rec-yt .btn { padding-left: 6px; padding-right: 6px; gap: 5px; font-size: 15px; }
  .rec-media > .rec-yt .btn svg { flex: none; }
}
@media (max-width: 640px) {
  .rec-media > .rec-yt .btn { min-height: 52px; font-size: 16px; font-weight: 700; }
  .rec-media > .rec-yt .btn svg { width: 18px; height: 18px; flex: none; }
}
@media (max-width: 380px) {
  .rec-media > .rec-yt .btn { font-size: 14px; gap: 4px; }
  .rec-media > .rec-yt .btn svg { width: 15px; height: 15px; }
}
