:root {
  color-scheme: light;
  --bg: #F8FAFF;
  --surface: #FFFFFF;
  --primary: #FF4BCB;
  --accent: #20D8F4;
  --subtle: #EDE8FF;
  --text: #24263B;
  --text-muted: #71758B;
  --border: #E5E7F0;
  --star: #E6A900;
  --shadow: color-mix(in srgb, var(--text) 10%, transparent);
  --control-height: 44px;
  --control-radius: 12px;
  --nav-height: 68px;
  --radius: 14px;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
html[data-page="secondary"] { background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:where(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
button:disabled { cursor: default; opacity: .5; }
button, a, input { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.55rem, 4vw, 2.45rem); line-height: 1.22; }
h2 { font-size: 1.13rem; }
h3 { font-size: 1rem; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 10; top: 6px; left: 8px; color: var(--surface); background: var(--text); padding: 10px; }
.shell { width: calc(100% - 36px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 68px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; }
.search-toggle .icon { width: 23px; height: 23px; }
.header-search { display: flex; align-items: center; min-width: 0; gap: 8px; grid-column: 2 / -1; }
.header-search input {
  min-width: 0; width: 100%; min-height: 44px; padding: 8px 13px;
  border: 1px solid var(--border); border-radius: var(--control-radius); background: var(--surface);
}
#close-search { font-size: 1.6rem; }
main { min-height: 68vh; padding-block: 12px 38px; }
.catalog-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border);
  margin-bottom: 16px; text-align: center; max-width: 580px;
}
.catalog-tabs a { display: grid; place-items: center; padding: 10px 3px; min-height: 44px; border-bottom: 3px solid transparent; color: var(--text-muted); font-size: .88rem; font-weight: 730; }
.catalog-tabs a[aria-current] { border-color: var(--primary); }
.catalog-toolbar .catalog-tabs a { color: var(--primary); }
.demo-label { color: var(--text-muted); font-size: .77rem; margin-block: 10px; }
html[data-pull-refresh] { overscroll-behavior-y: none; }
.pull-status {
  position: fixed; z-index: 5; top: 10px; left: 50%; pointer-events: none; opacity: 0;
  transform: translate(-50%, -65px); transition: transform .15s ease, opacity .15s ease;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 3px 12px var(--shadow);
  font-size: 1.25rem; font-weight: 800;
}
.pull-status[data-visible] { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pull-status { transition: none; } }
.catalog-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.card {
  min-width: 0; position: relative; aspect-ratio: 1; container-type: inline-size; border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--border); background: var(--surface);
}
.card-link { display: block; height: 100%; border-radius: inherit; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--subtle); }
.card .cover { border-radius: var(--radius) var(--radius) 0 0; }
.card-content {
  display: grid; align-content: center; height: 25%; overflow: hidden;
  gap: clamp(0px, 1cqi, 3px); padding-inline: clamp(6px, 5cqi, 13px);
}
.card-title {
  font-size: clamp(.72rem, 6.5cqi, .97rem); font-weight: 750; line-height: 1.12;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); }

