:root {
  color-scheme: dark;
  --bg: #131315;
  --sidebar: #19191c;
  --line: #2b2b2f;
  --text: #f3f2ef;
  --muted: #a5a4aa;
  --accent: #ff7848;
  --rail: 217px;
  --gutter: clamp(23px, 3.2vw, 56px);
  --row-cols: 39px minmax(132px, .9fr) minmax(100px, 1.38fr) 51px 42px 30px 30px;
  --row-gap: clamp(9px, 1.3vw, 22px);
  font-family: Inter, "Noto Sans TC", "Microsoft JhengHei UI", "PingFang TC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after {box-sizing: border-box}
html, body {margin: 0; min-height: 100%; background: var(--bg); color: var(--text)}
body {font-size: 14px; line-height: 1.5}
button, select, input {font: inherit}
button, select, a, input { -webkit-tap-highlight-color: transparent}
button {border: 0; background: none; color: inherit; cursor: pointer}
a {color: inherit; text-decoration: none}
button, a, input, select {outline-offset: 4px}
:focus-visible {outline: 2px solid var(--accent)}
button:disabled {cursor: default}
[hidden] {display: none !important}
.icon {display: inline-block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle}
.symbols {position: absolute; height: 0; width: 0; overflow: hidden; pointer-events: none}
.skip {position: fixed; top: -80px; left: 8px; z-index: 20; padding: 8px 16px; background: var(--accent); color: #151515}
.skip:focus {top: 8px}
.sidebar {position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid var(--line)}
.identity {display: flex; gap: 11px; align-items: center; margin: 28px 25px 36px; align-self: flex-start}
.identity > svg {width: 41px; height: 41px}
.identity > span {display: flex; flex-direction: column}
.identity b {font-size: 25px; font-weight: 850; letter-spacing: .065em; line-height: 1.14}
.identity small {font-family: Inter, Arial, sans-serif; font-size: 8px; font-weight: 700; line-height: 1; letter-spacing: .19em; margin-top: 7px; color: #c1bfc1}
.sidebar-scroll {overflow-y: auto; min-height: 80px; scrollbar-width: thin}
nav {padding: 0 15px}
.nav-heading {font-size: 11px; font-weight: 600; color: #9a999f; margin: 0 0 10px; padding-left: 13px; letter-spacing: .09em}
.nav-item {display: flex; width: 100%; min-height: 41px; align-items: center; gap: 12px; padding: 8px 13px; border: 1px solid transparent; border-radius: 6px; color: #c9c8cc; text-align: left; font-weight: 520; letter-spacing: .015em}
.nav-item + .nav-item {margin-top: 3px}
.nav-item .icon {width: 18px; height: 18px; color: #9a999f}
.nav-item:hover, .license-link:hover {background: #242427; color: white}
.nav-item.active {background: #392923; color: #ff976a; border-color: #4c342a}
.nav-item.active .icon {color: var(--accent)}
.nav-item small {margin-left: auto; font: 11px "Cascadia Mono", Consolas, monospace; color: #949399}
.nav-item.active small {color: var(--accent)}
.side-rule {height: 1px; background: var(--line); margin: 24px 12px 25px}
.sidebar-bottom {margin: auto 25px 20px; padding-top: 25px}
.volume-top {display: flex; align-items: center; color: #afadb2; gap: 8px; font-size: 12px}
.mute {color: #aeacb1; padding: 2px; display: grid; place-items: center}
.mute .icon {width: 16px; height: 16px}
.volume-top output {margin-left: auto; color: #c5c1c5; font: 11px Consolas, monospace}
#volume {margin: 10px 0 20px; display: block; width: 100%; height: 13px; cursor: pointer; accent-color: var(--accent)}
.license-link {display: flex; width: 100%; align-items: center; gap: 10px; padding: 18px 0 0; color: #b9b7bd; border-top: 1px solid var(--line); font-size: 12px}
.license-link:hover {background: none; color: var(--text)}
.license-link .icon {width: 16px; height: 16px}
.license-link .icon:last-child {width: 13px; height: 13px; margin-left: auto; color: #8d8a90}
.page {margin-left: var(--rail); min-height: 100vh}
.topbar {min-height: 70px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); border-bottom: 1px solid var(--line)}
.crumbs {display: flex; align-items: center; gap: 10px; color: #e8e7e8; white-space: nowrap; font-size: 13px; font-weight: 550}
.library-label {color: #aaa8ae; font-weight: 400}
.crumbs > .icon {width: 12px; height: 12px; color: #757479}
.search-field {min-width: 100px; display: flex; align-items: center; gap: 9px; background: #1e1e21; border: 1px solid #343437; border-radius: 7px; padding: 0 9px 0 12px; height: 35px; width: min(30vw, 291px); color: #96959c}
.search-field:focus-within {border-color: #b96b48}
.search-field .icon {width: 15px; height: 15px}
.search-field input {outline: none; background: transparent; border: 0; flex: 1; min-width: 0; color: var(--text); font-size: 12px; padding: 0; height: 100%}
.search-field input::-webkit-search-cancel-button {display: none}
.search-field input::placeholder {color: #a5a3ab}
.search-field kbd {display: grid; place-items: center; border: 1px solid #424146; border-radius: 3px; color: #aaa8b0; width: 18px; height: 19px; font: 12px Consolas, monospace}
#clear-search {color: #e6e4e8; display: grid; place-items: center; padding: 1px}
.search-field:has(#clear-search:not([hidden])) kbd {display: none}
.mobile-menu, .scrim {display: none !important}
main {max-width: 1610px; margin: 0 auto; padding: 26px var(--gutter) 50px}
.feature {isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 218px; height: clamp(218px, 17.4vw, 282px); border: 1px solid #3b2c24; border-radius: 11px; background: #201811 url("assets/impact-cover.webp") center center / cover no-repeat}
.feature::before {content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,13,.96), rgba(19,15,13,.86) 21%, rgba(36,20,12,.43) 47%, rgba(9,7,6,.02) 70%)}
.feature-copy {padding: 20px clamp(23px, 3vw, 48px)}
.feature-kicker {display: flex; gap: 9px; align-items: center; color: #ff9d6b; font-size: 12px; font-weight: 650; letter-spacing: .12em}
.kicker-mark {position: relative; width: 18px; height: 12px; background: linear-gradient(currentColor,currentColor) 0 center / 2px 5px no-repeat, linear-gradient(currentColor,currentColor) 4px center / 2px 9px no-repeat, linear-gradient(currentColor,currentColor) 8px center / 2px 12px no-repeat, linear-gradient(currentColor,currentColor) 12px center / 2px 7px no-repeat,linear-gradient(currentColor,currentColor) 16px center / 2px 4px no-repeat}
.feature h1 {font-size: clamp(38px, 3.52vw, 58px); line-height: 1.19; font-weight: 850; letter-spacing: .005em; margin: 9px 0 8px; color: #fff7ed}
.feature p {font-size: 14px; color: #d7ccc4; margin: 0 0 19px; font-weight: 430; letter-spacing: .025em}
.explore {display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 35px; padding: 7px 14px; border-radius: 5px; background: #ff7847; color: #23140e; font-size: 13px; font-weight: 730; transition: background .15s}
.explore:hover {background: #ff956b}
.explore .icon {width: 15px; height: 15px; stroke-width: 2}
.feature-actions {display: flex; flex-wrap: wrap; gap: 10px; align-items: center}
.pack-link {display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 35px; padding: 6px 12px; border: 1px solid #8c7365; border-radius: 5px; background: #271d18d9; color: #ffdccb; font-size: 13px; font-weight: 600}
.pack-link:hover {border-color: #ffa178; color: #fff1e9}
.pack-link .icon {width: 15px; height: 15px}
.list-pack {min-height: 30px; font-size: 12px; padding: 5px 9px}
.feature-count {position: absolute; right: 15px; bottom: 14px; display: flex; gap: 6px; align-items: center; color: #fbebe1; background: rgba(25,18,14,.74); border: 1px solid rgba(235,192,159,.24); padding: 3px 9px; border-radius: 12px; font-size: 11px}
.feature-count .icon {width: 13px; height: 13px}
#catalog-section {scroll-margin-top: 16px; outline: 0}
.feature:not([hidden]) + #catalog-section {margin-top: 28px}
.catalog-heading, .title-group {display: flex; align-items: center}
.catalog-tools {display: flex; align-items: center; gap: 8px}
.source-control select {appearance: none; background: transparent; color: inherit; border: none; font-size: 12px; padding: 6px 25px 6px 11px; cursor: pointer; width: 89px}
.source-control select:has(option[value="cc0"]:checked) {width: 116px}
.source-control option {background: #242427}
.catalog-heading {justify-content: space-between; gap: 12px; margin-bottom: 18px}
.title-group {gap: 12px; min-width: 0}
#list-title {margin: 0; font-size: clamp(23px,1.82vw,30px); font-weight: 760; line-height: 1.4; letter-spacing: .025em}
#result-count {white-space: nowrap; color: #bcbac1; background: #27272a; border: 1px solid #343438; border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 540; font-variant-numeric: tabular-nums}
.sort-control {position: relative; display: flex; align-items: center; color: #d4d2d7; border: 1px solid #3b3b40; border-radius: 6px; background: #202023}
.sort-control>.icon:first-child {position: absolute; left: 10px; width: 15px; height: 15px; pointer-events: none}
.sort-control>.icon:last-child {position: absolute; right: 8px; width: 12px; height: 12px; pointer-events: none}
#sort {appearance: none; width: 108px; cursor: pointer; padding: 6px 20px 6px 31px; color: inherit; background: none; border: 0; font-size: 12px}
#sort:has(option[value="duration"]:checked) {width: 136px}
#sort option {background: #242427}
.table-labels, .sound-row {display: grid; grid-template-columns: var(--row-cols); gap: var(--row-gap); align-items: center; padding-inline: 13px}
.table-labels {border-block: 1px solid var(--line); background: #19191c; min-height: 31px; font-size: 10px; letter-spacing: .055em; color: #a2a1a8}
.name-label {grid-column: 1 / 3; padding-left: 2px}
.actions-label {grid-column: span 2; text-align: right; padding-right: 4px}
.sound-row {min-height: 75px; border-bottom: 1px solid var(--line); transition: background .15s}
.sound-row:hover {background: #1a1a1c}
.sound-row.is-playing {background: #211b18}
.play-btn {width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #48474d; background: #232326; border-radius: 50%; color: #e1e0e4; transition: background .15s, color .15s, border-color .15s}
.play-btn .icon {width: 15px; height: 15px}
.play-btn:hover, .play-btn.is-playing {color: #20150f; background: var(--accent); border-color: var(--accent)}
.sound-info {min-width: 0}
.sound-title {display: block; letter-spacing: .035em; font-size: 15px; font-weight: 630; color: #e9e8e6; line-height: 1.4}
.sound-tags {display: flex; align-items: center; gap: 7px; color: #a5a3ab; font-size: 11px; margin-top: 4px; line-height: 1.3; white-space: nowrap}
.sound-tags .tag-name {overflow: hidden; text-overflow: ellipsis; color: #95939c}
.sound-tags .tag-name::before {content: "·"; padding-right: 7px}
.origin-tag {flex-shrink: 0; font: 9px/1.35 Consolas, "Noto Sans TC", "Microsoft JhengHei", sans-serif; letter-spacing: .02em; border: 1px solid #454148; border-radius: 3px; color: #b3adb8; padding: 0 3px}
a.origin-tag {border-color: #554338; color: #daa784}
a.origin-tag:hover {background: #372820; color: #ffd4b5}
.waveform {appearance: none; position: relative; display: block; width: 100%; height: 36px; border: 0; border-radius: 4px; padding: 0; overflow: hidden; color: #79777f; cursor: crosshair}
.waveform:hover {color: #a9a5a9}
.waveform svg {width: 100%; height: 36px; display: block}
.wave-base {stroke: currentColor}
.wave-progress {stroke: var(--accent)}
.sound-time {color: #c3c1c8; font: 12px/1.4 "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap}
.sound-format {justify-self: start; color: #adabb3; font: 10px/1.1 Consolas, monospace; letter-spacing: .04em; border: 1px solid #3b3a40; border-radius: 4px; padding: 3px 5px}
.icon-btn {display: grid; place-items: center; width: 30px; height: 33px; color: #aaa8b0; border-radius: 6px; padding: 0}
.icon-btn .icon {width: 17px; height: 17px}
.icon-btn:hover {background: #2f2d30; color: #f5f2f0}
.save-btn.is-saved {color: var(--accent)}
.save-btn.is-saved .icon {fill: var(--accent)}
.more-wrap {display: flex; justify-content: center; margin-top: 23px}
#more {display: flex; align-items: center; gap: 9px; padding: 8px 15px; border: 1px solid #37373a; border-radius: 6px; color: #d1cfd5; background: #202023; font-size: 13px}
#more .icon {width: 14px; height: 14px}
.empty-state {min-height: 200px; display: flex; text-align: center; flex-direction: column; justify-content: center; align-items: center; color: var(--muted)}
.empty-state h3, .empty-state strong {font-size: 18px; margin: 13px 0 4px; color: var(--text)}
.empty-state p {margin: 5px 0}
.empty-state button {color: var(--accent); margin-top: 9px}
#notice {position: fixed; bottom: 22px; left: calc(50% + var(--rail) / 2); transform: translateX(-50%); z-index: 9; border-radius: 20px; background: #383531; color:#f6f2ee; font-size: 13px; box-shadow: 0 4px 20px #0004; white-space: nowrap; pointer-events: none}
#notice:not(:empty) {padding: 7px 16px}
dialog {width: min(430px,calc(100% - 32px)); margin: auto; color: var(--text); background: #202022; border: 1px solid #444247; padding: 24px; border-radius: 11px; box-shadow: 0 20px 100px #0007}
dialog::backdrop {background: #08080ac9}
.dialog-title {display: flex; align-items: center; justify-content: space-between}
.dialog-title h2 {font-size: 22px; margin: 0}
dialog p {line-height: 1.9; font-size: 14px; color: #c3c0c6}
dialog h3 {font-size: 15px; margin: 20px 0 4px}
dialog h3 + p {margin: 0 0 12px}
.sources {list-style: none; padding: 0; margin: 10px 0; font-size: 13px}
.sources li {display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #373639}
.sources a, .terms-link {color: #ffae85}
.sources a:hover,.terms-link:hover {text-decoration: underline}
.sources small {color: #b7b4bd; font-size: 11px}
.terms-link {font-size: 12px}
.file-spec {display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding-top: 14px; color: #e8a07d; font: 12px Consolas, "Microsoft JhengHei", monospace}
.file-spec .icon {width: 15px; height: 15px}
@media(min-width:1600px) {:root {--rail: 240px} .sound-row {min-height: 80px}}
@media(max-width:1100px) {
  :root {--rail: 195px; --gutter: 24px; --row-gap: 11px; --row-cols: 36px minmax(112px,.93fr) minmax(70px,1.18fr) 44px 35px 26px 26px}
  nav {padding: 0 12px}.identity {margin-left: 23px}
  .table-labels, .sound-row {padding-inline: 8px}
}
@media(max-width:820px) {
  :root {--rail: 0px; --gutter: 23px}
  .sidebar {width: 226px; transform: translateX(-100%); transition: transform .2s ease; z-index: 12}
  .sidebar.open, body.sidebar-open .sidebar {transform: translateX(0)}
  body.sidebar-open .scrim {display: block !important; position: fixed; inset: 0; z-index: 10; background: #0009}
  .mobile-menu {display: grid !important; margin-right: 4px}
  .topbar {min-height: 60px}.search-field {width: min(43vw,285px)}
  main {padding-top: 21px}
}
@media(max-width:600px) {
  :root {--gutter: 15px; --row-cols: 32px minmax(85px,1fr) minmax(35px,.8fr) 35px 25px 26px; --row-gap: 7px}
  .topbar {padding-block: 8px; gap: 8px; min-height: 55px}
  .crumbs {gap: 5px; font-size: 12px}.crumbs>.icon,.library-label {display: none}
  .mobile-menu {margin-right: 0; width: 26px}.mobile-menu .icon {width: 19px; height: 19px}
  .search-field {width: 48%; gap: 6px; padding-left: 9px; height: 33px}.search-field kbd {display: none}
  main {padding-top: 15px}
  .feature {min-height: 200px; height: 200px; background-position: 59% center; border-radius: 9px}
  .feature::before {background: linear-gradient(90deg,rgba(19,15,13,.94),rgba(21,17,14,.75) 39%,rgba(26,15,9,.22) 78%)}
  .feature-copy {padding: 18px}.feature-kicker {font-size: 11px}
  .feature h1 {font-size: 35px;margin: 10px 0 7px}.feature p {max-width: 215px; font-size: 12px; line-height: 1.6; margin-bottom: 14px}
  .feature-count {font-size: 9px; right: 10px; bottom: 9px; padding: 2px 6px}
  .feature:not([hidden]) + #catalog-section {margin-top: 22px}
  .catalog-heading {margin-bottom: 13px}.title-group {gap: 6px}#list-title {font-size: 21px}#result-count {font-size: 10px; padding: 2px 6px}
  #sort {width: 96px; font-size: 11px; padding-left: 25px}#sort:has(option[value="duration"]:checked) {width: 116px}
  .sort-control>.icon:first-child {width: 12px; left: 8px}
  .table-labels, .sound-row {padding-inline: 3px}.table-labels {font-size: 9px}
  .sound-row {min-height: 66px}.play-btn {width: 30px; height: 30px}.play-btn .icon {width: 13px; height: 13px}
  .sound-title {font-size: 13px}.sound-tags {font-size: 9px; gap: 4px}.sound-tags .tag-name::before {padding-right: 4px}
  .sound-format,.format-label {display: none}.sound-time {font-size: 10px}.icon-btn {width: 25px}.icon-btn .icon {width: 15px; height: 15px}
  .waveform,.waveform svg {height: 29px}
}
@media(max-width:368px) {:root {--row-gap: 4px; --gutter: 10px}.sound-tags .tag-name {display: none}.feature h1 {font-size: 30px}}
@media(max-width:600px) {
  .catalog-heading {flex-wrap: wrap; row-gap: 9px}
  .catalog-tools {gap: 5px}
  .source-control select {font-size: 11px; width: 78px; padding: 6px 18px 6px 8px}
  .source-control select:has(option[value="cc0"]:checked) {width: 99px}
  .sound-tags .tag-name {display: none}
  .origin-tag {font-size: 8px}
}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;transition:none!important}}
