:root {
  --page: var(--tdv-dark);
  --surface: var(--tdv-surface);
  --ink: var(--tdv-text);
  --muted: var(--tdv-light-deep);
  --accent: var(--tdv-heading);
  --focus: var(--tdv-heading);
  --shadow: 0 26px 58px var(--tdv-shadow), 0 5px 14px var(--tdv-shadow);
}

body {
  font-family: var(--app-font, "Be Vietnam Pro", Inter, ui-sans-serif, system-ui, sans-serif);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: 100%;
  padding: 12px clamp(18px, 5vw, 48px);
  display: grid;
  place-items: center;
}

.player {
  position: relative;
  width: clamp(350px, 85vw, 420px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--tdv-border);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.cover {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: #b7bec1;
}

.cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.58) contrast(0.94);
}

.cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13, 19, 23, 0.24), transparent 28%, transparent 79%, #b0b5b7 90%);
}

.round-button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.round-button:focus-visible,
.range:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.round-button:active {
  transform: translateY(1px) scale(0.97);
}


.timeline-wrap {
  position: absolute;
  right: 38px;
  bottom: 15px;
  left: 38px;
  z-index: 2;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
}

.timeline-volume {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(12, 25, 31, 0.24);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.timeline-volume:hover,
.timeline-volume[aria-expanded="true"] {
  background: rgba(12, 25, 31, 0.48);
}

.timeline-volume:active { transform: scale(0.96); }

.timeline-volume:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.range {
  --range-progress: 0%;
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.range::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--accent) var(--range-progress), rgba(255, 255, 255, 0.88) var(--range-progress));
  border-radius: 999px;
}

.range::-moz-range-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
}

.range::-moz-range-progress {
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
}

.range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  appearance: none;
  background: #fff;
  border: 1px solid rgba(28, 36, 40, 0.1);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(25, 32, 36, 0.24);
}

.range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid rgba(28, 36, 40, 0.1);
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(25, 32, 36, 0.24);
}

.time-row {
  display: flex;
  justify-content: space-between;
  padding-right: 42px;
  margin-top: -2px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.38);
}

.player-body {
  min-height: 300px;
  padding: 28px 38px 24px;
  display: flex;
  flex-direction: column;
}

.track-copy {
  min-width: 0;
  text-align: center;
}

.album,
.player h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-options {
  display: grid;
  gap: 11px;
  margin-top: 20px;
  text-align: left;
}

