:root {
  color-scheme: dark;
  --bg: #101916;
  --panel: #18221d;
  --line: #ffffff12;
  --text: #ecf0e8;
  --muted: #9eaaa0;
  --accent: #c8d9aa;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a:hover {
  color: var(--accent);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.85;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  letter-spacing: -0.04em;
}
svg {
  width: 28px;
  height: 28px;
}
.header {
  max-width: 1320px;
  padding: 0 48px;
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.brand svg {
  color: var(--accent);
}
.brand b {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
  padding-left: 14px;
  border-left: 1px solid #ffffff30;
}
.header nav {
  display: flex;
  gap: 25px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.account-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  max-width: 160px;
  overflow: hidden;
}
.avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #c8d9aa20;
  color: var(--accent);
  flex-shrink: 0;
}
.button {
  border: 1px solid transparent;
  background: var(--accent);
  color: #202c1d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  min-height: 46px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}
.button:hover {
  background: #d9e6c1;
  color: #202c1d;
}
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: #ffffff29;
}
.button.secondary:hover {
  background: #ffffff0b;
}
.button.small {
  min-height: 38px;
  padding: 9px 17px;
  font-size: 13px;
}
.button.wide {
  width: 100%;
}
.text-button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px;
  min-height: 44px;
}
.text-button:hover {
  color: var(--text);
}
.preview-banner {
  background: #ddd9ac12;
  border-bottom: 1px solid #ddd9ac22;
  text-align: center;
  color: #c1bc95;
  font-size: 11px;
  padding: 9px 20px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
main {
  max-width: 1224px;
  margin: auto;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 65px 0 70px;
}
.hero-content {
  padding: 20px 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  line-height: 1.8;
  font-weight: 550;
  margin-bottom: 20px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 100%;
  margin-right: 8px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.3;
  font-weight: 400;
  margin: 24px 0;
  letter-spacing: 0.015em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-description {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 28px;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #ffffff20;
  border-radius: 8px;
  background: #ffffff04;
  max-width: 530px;
  overflow: hidden;
}
.search > span {
  font-size: 29px;
  color: var(--muted);
  padding-left: 17px;
}
.search input {
  min-width: 0;
  flex: 1;
  background: transparent;
  border: none;
  padding: 18px 13px;
  color: var(--text);
  font-size: 13px;
}
.search button {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 18px;
  white-space: nowrap;
}
.search input:focus-visible {
  outline-offset: -4px;
}
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 10px;
  color: #93a08f;
  margin-top: 18px;
}
.hero-notes span:before {
  content: "·";
  margin-right: 6px;
}
.hero-scene {
  position: relative;
  height: 400px;
  border-radius: 150px 150px 10px 10px;
  overflow: hidden;
  background:
    linear-gradient(0deg, #111c16e8, #111c1600 70%),
    url("/library-static/forest.jpg") center/cover,
    #2d3f2c;
  box-shadow: inset 0 0 0 1px #ffffff08;
}
.scene-grain {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #293a2522, #11201522);
}
.scene-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  display: grid;
  gap: 8px;
  text-shadow: 0 1px 20px #000;
}
.scene-caption span {
  font-size: 11px;
  color: #d0d7c6;
  letter-spacing: 0.15em;
}
.scene-caption strong {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}
.hero-scene > svg {
  position: absolute;
  bottom: 33px;
  right: 30px;
  color: #d6e3bc;
  width: 35px;
  height: 35px;
}
.collection {
  padding: 25px 0 45px;
  scroll-margin-top: 25px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-title .eyebrow {
  margin-bottom: 8px;
}
.section-title h2,
.collection > h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 0;
}
.section-title > span,
.count {
  font-size: 12px;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0 30px;
}
.chip {
  border: 1px solid #ffffff14;
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  border-radius: 25px;
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #20301d;
}
.chip:hover {
  border-color: var(--accent);
}
.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.sound-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #18201b;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.sound-card:hover {
  transform: translateY(-3px);
  border-color: #c8d9aa40;
}
.card-art {
  display: block;
  position: relative;
  aspect-ratio: 1.63;
  overflow: hidden;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.duration {
  position: absolute;
  bottom: 14px;
  left: 16px;
  background: #0007;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.play-dot {
  position: absolute;
  right: 15px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf2dfdd;
  color: #2b3929;
  font-size: 11px;
  padding-left: 2px;
}
.card-pattern {
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background:
    radial-gradient(ellipse at 25% 100%, #8ba58335, transparent 65%),
    linear-gradient(120deg, #25382b, #182820);
  color: #b5c7a7;
}
.card-pattern svg {
  width: 55px;
  height: 55px;
  opacity: 0.6;
}
.card-pattern > span {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.1em;
}
.pattern-rain,
.pattern-water {
  background:
    radial-gradient(ellipse at 80% 0%, #76938c55, transparent 60%),
    linear-gradient(130deg, #2b3e3d, #172829);
  color: #bad0cb;
}
.pattern-fire {
  background:
    radial-gradient(ellipse at 30% 70%, #9b653055, transparent 65%), #29291e;
  color: #d7ba8d;
}
.pattern-urban,
.pattern-transport {
  background: linear-gradient(140deg, #494332, #282b24);
}
.card-body {
  padding: 20px;
}
.card-body .eyebrow {
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.05em;
  font-size: 10px;
  margin-bottom: 10px;
}
.card-body .eyebrow span {
  color: var(--muted);
}
.card-body h3 {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.card-body > p {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}
.card-footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 65px 24px;
  border: 1px dashed #ffffff19;
  border-radius: 10px;
  margin: 25px 0;
}
.empty h1 {
  font-family: var(--serif);
  font-size: 32px;
}
.empty h3 {
  font-size: 21px;
  margin: 17px 0 10px;
}
.empty p {
  color: var(--muted);
  font-size: 14px;
}
.empty-icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
  opacity: 0.7;
}
.empty > a:not(.button) {
  color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}
.contribute {
  margin: 35px 0 70px;
  padding: 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #ffffff02;
}
.contribute .eyebrow {
  margin-bottom: 10px;
}
.contribute h2 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.contribute p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.contribute .button {
  flex-shrink: 0;
}
footer {
  border-top: 1px solid var(--line);
  padding: 35px max(24px, calc((100vw - 1224px) / 2));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}
footer .brand {
  font-size: 13px;
}
footer > div {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
  align-items: center;
}
footer > p {
  width: 100%;
  font-size: 10px;
  color: #718071;
  margin: 0;
}
.page-heading {
  padding: 55px 0 30px;
}
.page-heading h1 {
  font-size: 40px;
  font-family: var(--serif);
  margin-bottom: 18px;
  line-height: 1.4;
}
.page-heading p:not(.eyebrow) {
  font-size: 14px;
  color: var(--muted);
}
.back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 30px;
}
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr;
  gap: 55px;
  margin-bottom: 70px;
}
.editor-aside {
  padding: 20px 0;
}
.step {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.editor-aside h3 {
  font-size: 18px;
  margin: 12px 0;
}
.editor-aside p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 35px;
}
.editor-aside a {
  font-size: 12px;
  color: var(--accent);
}
label {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.optional {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
input:not([type="checkbox"]),
textarea,
select {
  display: block;
  width: 100%;
  background: #0e171260;
  color: var(--text);
  border: 1px solid #ffffff20;
  border-radius: 6px;
  padding: 12px;
  margin-top: 7px;
  line-height: 1.5;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #78867b;
}
textarea {
  resize: vertical;
  min-height: 72px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.help {
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.8;
}
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed #aaba9244;
  border-radius: 10px;
  padding: 30px 18px;
  background: #c8d9aa04;
  gap: 10px;
}
.upload-box svg {
  color: var(--accent);
  width: 40px;
  height: 40px;
}
.upload-box strong {
  font-weight: 500;
  font-size: 17px;
}
.upload-box span {
  font-size: 11px;
  color: var(--muted);
}
.upload-box input {
  font-size: 12px;
  max-width: 100%;
  border: 0;
  background: none;
  width: auto;
}
.license-box {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.license-box h3 {
  font-size: 18px;
}
.license-box p {
  font-size: 12px;
  color: var(--muted);
}
.license-box a,
.check a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  margin: 15px 0;
  line-height: 1.8;
}
.check input {
  margin-top: 5px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
}
.form-error {
  color: #f0b8a7;
  font-size: 13px;
  white-space: pre-line;
}
.form-error:empty {
  display: none;
}
.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 12px;
}
.status {
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #c8d9aa15;
  color: var(--accent) !important;
  letter-spacing: 0.03em;
}
.status-rejected {
  background: #bb715329;
  color: #e7b397 !important;
}
.status-pending {
  color: #d3c293 !important;
  background: #d3c29315;
}
.status-draft,
.status-withdrawn {
  color: var(--muted) !important;
  background: #ffffff10;
}
.review-note {
  padding: 15px;
  border: 1px solid #e8bf802a;
  background: #e8bf8010;
  border-radius: 6px;
  color: #e1c299;
  font-size: 13px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1000px;
  margin: 65px auto 90px;
}
.auth-story h1 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.6;
}
.auth-story > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}
.auth-waves svg {
  width: 120px;
  height: 120px;
  color: #c8d9aa30;
  margin-top: 20px;
}
.auth-panel h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.auth-panel form {
  margin-top: 25px;
}
.profile {
  max-width: 650px;
}
.profile summary {
  cursor: pointer;
  font-size: 14px;
}
.profile form {
  margin-top: 25px;
}
.detail-top {
  padding-top: 40px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 55px;
  align-items: center;
}
.detail-art {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel);
}
.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-art .card-pattern {
  min-height: 100%;
}
.detail-art .card-pattern svg {
  width: 100px;
  height: 100px;
}
.detail-info h1 {
  font-family: var(--serif);
  font-size: 37px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.creator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.creator > span:last-child {
  color: var(--accent);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.tag {
  font-size: 11px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.player-panel {
  padding: 20px;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 25px;
}
.player-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  margin-bottom: 17px;
  color: var(--muted);
}
.player-heading strong {
  font-weight: 400;
  color: var(--text);
}
audio {
  width: 100%;
  height: 45px;
  display: block;
}
audio[hidden] {
  display: none;
}
.player-panel p {
  margin: 12px 0 0;
}
.detail-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  padding: 65px 0 80px;
}
.detail-body h2 {
  font-family: var(--serif);
  font-size: 27px;
}
.detail-body h3 {
  font-size: 20px;
  margin: 30px 0 15px;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 2;
  color: #c2cbbf;
  font-size: 14px;
}
dl {
  margin-top: 35px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
dl > div {
  display: flex;
  gap: 25px;
  font-size: 12px;
  padding: 10px 0;
}
dt {
  color: var(--muted);
  min-width: 70px;
}
dd {
  margin: 0;
}
.license-panel {
  align-self: start;
}
.license-panel h3 {
  margin-top: 0;
}
.license-panel p {
  font-size: 12px;
  color: var(--muted);
}
.license-panel > a {
  font-size: 12px;
  color: var(--accent);
}
.license-panel .button {
  margin: 25px 0;
}
.license-panel summary {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}
.license-panel details > label {
  margin-top: 15px;
}
.private-note {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}
.review-form {
  margin-top: 25px;
  max-width: 800px;
}
.review-form audio {
  margin-bottom: 15px;
}
.collection > article.panel {
  margin-top: 20px;
  max-width: 800px;
}
.legal {
  max-width: 800px;
  margin: 55px auto 70px;
  padding: 40px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: 34px;
}
.legal h2 {
  font-size: 20px;
  margin-top: 32px;
}
.legal p {
  font-size: 14px;
  color: var(--muted);
}
.legal a {
  color: var(--accent);
}
progress {
  width: 100%;
  accent-color: var(--accent);
  height: 10px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: min(90vw, 500px);
  background: var(--accent);
  color: #20301d;
  padding: 14px 20px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 8px 30px #0005;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 20;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 15px;
  background: var(--accent);
  color: #18221d;
  z-index: 50;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 85px;
  }
  .hero-scene {
    height: 450px;
  }
}
@media (max-width: 1320px) {
  main {
    margin: 0 48px;
  }
  .header {
    gap: 25px;
  }
  .header nav {
    gap: 18px;
  }
  .header-actions {
    gap: 18px;
  }
}
@media (max-width: 1050px) {
  .header nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero {
    gap: 30px;
  }
  .hero-scene {
    height: 360px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-notes {
    font-size: 9px;
    gap: 10px;
  }
  .sound-grid {
    gap: 18px;
  }
  .card-body {
    padding: 16px;
  }
  .card-body h3 {
    font-size: 16px;
  }
  .auth-layout {
    gap: 45px;
  }
  .editor-layout {
    gap: 30px;
    grid-template-columns: minmax(0, 2fr) 1fr;
  }
  .detail-grid {
    gap: 30px;
  }
  .detail-info h1 {
    font-size: 30px;
  }
  .detail-body {
    gap: 40px;
  }
}
@media (max-width: 760px) {
  main {
    margin: 0 22px;
  }
  .header {
    height: 72px;
    padding: 0 22px;
    gap: 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand b {
    margin-left: 7px;
    padding-left: 9px;
    font-size: 11px;
  }
  .header .brand > svg {
    width: 23px;
  }
  .header .brand {
    font-size: 14px;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .button {
    display: none;
  }
  .account-link {
    font-size: 12px;
    max-width: 110px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 30px;
  }
  .hero-content {
    padding: 0;
  }
  .hero h1 {
    font-size: 49px;
    margin-top: 20px;
  }
  .hero-scene {
    height: 230px;
    border-radius: 90px 90px 8px 8px;
    background-position: center 55%;
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-notes {
    font-size: 10px;
    gap: 8px 15px;
  }
  .scene-caption strong {
    font-size: 20px;
  }
  .scene-caption {
    left: 24px;
    bottom: 23px;
  }
  .sound-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .card-art {
    aspect-ratio: 1.3;
  }
  .card-body {
    padding: 14px;
  }
  .card-body .eyebrow > span:not(.status) {
    display: none;
  }
  .card-body h3 {
    font-size: 15px;
  }
  .card-body > p {
    font-size: 11px;
  }
  .card-footer {
    font-size: 10px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .section-title h2,
  .collection > h2 {
    font-size: 23px;
  }
  .count {
    font-size: 10px;
  }
  .chip {
    padding: 8px 13px;
    font-size: 11px;
  }
  .contribute {
    padding: 25px 0;
    flex-direction: column;
    align-items: start;
    gap: 22px;
    margin-bottom: 40px;
  }
  .contribute h2 {
    font-size: 23px;
  }
  .page-heading {
    padding-top: 35px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .editor-aside {
    display: none;
  }
  .panel {
    padding: 22px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 35px 0 50px;
  }
  .auth-story h1 {
    font-size: 28px;
  }
  .auth-story > p:not(.eyebrow),
  .auth-waves {
    display: none;
  }
  .auth-story .eyebrow {
    font-size: 9px;
  }
  .auth-panel {
    max-width: 480px;
    width: 100%;
    justify-self: center;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-art {
    aspect-ratio: 1.35;
  }
  .detail-info h1 {
    font-size: 31px;
  }
  .detail-body {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 0;
  }
  .detail-info .eyebrow {
    margin-bottom: 13px;
  }
  .legal {
    padding: 25px;
    margin: 30px 0;
  }
  .legal h1 {
    font-size: 28px;
  }
  footer {
    padding: 30px 22px;
    gap: 23px;
  }
  footer > div {
    gap: 16px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .empty {
    padding: 45px 20px;
  }
  .collection {
    padding-bottom: 25px;
  }
  .preview-banner {
    font-size: 10px;
  }
  .private-note {
    align-items: start;
    font-size: 11px;
  }
  .back {
    margin-bottom: 22px;
  }
}
@media (max-width: 390px) {
  .sound-grid {
    grid-template-columns: 1fr;
  }
  .card-art {
    aspect-ratio: 1.6;
  }
  .hero h1 {
    font-size: 42px;
  }
  .header .brand b {
    display: none;
  }
  .search button {
    padding: 15px 11px;
  }
  .search input {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Browsing starts with search and recordings, not a promotional hero. */
.catalog-heading { max-width:1120px; margin:0 auto; padding:32px 24px 8px; }
.catalog-heading h1 { font-family:inherit; font-size:32px; margin:0 0 20px; }
.catalog-heading .search { max-width:none; margin:0; }
.catalog-heading + .collection { padding-top:16px; }
.card-body audio { width:100%; height:40px; margin:12px 0; }
.preview-banner { font-size:11px; padding:4px 12px; }

.auth-layout { display:block; max-width:520px; padding-top:36px; }
.auth-panel h1 { font-family:inherit; font-size:28px; margin:0 0 12px; }
.editor-layout { grid-template-columns:minmax(0,760px); justify-content:center; }

.loop-control { display:flex; align-items:center; gap:6px; margin:6px 0 12px; font-size:12px; color:var(--muted); }
.loop-control input { width:16px; height:16px; accent-color:var(--accent); }

/* Keep the contributor path short; optional and review details stay secondary. */
.upload-details { margin:20px 0; padding:16px 0; border-block:1px solid var(--line, #ffffff18); }
.upload-details summary,.review-details summary { cursor:pointer; color:var(--muted, #afb8b2); font-size:14px; }
.upload-details[open] summary,.review-details[open] summary { margin-bottom:20px; }
.license-notice { margin:24px 0 16px; font-size:13px; line-height:1.8; color:var(--muted, #afb8b2); }
.license-notice a { text-decoration:underline; }
#upload-form .form-actions { justify-content:flex-end; }

.app-entry { float:right; border:1px solid var(--line); border-radius:8px; padding:8px 12px; font-size:12px; color:var(--accent); margin-bottom:12px; }

#login-form fieldset { border:0; padding:0; margin:0; min-width:0; }
#login-form [hidden] { display:none !important; }
#auth-email { overflow-wrap:anywhere; }

/* Session controls remain visible outside collection-specific actions. */
.account-menu { position:relative; }
.account-menu summary { cursor:pointer; list-style:none; }
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu-panel { position:absolute; right:0; top:calc(100% + 12px); z-index:50; width:min(300px,calc(100vw - 32px)); padding:20px; border:1px solid var(--line); border-radius:16px; background:#19221d; box-shadow:0 16px 48px #0006; display:grid; gap:16px; }
.account-menu-panel .text-button { text-align:left; padding:0; }
.account-email { overflow-wrap:anywhere; color:var(--muted); }
.upload-actions { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.account-heading .account-tabs { margin-bottom:0; }
.collection[hidden] { display:none !important; }
@media(max-width:600px) {

}

/* Dense account library: small identity, small thumbnails, controls only while listening. */
.page-heading.account-heading { padding:24px 0 0; }
.account-heading h1 { font-family:inherit; font-size:22px; margin:0; }
.account-heading .account-tabs { margin-top:12px; }
.account-collection { padding:16px 0 20px; }
.account-collection .section-title { margin-bottom:8px; align-items:center; }
.account-collection .section-title h2 { font:600 16px/1.4 var(--sans, sans-serif); }
.account-list { border-top:1px solid var(--line); }
.sound-row { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.row-play { position:relative; display:grid; place-items:center; width:48px; height:48px; padding:0; border:0; border-radius:8px; overflow:hidden; background:#293b2c; color:#edf4e6; cursor:pointer; }
.row-play img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:brightness(.5); }
.row-play span { position:relative; z-index:1; font-size:17px; }
.row-play svg { width:24px; }
.row-info h3 { font:600 15px/1.5 var(--sans,sans-serif); margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-info p { margin:3px 0 0; font-size:12px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row-actions { display:flex; align-items:center; gap:14px; font-size:13px; }
.row-actions .status { font-size:11px; padding:3px 7px; }
.row-player { grid-column:2 / -1; display:flex; align-items:center; gap:12px; }
.row-player[hidden] { display:none; }
.row-player audio { width:100%; min-width:0; height:36px; }
.row-player .loop-control { flex-shrink:0; margin:0; }
.account-profile { padding:12px 0 24px; }
.account-profile .panel { padding:14px 18px; }
.account-profile .panel:not([open]) { background:transparent; }
.account-collection .empty { padding:24px 16px; margin:8px 0; }
@media(max-width:600px) {
 .sound-row { gap:10px; grid-template-columns:44px minmax(0,1fr) auto; }
 .row-play { width:44px; height:44px; }
 .row-actions { gap:8px; }
 .row-player { grid-column:1 / -1; }

}

.header .app-download > span:last-child { display:none; }
@media(max-width:760px) {
  .header .brand b { display:none; }
  .header-actions .app-download { display:inline-flex; flex-shrink:0; padding:9px 12px; font-size:12px; }
  .header .app-download > span:first-child { display:none; }
  .header .app-download > span:last-child { display:inline; }
  .header .account-link { max-width:80px; }
}