.card .price { font-size: clamp(.77rem, 7cqi, 1.02rem); line-height: 1.18; }
.icon-button, .sample, .no-preview { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.icon-button {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  display: grid; place-items: center; padding: 0;
}
.icon-button[data-favorite] .icon { transform: translateY(1px); }
.card .icon-button { position: absolute; top: 7px; right: 7px; }
.icon-button[aria-pressed="true"] { color: var(--primary); }
.icon-button[aria-pressed="true"] svg { fill: currentColor; }
.thumb-actions { position: absolute; right: 7px; bottom: calc(25% + 7px); }
.sample, .no-preview {
  border-radius: var(--control-radius); white-space: nowrap; font-size: .75rem; font-weight: 750;
  padding: 0 11px; min-height: var(--control-height);
}
.sample { background: var(--accent); color: var(--text); border: 0; }
.sample[aria-pressed="true"] { background: var(--text); color: var(--surface); }
.sample.sample-icon {
  --play-size: var(--control-height);
  width: var(--play-size); height: var(--play-size); min-height: var(--play-size);
  border-radius: 50%; padding: 0; border: 2px solid var(--primary);
  background: var(--surface); color: var(--primary);
}
.sample-icon .icon { display: block; }
.sample.sample-icon[aria-pressed="true"] { color: var(--surface); background: var(--primary); }
.no-preview { background: var(--text); color: var(--surface); min-height: 29px; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.sample .icon { width: 18px; height: 18px; }
.bottom-nav {
  position: fixed; z-index: 10; inset: auto 0 0; display: flex; justify-content: center;
  background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -3px 14px var(--shadow);
}
.bottom-nav a {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px;
  min-height: var(--nav-height); flex: 1 1 0; max-width: 135px; color: var(--text-muted);
  font-size: .72rem; font-weight: 730; white-space: nowrap;
}
.bottom-nav a[aria-current] { color: var(--text); }
.nav-mark { width: 49px; height: 29px; border-radius: 18px; display: grid; place-items: center; }
.bottom-nav a[aria-current] .nav-mark { background: var(--subtle); }
.material-symbol { display: block; width: 24px; height: 24px; background: currentColor; mask: var(--symbol) center / contain no-repeat; }
.symbol-new_releases { --symbol: url("assets/icons/new_releases.svg"); }
.symbol-leaderboard { --symbol: url("assets/icons/leaderboard.svg"); }
.symbol-notifications { --symbol: url("assets/icons/notifications.svg"); }
.symbol-person { --symbol: url("assets/icons/person.svg"); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-block: 22px; color: var(--text-muted); font-size: .8rem; }
.footer a, .circle-list a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.page-head { margin-block: 12px 22px; }
.page-head p, .help { margin-top: 8px; color: var(--text-muted); font-size: .88rem; }
.section-heading { margin-bottom: 8px; }
.about-copy { display: grid; justify-items: start; gap: 14px; max-width: 45em; }
.back { display: inline-flex; margin-bottom: 12px; color: var(--text); font-weight: 700; font-size: .89rem; align-items: center; gap: 4px; min-height: 44px; }
.detail { display: grid; grid-template-columns: minmax(0, 47%) minmax(0, 1fr); gap: clamp(20px, 4vw, 46px); align-items: start; }
.detail .cover { border-radius: var(--radius); }
.detail h1 { overflow-wrap: anywhere; margin: 9px 0 6px; }
.detail .price { font-size: 1.55rem; margin: 10px 0; }
.detail-section { margin-top: 21px; border-top: 1px solid var(--border); padding-top: 15px; overflow-wrap: anywhere; }
.detail-section h2 { margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-block; color: var(--text); background: var(--subtle); border-radius: 999px; padding: 3px 9px; font-size: .77rem; font-weight: 700; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--control-height);
  border-radius: var(--control-radius); padding: 8px 14px; font-size: .88rem; font-weight: 750;
  border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.primary { border-color: transparent; background: var(--primary); }
.primary .icon { margin-inline-end: 4px; }
.secondary.follow-button {
  padding: 4px 14px; min-height: 34px; border-radius: 999px;
  border: 2px solid var(--primary); color: var(--primary); background: var(--surface); white-space: nowrap;
}
.secondary.follow-button[aria-pressed="true"] { color: var(--surface); background: var(--primary); }
@media (hover: hover) {
  .primary:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 92%, var(--text)); }
  .secondary:hover:not(:disabled), .icon-button:hover:not(:disabled), .catalog-tabs a:hover { background: var(--subtle); }
  .sample:not(.sample-icon):hover:not([aria-pressed="true"]):not(:disabled) { background: color-mix(in srgb, var(--accent) 92%, var(--text)); }
  .sample.sample-icon:hover:not([aria-pressed="true"]), .secondary.follow-button:hover:not([aria-pressed="true"]) {
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  }
}
.metrics dt, .comments time { color: var(--text-muted); font-size: .75rem; }
.metrics dd { font-weight: 800; }
.stars { color: var(--star); letter-spacing: .015em; }
.credits div, .tracks li { display: grid; grid-template-columns: 6em 1fr; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--border); }
.credits dt { color: var(--text-muted); }

