@font-face {
  font-family: "DM Sans";
  src: url("./assets/dm-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: #fcfaf7;
  font-synthesis: none;
  --ink: #0b2718;
  --paper: #fcfaf7;
  --white: #fefefe;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }

.home { min-height: 100vh; overflow: hidden; background: var(--paper); }
.topbar { height: 33px; display: grid; place-items: center; color: #6f766f; font-size: 12px; line-height: 16px; }
.navigation { height: 96px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; position: relative; }
.brand { width: 64px; height: 84px; display: block; align-self: flex-start; position: relative; z-index: 1; }
.brand img { width: 64px; height: 84px; display: block; }
.theme-toggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 40px; border: 1px solid var(--ink); border-radius: 24px; box-shadow: 2px 2px 0 var(--ink); background: var(--paper); padding: 3px; }
.toggle-knob { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); }
.toggle-knob img { width: 20px; height: 20px; }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.round-button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); padding: 9px; }
.round-button img { width: 20px; height: 20px; object-fit: contain; }
.search-strip { height: 100px; background: var(--paper); display: flex; align-items: center; gap: 12px; padding: 10px 42px; }
.search-box { height: 80px; flex: 1; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-radius: 12px; color: rgba(26,26,26,.7); background: rgba(171,162,143,.1); font-size: 24px; line-height: 32px; }
.search-box img { width: 24px; height: 24px; opacity: .7; }
.recently-played { width: 140px; height: 80px; border: 0; border-radius: 12px; background: var(--white); display: flex; align-items: center; gap: 9px; padding: 8px; font-size: 12px; color: var(--ink); text-decoration: none; }
.play-icon { border: 2px solid var(--ink); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 9px; }
.book-thumb { width: 24px; height: 38px; color: #fff; background: #12603a; display: grid; place-items: center; font-size: 8px; }
.categories { height: 280px; overflow: hidden; }
.category-track { display: flex; gap: 16px; padding: 0 41px; width: max-content; }
.category-card { width: 200px; text-align: center; margin: 0; }
.category-image { position: relative; width: 200px; height: 200px; overflow: hidden; border-radius: 10px; background: var(--white); border: 1px solid #d9ddd3; box-shadow: 0 4px 6px rgba(0,0,0,.08); }
.category-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.audio-button { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); }
.audio-button img { width: 24px; height: 24px; }
.category-card h2 { margin: 8px 0 0; font-size: 18px; font-weight: 500; line-height: 24px; }
.hero { padding: 150px 4% 0; }
.hero h1 { margin: 0 0 48px; text-align: center; font-size: clamp(42px, 5vw, 64px); line-height: 1.08; font-weight: 700; }
.feature-band { min-height: 350px; border-radius: 10px 10px 0 0; background: #b49ce3; display: flex; justify-content: center; padding-top: 80px; color: #362447; }
.feature-band h2 { font-size: 56px; margin: 0; }

.scrim { position: fixed; inset: 0; z-index: 10; background: rgba(11, 39, 24, .5); }
.profile-dialog { position: fixed; z-index: 11; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 718px; height: 718px; padding: 90px 83px 32px; border-radius: 10px; background: var(--white); }
.close-button { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.close-button img { display: block; width: 15px; height: 15px; }
.profile-dialog > h1 { margin: 0; height: 48px; text-align: center; font-size: 40px; line-height: 48px; font-weight: 600; }
.profile-form { margin-top: 32px; position: relative; }
.field label { display: block; height: 26px; font-size: 20px; line-height: 26px; font-weight: 600; opacity: .75; }
.field input { display: block; width: 100%; height: 50px; margin-top: 8px; padding: 0 19px; border: 0; border-radius: 5px; outline-color: #4c8265; background: var(--paper); color: rgba(11,39,24,.75); font-size: 18px; line-height: 24px; }
.field input[readonly] { cursor: text; }
.hint { margin: 8px 0 0; color: rgba(11,39,24,.75); font-size: 12px; line-height: 16px; }
.support-field { height: 144px; }
.contact-copy { height: 89px; margin: 0 -57px 0; padding: 16px 57px 0; border-top: 1px solid #d9ddd3; color: rgba(11,39,24,.75); font-size: 14px; line-height: 20px; }
.phone-field { height: 131px; }
.input-wrap { position: relative; }
.input-wrap .country-code { position: absolute; z-index: 1; left: 19px; top: 20px; color: rgba(11,39,24,.75); font-size: 18px; line-height: 24px; }
.input-wrap input { padding-left: 58px; }
.email-field { height: 78px; }
.form-message { position: absolute; bottom: -22px; left: 0; margin: 0; color: #0b2718; font-size: 12px; line-height: 16px; }
.save-button { display: block; width: 112px; height: 40px; margin: 31px auto 0; border: 1px solid var(--paper); border-radius: 57px; background: var(--ink); color: var(--paper); box-shadow: 2px 2px 0 var(--ink); font-size: 14px; line-height: 14px; font-weight: 600; cursor: pointer; }
.save-button:hover { background: #17452c; }
body.dialog-closed .scrim, body.dialog-closed .profile-dialog { display: none; }

@media (max-width: 760px) {
  .navigation { height: 56px; padding: 0 16px; }
  .brand { width: 34px; height: 44px; }
  .brand img { width: 34px; height: 44px; }
  .theme-toggle { width: 54px; height: 30px; }
  .toggle-knob { width: 22px; height: 22px; }
  .toggle-knob img { width: 16px; height: 16px; }
  .nav-actions { gap: 8px; }
  .round-button { width: 32px; height: 32px; padding: 6px; }
  .round-button img { width: 18px; height: 18px; }
  .search-strip { height: 65px; padding: 7px 16px; gap: 8px; }
  .search-box { height: 50px; font-size: 18px; line-height: 24px; padding: 0 10px; }
  .search-box img { width: 20px; height: 20px; }
  .recently-played { width: 112px; height: 50px; gap: 5px; padding: 4px; font-size: 9px; }
  .play-icon { width: 22px; height: 22px; font-size: 7px; }
  .book-thumb { width: 17px; height: 28px; font-size: 6px; }
  .categories { height: 230px; }
  .category-track { padding: 0 16px; gap: 12px; }
  .category-card, .category-image { width: 160px; }
  .category-image { height: 160px; }
  .category-card h2 { font-size: 16px; }
  .hero { padding-top: 70px; }
  .hero h1 { font-size: 34px; }
  .feature-band h2 { font-size: 32px; }
  .profile-dialog { width: min(520px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 24px)); padding: 60px 24px 24px; overflow-y: auto; }
  .close-button { top: 20px; }
  .profile-dialog > h1 { height: 44px; font-size: 32px; line-height: 40px; }
  .profile-form { margin-top: 24px; }
  .field label { font-size: 18px; }
  .support-field { height: 144px; }
  .contact-copy { height: auto; min-height: 92px; margin: 0 -24px; padding: 16px 24px 20px; }
  .phone-field { height: 131px; }
  .email-field { height: 78px; }
  .save-button { margin-top: 24px; }
}

@media (max-width: 380px) {
  .profile-dialog { padding-right: 18px; padding-left: 18px; }
  .contact-copy { margin-right: -18px; margin-left: -18px; padding-right: 18px; padding-left: 18px; }
  .search-strip { min-width: 0; padding-right: 8px; padding-left: 8px; }
  .search-box { min-width: 0; }
  .recently-played { width: 88px; min-width: 88px; gap: 4px; padding: 4px; }
  .recently-played > span:first-child { max-width: 34px; white-space: normal; line-height: 11px; }
}

/* Shared eReolen GO! page system */
:root { --blue: #32b4ff; --soft-green: #eff1e8; --line: #dfe2d9; --shadow: 2px 2px 0 var(--ink); }
body { overflow-x: hidden; }
.home { overflow: visible; }
.navigation { z-index: 2; background: var(--paper); }
.nav-actions a { text-decoration: none; color: inherit; }
.minside-link { margin-right: 2px; font-size: 14px; font-weight: 600; }
.account-button { cursor: pointer; }
.search-box { gap: 12px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: inherit; }
.search-box input::placeholder { color: rgba(26,26,26,.65); }
.search-box button { border: 0; background: transparent; padding: 4px; cursor: pointer; }
.search-box button img { width: 24px; }
.category-card { color: inherit; text-decoration: none; }
.audio-button.is-playing { color: var(--paper); background: var(--ink); }
.theme-dark { --paper: #13291d; --ink: #f0f3e9; --white: #1c3627; --soft-green: #223b2b; --line: #516253; background: var(--paper); }
.theme-dark .search-box, .theme-dark .category-image, .theme-dark .hero-bundle, .theme-dark .work-hero, .theme-dark .detail-panel, .theme-dark .account-stats article, .theme-dark .search-suggestions { background-color: #203628; }
.theme-dark .bundle-scene { background: #7862c7; }
.theme-dark .theme-toggle .toggle-knob { margin-left: auto; }
.page { max-width: 1440px; margin: 0 auto; }
.eyebrow { margin: 0 0 12px; font-size: 12px; line-height: 16px; letter-spacing: .08em; font-weight: 700; }
.page h1, .page h2, .page p { color: var(--ink); }
.page h1 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1.04; letter-spacing: -.04em; }
.page h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.pill-button, .primary-action, .secondary-action, .filter-toggle { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); background: var(--paper); box-shadow: var(--shadow); text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.pill-button:hover, .secondary-action:hover, .filter-toggle:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.home-page { padding: 0 0 96px; }
.hero-bundle { padding: 62px 42px 68px; background: var(--paper); overflow: hidden; }
.hero-bundle > h1 { margin: 0 0 48px; text-align: center; font-size: clamp(34px,4.5vw,64px); line-height: 1.08; letter-spacing: -.035em; }
.bundle-scene { min-height: 570px; position: relative; display: grid; grid-template-columns: 38% 32% 30%; align-items: center; overflow: hidden; border-radius: 10px; background: #ab96f4; }
.bundle-art { position: absolute; left: 1.5%; bottom: 0; width: 40%; height: 100%; object-fit: contain; object-position: center bottom; }
.recommender-card { position: relative; grid-column: 2; justify-self: center; width: min(100%,270px); padding: 22px 20px 18px; border-radius: 7px; background: #c5edff; text-align: center; box-shadow: 0 5px 12px #0b271833; transform: rotate(-4deg); }
.recommender-card span, .recommender-card strong { display: block; font-size: 18px; }
.recommender-card span { color: #7b6899; }
.recommender-card img { display: block; width: 100%; height: 270px; margin-top: 12px; object-fit: contain; }
.scene-play { position: absolute; left: -22px; top: 42%; width: 56px; height: 56px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.featured-book { grid-column: 3; justify-self: center; width: min(86%,300px); padding: 14px; border-radius: 8px; color: var(--ink); background: var(--white); text-decoration: none; box-shadow: 0 6px 15px #0b271833; }
.featured-book > img { display: block; width: 100%; height: 350px; object-fit: contain; }
.featured-book strong, .featured-book span { display: block; margin-top: 8px; }
.featured-book span { color: #5e695f; font-size: 12px; }
.spot { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.76fr); align-items: center; gap: clamp(38px,8vw,116px); padding: 96px clamp(32px,7vw,100px); }
.spot > img { width: 100%; aspect-ratio: 1/1; max-height: 560px; object-fit: cover; border-radius: 10px; }
.spot > * { min-width: 0; }
.spot h2, .craft h2 { margin: 0 0 20px; }
.spot p:not(.eyebrow), .craft p:not(.eyebrow) { font-size: 18px; line-height: 1.5; }
.video-feature, .category-video { padding: 96px 42px 110px; text-align: center; background: #fcfaf7; }
.video-feature h2, .category-video h2 { max-width: 760px; margin: 0 auto 36px; }
.video-image { min-height: 450px; max-width: 1356px; margin: auto; border-radius: 10px; background-color: #bfecff; background-size: cover; background-position: center; display: grid; place-items: center; }
.video-play { display: grid; place-items: center; width: 88px; height: 88px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px #0b271833; font-size: 26px; cursor: pointer; }
.shelf { padding: 72px 42px 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; }
.section-heading a, .text-button { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.text-button { border: 0; background: none; cursor: pointer; }
.book-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.book-card { display: block; padding: 14px; border-radius: 12px; color: var(--ink); background: var(--white); text-decoration: none; transition: transform .16s ease; }
.book-card:hover { transform: translateY(-4px); }
.cover-wrap { position: relative; height: clamp(240px,34vw,420px); display: grid; place-items: center; padding: 16px; border-radius: 8px; background: var(--paper); }
.cover-wrap > img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.favorite { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.favorite.is-saved { color: #af3355; }
.book-info { display: grid; gap: 5px; padding: 14px 5px 4px; }
.book-info strong { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.book-info > span { color: #506052; font-size: 14px; }
.book-tags { display: flex; gap: 8px; margin-top: 6px; }
.book-tags span, .tags span { padding: 6px 12px; border: 1px solid var(--ink); border-radius: 999px; font-size: 11px; line-height: 1; }
.craft { grid-template-columns: .9fr 1fr; background: #e7e2f5; }
.craft > img { width: 100%; max-width: 100%; height: auto; object-fit: cover; }
.craft > img { order: 2; }
.site-footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; padding: 72px clamp(24px,6vw,88px) 26px; background: var(--ink); color: var(--paper); }
.site-footer h3 { margin: 0 0 18px; color: var(--paper); font-size: 16px; }
.site-footer a { display: block; margin: 10px 0; color: #e5e9df; font-size: 14px; text-decoration: none; }
.footer-brand img { width: 66px; height: 86px; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 300px; color: #e5e9df; line-height: 1.5; }
.footer-bottom { grid-column: 1/-1; padding-top: 24px; border-top: 1px solid #ffffff33; color: #d5ded7; font-size: 13px; }
.work-page { padding: 0 42px 92px; }
.back-link { display: inline-block; margin: 4px 0 28px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.work-hero { height: 752px; position: relative; display: block; margin: 0 -42px; padding: 0; background: var(--paper); }
.work-cover { position: absolute; top: 112px; left: 41.2%; width: 22%; height: 455px; display: grid; place-items: center; }
.work-cover img { max-width: 90%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 18px #0b271833); }
.work-title { position: absolute; left: 9.1%; bottom: 70px; max-width: 344px; }
.work-title h1 { margin: 0; font-size: 40px; line-height: 1.08; letter-spacing: -.03em; }
.work-title .author { margin: 12px 0 0; font-size: 12px; }
.work-favorite { position: absolute; top: 110px; right: 25%; }
.work-summary .author { font-size: 20px; }
.rating { color: #bf7722; margin: 20px 0; }
.rating span { color: #536052; font-size: 13px; }
.work-teaser { max-width: 510px; font-size: 17px; line-height: 1.5; }
.work-actions { position: absolute; right: 4.7%; bottom: 64px; display: flex; flex-direction: column; gap: 12px; width: 319px; margin: 0; }
.work-actions .primary-action, .work-actions .secondary-action { width: 100%; height: 52px; }
.primary-action { color: var(--paper); background: var(--ink); }
.availability { color: #355d3d!important; font-size: 13px; }
.format-switch { position: absolute; left: 41%; bottom: 48px; display: flex; gap: 4px; width: fit-content; margin-top: 0; padding: 4px; border: 1px solid var(--ink); border-radius: 50px; }
.format-switch button { min-width: 84px; padding: 8px 12px; border: 0; border-radius: 30px; background: transparent; cursor: pointer; }
.format-switch .selected { color: var(--paper); background: var(--ink); }
.detail-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; margin: 28px 0; padding: 70px clamp(30px,6vw,84px); border: 1px solid #e5e4dc; border-radius: 12px; background: var(--white); }
.detail-panel > div { max-width: 680px; margin: 0; }
.detail-panel > aside { max-width: 500px; }
.detail-panel .detail-label { margin-top: 24px; }
.detail-panel h2 { margin: 0 0 18px; font-size: 36px; }
.detail-panel p:not(.eyebrow) { font-size: 16px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.details-panel dl { margin: 20px 0 0; }
.details-panel { display: block; }
.details-panel > div { max-width: 700px; margin-left: auto; }
.details-panel dl div { display: flex; gap: 36px; padding: 14px 0; border-top: 1px solid var(--line); }
.details-panel dt { width: 150px; color: #5d695e; }
.details-panel dd { margin: 0; font-weight: 700; }
.account-page, .category-page, .results-page, .search-page { padding: 52px 42px 96px; }
.account-heading { display: flex; justify-content: space-between; align-items: end; padding: 24px 0 38px; }
.account-heading h1 { margin: 0 0 8px; font-size: clamp(36px,3.2vw,42px); letter-spacing: -.03em; }
.account-heading p:last-child { margin: 0; color: #556156; font-size: 18px; }
.account-settings { padding: 0; border: 0; background: transparent; color: #556156; font-size: 12px; text-decoration: underline; cursor: pointer; }
.account-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-bottom: 62px; }
.account-stats article { padding: 26px; border-radius: 12px; background: #f0f1e8; }
.account-stats strong { display: block; min-height: 48px; font-size: 28px; }
.account-stats small { font-size: 16px; font-weight: 400; }
.progress { height: 7px; margin-top: 18px; border-radius: 10px; background: #d5dbd0; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.account-shelf { margin-top: 62px; }
.account-shelf h2 span { font-size: 20px; font-weight: 400; }
.loan-shelf { margin-top: 16px; }
.loan-shelf .section-heading { margin-bottom: 10px; }
.rail-controls { display: flex; gap: 8px; }
.rail-controls button { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); font-size: 20px; cursor: pointer; }
.rail-controls .find-similar-trigger { width: auto; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.account-cover-rail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; gap: 32px; }
.account-cover { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--ink); text-decoration: none; }
.account-cover img { width: 100%; height: 320px; object-fit: contain; filter: drop-shadow(0 4px 5px #0002); }
.account-cover .favorite { top: 8px; right: 8px; }
.account-cover small { margin-top: 8px; color: #647065; font-size: 12px; }
.quota-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin: 56px 0 68px; }
.quota-card { padding: 24px; border-radius: 12px; background: var(--white); }
.quota-card > p { margin: 0 0 16px; font-size: 13px; }
.quota-card > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quota-card > div > span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 16px; border-radius: 6px; background: #f5f3ee; }
.quota-card b { font-size: 24px; }
.quota-card small { color: #59665a; font-size: 11px; }
.loan-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.loan-card { display: flex; gap: 22px; align-items: center; padding: 18px; background: var(--white); border-radius: 10px; }
.loan-card img { width: 100px; height: 130px; object-fit: contain; }
.loan-card div { display: grid; gap: 8px; }
.loan-card small { color: #647065; }
.loan-card .secondary-action { width: fit-content; min-height: 34px; padding: 0 18px; font-size: 12px; }
.category-intro { padding: 62px 8% 80px; text-align: center; background: #f0f1e8; border-radius: 12px; }
.category-intro h1 { margin: 0 0 18px; font-size: clamp(72px,6.4vw,92px); }
.category-intro p:not(.eyebrow) { max-width: 610px; margin: 0 auto 26px; font-size: 18px; line-height: 1.5; }
.mobile-only { display: none; }
.category-bundle { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.76fr); align-items: center; gap: clamp(38px,8vw,116px); padding: 96px clamp(32px,7vw,100px); background: var(--paper); }
.category-bundle > img { width: 100%; max-width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 10px; }
.time-travel { background: #f4eadc; }
.result-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 48px 4px 32px; }
.result-heading h1 { margin: 0; font-size: 42px; line-height: 1.1; }
.filter-toggle { display: none; gap: 12px; }
.filter-layout { display: grid; grid-template-columns: 300px 1fr; gap: 34px; }
.filters-panel { align-self: start; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.filter-title { display: flex; justify-content: space-between; align-items: center; }
.filter-title h2 { margin: 0 0 12px; font-size: 24px; }
.filter-title button { display: none; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.filter-search { display: grid; gap: 8px; margin: 14px 0; font-size: 12px; font-weight: 700; }
.filter-search input { width: 100%; height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.filters-panel details { padding: 16px 0; border-top: 1px solid var(--line); }
.filters-panel summary { display: flex; justify-content: space-between; list-style: none; font-weight: 700; cursor: pointer; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--ink); }
.check-row small { margin-left: auto; color: #667166; }
.apply-filters { display: flex; width: 100%; margin-top: 8px; }
.result-toolbar { display: flex; justify-content: end; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; }
.result-toolbar select { padding: 9px 30px 9px 12px; border: 1px solid var(--ink); border-radius: 20px; background: var(--paper); }
.results-content .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.results-content .book-card { padding: 8px; }
.results-content .cover-wrap { height: 420px; }
.results-content .book-info strong { font-size: 15px; }
.search-columns { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 46px; }
.search-suggestions { align-self: start; padding: 22px; border-radius: 10px; background: #f0f1e8; }
.search-suggestions hr { border: 0; border-top: 1px solid #cfd4ca; margin: 18px 0; }
.suggestion { display: flex; flex-direction: column; gap: 5px; padding: 13px 14px; color: var(--ink); border-radius: 6px; text-decoration: none; }
.suggestion span { color: #657064; font-size: 12px; }
.suggestion.selected { color: var(--paper); background: var(--ink); }
.suggestion.selected span { color: #d8e2dc; }
.search-results .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.search-results .cover-wrap { height: 420px; }
.profile-dialog[hidden], .scrim[hidden] { display: none; }
.scrim { z-index: 10; }
.profile-dialog { z-index: 11; }
.dialog-open .scrim { display: block; }
.dialog-open .profile-dialog { display: block; }

@media (max-width: 900px) {
  .minside-link { display: none; }
  .hero-bundle { padding: 46px 24px; }
  .bundle-scene { min-height: 440px; }
  .bundle-art { width: 38%; }
  .recommender-card { width: 210px; padding: 14px; }
  .recommender-card img { height: 190px; }
  .featured-book > img { height: 240px; }
  .work-page, .account-page, .category-page, .results-page, .search-page { padding-right: 24px; padding-left: 24px; }
  .work-cover { width: 26%; left: 37%; }
  .work-hero { margin-right: -24px; margin-left: -24px; }
  .work-title { left: 5%; }
  .work-actions { right: 3%; width: 250px; }
  .format-switch { left: 38%; }
  .filter-toggle { display: inline-flex; }
  .filter-layout { display: block; }
  .filters-panel { position: fixed; z-index: 8; inset: 0 0 0 auto; width: min(420px,100vw); overflow-y: auto; border-radius: 0; box-shadow: -20px 0 60px #0b271833; transform: translateX(105%); transition: transform .2s ease; }
  .filters-panel.is-open { transform: translateX(0); }
  .filter-title button { display: block; }
  .results-content .book-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .search-columns { grid-template-columns: 250px minmax(0,1fr); gap: 20px; }
  .search-results .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .topbar { height: 26px; font-size: 10px; }
  .navigation { height: 62px; padding: 0 14px; }
  .brand { width: 38px; height: 50px; }
  .brand img { width: 38px; height: 50px; }
  .nav-actions { gap: 9px; }
  .minside-link { display: block; margin: 0; font-size: 11px; }
  .help-button { display: none!important; }
  .round-button { width: 34px; height: 34px; }
  .theme-toggle { left: 43%; width: 52px; height: 30px; }
  .toggle-knob { width: 22px; height: 22px; }
  .search-strip { padding: 8px 12px; height: 64px; }
  .search-box { height: 48px; font-size: 16px; }
  .recently-played { flex-shrink: 0; }
  .categories { height: 186px; }
  .category-track { padding: 0 12px; gap: 10px; }
  .category-card, .category-image { width: 128px; }
  .category-image { height: 128px; }
  .category-card h2 { font-size: 14px; line-height: 20px; }
  .audio-button { width: 34px; height: 34px; }
  .hero-bundle { padding: 48px 12px 40px; }
  .hero-bundle > h1 { margin-bottom: 28px; font-size: 27px; line-height: 1.15; }
  .bundle-scene { min-height: 400px; grid-template-columns: 38% 34% 28%; }
  .bundle-art { left: -12%; width: auto; max-width: 75%; height: 100%; }
  .recommender-card { width: 124px; padding: 10px 7px; }
  .recommender-card span, .recommender-card strong { font-size: 12px; }
  .recommender-card img { height: 150px; margin-top: 8px; }
  .scene-play { left: -14px; width: 40px; height: 40px; }
  .featured-book { width: 94%; padding: 7px; }
  .featured-book > img { height: 135px; }
  .featured-book strong { font-size: 11px; }
  .featured-book span { font-size: 8px; }
  .spot { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 48px 20px; }
  .category-bundle { display: flex; flex-direction: column; align-items: stretch; gap: 24px; padding: 48px 20px; }
  .category-bundle > img { width: 100%; height: auto; aspect-ratio: 1.25; }
  .spot > img { min-width: 0; max-width: 100%; width: 100%; height: auto; flex: 1 1 auto; aspect-ratio: 1/1; }
  .craft > img { min-width: 0; max-width: 100%; width: 100%; height: auto; aspect-ratio: 1/1; flex: 1 1 auto; }
  .spot p:not(.eyebrow), .craft p:not(.eyebrow) { font-size: 16px; }
  .video-feature, .category-video { padding: 52px 16px; }
  .video-image { min-height: 240px; }
  .video-play { width: 62px; height: 62px; }
  .shelf { padding: 48px 14px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 18px; }
  .section-heading h2 { font-size: 30px; }
  .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .book-card { padding: 7px; }
  .cover-wrap { height: 220px; padding: 8px; }
  .book-info { padding: 10px 4px 4px; }
  .book-info strong { font-size: 14px; }
  .book-info > span { font-size: 12px; }
  .book-tags { flex-wrap: wrap; }
  .favorite { width: 32px; height: 32px; font-size: 21px; }
  .craft { flex-direction: column; }
  .craft > img { order: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 26px 16px; padding: 44px 20px 20px; }
  .footer-brand { grid-column: 1/-1; }
  .work-page, .account-page, .category-page, .results-page, .search-page { padding: 26px 14px 62px; }
  .work-hero { height: auto; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin: 0 -14px; padding: 20px 16px 26px; }
  .work-cover { position: relative; inset: auto; grid-column: 1/-1; width: 100%; height: 295px; }
  .work-title { position: static; grid-column: 1; align-self: center; max-width: none; }
  .work-title h1 { font-size: 28px; }
  .work-title .author { font-size: 10px; }
  .work-favorite { top: 24px; right: 24px; }
  .work-actions { position: static; grid-column: 2; align-self: center; width: auto; gap: 8px; }
  .work-actions .primary-action, .work-actions .secondary-action { min-height: 42px; height: auto; padding: 8px; font-size: 11px; }
  .format-switch { position: static; grid-column: 1/-1; justify-self: center; margin: 4px auto 0; }
  .detail-panel { grid-template-columns: 1fr; gap: 28px; margin: 16px 0; padding: 34px 20px; }
  .detail-panel > div, .detail-panel > aside { margin: 0; }
  .detail-panel h2 { font-size: 30px; }
  .details-panel dl div { gap: 10px; }
  .details-panel dt { width: 120px; flex-shrink: 0; }
  .account-heading { align-items: start; padding: 22px 0 28px; }
  .account-heading h1 { font-size: 32px; }
  .account-heading > .secondary-action { padding: 0 14px; }
  .account-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 46px; }
  .account-stats article { padding: 18px 14px; }
  .account-stats article:last-child { grid-column: 1/-1; }
  .account-stats strong { font-size: 23px; }
  .account-cover-rail { display: flex; overflow-x: auto; align-items: end; gap: 14px; margin: 0 -14px; padding: 0 14px 12px; scroll-snap-type: x mandatory; }
  .account-cover { min-width: 148px; scroll-snap-align: start; }
  .account-cover img { height: 245px; }
  .quota-grid { grid-template-columns: 1fr; gap: 12px; margin: 34px 0 48px; }
  .rail-controls { gap: 6px; }
  .rail-controls button { width: 34px; height: 34px; }
  .loan-grid { grid-template-columns: 1fr; }
  .loan-card { gap: 14px; padding: 12px; }
  .loan-card img { width: 76px; height: 102px; }
  .category-intro { padding: 48px 18px; }
  .category-intro h1 { font-size: 64px; }
  .mobile-only { display: initial; }
  .result-heading { align-items: start; padding: 34px 0 22px; }
  .result-heading h1 { font-size: 34px; }
  .filter-toggle { min-height: 38px; padding: 0 13px; flex-shrink: 0; }
  .results-content .book-grid, .search-results .book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .results-content .cover-wrap, .search-results .cover-wrap { height: 205px; }
  .search-columns { display: block; }
  .search-suggestions { margin-bottom: 26px; padding: 16px; }
  .search-page .result-heading h1 { max-width: 270px; font-size: 30px; }
  .profile-dialog { width: min(520px, calc(100vw - 24px)); height: min(720px, calc(100dvh - 24px)); padding: 60px 24px 24px; overflow-y: auto; }
  .dialog-open .scrim { display: block; }
}
