@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #101817;
  --sidebar: #111c19;
  --panel: #1b2925;
  --panel-2: #24342e;
  --line: #304139;
  --text: #f5f3eb;
  --muted: #a1aea6;
  --accent: #b9e8c7;
  --accent-dark: #183d32;
  --warm: #f2b992;
  --font: 'Manrope','DM Sans',Arial,sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.has-player { padding-bottom: 110px; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; z-index: 20; display: flex; flex-direction: column; height: 100vh; padding: 29px 16px 22px; background: var(--sidebar); border-right: 1px solid #2c3a33; }
.brand { display: flex; align-items: center; gap: 11px; padding: 1px 14px 51px; font-size: 23px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 10px; background: var(--accent); color: #193d31; }
.brand-mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
.brand-name small { display: block; margin-top: 7px; color: #8ca297; font-size: 8px; font-weight: 800; letter-spacing: 1.45px; }
.sidebar-label { margin: 0 14px 13px; color: #779084; font-size: 10px; font-weight: 800; letter-spacing: 2px; }
.nav-list, .topic-list { display: grid; gap: 5px; }
.nav-item, .topic-list button, .settings-link { appearance: none; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 43px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #a8b8ae; text-align: left; font-size: 12px; font-weight: 700; transition: background .2s,color .2s; }
.nav-item:hover, .topic-list button:hover, .settings-link:hover { background: #26372e; color: #fff; }
.nav-item.active { background: #2b4135; color: #d0f5d6; }
.nav-icon { width: 19px; text-align: center; font-size: 21px; font-family: Arial,sans-serif; line-height: 1; }
.nav-count { margin-left: auto; color: #91a89a; font-size: 10px; }
.sidebar-divider { height: 1px; margin: 29px 14px; background: #2d3d35; }
.topic-list button { gap: 16px; font-size: 17px; }
.topic-list span { font-size: 12px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-note { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; padding: 16px 13px; border: 1px solid #385146; border-radius: 11px; background: #22352d; color: #a9c5b1; font-size: 10px; font-weight: 700; }
.note-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #b7eac6; box-shadow: 0 0 0 4px #b7eac620; }
.account-panel { display: flex; align-items: center; gap: 9px; min-width: 0; margin-bottom: 8px; padding: 10px 11px; border: 1px solid #354b3d; border-radius: 10px; background: #1b2c23; }
.account-avatar { display: grid; place-items: center; flex: none; width: 29px; height: 29px; border-radius: 9px; background: #365743; color: #d7efda; font-size: 12px; font-weight: 800; }
.account-copy { display: grid; gap: 2px; min-width: 0; }
.account-copy strong,.account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: 10px; }
.account-copy small { color: #93a99a; font-size: 8px; }
.account-action { flex: none; margin-left: auto; padding: 5px 0 5px 5px; border: 0; background: transparent; color: #b9e8c7; font-size: 10px; font-weight: 800; }
.settings-link { font-size: 12px; }

.main-column { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 18px; height: 86px; padding: 0 clamp(22px,4.3vw,68px); border-bottom: 1px solid #26362d; }
.search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 625px; height: 46px; margin: auto; padding: 0 5px 0 16px; border: 1px solid #405248; border-radius: 10px; background: #1b2924; transition: border-color .2s; }
.search:focus-within { border-color: var(--accent); }
.search-icon { color: #8dab98; font-size: 25px; line-height: 1; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f4f8f3; font-size: 12px; }
.search input::placeholder { color: #82998a; }
.search kbd { padding: 3px 7px; border: 1px solid #415a4b; border-radius: 5px; color: #a1b4a7; font-size: 10px; }
.search button { height: 35px; padding: 0 17px; border: 0; border-radius: 7px; background: var(--accent); color: #193a2f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.search button:hover, .primary-button:hover { background: #d2f4db; }
.search button:disabled { opacity: .7; cursor: wait; }
.search button span { margin-left: 8px; font-size: 14px; }
.top-settings, .icon-button { border: 0; background: transparent; color: #a0b3a5; font-size: 22px; }
.top-settings { margin-left: auto; }
.menu-button, .mobile-logo { display: none; }
main { max-width: 1530px; margin: auto; }

.hero { min-height: 265px; margin: 30px clamp(22px,4.3vw,68px) 0; border: 1px solid #5c775c; border-radius: 18px; background: linear-gradient(110deg,#254437,#213d35 65%,#294737); }
.hero-copy { max-width: 680px; padding: 36px 5.5% 34px; }
.eyebrow, .section-kicker { color: #d9ebbd; font-size: 10px; font-weight: 800; letter-spacing: 2.4px; }
.spark { margin-right: 8px; font-size: 15px; }
.hero h1 { margin: 16px 0 12px; font-size: clamp(35px,4vw,56px); line-height: 1.12; letter-spacing: -3px; font-weight: 800; }
.hero h1 em { color: #d6f3c7; font-style: normal; }
.hero-copy p { max-width: 395px; margin: 0; color: #c7d9c8; font-size: 13px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 27px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 41px; padding: 0 20px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #193a2f; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ghost-button { border: 0; background: transparent; color: #e0e9d6; font-size: 11px; font-weight: 800; }
.ghost-button span { margin-left: 8px; }

.content-section { padding: 48px clamp(22px,4.3vw,68px) 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-kicker { color: #acd7b8; font-size: 9px; }
.section-heading h2,.modal-head h2 { margin: 10px 0 8px; font-size: clamp(25px,2.3vw,34px); line-height: 1.2; letter-spacing: -1.4px; }
.accent-dot { color: var(--accent); }
.section-heading p { margin: 0; color: #94a79a; font-size: 12px; }
.section-actions { display: flex; gap: 16px; }
.text-button { padding: 10px 0; border: 0; background: transparent; color: #bce8c5; font-size: 11px; font-weight: 800; white-space: nowrap; }
.chip-row { display: flex; gap: 9px; overflow: auto; margin: 26px 0 25px; padding-bottom: 3px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { padding: 9px 16px; border: 1px solid #3c5145; border-radius: 50px; background: #1c2b24; color: #aec0b0; font-size: 10px; font-weight: 800; white-space: nowrap; }
.chip:hover,.chip.selected { border-color: #d5edcf; background: #d5edcf; color: #234632; }
.audio-grid { display: grid; gap: 8px; }
.home-feeds { display: grid; gap: 43px; margin-top: 30px; }
.feed-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.feed-heading > div { min-width: 0; }
.feed-kicker { color: #acd7b8; font-size: 9px; font-weight: 800; letter-spacing: 1.9px; }
.feed-heading h3 { margin: 7px 0 5px; font-size: clamp(18px,2vw,23px); letter-spacing: -.7px; }
.feed-heading p { margin: 0; color: #91a99a; font-size: 10px; line-height: 1.6; }
.feed-heading .text-button { flex: none; }
.feed-message { padding: 21px 23px; border: 1px dashed #46604e; border-radius: 10px; background: #18261f; color: #b1c5b4; font-size: 12px; line-height: 1.7; }
.feed-message button { display: inline-block; margin-left: 14px; border: 0; background: transparent; color: #c7edcb; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.audio-card { display: grid; grid-template-columns: 32px 42px minmax(0,1fr) 64px 34px; align-items: center; gap: 14px; min-width: 0; min-height: 72px; padding: 9px 14px; border: 1px solid #30453a; border-radius: 10px; background: #182820; }
.audio-card:hover,.audio-card.current { border-color: #64866b; background: #20372a; }
.card-number { color: #7f9785; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-play { width: 38px; height: 38px; padding-left: 3px; border: 0; border-radius: 50%; background: #d8f2d2; color: #204332; font-size: 14px; }
.row-play:hover { background: #fff; }
.card-copy { display: block; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.card-copy strong { display: block; overflow: hidden; margin-bottom: 4px; font-size: 12px; line-height: 1.5; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.card-copy span { display: block; overflow: hidden; color: #94a69a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-copy .source-tag { display: inline; margin-right: 8px; padding: 2px 5px; border-radius: 4px; background: #30483a; color: #c4e3c7; font-size: 9px; font-weight: 800; }
.card-copy .source-tag.bilibili { background: #354555; color: #b9daf5; }
.row-duration { color: #aabfac; text-align: right; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.card-favorite { border: 0; background: transparent; color: #a9b8ad; font-size: 22px; line-height: 1; }
.card-favorite.saved { color: #eabb94; }
.card-favorite.needs-login { color: #7d9683; }
.empty-state { margin-top: 24px; padding: 56px 20px; border: 1px dashed #44594b; border-radius: 14px; text-align: center; }
.empty-icon { color: var(--accent); font-size: 40px; }
.empty-state h3 { margin: 8px 0; font-size: 19px; }
.empty-state p { margin-bottom: 22px; color: #9eb0a2; font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 15px; margin: 26px clamp(22px,4.3vw,68px) 0; padding: 24px 0 30px; border-top: 1px solid #2c4134; color: #83978a; font-size: 9px; font-weight: 700; letter-spacing: .4px; }
footer a:hover { color: var(--accent); }

dialog { border: 1px solid #46614c; border-radius: 17px; background: #1b2923; color: var(--text); box-shadow: 0 35px 100px #000b; }
dialog::backdrop { background: #07110cc9; backdrop-filter: blur(8px); }
.settings-dialog { width: min(500px,calc(100vw - 30px)); padding: 29px; }
.modal-head { display: flex; align-items: start; justify-content: space-between; }
.close-button { border: 0; background: transparent; color: #c5d4c8; font-size: 27px; line-height: 1; }
.settings-dialog > p { margin: 16px 0 24px; color: #adbeaf; font-size: 12px; line-height: 1.8; }
.settings-dialog label { font-size: 11px; font-weight: 800; }
.key-field { display: flex; height: 43px; margin-top: 9px; border: 1px solid #52705a; border-radius: 8px; }
.key-field:focus-within { border-color: var(--accent); }
.key-field input { flex: 1; min-width: 0; padding: 0 12px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 12px; }
.key-field button { padding: 0 12px; border: 0; background: transparent; color: #bbcbbb; }
.settings-dialog .hint { margin: 10px 0 25px; font-size: 10px; }
.modal-actions { display: flex; align-items: center; justify-content: space-between; }
.help-link { display: block; margin-top: 22px; color: #c7edcb; font-size: 11px; font-weight: 700; }
.auth-dialog { width: min(430px,calc(100vw - 30px)); padding: 29px; }
.auth-intro,.auth-footnote { color: #aabfaf; font-size: 11px; line-height: 1.7; }
.auth-intro { margin: 14px 0 21px; }
#sso-auth-panel p { color: #d5e8d7; font-size: 12px; line-height: 1.7; margin: 0 0 14px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid #3a5341; border-radius: 9px; background: #17251d; }
.auth-switch button { min-height: 36px; border: 0; border-radius: 6px; background: transparent; color: #9caf9f; font-size: 11px; font-weight: 800; }
.auth-switch button.selected { background: #31523d; color: #e8f8e6; }
#auth-form { display: grid; gap: 8px; margin-top: 23px; }
#auth-form label { margin-top: 5px; color: #d7e6d9; font-size: 11px; font-weight: 800; }
#auth-form input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #4a6550; border-radius: 8px; outline: 0; background: #132019; color: #fff; font-size: 12px; }
#auth-form input:focus { border-color: var(--accent); }
#auth-form input::placeholder { color: #788f7d; }
.auth-error { margin: 5px 0 0; color: #ffc5a7; font-size: 11px; line-height: 1.6; }
.auth-submit { width: 100%; margin-top: 11px; }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-footnote { margin: 18px 0 0; text-align: center; }
.legacy-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 26px; }
.legacy-actions .primary-button { flex: none; }
.toast { position: fixed; z-index: 100; bottom: 124px; left: 50%; padding: 12px 18px; border-radius: 8px; background: #e8f5df; color: #213e2b; font-size: 11px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%,15px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 195px minmax(0,1fr); }
  .sidebar { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: 245px; transform: translateX(-105%); transition: transform .25s; box-shadow: 20px 0 60px #0008; }
  .sidebar.open { transform: none; }
  .topbar { height: 68px; gap: 10px; padding: 0 17px; }
  .menu-button,.mobile-logo { display: block; }
  .mobile-logo { display: flex; align-items: center; gap: 8px; color: #d9f4d8; font-size: 17px; font-weight: 800; white-space: nowrap; }
  .mobile-logo .brand-mark { width: 25px; height: 25px; border-radius: 7px; }
  .mobile-logo .brand-mark svg { width: 20px; height: 20px; stroke-width: 3.8; }
  .search { height: 39px; margin-left: auto; }
  .search kbd,.top-settings { display: none; }
  .search button { height: 29px; padding: 0 10px; }
  .search button span { display: none; }
  .search input { font-size: 10px; }
  .hero { min-height: 230px; margin: 16px 16px 0; }
  .hero-copy { padding: 29px 25px; }
  .hero h1 { font-size: 42px; letter-spacing: -3px; }
  .content-section { padding: 37px 16px; }
  footer { margin: 0 16px; flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .topbar { padding: 0 12px; }
  .search input::placeholder { color: transparent; }
  .hero { min-height: 220px; }
  .hero-copy { padding: 28px 22px; }
  .hero h1 { font-size: 36px; }
  .hero-copy p { max-width: 295px; }
  .hero-actions { gap: 9px; flex-wrap: wrap; }
  .ghost-button { padding: 8px 0; }
  .audio-card { grid-template-columns: 20px 34px minmax(0,1fr) 40px 25px; gap: 8px; min-height: 65px; padding: 8px 9px; }
  .row-play { width: 32px; height: 32px; font-size: 12px; }
  .card-copy strong { font-size: 11px; }
  .row-duration { font-size: 9px; }
  .card-favorite { font-size: 19px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 27px; }
  .section-actions { padding-top: 17px; }
  .settings-dialog { padding: 21px; }
  .feed-heading { align-items: start; }
  .feed-heading .text-button { padding-top: 5px; }
  .feed-message button { display: block; margin: 8px 0 0; }
}