.follow-count { color: var(--text-muted); font-size: .83rem; }
.tracks, .comments { padding: 0; list-style: none; }
.tracks li { grid-template-columns: 1fr auto; }
.tracks li:last-child { border-bottom: 0; }
.comments li, .news-item, .empty { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.empty { text-align: center; padding-block: 32px; }
dialog { width: min(420px, calc(100% - 32px)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; color: var(--text); background: var(--surface); }
dialog::backdrop { background: color-mix(in srgb, var(--text) 50%, transparent); }
dialog p { margin: 10px 0 15px; }
@media (max-width: 1250px) { .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1010px) { .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 790px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 58px; }
  main { padding-block: 7px 28px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .card .icon-button { top: 5px; right: 5px; width: 36px; height: 36px; }
  .thumb-actions { right: 5px; bottom: calc(25% + 5px); }
}
.site-menu {
  position: fixed; inset: 0 auto 0 0; margin: 0; height: 100dvh; max-height: none;
  width: min(340px, 88vw); border-radius: 0 20px 20px 0;
}
.menu-heading { display: flex; align-items: center; justify-content: space-between; }
.site-menu nav { display: grid; gap: 5px; margin-top: 12px; }
.site-menu nav a { padding: 10px 9px; border-radius: 8px; font-weight: 720; }
.site-menu nav a:last-child { margin-top: 12px; }
.site-menu nav a:hover:not(.primary) { background: var(--subtle); }
.banner-frame {
  min-height: clamp(170px, 25vw, 330px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center; gap: clamp(12px, 4vw, 65px); padding: clamp(17px, 3.5vw, 52px);
  border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  animation: banner-appear .28s ease-out;
}
.banner-frame img {
  display: block; width: 100%; height: clamp(128px, 20vw, 250px); object-fit: cover;
  border-radius: var(--radius); object-position: center 38%;
}
.banner-copy { min-width: 0; }
.banner-copy span { font-size: .8rem; font-weight: 760; color: var(--text-muted); }
.banner-copy h2 { color: var(--text); font-size: clamp(1.32rem, 4vw, 3rem); line-height: 1.2; margin-block: 5px 8px; }
.banner-copy p { font-size: clamp(.75rem, 1.6vw, 1.03rem); margin-bottom: 12px; }
.banner-controls { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 5px 0 8px; }
.banner-controls button { border: 0; background: transparent; color: var(--text); width: 32px; height: 31px; font-size: 1.6rem; line-height: 1; }
.banner-controls button[data-banner-index] { position: relative; width: 27px; }
.banner-controls button[data-banner-index]::before {
  content: ""; position: absolute; inset: 11px 9px; border-radius: 9px; background: var(--border);
}
.banner-controls button[data-banner-index][aria-pressed="true"]::before { background: var(--primary); }
.banner-copy a { color: var(--primary); border-color: var(--primary); }
.card-content { padding-inline: clamp(5px, 3.4cqi, 11px); }
.card-details, .card-metrics { display: flex; align-items: baseline; }
.card-details { justify-content: space-between; gap: 3px; white-space: nowrap; }
.card-metrics { gap: clamp(2px, 2cqi, 6px); color: var(--text-muted); font-size: clamp(.5rem, 5.2cqi, .72rem); }
.card .price { font-size: clamp(.72rem, 7.2cqi, 1.04rem); }
#catalog-more { text-align: center; padding: 24px 0 5px; }
.creator-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.creator-line > span:first-child { color: var(--text-muted); font-size: .82rem; }
.detail-image {
  display: block; width: min(100%, 480px); height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: var(--radius); margin-block: 8px 11px;
}
.avatar {
  width: 64px; height: 64px; flex: 0 0 64px; display: grid; place-items: center;
  background: var(--subtle); border: 1px solid var(--border); border-radius: 50%; overflow: hidden;
  color: var(--text); font-size: 1.4rem; font-weight: 800;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.profile-card > div { flex: 1 1 150px; min-width: 0; overflow-wrap: anywhere; }
.profile-card p { font-size: .88rem; color: var(--text-muted); }
.account-tabs { grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.creator-avatars { display: flex; overflow-x: auto; gap: 14px; padding: 3px 3px 8px; list-style: none; }
.creator-avatars a { display: grid; justify-items: center; gap: 5px; font-size: .77rem; text-align: center; width: 80px; }
.work-history { list-style: none; padding: 0; }
.work-history li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 7px; padding: 9px 0; border-bottom: 1px solid var(--border);
}
.work-history a:first-child { font-weight: 750; }
.listing-cta { margin-top: 13px; }
.account-form { display: grid; gap: 12px; max-width: 580px; align-items: start; }
.account-form label { display: grid; gap: 4px; color: var(--text); font-weight: 720; }
.account-form input, .account-form textarea, .account-form select {
  box-sizing: border-box; width: 100%; min-height: var(--control-height); font: inherit; font-weight: 500; color: var(--text);
  border: 1px solid var(--border); background: var(--surface); border-radius: var(--control-radius); padding: 7px 9px;
}
.account-form textarea { resize: vertical; }
.account-form .primary { justify-self: start; }
.checkout-panel {
  display: grid; grid-template-columns: minmax(120px, 320px) minmax(0, 1fr); gap: 16px; align-items: start;
}
.checkout-panel .cover { border-radius: var(--radius); }
.checkout-panel h2 { margin-bottom: 4px; }
.checkout-total { margin-top: 12px; color: var(--text); }
.checkout-total strong { font-size: 1.4rem; color: var(--primary); }
@media (max-width: 410px) {
  .checkout-panel { grid-template-columns: 1fr; }
}

html { overscroll-behavior-x: contain; }
html[data-pull-refresh] main { touch-action: pan-y; }
.catalog-toolbar {
  position: sticky; top: 0; z-index: 8; background: var(--bg);
  transition: transform .2s ease, opacity .16s ease;
}
.catalog-toolbar .catalog-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; }
.catalog-toolbar .catalog-tabs a { font-size: clamp(.72rem, 3.2vw, .88rem); }
.catalog-toolbar-hidden:not(:focus-within) {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}
.site-header { background: var(--surface); }
.header-inner { gap: clamp(6px, 1.4vw, 14px); }
.plain-icon, #open-menu.plain-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border: 0; border-radius: 0;
  padding: 0; display: grid; place-items: center; background: transparent; color: var(--text);
  font-size: 1.55rem; line-height: 1;
}
.plain-icon .icon { width: 23px; height: 23px; display: block; }
.plain-icon:hover { background: var(--bg); }
.brand { justify-self: center; min-width: 0; }
.brand img { display: block; width: clamp(130px, 25vw, 166px); height: 49px; object-fit: contain; }
.search-suggestions { max-width: 700px; padding-block: 8px 15px; }
.suggestion-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.suggestion-heading h2 { font-size: 1rem; }
.search-suggestions ul { list-style: none; padding: 0; margin: 4px 0 0; }
.search-suggestions li + li { border-top: 1px solid var(--border); }
.search-suggestions button { background: transparent; border: 0; color: var(--text); min-height: 42px; }
.search-suggestions li button { text-align: start; padding-inline: 4px; width: 100%; overflow-wrap: anywhere; }
.search-suggestions [data-clear-search] { color: var(--text-muted); font-size: .82rem; white-space: nowrap; }
.menu-heading .plain-icon { margin-left: auto; }
@keyframes banner-appear {
  from { opacity: .8; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}
#slide-banner { overflow: clip; }
a.primary, a.secondary, button, .card { transition: transform .13s ease, box-shadow .18s ease, background-color .18s ease; }
button:not(:disabled):active, .primary:active, .secondary:active { transform: scale(.97); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); box-shadow: 0 5px 14px var(--shadow); } }
.card .rank-crown {
  position: absolute; z-index: 1; top: -7px; left: -6px;
  display: inline-flex; gap: 3px; align-items: center; justify-content: center;
  padding: 3px 7px; min-width: 40px; min-height: 27px; border: 1px solid var(--rank-ink);
  border-radius: 8px; background: var(--rank-surface); color: var(--rank-ink);
  font-size: .82rem; font-weight: 850; line-height: 1;
}
.rank-crown img { width: 30px; height: 26px; display: block; }
.rank-1 { --rank-surface: #fff3bd; --rank-ink: #815500; --rank-frame: #d8a331; }
.rank-2 { --rank-surface: #ebf1fc; --rank-ink: #475b91; --rank-frame: #879bc6; }
.rank-3 { --rank-surface: #ffe3d2; --rank-ink: #89452f; --rank-frame: #c78262; }
.rank-4 { --rank-surface: #f2e9ff; --rank-ink: #66488e; --rank-frame: #a58bd5; }
.rank-5 { --rank-surface: #e5f7ed; --rank-ink: #28785f; --rank-frame: #6fb799; }
.card[class*="rank-"] { border-color: var(--rank-frame); outline: 1px solid var(--rank-frame); }
#results:has(.rank-crown), .catalog-entering:has(.rank-crown) { padding: 8px 7px 0; }
.nav-mark > .icon { width: 24px; height: 24px; }
.bottom-nav { transition: transform .21s ease, opacity .16s ease; }
.bottom-nav-hidden:not(:focus-within) { transform: translateY(105%); opacity: 0; pointer-events: none; }
.detail-hero {
  position: relative; margin: 0; align-self: start; overflow: hidden;
  border-radius: var(--radius);
}
.detail .detail-hero .cover { width: 100%; height: auto; max-width: none; border-radius: inherit; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-hero .icon-button { position: absolute; top: 10px; right: 10px; }
.detail-play { position: absolute; right: 10px; bottom: 10px; }
.waveform {
  pointer-events: none; position: absolute; width: 70px; height: 24px; left: 12px; bottom: 11px; opacity: .78;
  background: var(--surface);
  clip-path: polygon(0 45%,8% 35%,13% 48%,18% 18%,23% 35%,28% 13%,33% 38%,38% 25%,43% 1%,48% 30%,54% 41%,59% 16%,64% 37%,70% 45%,76% 20%,81% 37%,87% 48%,92% 37%,100% 46%,100% 53%,92% 63%,87% 52%,81% 63%,76% 80%,70% 55%,64% 63%,59% 84%,54% 59%,48% 70%,43% 99%,38% 75%,33% 62%,28% 87%,23% 65%,18% 82%,13% 52%,8% 65%,0 55%);
}
.detail-info h1 { margin: 10px 0 9px; }
.purchase-actions { justify-content: space-between; margin-block: 6px 10px; }
.purchase-actions .primary { color: var(--surface); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 8px 3px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.metrics div { padding: 2px 6px; border-radius: 0; background: transparent; text-align: center; }
.metrics div + div { border-left: 1px solid var(--border); }
.listing-preview-dialog h2 { margin-bottom: 12px; }
.listing-preview-dialog .cover { border-radius: var(--radius); margin-bottom: 12px; }
.listing-preview-dialog .detail-section p { white-space: pre-line; }
.listing-preview-dialog form { margin-top: 16px; }
.catalog-viewport {
  position: relative; overflow-x: clip;
  overflow-clip-margin: 3px;
}
.catalog-entering { position: absolute; inset-inline: 0; width: 100%; pointer-events: none; }
.catalog-short-panel { position: sticky; }
@media (max-width: 620px) {
  .detail { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .catalog-toolbar .catalog-tabs a { padding-inline: 1px; white-space: nowrap; }
  .site-header .plain-icon { width: 36px; flex-basis: 36px; }
  .sample.sample-icon { --play-size: 38px; }
}
@media (max-width: 359px) {
  .card-details { flex-wrap: wrap; gap: 1px; }
  .card-content { height: auto; min-height: 25%; padding-block: 3px; }
  .card { aspect-ratio: auto; }
}
@media(prefers-reduced-motion: reduce) {
  .banner-frame { animation: none; }
  .catalog-toolbar, .bottom-nav { transition: none; }
  a.primary, a.secondary, button, .card { transition: none; }
}

.credit-tag { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; background: var(--subtle); cursor: pointer; }
.account-form fieldset { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
#slide-banner { touch-action: pan-y; }

/* Readable type sizes shared by catalog and detail screens. */
body { font-size: 16px; }
.card { aspect-ratio: auto; }
.card-content { height: auto; min-height: 104px; padding: 10px; gap: 8px; overflow: visible; }
.card-title { font-size: 16px; line-height: 1.45; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-metrics { font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.card-details { display: flex; flex-wrap: wrap; gap: 6px; }
.card .price { font-size: 16px; }
.thumb-actions { top: 8px; bottom: auto; right: 50px; }
.detail-info p, .credits, .tracks, .comments { font-size: 16px; line-height: 1.65; }
.detail-info h1 { font-size: 24px; line-height: 1.4; }
.metrics dt, .comments time, .help, .chip, .secondary, .primary { font-size: 14px; }
.primary { color: #fff; }
.sample, .detail-play .sample { background: #fff; color: var(--primary); border: 2px solid var(--primary); border-radius: 999px; }
.sample:hover { background: var(--subtle) !important; }
.sample[aria-pressed="true"] { background: var(--primary); color: #fff; }
#slide-banner { position: relative; height: 260px; border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.banner-art { display: block; width: 100%; height: 100%; }
.banner-art .cover { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.banner-sample { position: absolute; right: 16px; bottom: 16px; }
.banner-sample button { width: 48px; height: 48px; }
.search-mode #slide-banner, .search-mode .catalog-toolbar { display: none; }
.search-mode.search-empty main { display: none; }
.search-suggestions { position: static; max-height: none; }
#player-bar { position: fixed; z-index: 20; bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); left: 0; right: 0; padding: 10px 16px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -3px 12px #24263b12; display: grid; grid-template-columns: 1fr 44px; gap: 4px 12px; }
#player-bar[hidden] { display: none; }
#player-bar a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#player-bar button { border: 0; background: var(--primary); color: white; border-radius: 50%; width: 40px; height: 40px; grid-row: span 2; }
#player-bar button, .sample.sample-icon { display: grid; place-items: center; padding: 0; }
#player-bar button { grid-column: 2; grid-row: 1 / span 2; place-self: center; }
#player-bar button .google-symbol, .sample.sample-icon .google-symbol { width: 24px; height: 24px; font-size: 24px; text-align: center; }
#player-bar input { width: 100%; accent-color: var(--primary); }
.has-player { padding-bottom: calc(var(--nav-height) + 100px); }

.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d93025; vertical-align: top; margin-left: 3px; }
.jacket-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; }
.jacket-gallery .cover { flex: 0 0 100%; width: 100%; min-width: 100%; scroll-snap-align: start; }
[data-rating] { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
#notice-text { white-space: pre-line; }
html[data-page="secondary"] main { touch-action: pan-y; }
@media(max-width:620px) { #slide-banner { height: 190px; } .card .price { font-size: 16px; } .bottom-nav a { font-size: 14px; } }

#main:focus { outline: none; }
.jacket-gallery:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.banner-track { display: flex; width: 100%; height: 100%; transform: translateX(-100%); will-change: transform; }
.banner-page { position: relative; flex: 0 0 100%; height: 100%; min-width: 0; }
.banner-track img { pointer-events: none; user-select: none; }
.catalog-panel, .catalog-entering { will-change: transform; }

.header-cart { display: grid; place-items: center; position: relative; text-decoration: none; }
.header-cart .icon { width: 24px; height: 24px; }
#cart-count { position: absolute; right: -2px; top: 0; font-size: 11px; background: var(--primary); color: white; border-radius: 999px; min-width: 17px; text-align: center; }
.header-inner { grid-template-columns: 42px 1fr 42px 42px; }
.header-inner .brand { justify-self: center; }
.nav-hidden #player-bar { bottom: env(safe-area-inset-bottom); }
#player-bar { transition: bottom .2s ease; }
.card-art { position: relative; }
.card-art > a { display: block; position: relative; }
.image-price { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; background: #fff; border-radius: 7px; box-shadow: 0 1px 5px #0002; }
.card .card-link { height: auto; }
.card-content { display: grid; align-content: start; gap: 8px; }
.rating-button { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 14px; text-align: left; min-height: 24px; text-decoration: none; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.card-actions > * { flex: 1 1 auto; min-height: 38px; font-size: 13px; padding: 5px 7px; }
.card-actions .sample .icon { width: 14px; }
.card-metrics > span { display: inline-flex; align-items: center; gap: 3px; }
.detail-rating-price { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 8px; }
.detail-rating-price .price { font-size: 24px; }
.purchase-actions { margin: 14px 0; }
.detail-play { display: none; }
.cart-items { list-style: none; padding: 0; display: grid; gap: 16px; }
.cart-items li { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.cart-items li > a:first-child { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.cart-items .cover { width: 80px; flex: 0 0 80px; border-radius: 8px; }
.cart-total { text-align: right; font-size: 20px; font-weight: 700; }

.search-mode .header-cart { display: none; }
.search-mode .header-search { grid-column: 2 / -1; grid-row: 1; }

/* Marketplace preview refinements, scoped to the existing components. */
.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px 16px; }
.card-title { height: 46px; min-height: 46px; line-height: 23px; }
.card-content { min-height: 0; grid-template-rows: 46px 24px 24px 44px; gap: 8px; padding: 12px; }
.card-art .cover { aspect-ratio: 4 / 3; height: auto; }
.card-actions, .purchase-actions { display: grid; grid-template-columns: minmax(76px, .8fr) minmax(128px, 1.3fr); gap: 8px; flex-wrap: nowrap; }
.card-actions > *, .purchase-actions > * { width: 100%; min-width: 0; min-height: 44px; height: 44px; padding: 6px 8px; font-size: 14px; white-space: nowrap; line-height: 20px; }
.no-preview { border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: 14px; }
.add-cart, .primary.add-cart { background: #FFD814; color: #171717; border: 1px solid #e5bb00; border-radius: 999px; }
.add-cart:hover:not(:disabled) { background: #f4ca00 !important; }
.add-cart:active:not(:disabled) { background: #e7b900; box-shadow: inset 0 2px 4px #0002; }
.add-cart:focus-visible { outline: 3px solid #24263b; outline-offset: 3px; }
.add-cart:disabled { background: #eee; border-color: #ccc; color: #666; cursor: not-allowed; opacity: 1; }
.indicator-line { display: flex; align-items: center; gap: 14px; min-height: 24px; font-size: 14px; font-variant-numeric: tabular-nums; line-height: 20px; }
.indicator-line > span { display: inline-flex; align-items: center; gap: 5px; }
.indicator-line svg { display: block; width: 18px; height: 18px; flex: 0 0 18px; }
.indicator-line small { font-size: 12px; color: var(--text-muted); }
.rating-button { min-height: 24px; }
.banner-art .cover { object-fit: cover; object-position: center; }
.purchase-box { border: 1px solid var(--border); padding: 18px; border-radius: 14px; margin-top: 18px; }
.purchase-box .detail-rating-price .price { font-size: 20px; }
.seller-line { font-size: 14px !important; line-height: 1.65; color: var(--text-muted); }
.report-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 30px; padding-block: 14px; border-block: 1px solid var(--border); }
.report-entry span { font-size: 14px; color: var(--text-muted); }
.account-form, .listing-editor { width: 100%; max-width: 680px; margin: 20px auto; }
.account-form { display: grid; gap: 18px; }
.account-form input:not([type=checkbox]), .account-form textarea, .account-form select { width: 100%; min-width: 0; box-sizing: border-box; }
.account-form input[type=file] { padding: 10px; }
.account-form fieldset { min-width: 0; display: grid; gap: 12px; }
.account-form .check-line { display: flex; align-items: start; gap: 10px; }
.check-line input { flex: 0 0 auto; width: 20px; height: 20px; }
.account-form h2 { font-size: 20px; margin-top: 20px; }
.narrow-page { max-width: 760px; min-height: 55vh; }
.narrow-page .page-head { margin-top: 24px; }
.narrow-page .empty, .seller-cart, .policy-copy, .news-item, .draft-list li { border: 1px solid var(--border); background: white; padding: 22px; border-radius: 14px; margin-block: 18px; overflow-wrap: anywhere; }
.empty { max-width: 760px; }
.seller-cart h2 { font-size: 18px; overflow-wrap: anywhere; }
.operator-links { display: grid; gap: 12px; }
.draft-list { list-style: none; padding: 0; }
.draft-list li { display: grid; gap: 12px; }
.listing-steps { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; padding-left: 24px; }
.form-result, .draft-result { white-space: pre-line; padding-block: 8px; color: #494267; }
.site-footer { max-width: 1100px; display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding: 24px 0; margin-top: 28px; font-size: 14px; }
.site-footer a { text-decoration: underline; }
body { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 24px); }
body.has-player { padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 128px); }
#player-bar { padding-bottom: 12px; }
.search-mode main, .search-mode .site-footer { display: none !important; }
#search-screen { min-height: 65vh; padding-bottom: 24px; }
#search-results, .search-suggestions { width: calc(100% - 36px); max-width: 1100px; margin-inline: auto; }
.search-suggestions { padding-inline: 0; }
.search-mode .site-header { position: relative; }
.search-mode .header-search { grid-row: 1; }
@media(max-width:620px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .shell { width: calc(100% - 28px); } #search-results,.search-suggestions { width: calc(100% - 28px); } }
@media(max-width:480px) { .card-content { padding: 12px; } .card-title { font-size: 16px; } .purchase-box { padding: 12px; } .header-inner { gap: 4px; grid-template-columns: 36px minmax(0,1fr) 36px 36px; } .plain-icon { width: 36px; } .brand img { width: 126px; } }
@media(min-width:621px) and (max-width:900px) { .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Keep dynamic search content from anchoring the restored catalog position. */
html { overflow-anchor: none; }


@font-face {
  font-family: "Material Symbols Outlined";
  src: url("assets/icons/material-symbols.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Material Symbols Filled";
  src: url("assets/icons/material-symbols-filled.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
.google-symbol {
  display: inline-block;
  font: normal 400 1.125rem / 1 "Material Symbols Outlined";
  font-feature-settings: "liga";
  white-space: nowrap;
  letter-spacing: normal;
  text-transform: none;
  direction: ltr;
  flex: 0 0 auto;
}
.plain-icon .google-symbol, .nav-mark .google-symbol, .avatar .google-symbol { font-size: 24px; }
.icon-button[aria-pressed="true"] .google-symbol, .rating-button .google-symbol {
  font-family: "Material Symbols Filled";
}
.icon-button[aria-pressed="true"] .google-symbol { color: var(--primary); }
.rating-button .google-symbol { color: #b77700; }
.rating-button { flex-wrap: nowrap; }
.rating-value { white-space: nowrap; }
.rating-stars { position: relative; display: inline-flex; font-size: 15px; flex: 0 0 auto; }
.rating-stars .google-symbol { width: 1em; height: 1em; font-size: inherit; }
.rating-stars > .google-symbol { color: #bbb8c1; }
.rating-stars-fill { position: absolute; inset: 0 auto 0 0; display: flex; overflow: hidden; width: 0; }
.rating-stars-fill[data-fill="20"] { width: 20%; }
.rating-stars-fill[data-fill="40"] { width: 40%; }
.rating-stars-fill[data-fill="60"] { width: 60%; }
.rating-stars-fill[data-fill="80"] { width: 80%; }
.rating-stars-fill[data-fill="84"] { width: 84%; }
.rating-stars-fill[data-fill="90"] { width: 90%; }
.rating-stars-fill[data-fill="96"] { width: 96%; }
.rating-stars-fill[data-fill="100"] { width: 100%; }
.add-cart[data-added="true"], .add-cart[data-added="true"]:hover:not(:disabled),
.add-cart[data-added="true"]:active:not(:disabled) {
  background: #e9e9ed !important;
  border-color: #d4d4da;
  color: #45454c;
}
#slide-banner { margin-bottom: 0; }
.catalog-toolbar .catalog-tabs { margin-inline: auto; }
@media (max-width: 620px) {
  .card .rating-button, .card .rating-stars { font-size: 11px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 9px; }
  .card-content { padding: 7px; }
  .card-actions { grid-template-columns: minmax(44px, .75fr) minmax(72px, 1.25fr); gap: 4px; }
  .card-actions > * { font-size: 11px; padding-inline: 0; }
  .card-actions .sample .google-symbol { display: none; }
  .card .indicator-line { gap: 6px; font-size: 11px; }
  .card .indicator-line > span { gap: 3px; white-space: nowrap; }
  .card .indicator-line .google-symbol { font-size: 14px; }
  .card .image-price { left: 5px; bottom: 5px; font-size: 13px; }
}

.profile-card .avatar .google-symbol { display: grid; place-items: center; width: 24px; height: 24px; }

@media (max-width: 375px) {
  .card-content { padding-inline: 5px; }
  .card-actions .add-cart { font-size: 10px; }
}
