:root {
  color-scheme: dark;
  --background: #0b0a10;
  --text: #f5f2fa;
  --muted: #918a9f;
  --subtle: #6c6679;
  --accent: #a273ff;
  --accent-soft: rgba(162, 115, 255, .13);
  --border: rgba(255, 255, 255, .075);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 88% 9%, rgba(95, 55, 146, .08), transparent 26rem), var(--background);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

button:focus:not(:focus-visible), a:focus:not(:focus-visible) {
  outline: none;
}

.app-shell {
  width: min(1580px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 34px 0 32px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 226px;
  column-gap: 40px;
}

.app-shell.library-active {
  grid-template-columns: 236px minmax(0, 1fr);
}

.app-shell.library-active .right-rail {
  display: none;
}

.page-view[hidden] {
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 660px;
  padding: 32px 16px 22px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-icon {
  width: 45px;
  height: 45px;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 42px;
  height: 42px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font: 700 16px "Manrope", sans-serif;
  letter-spacing: -.5px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .3px;
}

.nav-label {
  margin: 50px 0 15px 12px;
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.nav-label-gap {
  margin-top: 38px;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.nav-link {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 9px;
  font-size: 13px;
  transition: background .2s, color .2s;
}

.nav-link:hover, .nav-link.active {
  background: var(--accent-soft);
  color: #d5c2ff;
}

.nav-link.active {
  font-weight: 600;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-count {
  margin-left: auto;
  color: var(--subtle);
  font-size: 11px;
}

.library-subnav {
  margin: 0 0 4px 39px;
  display: none;
  gap: 2px;
}

.app-shell.library-active .library-subnav {
  display: grid;
}

.library-subnav a {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.library-subnav a:hover {
  background: #ffffff09;
  color: #e4d9f5;
}

.library-subnav a.is-selected {
  color: #d5c2ff;
  font-weight: 600;
}

.library-subnav span {
  color: var(--subtle);
}

.playlist-nav .nav-link {
  font-size: 12px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
}

.dot-pink {
  background: #e97abd;
  box-shadow: 0 0 12px #e97abd55;
}

.dot-orange {
  background: #edaa75;
  box-shadow: 0 0 12px #edaa7555;
}

.dot-blue {
  background: #6eabf2;
  box-shadow: 0 0 12px #6eabf255;
}

.sidebar-bottom {
  margin-top: auto;
}

.upgrade-card {
  position: relative;
  padding: 20px 16px 16px;
  border: 1px solid rgba(162,115,255,.18);
  border-radius: 13px;
  overflow: hidden;
  background: radial-gradient(ellipse at 100% 0, #54318a66, transparent 68%), #17131f;
}

.upgrade-star {
  display: block;
  margin-bottom: 11px;
  color: #c5a4ff;
  font-size: 19px;
}

.upgrade-card > strong {
  font: 600 12px "Manrope", sans-serif;
}

.upgrade-card p {
  margin: 8px 0 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.upgrade-button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  background: #8d5ae9;
  color: white;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.upgrade-button span {
  float: right;
  font-size: 14px;
  line-height: 10px;
}

.profile-mini {
  width: 100%;
  margin-top: 20px;
  padding: 10px 0 0;
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
}

.avatar, .mobile-avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #9973d4;
  border-radius: 50%;
  background: linear-gradient(145deg,#e9c5a5,#996b6e 56%,#4e477c);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.profile-name {
  display: grid;
  gap: 4px;
}

.profile-name strong {
  font-size: 11px;
  font-weight: 600;
}

.profile-name small {
  color: var(--muted);
  font-size: 10px;
}

.profile-menu {
  margin-left: auto;
  color: var(--muted);
  font-size: 21px;
  letter-spacing: 1px;
}

.main-content {
  min-width: 0;
  padding: 33px 0 28px;
}

.topbar {
  min-height: 67px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.greeting > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.greeting h1 {
  margin: 0;
  font: 700 22px "Manrope", sans-serif;
  letter-spacing: -.7px;
}

.greeting h1 span {
  color: var(--accent);
}

.topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  width: clamp(200px, 23vw, 285px);
  height: 40px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111017;
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: none;
  color: var(--text);
  font-size: 11px;
}

.search-box input::placeholder {
  color: var(--subtle);
}

.search-box kbd {
  min-width: 18px;
  padding: 2px 5px;
  border: 1px solid #383440;
  border-radius: 4px;
  color: var(--subtle);
  font: 10px "DM Sans",sans-serif;
  text-align: center;
}

.search-screen-title,
.search-close {
  display: none;
}

.search-suggestions {
  position: absolute;
  top: 48px;
  right: 0;
  z-index: 8;
  width: min(320px,calc(100vw - 32px));
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #17141e;
  box-shadow: 0 12px 32px #0009;
}

.search-suggestions[hidden] {
  display: none;
}

.suggestion-heading {
  padding: 7px 9px 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.suggestion-item {
  width: 100%;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus-visible {
  outline: none;
  background: #ffffff0c;
}

.suggestion-cover {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  overflow: hidden;
  border: 1px solid #ffffff20;
  border-radius: 5px;
}

.suggestion-cover-art.book-cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 81px;
  min-height: 81px;
  padding: 12px 9px;
  aspect-ratio: auto;
  flex: none;
  transform: translate(-50%,-50%) scale(.39);
  transform-origin: center;
  border-radius: 8px;
  cursor: default;
  pointer-events: none;
}

.suggestion-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.suggestion-copy strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy small {
  color: var(--muted);
  font-size: 9px;
}

.suggestion-empty {
  padding: 10px 9px;
  color: var(--muted);
  font-size: 10px;
}

.icon-button {
  width: 37px;
  height: 37px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #111017;
  cursor: pointer;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #c7c0d2;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-button i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b786ff;
}

.top-avatar {
  width: 36px;
  height: 36px;
  padding: 0;
  cursor: pointer;
}

.hero {
  min-height: 300px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: radial-gradient(ellipse at 80% 48%,#30213e 0%,#1a1424 48%,#131019 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 0 0 43%;
  padding: 33px 0 33px 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #bb9aff45;
  border-radius: 5px;
  background: #8250bb54;
  color: #e0d0ff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d7bfff;
  box-shadow: 0 0 8px #d7bfff;
}

.hero h2 {
  margin: 16px 0 9px;
  font: 800 clamp(32px, 3vw, 43px)/1.04 "Manrope",sans-serif;
  letter-spacing: -1.9px;
}

.hero-copy > p {
  margin: 0;
  color: #d1cbd8;
  font-size: 12px;
  line-height: 1.65;
}

.primary-button {
  height: 41px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(105deg,#9b5df0,#7439d5);
  box-shadow: 0 5px 18px #773dd455;
  color: white;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.primary-button:hover {
  filter: brightness(1.13);
}

.hero-listen {
  margin-top: 18px;
  padding: 0 13px;
}

.hero-listen svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.button-arrow {
  margin-left: 4px;
  color: #e3d5ff;
  font-size: 15px;
  font-weight: 400;
}

.hero-books {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  container-type: inline-size;
  -webkit-mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
  mask-image: linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}

.hero-book-track,
.hero-book-set {
  display: flex;
  align-items: center;
}

.hero-book-track {
  width: max-content;
  animation: hero-books-slide 23s linear infinite;
}

.hero-book-set {
  flex: 0 0 100cqi;
  justify-content: space-evenly;
  gap: clamp(4px, .5vw, 8px);
  padding: 18px clamp(6px, .9vw, 12px);
}

.hero-book-cover {
  flex: 0 0 clamp(48px, 15cqi, 74px);
  width: clamp(48px, 15cqi, 74px);
  height: clamp(74px, 28cqi, 112px);
  min-height: 0;
  aspect-ratio: auto;
  padding: 12px 5px;
  border-radius: 5px;
  box-shadow: 0 9px 18px #0006;
  cursor: default;
}

.hero-book-cover:hover {
  transform: none;
  border-color: rgba(255,255,255,.09);
}

.hero-book-cover .cover-overline {
  top: 7px;
  font-size: 4px;
  letter-spacing: .35px;
}

.hero-book-cover .cover-title {
  font-size: 11px;
  letter-spacing: -.3px;
}

.hero-book-cover.cover-atomic .cover-title {
  font-size: 11px;
}

.hero-book-cover.cover-money .cover-title {
  font-size: 9px;
}

.hero-book-cover.cover-ikigai .cover-title {
  top: 13px;
  font-size: 13px;
}

.hero-book-cover.cover-ikigai .cover-subtitle {
  font-size: 4px;
}

.hero-book-cover.cover-epic .cover-title {
  font-size: 13px;
}

.hero-book-cover.cover-becoming .cover-title {
  font-size: 10px;
}

.hero-book-cover .cover-author {
  bottom: 7px;
  font-size: 4px;
  letter-spacing: .3px;
}

.hero-book-cover .cover-art {
  font-size: 24px;
}

@keyframes hero-books-slide {
  to {
    transform: translateX(-50%);
  }
}

.category-section, .trending-section, .continue-section {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.45px;
}

.section-heading h2 {
  margin: 0;
  font: 700 18px "Manrope",sans-serif;
  letter-spacing: -.55px;
}

.text-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: #b28aff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.text-link:hover {
  color: #d0b6ff;
}

.text-link span {
  font-size: 14px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 11px;
}

.category-card {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  transition: color .2s,transform .2s;
}

.category-card:hover {
  transform: translateY(-2px);
  color: var(--text);
}

.category-card.selected {
  color: #e1d1ff;
}

.category-icon {
  width: 100%;
  max-width: 77px;
  aspect-ratio: 1.08;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(145deg,#191622,#14121a);
  transition: border-color .2s,background .2s;
}

.category-card.selected .category-icon {
  border-color: #9871e64d;
  background: linear-gradient(145deg,#261d37,#17131f);
}

.category-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.all-icon {
  color: #c8a2ff;
}

.self-icon {
  color: #e89be2;
}

.psychology-icon {
  color: #72a8ff;
}

.motivation-icon {
  color: #d083e9;
}

.biography-icon {
  color: #f49b85;
}

.fiction-icon {
  color: #5fcbb1;
}

.history-icon {
  color: #e5c16f;
}

.trending-section {
  margin-top: 35px;
}

.trending-section .section-heading {
  margin-bottom: 15px;
}

.heading-sparkle {
  margin-left: 3px;
  color: #be94ff;
  font-size: 15px;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
}

.book-card {
  min-width: 0;
}

.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: .94;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  text-align: center;
  cursor: pointer;
  transition: transform .22s,border-color .22s;
}

.book-cover:hover {
  transform: translateY(-4px);
  border-color: #b88aff8c;
}

.cover-overline {
  position: absolute;
  top: 12px;
  left: 6px;
  right: 6px;
  font-size: 6px;
  font-weight: 600;
  letter-spacing: .8px;
  opacity: .76;
}

.cover-title {
  position: relative;
  z-index: 1;
  font: 700 25px/.98 "Manrope", sans-serif;
  letter-spacing: -.8px;
}

.cover-title b {
  font-weight: 800;
}

.cover-author {
  position: absolute;
  bottom: 12px;
  left: 6px;
  right: 6px;
  z-index: 1;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
}

.cover-atomic {
  color: #674e28;
  background: radial-gradient(ellipse at center,#fffdf5,#f1ead8 70%,#d9cfb7);
}

.cover-atomic::before,.cover-atomic::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  border: 1px solid #d1ae6e8c;
  border-radius: 50%;
  box-shadow: 0 0 0 7px #e8d7b64f,0 0 0 15px #d7bd8c36,0 0 0 23px #e2d0a24a;
}

.cover-atomic::after {
  width: 3px;
  height: 3px;
  background: #c9a354;
  border: 0;
  border-radius: 50%;
  box-shadow: 23px -27px 0 #c9a354, -28px 13px 0 #c9a354, 30px 21px 0 #c9a354, -14px -34px 0 #c9a354;
}

.cover-atomic .cover-title {
  padding: 8px 3px;
  background: #f8f3e7cc;
  font-size: clamp(17px,1.8vw,25px);
}

.cover-money {
  color: #eee8dc;
  background: radial-gradient(ellipse at center bottom,#465054 0%,#13181b 42%,#080a0c 100%);
}

.cover-money::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 115px;
  height: 74px;
  opacity: .38;
  background: repeating-conic-gradient(from 15deg at 50% 100%,#a4a3a0 0 1deg,transparent 1deg 8deg);
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.cover-money .cover-overline {
  top: 15px;
  font-size: 5px;
}

.cover-money .cover-title {
  font-size: clamp(15px,1.65vw,22px);
  line-height: 1.25;
  letter-spacing: .3px;
}

.cover-money .cover-title b {
  font-size: .91em;
}

.cover-art {
  position: absolute;
  bottom: 13px;
  color: #8e8b86;
  font-size: 49px;
  opacity: .24;
}

.cover-ikigai {
  color: white;
  background: linear-gradient(180deg,#1a292e,#283b37 52%,#111919);
}

.cover-ikigai::before {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  opacity: .6;
  background: linear-gradient(158deg,transparent 25%,#0d1412 25.5% 41%,transparent 41.5%),linear-gradient(202deg,transparent 24%,#101815 24.5% 55%,transparent 55.5%);
}

.cover-ikigai .cover-title {
  position: absolute;
  top: 18px;
  font-size: 25px;
  letter-spacing: 3px;
}

.cover-subtitle {
  position: absolute;
  top: 50px;
  z-index: 1;
  font-size: 5px;
  letter-spacing: .65px;
}

.cover-tree {
  z-index: 1;
  margin-top: 29px;
  color: #d1bd9d;
  font-size: 62px;
  text-shadow: 0 3px 20px #bd9d62;
}

.cover-ikigai .cover-author {
  font-size: 6px;
}

.cover-epic {
  color: #f1c847;
  background: linear-gradient(160deg,#15130f,#090b0a 56%,#181810);
}

.cover-epic::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 47%;
  background: linear-gradient(164deg,transparent 36%,#c49a2c 36.5% 38%,#30271a 38.5% 56%,transparent 56.5%),linear-gradient(194deg,transparent 32%,#8d6922 32.5% 36%,#151712 36.5%);
}

.cover-epic .cover-overline {
  font-size: 7px;
}

.cover-epic .cover-title {
  font-size: clamp(23px,2.2vw,30px);
  line-height: .94;
  font-weight: 800;
}

.cover-mountain {
  position: absolute;
  bottom: 16px;
  z-index: 1;
  color: #dfaf36;
  font-size: 80px;
  transform: rotate(-8deg);
  opacity: .8;
}

.cover-epic .cover-author {
  z-index: 2;
  color: #d7d0c1;
  font-size: 4px;
}

.cover-becoming {
  color: #f3e8d8;
  background: radial-gradient(ellipse at 50% 30%,#d0a88e,#70584b 60%,#302b2b);
}

.cover-becoming .cover-title {
  margin-top: 30px;
  font-size: clamp(16px,1.6vw,22px);
  letter-spacing: 1px;
}

.cover-midnight {
  color: #e4d5a2;
  background: radial-gradient(ellipse at 50% 75%,#49725a,#182826 50%,#10151c);
}

.cover-midnight .cover-title {
  font-size: clamp(18px,1.9vw,26px);
  letter-spacing: 0;
}

.cover-midnight .cover-overline {
  color: #cbbf94;
}

.cover-creative {
  color: #f5ebd5;
  background: radial-gradient(circle at 50% 46%, #df9055 0 2%, transparent 2.5%),
    radial-gradient(ellipse at 50% 55%, #77435f, #24182c 72%);
}

.cover-creative-mark {
  position: absolute;
  color: #f2bc78;
  font-size: 96px;
  opacity: .24;
}

.cover-creative .cover-title {
  font-size: clamp(19px, 2vw, 27px);
  letter-spacing: 1px;
}

.cover-think {
  color: #fff4df;
  background: linear-gradient(145deg, #e77843, #bb4b37 58%, #732d38);
}

.cover-think .cover-title {
  font-size: clamp(25px, 2.4vw, 34px);
  letter-spacing: 1px;
}

.cover-think-mark {
  position: absolute;
  right: 9px;
  bottom: -16px;
  color: #f6c27a;
  font: 900 132px/.9 "Manrope", sans-serif;
  opacity: .28;
}

.cover-educated {
  color: #f7e9c7;
  background: linear-gradient(155deg, #6c9d88, #355c59 58%, #1e343b);
}

.cover-educated-art {
  position: absolute;
  top: 27px;
  color: #d9c78e;
  font-size: 74px;
  opacity: .7;
}

.cover-educated .cover-title {
  z-index: 1;
  margin-top: 22px;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 2px;
}

.cover-alchemist {
  color: #f3d58b;
  background: linear-gradient(155deg, #a95434, #78352e 55%, #361e2b);
}

.cover-alchemist .cover-title {
  font-size: clamp(23px, 2.2vw, 30px);
}

.cover-alchemist-art {
  position: absolute;
  top: 30px;
  color: #ffd87c;
  font-size: 66px;
  opacity: .45;
}

.cover-alchemist .cover-author {
  color: #f3d58b;
}

.cover-sapiens {
  color: #eddbc0;
  background: radial-gradient(ellipse at 50% 73%, #a75e3c, #482e35 48%, #191c28);
}

.cover-sapiens-art {
  position: absolute;
  top: 24px;
  color: #e6a365;
  font-size: 118px;
  opacity: .56;
}

.cover-sapiens .cover-title {
  z-index: 1;
  margin-top: 22px;
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: 4px;
}

.cover-meaning {
  color: #f5e9d1;
  background: linear-gradient(155deg, #57747e, #34454e 54%, #202832);
}

.cover-meaning .cover-title {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.12;
  letter-spacing: .4px;
}

.cover-meaning-art {
  position: absolute;
  right: 12px;
  bottom: 8px;
  color: #e9c18c;
  font-size: 57px;
  opacity: .45;
}

.cover-bookthief {
  color: #f3e5c6;
  background: linear-gradient(155deg, #c47d68, #9b4b4a 54%, #563450);
}

.cover-bookthief-art {
  position: absolute;
  top: 15px;
  color: #f5cf8b;
  font-size: 112px;
  opacity: .3;
}

.cover-bookthief .cover-title {
  z-index: 1;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 1px;
}

.cover-play {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff32;
  border-radius: 50%;
  background: #111018c7;
  color: white;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s,transform .2s;
}

.book-cover:hover .cover-play, .book-cover:focus-visible .cover-play {
  opacity: 1;
  transform: translateY(0);
}

.cover-play svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
  fill: currentColor;
}

.book-info {
  padding-top: 9px;
}

.book-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}

.book-title-row h3 {
  margin: 0;
  overflow: hidden;
  color: #eae6ef;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-button {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: -3px -3px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #82798c;
  cursor: pointer;
  font-size: 17px;
  line-height: 18px;
  transition: color .2s,transform .2s;
}

.favorite-button:hover {
  color: #ff88c4;
  transform: scale(1.15);
}

.favorite-button.is-favorite {
  color: #ff7db9;
}

.book-info > p {
  margin: 4px 0 7px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-duration {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #9c93a7;
  font-size: 8px;
  white-space: nowrap;
}

.book-duration svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: #a28ac7;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.book-duration i {
  color: #5d5667;
  font-style: normal;
}

.empty-state {
  padding: 24px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.continue-section {
  margin-top: 34px;
}

.library-tabs {
  margin: 0 0 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.library-view {
  min-height: calc(100vh - 170px);
  padding-top: 17px;
}

.library-view > .section-heading {
  min-height: 115px;
  margin: 0 0 25px;
  padding: 25px 28px;
  align-items: center;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  background: radial-gradient(ellipse at 80% 45%,#38264b 0%,#21182d 42%,#17131d 100%);
}

.library-view > .section-heading h2 {
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -1px;
}

.library-intro {
  margin: 8px 0 0;
  color: #b9afc5;
  font-size: 11px;
}

.library-view > .section-heading .text-link {
  padding: 9px 12px;
  border: 1px solid #ffffff16;
  border-radius: 7px;
  background: #ffffff08;
}

.library-tab {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.library-tab:hover,
.library-tab.is-selected {
  color: #e8dcff;
}

.library-tab.is-selected {
  border-bottom-color: var(--accent);
}

.library-tab-count {
  min-width: 17px;
  padding: 2px 5px;
  border-radius: 9px;
  background: #ffffff10;
  color: #cbb5f5;
  font-size: 9px;
  text-align: center;
}

.liked-panel[hidden],
#continuePanel[hidden] {
  display: none;
}

.liked-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(190px,1fr));
  gap: 10px;
}

.liked-book-card {
  min-width: 0;
  padding: 9px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) 25px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(120deg,#17141e,#111017);
}

.liked-book-play {
  width: 48px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.liked-book-art {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.liked-book-art .cover-overline {
  top: 5px;
  font-size: 3px;
}

.liked-book-art .cover-title {
  font-size: 8px;
}

.liked-book-art .cover-author {
  bottom: 5px;
  font-size: 3px;
}

.liked-book-art .cover-subtitle {
  font-size: 3px;
}

.liked-book-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.liked-book-copy strong,
.liked-book-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.liked-book-copy strong {
  color: var(--text);
  font-size: 10px;
}

.liked-book-copy span {
  color: var(--muted);
  font-size: 9px;
}

.liked-book-remove {
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #ff7db9;
  cursor: pointer;
  font-size: 16px;
}

.liked-book-remove:hover {
  background: #ff7db91a;
}

.library-empty {
  min-height: 168px;
  padding: 24px 16px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  border: 1px dashed #ffffff1a;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.library-empty[hidden] {
  display: none;
}

.library-empty > span {
  color: #ff7db9;
  font-size: 25px;
}

.library-empty strong {
  color: #e6deef;
  font-size: 12px;
}

.library-empty p {
  margin: 0;
  font-size: 10px;
}

.library-empty a {
  margin-top: 4px;
  color: #bb98ff;
  font-size: 10px;
  text-decoration: none;
}

.continue-card {
  min-height: 89px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 38px 96px 24px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(105deg,#14121a,#111017 80%);
}

.mini-cover {
  width: 52px;
  height: 63px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 5px 6px;
  border-radius: 4px;
  background: linear-gradient(155deg,#ffdc12,#eaa900);
  color: #11100c;
  box-shadow: 0 4px 10px #0006;
}

.mini-cover span {
  font: 800 12px/.95 "Manrope",sans-serif;
  letter-spacing: -.5px;
}

.mini-cover small {
  font-size: 4px;
  font-weight: 700;
  letter-spacing: .4px;
}

.continue-details {
  min-width: 0;
}

.now-reading {
  display: block;
  margin-bottom: 4px;
  color: #b991ff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
}

.continue-details h3 {
  margin: 0;
  font: 600 13px "Manrope",sans-serif;
}

.continue-details > p {
  margin: 4px 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.continue-details > p span {
  margin: 0 4px;
  color: #716b7a;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track {
  height: 3px;
  flex: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #332e3c;
}

.progress-track span {
  width: 48%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg,#9f66fb,#bf98ff);
  box-shadow: 0 0 8px #9f66fb99;
  transition: width .5s;
}

.progress-time {
  color: #aea5b8;
  font-size: 8px;
  white-space: nowrap;
}

.progress-time i {
  color: #70697b;
  font-style: normal;
}

.play-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg,#a77aff,#7a42de);
  box-shadow: 0 4px 12px #8144dd40;
  color: white;
  cursor: pointer;
  transition: transform .2s;
}

.play-button:hover {
  transform: scale(1.07);
}

.play-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.pause-icon {
  display: none;
}

.continue-play.is-playing .play-icon {
  display: none;
}

.continue-play.is-playing .pause-icon {
  display: block;
}

.volume-control {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.volume-button, .close-player {
  width: 22px;
  height: 30px;
  flex: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9c94a6;
  cursor: pointer;
}

.volume-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.volume-muted {
  display: none;
}

.volume-button.is-muted .volume-waves {
  display: none;
}

.volume-button.is-muted .volume-muted {
  display: block;
}

.volume-slider-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.volume-slider {
  width: 38px;
  height: 4px;
  flex: 0 0 38px;
  min-width: 0;
  margin: 0;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(
    to right,
    #b18aff var(--volume-level, 70%),
    #393342 var(--volume-level, 70%)
  );
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  width: 11px;
  height: 11px;
  appearance: none;
  border-radius: 50%;
  background: #e8d8ff;
  box-shadow: 0 0 6px #a273ff88;
}

.volume-slider::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: #e8d8ff;
  box-shadow: 0 0 6px #a273ff88;
}

.volume-value {
  width: 22px;
  flex: 0 0 22px;
  color: #aea5b8;
  font-size: 8px;
  text-align: right;
}

.close-player {
  color: #81798e;
  font-size: 22px;
  line-height: 1;
}

.close-player:hover, .volume-button:hover {
  color: #eee7f8;
}

.page-footer {
  margin-top: 35px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  color: #686272;
  font-size: 9px;
}

.right-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 660px;
  padding: 175px 0 20px 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.rail-note {
  padding-left: 2px;
}

.quote-mark {
  display: block;
  height: 31px;
  color: #b58bff;
  font: 52px/.9 Georgia,serif;
}

.rail-note p {
  margin: 10px 0 17px;
  color: #c5b9d8;
  font: 500 20px/1.52 "Manrope",sans-serif;
  letter-spacing: -.7px;
}

.quote-rule {
  width: 30px;
  height: 2px;
  display: block;
  background: #a676ff;
}

.quote-author {
  display: block;
  margin-top: 13px;
  color: #72697e;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.daily-card {
  margin-top: auto;
  padding: 17px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: radial-gradient(ellipse at 100% 0,#50368136,transparent 70%),#121018;
}

.daily-icon {
  display: block;
  margin-bottom: 13px;
  color: #b28aff;
  font-size: 19px;
}

.daily-card .section-kicker {
  font-size: 7px;
}

.daily-card > p {
  margin: 12px 0 9px;
  color: #e2dbea;
  font: 500 12px/1.6 "Manrope",sans-serif;
}

.daily-author {
  color: var(--muted);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1px;
}

.daily-button {
  width: 100%;
  margin-top: 15px;
  padding: 10px 0 0;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--border);
  background: none;
  color: #bd9afd;
  cursor: pointer;
  font-size: 9px;
}

.listener-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #111017;
}

.listener-avatars {
  display: flex;
  padding-left: 2px;
}

.listener-avatars span {
  width: 24px;
  height: 24px;
  margin-left: -3px;
  display: grid;
  place-items: center;
  border: 2px solid #15131b;
  border-radius: 50%;
  background: linear-gradient(135deg,#c7a17a,#745b84);
  color: white;
  font-size: 8px;
  font-weight: 700;
}

.listener-avatars span:nth-child(2) {
  background: linear-gradient(135deg,#8eb8b2,#5c7482);
}

.listener-avatars span:nth-child(3) {
  background: linear-gradient(135deg,#e1b29a,#a96777);
}

.listener-avatars span:nth-child(4) {
  background: #272230;
  color: #c8b3e6;
}

.listener-card p {
  margin: 9px 0;
  color: #c7bfce;
  font-size: 9px;
  line-height: 1.5;
}

.listener-card > button {
  padding: 0;
  border: 0;
  background: none;
  color: #ae83f4;
  cursor: pointer;
  font-size: 9px;
}

.listener-card > button span {
  padding-left: 4px;
}

.mobile-nav {
  display: none;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px,calc(100vw - 32px));
  padding: 12px 17px;
  border: 1px solid #a77aff55;
  border-radius: 9px;
  background: #211a2b;
  box-shadow: 0 8px 30px #0008;
  color: #f2eaff;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s,transform .2s;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.premium-dialog {
  width: min(440px,calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh,760px);
  padding: 0;
  overflow: visible;
  border: 1px solid #ffffff1a;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
}

.premium-dialog::backdrop {
  background: #050409d9;
  backdrop-filter: blur(6px);
}

.premium-panel {
  position: relative;
  max-height: min(90vh,760px);
  padding: 30px;
  overflow-y: auto;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0,#332346,#17141e 56%);
}

.premium-close {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  background: #ffffff0b;
  color: var(--text);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.premium-kicker {
  color: #c7a1ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.premium-panel h2 {
  margin: 12px 38px 6px 0;
  font: 700 24px/1.2 "Manrope",sans-serif;
}

.premium-intro {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 12px;
}

.plan-list {
  display: grid;
  gap: 9px;
}

.plan-option {
  width: 100%;
  min-height: 60px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ffffff1c;
  border-radius: 10px;
  background: #ffffff06;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s,background .18s,transform .18s,box-shadow .18s;
}

.plan-option:hover,
.plan-option:focus-visible,
.plan-option.is-selected {
  border-color: #b786ff;
  background: #a77aff19;
}

.plan-option:hover,
.plan-option:focus-visible {
  position: relative;
  z-index: 1;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px #0005,0 0 14px #a77aff20;
}

.plan-name {
  font-size: 12px;
  font-weight: 700;
}

.plan-price {
  color: #e0caff;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.plan-price small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.premium-continue {
  width: 100%;
  min-height: 44px;
  margin-top: 17px;
  border: 0;
  border-radius: 9px;
  background: #a77aff;
  color: #160f20;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.premium-continue:hover {
  background: #bd9aff;
}

.premium-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

@media (min-width: 1500px) {
  .app-shell {
    grid-template-columns: 250px minmax(0,1fr) 244px;
    column-gap: 48px;
  }
  .main-content {
    padding-top: 40px;
  }
  .hero {
    min-height: 345px;
  }
  .hero-copy {
    padding: 43px 0 43px 40px;
  }
  .book-grid {
    gap: 19px;
  }
  .book-title-row h3 {
    font-size: 11px;
  }
}

@media (max-width: 1150px) {
  .app-shell {
    grid-template-columns: 205px minmax(0,1fr);
    column-gap: 30px;
    padding-right: 28px;
  }
  .sidebar {
    padding-right: 13px;
  }
  .right-rail {
    display: none;
  }
  .app-shell.library-active {
    grid-template-columns: 205px minmax(0,1fr);
  }
  .hero {
    min-height: 275px;
  }
  .hero-copy {
    padding-left: 28px;
  }
  .book-grid {
    gap: 13px;
  }
  .category-list {
    gap: 9px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
    min-height: 100vh;
    padding: 0 22px 90px;
  }
  .app-shell.library-active {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main-content {
    padding: 23px 0 20px;
  }
  .topbar {
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .greeting > p {
    font-size: 8px;
  }
  .greeting h1 {
    font-size: 20px;
  }
  .topbar-actions {
    position: relative;
    gap: 9px;
  }
  .search-box {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    justify-content: center;
    padding: 0;
    border-color: transparent;
    background: transparent;
    cursor: pointer;
    transition: width .2s,border .2s,background .2s;
  }
  .search-box:focus-within, .search-box.is-open {
    position: absolute;
    top: 0;
    right: 41px;
    z-index: 3;
    width: 220px;
    max-width: calc(100vw - 140px);
    flex-basis: auto;
    justify-content: flex-start;
    padding: 0 9px;
    border-color: var(--border);
    background: #111017;
  }
  .search-box input, .search-box kbd {
    display: none;
  }
  .search-box:focus-within input, .search-box.is-open input {
    display: block;
  }
  .search-box:focus-within kbd, .search-box.is-open kbd {
    display: block;
  }
  .search-suggestions {
    top: 45px;
    right: 0;
    width: min(260px,calc(100vw - 32px));
  }
  body.search-active {
    overflow: hidden;
  }
  body.search-active .topbar-actions {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: block;
    overflow: hidden;
    padding:
      calc(22px + env(safe-area-inset-top))
      max(16px,env(safe-area-inset-right))
      calc(16px + env(safe-area-inset-bottom))
      max(16px,env(safe-area-inset-left));
    background: #0b0a10;
  }
  body.search-active .mobile-nav {
    z-index: 31;
  }
  body.search-active .top-avatar {
    display: none;
  }
  body.search-active .search-screen-title {
    margin: 0 42px 19px 0;
    display: block;
    color: var(--text);
    font: 700 23px "Manrope",sans-serif;
    letter-spacing: -.5px;
  }
  body.search-active .search-close {
    position: absolute;
    top: calc(17px + env(safe-area-inset-top));
    right: max(13px,env(safe-area-inset-right));
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #17141e;
    color: var(--text);
    cursor: pointer;
  }
  .search-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
  }
  body.search-active .search-box,
  body.search-active .search-box:focus-within,
  body.search-active .search-box.is-open {
    position: relative;
    top: auto;
    right: auto;
    z-index: auto;
    width: 100%;
    max-width: none;
    height: 48px;
    flex-basis: auto;
    justify-content: flex-start;
    padding: 0 14px;
    border-color: #383440;
    border-radius: 8px;
    background: #1c1922;
    cursor: text;
  }
  body.search-active .search-box input {
    display: block;
    font-size: 14px;
  }
  body.search-active .search-box kbd {
    display: none;
  }
  body.search-active .search-suggestions {
    position: absolute;
    top: calc(22px + env(safe-area-inset-top) + 36px + 19px + 48px + 16px);
    right: max(16px,env(safe-area-inset-right));
    bottom: calc(81px + env(safe-area-inset-bottom));
    left: max(16px,env(safe-area-inset-left));
    width: auto;
    overflow-y: auto;
    padding: 4px 0 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overscroll-behavior: contain;
  }
  body.search-active .suggestion-heading {
    padding: 8px 0 11px;
    font-size: 11px;
  }
  body.search-active .suggestion-item {
    min-height: 58px;
    padding: 9px 7px;
    gap: 13px;
  }
  body.search-active .suggestion-cover {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  body.search-active .suggestion-cover-art.book-cover {
    width: 106px;
    height: 113px;
    min-height: 113px;
    padding: 16px 12px;
    transform: translate(-50%,-50%) scale(.37);
  }
  body.search-active .suggestion-copy {
    gap: 5px;
  }
  body.search-active .suggestion-copy strong {
    font-size: 13px;
  }
  body.search-active .suggestion-copy small {
    font-size: 11px;
  }
  body.search-active .suggestion-empty {
    padding: 12px 0;
    font-size: 12px;
  }
  .icon-button {
    display: none;
  }
  .hero {
    min-height: 360px;
    display: block;
  }
  .library-view {
    min-height: calc(100vh - 165px);
    padding-top: 0;
  }
  .library-view > .section-heading {
    min-height: 0;
    margin-bottom: 20px;
    padding: 20px 18px;
  }
  .library-view > .section-heading h2 {
    font-size: 25px;
  }
  .library-view > .section-heading .text-link {
    font-size: 9px;
  }
  .library-intro {
    max-width: 250px;
    line-height: 1.5;
  }
  .hero-copy {
    width: 100%;
    padding: 22px 20px 0;
  }
  .hero h2 {
    margin: 10px 0 5px;
    font-size: 32px;
  }
  .hero-copy > p {
    font-size: 11px;
  }
  .hero-listen {
    height: 37px;
    margin-top: 11px;
  }
  .hero-books {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 112px;
    display: flex;
    align-items: center;
  }
  .hero-book-set {
    gap: 6px;
    padding: 12px 6px;
  }
  .hero-book-cover {
    flex-basis: clamp(48px, 4.5vw, 68px);
    width: clamp(48px, 4.5vw, 68px);
    height: clamp(74px, 6.2vw, 104px);
  }
  .library-view > .section-heading {
    padding: 18px 15px;
    align-items: flex-start;
  }
  .library-view > .section-heading .text-link {
    margin-left: auto;
    font-size: 8px;
  }
  .library-view > .section-heading h2 {
    font-size: 22px;
  }
  .category-section, .trending-section, .continue-section {
    margin-top: 29px;
  }
  .section-heading {
    margin-bottom: 14px;
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-kicker {
    font-size: 7px;
  }
  .text-link {
    font-size: 9px;
  }
  .category-list {
    grid-template-columns: repeat(7,minmax(63px,1fr));
    gap: 9px;
    margin-right: -22px;
    padding-right: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .category-list::-webkit-scrollbar {
    display: none;
  }
  .category-card {
    gap: 7px;
    font-size: 8px;
  }
  .category-icon {
    width: 58px;
    height: 57px;
    aspect-ratio: auto;
    border-radius: 10px;
  }
  .category-icon svg {
    width: 25px;
    height: 25px;
  }
  .book-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }
  .book-cover {
    aspect-ratio: .88;
  }
  .cover-title {
    font-size: 22px;
  }
  .cover-atomic .cover-title {
    font-size: 21px;
  }
  .cover-money .cover-title {
    font-size: 18px;
  }
  .cover-epic .cover-title {
    font-size: 25px;
  }
  .cover-midnight .cover-title {
    font-size: 21px;
  }
  .book-title-row h3 {
    font-size: 9px;
  }
  .book-info > p {
    font-size: 8px;
  }
  .book-duration {
    font-size: 7px;
    gap: 4px;
  }
  .book-duration svg {
    width: 12px;
    height: 12px;
  }
  .continue-card {
    grid-template-columns: 45px minmax(0,1fr) 34px 26px;
    gap: 8px;
    min-height: 98px;
    padding: 9px 11px;
  }
  .mini-cover {
    width: 45px;
    height: 57px;
    grid-row: 1 / 3;
  }
  .mini-cover span {
    font-size: 11px;
  }
  .continue-details h3 {
    font-size: 12px;
  }
  .continue-details > p {
    font-size: 8px;
  }
  .progress-row {
    gap: 8px;
  }
  .progress-time {
    font-size: 7px;
  }
  .play-button {
    width: 34px;
    height: 34px;
    grid-column: 3;
    grid-row: 1;
  }
  .volume-control {
    grid-column: 2 / 4;
    grid-row: 2;
    width: 96px;
    gap: 4px;
  }
  .volume-button {
    width: 22px;
    flex-basis: 22px;
  }
  .volume-slider {
    width: 38px;
    flex: 0 0 38px;
  }
  .close-player {
    grid-column: 4;
    grid-row: 1;
  }
  .page-footer {
    margin-top: 25px;
    font-size: 8px;
  }
  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    height: calc(65px + env(safe-area-inset-bottom));
    padding: 7px max(14px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,.09);
    background: rgba(13,12,18,.94);
    backdrop-filter: blur(20px);
  }
  .mobile-nav-link {
    min-width: 0;
    flex: 1;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 3px 2px;
    border: 0;
    background: none;
    color: #82798e;
    text-decoration: none;
    cursor: pointer;
    font-size: 7px;
  }
  .mobile-nav-link.active {
    color: #bb98ff;
  }
  .mobile-nav-link svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .playlist-mobile-link .nav-dot {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    border: 1px solid #ffffff20;
  }
  .mobile-avatar {
    width: 21px;
    height: 21px;
    min-height: 21px;
    font-size: 8px;
  }
  .toast {
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    left: 16px;
    max-width: unset;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .app-shell {
    padding-right: 17px;
    padding-left: 17px;
  }
  .topbar {
    gap: 8px;
  }
  .greeting h1 {
    font-size: 18px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .top-avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .hero {
    min-height: 360px;
  }
  .hero-copy {
    padding: 22px 17px 0;
  }
  .hero h2 {
    font-size: 31px;
  }
  .hero-book-cover {
    flex-basis: 46px;
    width: 46px;
    height: 68px;
    padding: 8px 3px;
  }
  .hero-book-set {
    gap: 5px;
    padding: 10px 6px;
  }
  .hero-book-cover .cover-title,
  .hero-book-cover.cover-atomic .cover-title,
  .hero-book-cover.cover-money .cover-title,
  .hero-book-cover.cover-ikigai .cover-title,
  .hero-book-cover.cover-epic .cover-title,
  .hero-book-cover.cover-becoming .cover-title {
    font-size: 8px;
  }
  .hero-book-cover.cover-ikigai .cover-title {
    top: 10px;
  }
  .hero-book-cover .cover-overline,
  .hero-book-cover .cover-author,
  .hero-book-cover.cover-ikigai .cover-subtitle {
    font-size: 3px;
  }
  .category-list, .book-grid {
    margin-right: -17px;
    padding-right: 17px;
  }
  .book-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-kicker {
    letter-spacing: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .hero-book-track {
    animation: none !important;
  }
}
