:root {
  color-scheme: light;
  --ink: #2c4136;
  --muted: #697469;
  --pine: #34523e;
  --matcha: #dbe5cc;
  --paper: #f8f7ef;
  --sheet: #fdfcf4;
  --rule: #d6d9c8;
  --berry: #834440;
  --serif: Georgia, "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "STSong", SimSun, serif;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { min-width: 280px; margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; border: 0; background: none; }
button, select { cursor: pointer; }
button:disabled, input:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #677f43; outline-offset: 3px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; }
.frame { width: min(1200px, calc(100% - clamp(50px, 9vw, 148px))); margin-inline: auto; }
.topbar { border-bottom: 1px solid #dadbcd; background: #fbfaf2; }
.top-inner, .brand, nav, .nav-item, .share, .library-tools, .section-heading, .filters, .search-field, .sort-field, .now, .transport-buttons, .timeline, .sound { display: flex; align-items: center; }
.top-inner { min-height: 72px; justify-content: space-between; gap: 16px; }
.brand { flex: none; gap: 10px; }
.brand img { width: 41px; height: 41px; }
.brand-type { display: grid; gap: 4px; }
.brand strong { font-family: var(--serif); font-size: 19px; letter-spacing: .025em; line-height: 1.16; }
.brand small { color: #778269; font-family: Georgia, serif; font-size: 9px; letter-spacing: .17em; }
nav { gap: 6px; }
.nav-item, .share { gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav-item .icon, .share .icon { width: 16px; height: 16px; }
.nav-item { color: #626e5e; }
.nav-item.active { background: #e5ecd9; color: #38563a; }
.nav-item:hover, .share:hover { background: #ebedde; }
.nav-rule, .sound-rule { background: var(--rule); height: 17px; width: 1px; }
.nav-rule { margin: 0 4px; }
main { padding: 26px 0 111px; }
.hero { position: relative; display: grid; align-items: center; width: 100%; aspect-ratio: 2.96; min-height: 280px; isolation: isolate; overflow: hidden; background: #374732; border-radius: 12px; box-shadow: 0 4px 16px #35482a10; }
.hero-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 49%; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(90deg, #162f25a8 0%, #1934247a 22%, #19342420 40%, transparent 56%); }
.hero::after { content: ""; position: absolute; inset: 9px; border: 1px solid #fff1cc60; border-radius: 6px; pointer-events: none; }
.hero-content { color: #fff9e1; width: 40%; padding: 20px 12px; text-align: center; justify-self: start; }
.cafe-crest { display: flex; align-items: center; justify-content: center; gap: 11px; color: #efe1ac; }
.cafe-crest .icon { width: 26px; height: 26px; }
.cafe-crest span { width: 37px; height: 1px; background: linear-gradient(90deg, transparent, #f4e1a6bc); }
.cafe-crest span:last-child { transform: rotate(180deg); }
h1 { margin: 3px 0 20px; }
.hero-number { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(79px, 8vw, 126px); font-style: italic; font-weight: 500; line-height: .99; letter-spacing: -.078em; padding-right: .075em; }
.hero-title { display: block; margin-top: 2px; font: 650 clamp(31px, 3.25vw, 50px)/1.23 var(--serif); letter-spacing: .085em; text-indent: .085em; }
.browse { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; background: #f6efd5; color: #344d35; border: 1px solid #faf3de; border-radius: 999px; font-size: 13px; font-weight: 650; }
.browse:hover { background: #fff8e4; }
.browse .icon { width: 16px; height: 16px; }
#library { margin-top: 31px; scroll-margin-top: 20px; outline: none; }
.library-tools { justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading { gap: 10px; white-space: nowrap; }
.menu-icon { color: #6d815f; display: grid; place-items: center; }
.menu-icon .icon { width: 24px; height: 24px; }
.section-heading h2 { margin: 0; font: 700 26px/1.3 var(--serif); letter-spacing: .04em; }
.count { border: 1px solid #cfd8c1; color: #586c50; border-radius: 999px; display: inline-flex; gap: 3px; align-items: center; padding: 2px 8px 3px; font-size: 11px; }
#track-count { font-variant-numeric: tabular-nums; }
.filters { gap: 9px; }
.search-field, .sort-field { height: 36px; border: 1px solid #d6dacb; border-radius: 7px; color: #60705f; background: #fffdf6; }
.search-field { width: clamp(146px, 18vw, 239px); gap: 7px; padding: 0 12px; }
.search-field .icon, .sort-field .icon { width: 15px; height: 15px; }
.search-field input { width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; outline: 0; font-size: 12px; }
.search-field input::placeholder { color: #758071; }
.search-field:focus-within, .sort-field:focus-within { border-color: #718664; }
.sort-field { position: relative; }
.sort-field > .icon { position: absolute; left: 10px; pointer-events: none; }
.sort-field > .icon:last-child { width: 12px; left: auto; right: 8px; }
.sort-field select { appearance: none; width: 105px; height: 100%; padding: 0 19px 0 31px; border: 0; border-radius: 7px; color: #4a5c4a; background: transparent; font-size: 12px; }
.list-body { position: relative; background: var(--sheet); border: 1px solid #cbd1bb; border-radius: 9px; overflow: hidden; }
.list-body::before { content: ""; display: block; height: 4px; background: repeating-linear-gradient(90deg, #94a67f 0 13px, #dce3cd 13px 26px); opacity: .78; }
#empty-state { display: flex; min-height: clamp(180px, 23.8vh, 252px); flex-direction: column; align-items: center; justify-content: center; padding: 12px 15px 21px; text-align: center; }
.empty-art { display: block; width: 126px; height: auto; margin-bottom: 4px; }
#empty-title { font: 650 19px/1.5 var(--serif); letter-spacing: .05em; margin: 0; }
#empty-copy { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.catalog-error { display: flex; align-items: center; justify-content: center; padding: 7px; background: #f5f0df; color: #756446; font-size: 13px; }
.retry, .catalog-error button { color: var(--pine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 7px; font-size: 12px; }
.manage-link { display: flex; justify-content: flex-end; margin-top: 7px; }
.manage-link a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 2px; font-size: 11px; color: #64715f; }
.manage-link a:hover { color: var(--ink); text-decoration: underline; }
.manage-link .icon { width: 13px; height: 13px; }
.track-row { display: flex; align-items: center; padding: 0 16px; }
.track-row + .track-row { border-top: 1px solid #e4e5d8; }
.track-row:hover, .track-row.is-current { background: #edf2e3; }
.track-select { flex: 1; min-width: 0; display: grid; grid-template-columns: 36px 1fr 49px; gap: 8px; align-items: center; text-align: left; padding: 13px 2px; }
.track-index, .track-duration { color: var(--muted); font: 13px/1.3 Georgia, serif; font-variant-numeric: tabular-nums; }
.track-info, .now-data { display: grid; min-width: 0; gap: 4px; }
.track-title, #now-title, .track-artist, #now-artist { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.track-title { font-size: 14px; font-weight: 650; }
.track-artist { font-size: 12px; color: var(--muted); }
.track-fav { display: grid; place-items: center; width: 40px; height: 40px; color: #7c8a73; }
.track-fav svg { width: 17px; height: 17px; }
.track-fav.active { color: var(--berry); }
.track-row.is-current .track-index { color: #456738; font-weight: bold; }
.player { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; border-top: 1px solid #d5dac8; background: #fafbf2; box-shadow: 0 -3px 16px #43563a08; padding-bottom: env(safe-area-inset-bottom); }
.player-inner { display: grid; align-items: center; grid-template-columns: 1fr minmax(225px,1.5fr) 1fr; column-gap: 24px; min-height: 85px; padding: 9px 0; }
.now { gap: 11px; min-width: 0; }
.now-art { flex: none; display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #ccd6bb; border-radius: 7px; background-color: #e4ebd5; background-image: linear-gradient(90deg, #a1b98c1f 50%, transparent 50%), linear-gradient(#a1b98c1f 50%, transparent 50%); background-size: 9px 9px; color: #5a7450; }
.now-art .icon { width: 25px; height: 25px; }
#now-title { font-size: 14px; } #now-artist { font-size: 11px; color: var(--muted); }
.transport { display: grid; gap: 3px; }
.transport-buttons { justify-content: center; gap: 13px; }
.control { display: inline-grid; place-items: center; border-radius: 50%; width: 32px; height: 32px; }
.control:hover:enabled { background: #e6eddb; }
.control:disabled { color: #8a9782; }
.control .icon { width: 17px; height: 17px; }
#play { width: 37px; height: 37px; background: #3b5e43; color: #f9f9e9; }
#play:hover:enabled { background: #507956; }
#play:disabled { background: #70836a; }
#play .icon { width: 20px; height: 20px; }
.timeline { gap: 8px; justify-content: center; color: #71816a; font: 10px/1 Consolas, monospace; }
input[type=range] { appearance: none; -webkit-appearance: none; min-width: 0; margin: 0; height: 18px; background: transparent; border: 0; cursor: pointer; accent-color: #759467; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #749065 var(--progress,0%), #d5ddca 0); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 2px; background: #d5ddca; }
input[type=range]::-moz-range-progress { height: 3px; background: #749065; }
input[type=range]::-webkit-slider-thumb { appearance: none; width: 8px; height: 8px; border-radius: 50%; background: #5c7851; margin-top: -2.5px; }
input[type=range]::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #5c7851; }
#seek { flex: 1; max-width: 365px; }
#seek:disabled { cursor: default; } #seek:disabled::-webkit-slider-thumb { opacity: 0; } #seek:disabled::-moz-range-thumb { opacity: 0; }
.sound { justify-content: flex-end; gap: 4px; }
.sound-rule { margin-inline: 6px; }
#volume { width: clamp(46px, 6vw, 86px); }
#repeat.active { color: #395c39; background: #dde8cc; }
.status:not(:empty) { position: fixed; z-index: 7; bottom: 98px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92%; border-radius: 8px; padding: 10px 16px; background: #334b39; color: #fff9e7; font-size: 13px; }
dialog { color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; width: min(90vw, 420px); padding: 24px; }
dialog::backdrop { background: #22322677; }
dialog h2 { margin: 0 0 14px; font: 700 23px var(--serif); }
dialog label { display: block; font-size: 13px; color: var(--muted); }
dialog input { width: 100%; margin: 8px 0 15px; padding: 9px; border: 1px solid var(--rule); border-radius: 5px; }
dialog button { padding: 7px 14px; border-radius: 5px; color: #fff; background: var(--pine); }
@media (max-width: 820px) {
  .frame { width: calc(100% - 42px); }
  .top-inner { min-height: 63px; }
  nav { gap: 1px; }
  .nav-item, .share { padding: 8px 10px; }
  .hero { min-height: 240px; }
  .hero-content { width: 42%; }
  .hero-number { font-size: 78px; }
  .hero-title { font-size: 31px; }
  .cafe-crest .icon { width: 20px; height: 20px; }
  .hero h1 { margin: 1px 0 14px; }
  .browse { padding: 7px 14px; font-size: 12px; }
  .player-inner { grid-template-columns: minmax(0,1fr) minmax(200px,1.4fr) auto; gap: 12px; }
  #volume, .sound-rule { display: none; }
}
@media (max-width: 600px) {
  .frame { width: calc(100% - 30px); }
  .top-inner { min-height: 57px; gap: 6px; }
  .brand { gap: 6px; }
  .brand img { width: 31px; height: 31px; }
  .brand strong { font-size: 14px; letter-spacing: 0; }
  .brand small { font-size: 7px; letter-spacing: .1em; }
  .brand-type { gap: 3px; }
  .nav-item, .share { gap: 3px; padding: 8px; font-size: 12px; }
  .nav-item .icon, .share .icon { width: 14px; height: 14px; }
  .nav-rule { margin: 0 2px; }
  .share span { display: none; }
  main { padding-top: 15px; padding-bottom: 108px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: unset; aspect-ratio: auto; border-radius: 10px; background: #354b35; }
  .hero-art { position: relative; z-index: 0; display: block; height: clamp(164px, 46vw, 238px); object-position: 80% 38%; }
  .hero::before { display: none; }
  .hero::after { inset: 5px; border-color: #fff1cc4d; }
  .hero-content { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 14px 17px 16px; background: linear-gradient(90deg, #354b35, #43583b); }
  .cafe-crest { display: none; }
  .hero h1 { display: flex; align-items: baseline; gap: 8px; margin: 0; }
  .hero-number { font-size: clamp(33px, 8vw, 44px); }
  .hero-title { margin: 0; font-size: clamp(19px, 4.5vw, 25px); text-indent: 0; letter-spacing: .04em; }
  .browse { gap: 4px; font-size: 11px; padding: 6px 9px; }
  .browse .icon { width: 13px; height: 13px; }
  #library { margin-top: 22px; }
  .library-tools { flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
  .section-heading { gap: 7px; }
  .section-heading h2 { font-size: 23px; }
  .menu-icon .icon { width: 20px; height: 20px; }
  .filters { width: 100%; }
  .search-field { flex: 1; }
  #empty-state { min-height: 155px; padding: 8px 12px 15px; }
  .empty-art { width: 110px; }
  #empty-title { font-size: 17px; }
  .manage-link { margin-top: 4px; }
  .player-inner { display: grid; grid-template-columns: minmax(0,1fr) auto auto; grid-template-rows: auto auto; min-height: 78px; column-gap: 7px; row-gap: 2px; padding: 7px 0 3px; }
  .now { gap: 7px; }
  .now-art { width: 35px; height: 35px; }
  .now-art .icon { width: 21px; height: 21px; }
  #now-title { font-size: 13px; } #now-artist { font-size: 10px; }
  .transport { display: contents; }
  .transport-buttons { grid-column: 2; grid-row: 1; gap: 2px; }
  .timeline { grid-column: 1/-1; grid-row: 2; gap: 6px; }
  #seek { max-width: none; }
  .sound { grid-column: 3; grid-row: 1; gap: 0; }
  .sound .control { width: 25px; }
  .status:not(:empty) { bottom: 88px; }
}
@media (max-width: 365px) {
  .frame { width: calc(100% - 20px); }
  .brand strong { font-size: 13px; }
  .nav-item { padding: 7px 6px; }
  .nav-item .icon { display: none; }
  .sound #mute { display: none; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