.voice-field {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.voice-select {
  position: relative;
  min-width: 0;
}

.voice-trigger {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 6px 12px 6px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: color-mix(in srgb, var(--tdv-surface) 76%, var(--tdv-dark));
  border: 1px solid var(--tdv-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.voice-trigger:hover,
.voice-trigger[aria-expanded="true"] {
  background: var(--tdv-surface);
  border-color: var(--tdv-scrollbar-hover);
}

.voice-trigger:focus-visible,
.voice-option:focus-visible,
.autoplay-field input:focus-visible + .switch-track {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.voice-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--tdv-surface);
  background: var(--tdv-light-deep);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.voice-avatar.female {
  background: var(--accent);
}

.voice-value,
.voice-option > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.voice-value strong,
.voice-option strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-value small,
.voice-option small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.select-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--tdv-light-deep);
  border-bottom: 2px solid var(--tdv-light-deep);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.voice-trigger[aria-expanded="true"] .select-chevron {
  transform: translateY(2px) rotate(225deg);
}

.voice-options {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  z-index: 5;
  padding: 6px;
  background: var(--tdv-surface);
  border: 1px solid var(--tdv-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px var(--tdv-shadow);
}

.voice-option {
  width: 100%;
  padding: 7px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.voice-option:hover,
.voice-option:focus-visible {
  background: color-mix(in srgb, var(--tdv-surface) 72%, var(--tdv-dark));
}

.voice-option .option-check {
  color: transparent;
  font-size: 15px;
  font-weight: 800;
}

.voice-option.is-selected .option-check {
  color: var(--accent);
}

.autoplay-field {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.autoplay-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 auto;
  background: var(--tdv-scrollbar-thumb);
  border: 1px solid var(--tdv-border);
  border-radius: 999px;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--tdv-surface);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(34, 47, 54, 0.28);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.autoplay-field:hover .switch-track {
  background: var(--tdv-scrollbar-hover);
}

.autoplay-field input:checked + .switch-track {
  background: var(--accent);
  border-color: var(--accent);
}

.autoplay-field input:checked + .switch-track .switch-thumb {
  transform: translateX(18px);
}

.album {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  margin: 5px 0 5px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 19px;
}

.round-button {
  display: grid;
  place-items: center;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 4px 12px var(--tdv-shadow);
  transition: color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.round-button:hover {
  color: var(--accent);
  box-shadow: 0 6px 16px var(--tdv-shadow);
}

.secondary {
  width: 44px;
  height: 44px;
  color: var(--tdv-light-deep);
}

.play-button {
  width: 62px;
  height: 62px;
  color: var(--accent);
}

.play-symbol { margin-left: 3px; font-size: 20px; }
.play-button.is-playing .play-symbol { margin-left: 0; }

.volume-panel {
  position: absolute;
  right: 28px;
  bottom: 58px;
  z-index: 4;
  width: 190px;
  padding: 14px 16px 12px;
  background: var(--surface);
  border: 1px solid var(--tdv-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px var(--tdv-shadow);
}

.volume-panel label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.volume-panel .range::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--accent) var(--range-progress), var(--tdv-border) var(--range-progress));
}

.volume-panel .range::-moz-range-track { background: var(--tdv-border); }

.toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 11px 14px;
  color: #fff;
  background: rgba(35, 42, 46, 0.94);
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 460px) {
  .page-shell { padding: 0; }
  .player { min-height: 100dvh; width: 100%; border: 0; border-radius: 0; }
  .cover { min-height: min(100vw, 430px); }
  .player-body { min-height: calc(100dvh - min(100vw, 430px)); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.settings-shell {
  width: 100%;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.back-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--tdv-heading);
  background: var(--tdv-surface);
  border: 1px solid var(--tdv-border);
  border-radius: 50%;
  text-decoration: none;
}

.settings-shell h1,
.settings-shell h2,
.settings-shell p { margin-top: 0; }

.settings-header h1 {
  margin-bottom: 7px;
  color: var(--tdv-heading);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.settings-header p {
  margin-bottom: 0;
  color: var(--tdv-light-deep);
}

.settings-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.settings-panel,
.preview-panel {
  background: var(--tdv-surface);
  border: 1px solid var(--tdv-border);
  box-shadow: 0 16px 44px var(--tdv-shadow);
}

.settings-panel { padding: 8px 16px; }

.setting-group {
  min-width: 0;
  margin: 0;
  padding: 1rem 0;
  border: 0;
  border-bottom: 1px solid var(--tdv-border);
}
.setting-group:last-child {
    border-bottom: none;
}

.setting-group legend {
  padding: 0;
  color: var(--tdv-light);
  font-size: 16px;
  font-weight: 750;
}

.setting-description {
  margin: 5px 0 17px;
  color: var(--tdv-light-deep);
  font-size: 13px;
  line-height: 1.5;
}

.setting-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.setting-heading .setting-description { margin-bottom: 13px; }

output {
  padding: 5px 9px;
  color: var(--tdv-heading);
  background: color-mix(in srgb, var(--tdv-heading) 10%, var(--tdv-surface));
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.theme-grid,
.font-grid {
  display: grid;
  gap: 10px;
}

.theme-grid { grid-template-columns: repeat(3, 1fr); }
.font-grid { grid-template-columns: repeat(3, 1fr); }

.theme-option,
.font-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.theme-option {
  min-height: 92px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--tdv-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.theme-option input,
.font-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-swatch {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
}

.light-swatch { color: #116d87; background: #f5fbfd; border-color: #cbdde5; }
.dark-swatch { color: #65d9e8; background: #06161e; border-color: #214758; }
.warm-swatch { color: #986027; background: #f6f0e4; border-color: #d8cbb8; }

.selected-icon {
  position: absolute;
  top: 9px;
  right: 9px;
  color: transparent;
  font-size: 14px;
}

.theme-option:has(input:checked),
.font-option:has(input:checked) {
  border-color: var(--tdv-heading);
  box-shadow: inset 0 0 0 1px var(--tdv-heading);
}

.theme-option:has(input:checked) .selected-icon,
.font-option:has(input:checked) .selected-icon { color: var(--tdv-heading); }

.theme-option:has(input:focus-visible),
.font-option:has(input:focus-visible),
.back-button:focus-visible,
.reset-button:focus-visible,
.setting-range:focus-visible {
  outline: 3px solid var(--tdv-heading);
  outline-offset: 3px;
}

.setting-range {
  --range-value: 40%;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.setting-range::-webkit-slider-runnable-track {
  height: 5px;
  background: linear-gradient(to right, var(--tdv-heading) var(--range-value), var(--tdv-border) var(--range-value));
  border-radius: 999px;
}

.setting-range::-moz-range-track { height: 5px; background: var(--tdv-border); border-radius: 999px; }
.setting-range::-moz-range-progress { height: 5px; background: var(--tdv-heading); border-radius: 999px; }
.setting-range::-webkit-slider-thumb {
  width: 19px;
  height: 19px;
  margin-top: -7px;
  appearance: none;
  background: var(--tdv-surface);
  border: 5px solid var(--tdv-heading);
  border-radius: 50%;
}
.setting-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--tdv-surface);
  border: 5px solid var(--tdv-heading);
  border-radius: 50%;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--tdv-light-deep);
  font-size: 11px;
}

.font-option {
  min-height: 82px;
  padding: 14px 12px;
  display: grid;
  align-content: center;
  align-items: center;
  border: 1px solid var(--tdv-border);
  border-radius: 12px;
}

.font-option > span { min-width: 0; display: grid; gap: 3px; }
.font-option strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.font-option small { color: var(--tdv-light-deep); font-size: 10px; line-height: 1.3; }
.be-vietnam-font { font-family: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif; }
.inter-font { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.roboto-font { font-family: Roboto, ui-sans-serif, system-ui, sans-serif; }

.form-actions {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.reset-button {
  min-height: 40px;
  padding: 0 15px;
  color: var(--tdv-heading);
  background: transparent;
  border: 1px solid var(--tdv-border);
  border-radius: 9px;
  cursor: pointer;
}

.reset-button:hover { background: color-mix(in srgb, var(--tdv-heading) 8%, var(--tdv-surface)); }
.save-status { color: var(--tdv-light-deep); font-size: 12px; }

.preview-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.preview-label {
  padding: 14px 20px;
  color: var(--tdv-light-deep);
  background: color-mix(in srgb, var(--tdv-surface) 72%, var(--tdv-dark));
  border-bottom: 1px solid var(--tdv-border);
  font-size: 12px;
  font-weight: 750;
}

.preview-label i { margin-right: 6px; }

.story-preview {
  width: min(100% - 40px, var(--preview-width, 760px));
  margin-inline: auto;
  padding: 34px 0 38px;
  font-family: var(--reading-font, inherit);
  font-size: var(--preview-font-size, 18px);
}

.chapter-label {
  margin-bottom: 8px;
  color: var(--tdv-heading);
  font-size: 0.72em;
  font-weight: 750;
}

.story-preview h2 {
  margin-bottom: 22px;
  color: var(--tdv-light);
  font-size: 1.55em;
  line-height: 1.2;
}

.story-preview p:not(.chapter-label) {
  margin-bottom: 1em;
  color: var(--tdv-text);
  line-height: 1.78;
}

@media (max-width: 860px) {
  .settings-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; order: -1; }
}

@media (max-width: 580px) {
  .settings-shell { width: min(100% - 24px, 1180px); padding-block: 24px 40px; }
  .settings-panel { padding-inline: 12px; }
  .theme-grid,
  .font-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .theme-option {
    min-height: 84px;
    padding-inline: 7px;
  }
  .font-option {
    min-height: 76px;
    padding-inline: 8px;
  }
  .font-option strong { font-size: 11px; }
  .font-option small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

.reader {
            font-family: "Lexend", sans-serif;
            font-optical-sizing: auto;
            font-style: normal;
            white-space: break-spaces;
            margin: 0 auto;
        }
        .reader img {width: 100%;}
        nav.navbar .dropdown-menu{max-height: calc(100vh - 240px);overflow: auto;}
        .novel{aspect-ratio: 2 / 3; margin-bottom: 20px;}
        .novel img {width: 100%;height: 100%;object-fit: cover;}
        .novel h5.name {color: #fff;padding: 10px;margin: 0;font-size: 14px;width: 100%;text-align: left;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;background: #00000099;box-sizing: border-box;}
        
        .chapter-detail-control .dropdown-menu {max-height: calc(100vh - 200px); overflow: auto;}
        .chapter-detail-control .dropdown-menu li {min-width: 280px;}
        .chapter-detail-control .dropdown-menu li a {white-space: nowrap;width: 290px;overflow: hidden;text-overflow: ellipsis;padding: 3px 8px;}
        .chapter-detail-control .dropdown-menu li:hover{background: #f1f3f4;}
        .vip-content {position: relative;border-top: 1px solid #ccc;padding: 2.5rem 0;margin-top: 3rem;text-align: center;}
        .vip-content:before {content: "\f30d";font-family: "Font Awesome 5 Pro";width: 38px;height: 38px;font-size: 20px;border-radius: 50%;border: 1px solid #ccc;background-color: #fff;display: flex;justify-content: center;align-items: center;position: absolute;top: 0;left: 50%;transform: translate(-50%,-50%);}


.fa-apple:before{content:"\f179";}
.fa-google-play:before{content:"\f3ab";}

svg:not(:root).svg-inline--fa{overflow:visible;}
.svg-inline--fa{display:inline-block;font-size:inherit;height:1em;overflow:visible;vertical-align:-.125em;}
.svg-inline--fa.fa-w-12{width:.75em;}
.svg-inline--fa.fa-w-16{width:1em;}
a{text-decoration:none;color:#4497f8;background-color:transparent;-webkit-text-decoration-skip:objects;}
a:hover{text-decoration:none;color:#096fe7;}
svg{overflow:hidden;vertical-align:middle;}
.btn{position:relative;font-size:1rem;font-weight:600;line-height:1.7;display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;text-align:center;vertical-align:middle;white-space:nowrap;border-radius:.25rem;}
@media screen and (prefers-reduced-motion:reduce){
.btn{transition:none;}
}
.btn:focus,.btn:hover{text-decoration:none;}
.btn:focus{outline:0;box-shadow:0 4px 15px rgba(68,151,248,.35);}
.btn:disabled{opacity:.65;box-shadow:none;}
.btn:not(:disabled):not(.disabled){cursor:pointer;}
.btn:not(:disabled):not(.disabled):active{box-shadow:none;}
.btn:not(:disabled):not(.disabled):active:focus{box-shadow:0 4px 15px rgba(68,151,248,.35),none;}
.mb-2{margin-bottom:.5rem!important;}
.mt-5{margin-top:3rem!important;}
@media (min-width:992px){
.mr-lg-4{margin-right:1.5rem!important;}
}
@media print{
*,::after,::before{box-shadow:none!important;text-shadow:none!important;}
}
.btn svg:not(:last-child){margin-right:.5rem;}
.btn-translate--hover{transition:all .2s ease-in-out;}
.btn-translate--hover:hover{transform:translateY(-3px);}
.btn-app-store{position:relative;padding-right:1.5rem;padding-left:4.5rem;color:#fff;background:#000;}
.btn-app-store svg{font-size:2.5rem;position:absolute;top:50%;left:1.25rem;transform:translateY(-50%);}
.btn-app-store .btn-inner--text{font-size:.75rem;line-height:.75rem;display:block;margin-bottom:.125rem;}
.btn-app-store .btn-inner--brand{font-size:21px;line-height:21px;display:block;text-align:left;}
.btn-app-store:hover{color:#fff;background-color:#2284f7;}
.audio {position: sticky; top: 64px;}
.chapters-container, .layout-container, .audio-container {
    --tw-translate-x: -100%;
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1000;
    pointer-events: auto;
    transition-duration: .3s;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    opacity: 0;
}
.chapters-container.active, .layout-container.active, .audio-container.active{
    --tw-translate-x: 0px;
    display: flex;
    opacity: 1;
}
.chapters-container .heading {
    color: var(--tdv-heading);
}
.reader-dialog-backdrop {
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(6px) saturate(115%);
    backdrop-filter: blur(6px) saturate(115%);
    transform: translateZ(0);
    will-change: opacity, backdrop-filter;
    transition-duration: .3s;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    position: absolute;
    inset: 0;
}
.chapter-content {
    width: clamp(280px, 85vw, 420px);
    display: flex;
    flex-direction: column;
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .3s;
    height: 100%;
    transform: translate(var(--tw-translate-x),0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
    z-index: 1001;
    background: var(--tdv-dark);
    color: var(--tdv-light);
}
.audio-content {
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.audio-content .card{
    width: clamp(280px, 85vw, 420px);
    position: relative;
}
.card-title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.chapters {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1 1 0%;
    padding: 0.5rem 0;
}
.chapters a {
    background-color: var(--tdv-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    color: var(--tdv-light);
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-left: solid 3px var(--tdv-dark);
    border-bottom: solid 1px var(--bs-border-color);
}
.chapters a:hover {
    background-color: color-mix(in srgb, var(--tdv-dark), #000 8%);
    border-left: solid 3px var(--tdv-light);
}

.chapters a.active {
    background-color: rgb(var(--tdv-bg-rgb) / 10%);
    border-left: solid 3px rgb(var(--tdv-bg-rgb));
}
.chapters a span {
    max-width: calc(100% - 60px);
}
.chapters a span i{
    width: 16px;
}
.layout-content{
    width: clamp(280px, 85vw, 420px);
    display: flex;
    flex-direction: column;
    transition-property: transform;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .3s;
    height: 100%;
    transform: translate(var(--tw-translate-x), 0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
    z-index: 1001;
    background: var(--tdv-dark);
    color: var(--tdv-light);
    margin-left: auto;
}
