:root {
  --ink: #11120f;
  --paper: #ecebe5;
  --acid: #d7ff3f;
  --orange: #ff6534;
  --line: rgba(17, 18, 15, 0.2);
  --muted: #72746c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans TC", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
::selection { background: var(--acid); color: var(--ink); }

.topbar {
  height: 86px;
  display: grid;
  grid-template-columns: 220px minmax(260px, 560px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 3.2vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(236, 235, 229, 0.88);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 12px; font-weight: 900; line-height: .88; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font-size: 11px; letter-spacing: -.06em; transform: rotate(-8deg); }
.search { height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 15px; background: white; border: 1px solid rgba(17,18,15,.12); box-shadow: 0 5px 18px rgba(17,18,15,.04); }
.search > span { font-size: 26px; line-height: 1; transform: rotate(-20deg); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 13px; }
.search input::placeholder { color: #8d8e87; }
.search kbd { border: 1px solid #d0d0cb; border-radius: 4px; padding: 3px 6px; color: #8b8c84; font-size: 10px; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.live-dot { font: 700 10px/1 monospace; letter-spacing: .08em; }
.live-dot i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #67c42b; margin-right: 4px; box-shadow: 0 0 0 4px rgba(103,196,43,.13); }
.library-button { border: 0; background: var(--ink); color: white; padding: 13px 16px; font-size: 12px; font-weight: 800; }
.library-button b { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 8px; border-radius: 50%; background: var(--acid); color: var(--ink); font-size: 10px; }

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  position: relative;
  overflow: hidden;
  padding: 112px 6vw 90px;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .36;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-index { font: 700 10px/1.3 monospace; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { color: var(--orange); }
.hero h1 { font-size: clamp(64px, 8.2vw, 132px); line-height: .82; letter-spacing: -.085em; margin: 44px 0 34px; font-weight: 950; }
.hero h1 em, .studio-title h2 em { color: var(--orange); font-style: normal; -webkit-text-stroke: 1px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
.lede { font-size: 16px; line-height: 1.65; margin-left: 7px; color: #4e5049; }
.hero-orbit { position: relative; min-height: 430px; align-self: center; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(17,18,15,.35); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.orbit-one { width: 410px; height: 240px; }
.orbit-two { width: 310px; height: 440px; transform: translate(-50%, -50%) rotate(36deg); }
.core { position: absolute; left: 50%; top: 50%; width: 174px; height: 174px; display: grid; place-content: center; transform: translate(-50%,-50%) rotate(8deg); border-radius: 50%; background: var(--acid); border: 2px solid var(--ink); box-shadow: 12px 14px 0 var(--ink); text-align: center; font-size: 39px; line-height: .72; letter-spacing: -.08em; font-weight: 950; }
.core span { font-size: 27px; }
.orbit-label { position: absolute; background: var(--ink); color: white; font: 700 9px monospace; padding: 7px 10px; letter-spacing: .08em; }
.orbit-label.l1 { left: 4%; top: 34%; transform: rotate(-14deg); }
.orbit-label.l2 { right: 10%; top: 26%; transform: rotate(12deg); background: var(--orange); }
.orbit-label.l3 { right: 6%; bottom: 24%; transform: rotate(-7deg); }
.metrics { position: absolute; right: 5vw; bottom: 36px; display: flex; border-top: 1px solid var(--line); }
.metrics div { min-width: 112px; padding: 14px 0 0 24px; border-left: 1px solid var(--line); }
.metrics strong { display: block; font: 700 26px monospace; }
.metrics span { font-size: 9px; color: var(--muted); font-weight: 800; letter-spacing: .1em; }

.catalog { background: var(--ink); color: white; padding: 92px 5vw 110px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.catalog-heading h2, .studio-title h2 { font-size: clamp(50px, 6vw, 92px); line-height: .84; margin: 22px 0 0; letter-spacing: -.07em; }
.catalog-heading > p { color: #96988f; font-size: 12px; line-height: 1.6; }
.section-index { color: var(--acid); }
.category-row { display: flex; gap: 6px; margin-bottom: 34px; flex-wrap: wrap; }
.category-row button { border: 1px solid #393a35; color: #b8bab1; background: transparent; padding: 11px 15px; font-size: 12px; }
.category-row button span { margin-left: 16px; color: #65675f; font: 10px monospace; }
.category-row button.selected { background: var(--acid); border-color: var(--acid); color: var(--ink); font-weight: 900; }
.category-row button.selected span { color: #656b39; }
.catalog-meta { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 14px; color: #74766f; font: 9px monospace; letter-spacing: .04em; }
.catalog-meta strong { color: white; font-size: 10px; letter-spacing: .08em; }
.sound-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sound-card { border: 1px solid #30312d; background: #181916; min-width: 0; transition: transform .25s ease, border-color .25s ease; }
.sound-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-top { height: 45px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid #30312d; }
.sound-number { font: 10px monospace; color: #74766f; }
.sound-tag { font-size: 9px; padding: 4px 7px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); text-transform: uppercase; }
.heart { margin-left: auto; border: 0; background: none; color: #4e504a; font-size: 17px; }
.heart.saved { color: var(--accent); }
.play-area { position: relative; width: 100%; height: 138px; border: 0; border-bottom: 1px solid #30312d; background: linear-gradient(140deg, rgba(255,255,255,.025), transparent); color: inherit; padding: 22px 18px; display: flex; align-items: center; gap: 15px; overflow: hidden; }
.play-button { flex: 0 0 45px; width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid #4b4d46; border-radius: 50%; font-size: 12px; transition: .2s; }
.play-area:hover .play-button { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.waveform { flex: 1; height: 68px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.waveform i { display: block; min-width: 2px; flex: 1; max-width: 4px; background: #63655e; opacity: .7; transform-origin: center; }
.waveform.active i { background: var(--accent, var(--acid)); animation: bounce .65s ease-in-out infinite alternate; }
@keyframes bounce { to { transform: scaleY(.35); opacity: 1; } }
.progress-line { position: absolute; height: 2px; left: 0; bottom: 0; background: var(--accent); transition: width .04s linear; }
.card-bottom { min-height: 88px; padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.card-bottom h3 { margin: 0 0 7px; font-size: 15px; letter-spacing: -.02em; }
.card-bottom p { margin: 0; color: #70726b; font: 9px monospace; }
.edit-button { border: 0; color: #a4a69e; background: transparent; font-size: 10px; font-weight: 800; }
.edit-button span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-left: 7px; border: 1px solid #3b3c37; border-radius: 50%; }
.empty { padding: 80px; text-align: center; border: 1px dashed #3d3f39; color: #85877f; }
.load-more { width: 100%; min-height: 64px; margin-top: 22px; border: 1px solid #3d3f39; background: #1a1b18; color: white; font-size: 12px; font-weight: 900; letter-spacing: .04em; transition: border-color .2s, color .2s; }
.load-more:hover { border-color: var(--acid); color: var(--acid); }
.load-more small { margin-left: 10px; color: #74766f; font: 9px monospace; }
.load-more span { float: right; margin-right: 20px; color: var(--acid); font-size: 18px; }

.studio { display: grid; grid-template-columns: .8fr 1.3fr .8fr; gap: 36px; padding: 110px 5vw; background: var(--acid); border-bottom: 1px solid rgba(17,18,15,.3); }
.studio .section-index { color: var(--ink); }
.studio-title h2 { font-size: clamp(50px, 5vw, 78px); }
.studio-title h2 em { color: white; }
.studio-title > p:last-child { max-width: 310px; font-size: 13px; line-height: 1.7; margin-top: 30px; }
.editor { background: var(--ink); color: white; padding: 25px; box-shadow: 12px 12px 0 rgba(17,18,15,.18); }
.editor-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid #383a34; }
.editor-head div { display: grid; gap: 6px; }
.editor-head span, .panel-label { color: #8d8f87; font: 9px monospace; letter-spacing: .12em; text-transform: uppercase; }
.editor-head strong { font-size: 18px; }
.mini-play { border: 1px solid #55574f; color: white; background: transparent; padding: 10px 14px; font-size: 10px; }
.editor > .waveform { height: 128px; margin: 8px 0; }
.controls { display: grid; gap: 20px; border-top: 1px solid #383a34; padding-top: 22px; }
.controls label { display: grid; gap: 10px; }
.controls label span { display: flex; justify-content: space-between; color: #acafa5; font-size: 10px; }
.controls label b { color: white; font: 10px monospace; }
input[type="range"] { width: 100%; height: 3px; accent-color: var(--acid); }
.export-panel { align-self: start; padding: 25px; background: #f7f7f1; border: 1px solid rgba(17,18,15,.25); }
.panel-label { color: #5d5f58; display: block; margin-bottom: 17px; }
.format-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.format-tabs button { display: grid; text-align: left; gap: 5px; padding: 14px; border: 1px solid #c7c8c0; background: transparent; }
.format-tabs button.active { background: var(--ink); color: white; border-color: var(--ink); }
.format-tabs strong { font-size: 15px; }
.format-tabs small { color: #888a82; font: 8px monospace; }
.bitrate { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 0; font-size: 10px; font-weight: 800; }
.bitrate select { border: 1px solid #bfc0b8; background: white; padding: 8px; font-size: 10px; }
.export-button { width: 100%; height: 62px; margin-top: 24px; border: 0; background: var(--orange); color: white; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-weight: 900; box-shadow: 6px 6px 0 var(--ink); }
.export-button:disabled { opacity: .7; cursor: wait; }
.export-button b { font-size: 25px; }
.privacy { text-align: center; font: 8px monospace; letter-spacing: .08em; margin: 19px 0 0; color: #787a72; }
.privacy::first-letter { color: #5dc126; }

footer { min-height: 210px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 50px 5vw; background: var(--ink); color: white; }
footer > p { font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
footer > p span { color: #777970; font-size: 11px; letter-spacing: 0; font-weight: 500; }
footer > a:last-child { color: var(--acid); text-align: right; font-size: 11px; text-decoration: none; }
.toast { position: fixed; right: 28px; bottom: 28px; z-index: 50; background: white; color: var(--ink); border: 1px solid var(--ink); box-shadow: 7px 7px 0 var(--acid); padding: 15px 20px; font-size: 12px; font-weight: 900; }

@media (max-width: 1000px) {
  .topbar { grid-template-columns: 180px 1fr; }
  .nav-actions .live-dot { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-orbit { position: absolute; right: -90px; top: 190px; width: 480px; opacity: .38; }
  .hero-copy { max-width: 760px; }
  .sound-grid { grid-template-columns: repeat(2, 1fr); }
  .studio { grid-template-columns: 1fr 1.5fr; }
  .export-panel { grid-column: 2; }
}
@media (max-width: 680px) {
  .topbar { height: auto; padding: 15px 18px; grid-template-columns: 1fr auto; gap: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .nav-actions .library-button { font-size: 0; padding: 10px; }
  .nav-actions .library-button b { margin: 0; font-size: 10px; }
  .hero { min-height: 660px; padding: 72px 22px 120px; }
  .hero h1 { margin-top: 36px; }
  .hero-orbit { opacity: .18; right: -180px; }
  .metrics { left: 22px; right: auto; }
  .metrics div { min-width: 95px; padding-left: 14px; }
  .catalog { padding: 70px 18px; }
  .catalog-heading { align-items: start; }
  .catalog-heading > p { display: none; }
  .sound-grid { grid-template-columns: 1fr; }
  .studio { grid-template-columns: 1fr; padding: 72px 18px; }
  .export-panel { grid-column: auto; }
  footer { grid-template-columns: 1fr; gap: 28px; }
  footer > a:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
