/* ==================== 1. Root Variables & Dark/Light Theme ==================== */
:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  --bg-body: #10131a;
  --bg-radial: radial-gradient(circle at top, #202a3b, #10131a 45rem);
  --bg-topbar: #141923;
  --bg-card: #141a24;
  --bg-input: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-main: #edf2f7;
  --text-muted: #94a3b8;
  --color-accent: #3b82f6;
  --color-primary: #8b5cf6;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-body: #e2e8f0;
  --bg-radial: radial-gradient(circle at top, #f1f5f9, #cbd5e1 45rem);
  --bg-topbar: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --border-color: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --color-accent: #2563eb;
  --color-primary: #7c3aed;
}

/* ==================== 2. Global Reset & Base Typography ==================== */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-body);
  color: var(--text-main);
  background: var(--bg-radial);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
#app {
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ==================== 3. Header, Navigation & Search Bar ==================== */
.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  background: var(--bg-topbar);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  position: relative;
  padding: 0 20px;
  margin-top: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
}
.brand-title {
  color: #ffffff;
  font-weight: 800;
}
.brand-logo {
  height: 28px;
  width: 28px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}
.brand-accent {
  color: inherit;
}

[data-theme="light"] .brand,
[data-theme="light"] .brand-title,
[data-theme="light"] .brand-accent {
  color: #000000;
}
[data-theme="light"] .brand-logo {
  filter: brightness(0);
}
.nav-menu {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 8px;
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 6px;
  transition: color 0.2s ease;
  cursor: pointer;
}
.nav-link:hover {
  color: var(--text-main);
  background: transparent;
}
.nav-link.active {
  color: var(--text-main);
  font-weight: 700;
  background: transparent;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 8px rgba(139, 92, 246, 0.5);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}
.header-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.header-circle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.mobile-search-trigger {
  display: none;
}

/* Mobile Search Drawer */
.mobile-search-drawer {
  margin-top: 10px;
  padding: 14px;
  background: var(--bg-topbar);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.mobile-search-form {
  position: relative;
  width: 100%;
}

/* Mobile Bottom Navigation Bar (Fixed Floating at Bottom) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 28px));
  height: 62px;
  background: rgba(20, 25, 36, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  padding: 0 10px;
}
[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
}
.mob-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
}
.mob-nav-item.active {
  color: #3a5bed;
}
[data-theme="light"] .mob-nav-item.active {
  color: #3a5bed;
}
.mob-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, #5949e6, #1631aa);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  margin-left: auto;
}
.search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.search-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.searchbar input,
.mobile-search-form input {
  width: 100%;
  padding: 9px 38px 9px 38px;
  color: var(--text-main);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}
.searchbar input::placeholder,
.mobile-search-form input::placeholder {
  color: var(--text-muted);
}
.searchbar input:focus,
.mobile-search-form input:focus {
  outline: none;
  background: var(--bg-card);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}
.search-submit-btn {
  position: absolute;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.search-submit-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
}
.chapter-select {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  color: var(--text-main);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 100;
  overflow: hidden;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}
.dropdown-loading,
.dropdown-empty {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.15s ease;
}
.dropdown-item:last-child {
  border-bottom: none;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--bg-input);
  outline: none;
}
.dropdown-thumb {
  width: 42px;
  height: 56px;
  object-fit: cover;
  border-radius: 5px;
  background: var(--bg-input);
  flex-shrink: 0;
}
.dropdown-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.dropdown-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dropdown-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.button,
.compact {
  padding: 9px 12px;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
}
.button.primary {
  background: #d7b354;
  border-color: #e9c96f;
  color: #1b170d;
  font-weight: 700;
}
.compact {
  padding: 7px 10px;
  font-size: 0.88rem;
}
.hero {
  max-width: 700px;
  padding: 82px 0 52px;
}
.hero h1,
.detail h1,
.reader h1 {
  margin: 4px 0 14px;
  line-height: 1.08;
  color: var(--text-main);
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 4.4rem);
}
.eyebrow {
  margin: 0;
  color: #e9c96f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.muted,
.empty,
figcaption {
  color: var(--text-muted);
}
.section {
  margin: 24px 0 42px;
}
.section h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--text-main);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-tab:hover {
  border-color: var(--color-accent);
  color: var(--text-main);
}
.filter-tab.active {
  background: #d7b354;
  border-color: #e9c96f;
  color: #10131a;
  font-weight: 700;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 0;
}
.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
  border-color: #8b5cf6;
  color: var(--text-main);
  transform: translateY(-1px);
}
.page-btn.active {
  background: #7c3aed;
  border-color: #8b5cf6;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-btn.prev-btn,
.page-btn.next-btn {
  color: var(--color-primary);
  border-color: var(--border-color);
  font-size: 1.1rem;
  font-weight: 700;
}
.recommendation-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.recommendation-slider::-webkit-scrollbar {
  height: 6px;
}
.recommendation-slider::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

/* ==================== 4. Recommendation Slider & Poster Cards ==================== */
.poster-card {
  flex: 0 0 160px;
  width: 160px;
  aspect-ratio: 2 / 3.2;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  scroll-snap-align: start;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s ease;
  border: 1px solid var(--border-color);
}
.poster-card:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster-topbar {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.poster-badges-left {
  display: flex;
  gap: 4px;
  align-items: center;
}
.poster-badge {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}
.time-badge {
  background: rgba(16, 19, 26, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.up-badge {
  background: #e11d48;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.flag-badge {
  background: rgba(16, 19, 26, 0.75);
  font-size: 0.85rem;
  padding: 1px 4px;
}
.poster-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 8px 8px;
  background: linear-gradient(
    to top,
    rgba(16, 19, 26, 0.95) 0%,
    rgba(16, 19, 26, 0.6) 60%,
    transparent 100%
  );
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* ==================== 5. Comic Cards & Grid Layout ==================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px 16px;
}
.comic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
}
.comic-card:hover,
.comic-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  outline: none;
}
.cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: var(--bg-input);
}
.cover-wrapper .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.comic-card:hover .cover {
  transform: scale(1.06);
}
.cover-wrapper.no-cover::after {
  content: "No Image";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.badge {
  position: absolute;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  z-index: 1;
}
.rating-badge {
  top: 8px;
  right: 8px;
  background: rgba(16, 19, 26, 0.82);
  color: #f5c518;
  border: 1px solid rgba(245, 197, 24, 0.35);
}
.type-badge {
  top: 8px;
  left: 8px;
  background: rgba(215, 179, 84, 0.9);
  color: #10131a;
  text-transform: uppercase;
}
.up-badge-cover {
  bottom: 8px;
  left: 8px;
  background: #e11d48;
  color: #ffffff;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.flag-badge-cover {
  bottom: 8px;
  right: 8px;
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(4px);
  font-size: 0.9rem;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1;
}
.card-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
}
.card-content .title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.card-chapter-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-input);
  padding: 7px 10px;
  border-radius: 8px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.pill-chapter {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 8px;
  flex-shrink: 0;
}
.card-content .meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: capitalize;
}
.card-content .last-read {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
  margin-top: 2px;
}

/* ==================== 6. Comic Detail View & Metadata ==================== */
.detail {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

/* Detail Hero Header Card */
.detail-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding: 56px 32px 32px;
  border-radius: 20px;
  background: #0f1219;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-nav-header {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
}

.detail-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.detail-nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(15, 18, 25, 0.45) 0%, rgba(15, 18, 25, 0.88) 100%);
  z-index: 1;
  pointer-events: none;
}

.detail-backdrop {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(35px) scale(1.15) brightness(0.65) saturate(1.35);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.detail-cover-wrapper {
  position: relative;
  width: 210px;
  height: 315px;
  aspect-ratio: 2 / 3;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  background: var(--bg-input);
  z-index: 2;
}

.detail-cover-wrapper .detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(215, 179, 84, 0.95);
  color: #10131a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.detail-flag-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(16, 19, 26, 0.85);
  backdrop-filter: blur(4px);
  font-size: 1rem;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.detail-info {
  position: relative;
  flex: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.detail-info h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.alternative-title {
  font-size: 0.95rem;
  color: #c0c6d8;
  margin-bottom: 24px;
  line-height: 1.45;
}

.detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-actions .button {
  height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.detail-actions .button.primary {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}
.detail-actions .button.primary:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.detail-actions .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.detail-actions .button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.detail-stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  flex-wrap: wrap;
}

.detail-stats-row .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.stat-item.rating-stat {
  color: #ffb703;
}
.stat-item.status-stat {
  color: #38bdf8;
}
.stat-item.type-stat {
  color: #a78bfa;
}

/* Detail Body Section (Below Hero) */
.detail-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.detail-description {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
}

.detail-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more-btn {
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  margin-top: 6px;
  display: inline-block;
}

/* Metadata Table Grid (Inline Horizontal on Desktop) */
.detail-meta-table {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  align-items: flex-start;
  width: 100%;
  margin-top: 10px;
}

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

.meta-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
}

.meta-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.continue-card {
  display: flex;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  display: block;
  max-width: 430px;
}
.continue-card h3 {
  margin: 0;
  color: var(--text-main);
}
.history-list {
  display: grid;
  gap: 10px;
  max-width: 800px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}
.history-row:hover {
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.history-cover-wrapper {
  width: 46px;
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-input);
  flex-shrink: 0;
  position: relative;
}
.history-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.history-cover-wrapper.no-cover::after {
  content: "📚";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.history-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail {
  display: flex;
  gap: 28px;
  padding: 42px 0 12px;
}

.detail-info {
  max-width: 750px;
}
.description {
  line-height: 1.65;
  white-space: pre-line;
}
.tags {
  color: #e9c96f;
}
.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ==================== 7. Chapter List & Individual Chapter Cards ==================== */
.chapter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.chapter-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-align: left;
  color: inherit;
  width: 100%;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}
.chapter-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background: var(--bg-input);
}
.chapter-card.read {
  background: var(--bg-input);
  border-color: var(--border-color);
  opacity: 0.8;
}
.chapter-card.read:hover {
  opacity: 1;
  border-color: #10b981;
}
.chapter-card.read .chapter-main-title {
  color: var(--text-muted);
  font-weight: 600;
}
.chapter-card.read .chapter-thumb {
  filter: brightness(0.85);
}
.chapter-thumb-wrapper {
  width: 110px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-input);
  position: relative;
}
.chapter-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chapter-thumb-wrapper.no-thumb::after {
  content: "📖";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.chapter-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}
.chapter-main-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chapter-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.chapter-time {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 2px;
}
.chapter-up-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 1px 5px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 4px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ==================== 8. Vertical Reader View & Controls ==================== */
.reader-controls,
.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 0;
}
.reader-controls .chapter-select {
  width: min(480px, 100%);
}
.reader {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 0;
}
.reader h1 {
  text-align: center;
  font-size: 1.15rem;
  color: #d8e0ea;
}
.page-list {
  display: grid;
  gap: 0;
}
.page {
  margin: 0;
  min-height: 320px;
  text-align: center;
}
.page img {
  display: block;
  max-width: 100%;
  min-height: 320px;
  margin: 0 auto;
  background: #171d28;
}
.page figcaption {
  display: none;
}
.chapter-separator {
  background: #000000;
  color: #ffffff;
  padding: 54px 20px;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}
.separator-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  max-width: 400px;
  width: 100%;
}
.separator-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.separator-label {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.separator-value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.separator-loader {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #3b82f6;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.separator-loader::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #3b82f6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: sepSpin 0.8s linear infinite;
}
@keyframes sepSpin {
  to {
    transform: rotate(360deg);
  }
}
.separator-retry-btn {
  margin-top: 8px;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.resume-prompt {
  position: fixed;
  z-index: 1001;
  right: 20px;
  bottom: 95px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - 40px);
  padding: 13px;
  border: 1px solid #e9c96f;
  border-radius: 10px;
  background: #27200e;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  animation: fadeInPrompt 0.3s ease;
}
@keyframes fadeInPrompt {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  #app {
    padding: 0 14px 90px;
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-search-trigger {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }

  .topbar {
    min-height: 60px;
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 14px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand-logo {
    height: 24px;
    width: 24px;
  }

  .nav-menu {
    order: 2;
    margin-left: auto;
    gap: 12px;
  }

  .nav-link {
    font-size: 0.84rem;
    padding: 6px 2px;
    gap: 5px;
  }

  .nav-link svg {
    width: 15px;
    height: 15px;
  }

  .nav-link.active::after {
    bottom: -10px;
    height: 2px;
  }

  .searchbar {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .searchbar input {
    font-size: 0.85rem;
    padding: 8px 34px 8px 34px;
  }

  .search-dropdown {
    max-height: 300px;
  }

  /* Sections */
  .section {
    margin: 18px 0 28px;
  }
  .section h2 {
    font-size: 1.1rem;
  }
  .section-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  /* Filter tabs */
  .filter-tabs {
    gap: 6px;
  }
  .filter-tab {
    padding: 5px 11px;
    font-size: 0.8rem;
  }

  /* Recommendation slider */
  .poster-card {
    flex: 0 0 130px;
    width: 130px;
  }
  .poster-title-overlay {
    font-size: 0.72rem;
    padding: 16px 6px 6px;
  }
  .poster-badge {
    font-size: 0.6rem;
    padding: 1px 4px;
  }

  /* Comic grid: 2 columns on mobile */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 10px;
  }
  .card-content {
    padding: 8px 10px;
  }
  .card-content .title {
    font-size: 0.85rem;
  }
  .card-content .meta {
    font-size: 0.72rem;
  }

  /* Detail page */
  .detail {
    padding-top: 12px;
    gap: 16px;
  }
  .detail-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px 20px;
    gap: 20px;
  }
  .detail-cover-wrapper {
    width: 175px;
    height: 262px;
    margin: 0 auto;
  }
  .detail-info {
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .detail-info h1 {
    font-size: 1.35rem;
    text-align: center;
  }
  .alternative-title {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
  }
  .detail-actions-bar {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .detail-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .detail-actions .button {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
  }
  .detail-stats-row {
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
  .detail-body {
    padding: 0 4px;
  }
  .detail-meta-table {
    flex-direction: column;
    gap: 12px;
  }
  .meta-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }
  .meta-label {
    width: 70px;
    flex-shrink: 0;
  }

  /* Chapter list: single column */
  .chapter-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chapter-card {
    padding: 8px 10px;
    gap: 10px;
  }
  .chapter-thumb-wrapper {
    width: 80px;
    height: 52px;
  }
  .chapter-main-title {
    font-size: 0.88rem;
  }
  .chapter-subtitle {
    font-size: 0.72rem;
  }

  /* Pagination */
  .pagination {
    gap: 5px;
    margin-top: 20px;
  }
  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* Reader */
  .page {
    min-height: 180px;
  }
  .page img {
    min-height: 180px;
  }
  .reader h1 {
    font-size: 1rem;
  }
  .reader-controls {
    gap: 6px;
    padding: 12px 0;
  }

  /* History rows */
  .history-list {
    max-width: 100%;
  }
  .history-row {
    gap: 10px;
    padding: 8px 10px;
  }
  .history-cover-wrapper {
    width: 38px;
    height: 52px;
  }
  .history-title {
    font-size: 0.88rem;
  }

  /* Resume prompt */
  .resume-prompt {
    right: 14px;
    bottom: 90px;
    max-width: calc(100% - 28px);
    padding: 10px 12px;
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  #app {
    padding: 0 10px 28px;
  }
  .topbar {
    padding: 10px 12px;
    margin-top: 6px;
  }
  .brand {
    font-size: 0.95rem;
  }
  .brand-logo {
    height: 22px;
    width: 22px;
  }
  .nav-link {
    font-size: 0.78rem;
    padding: 4px 2px;
    gap: 4px;
  }
  .poster-card {
    flex: 0 0 115px;
    width: 115px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
  }
  .detail-cover-wrapper {
    width: 130px;
    height: 195px;
  }
  .chapter-thumb-wrapper {
    width: 65px;
    height: 42px;
  }
  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 0.8rem;
    padding: 0 8px;
  }
}

/* --- READER POPUP & FLOATING OVERLAYS --- */
.reader-overlay-top {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -20px);
  width: min(880px, calc(100% - 24px));
  height: 52px;
  background: rgba(23, 27, 36, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.reader-overlay-top.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.overlay-title-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #edf2f7;
  overflow: hidden;
  white-space: nowrap;
  max-width: calc(100% - 100px);
}

.overlay-comic-title {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-sep {
  color: #64748b;
  font-size: 1.1rem;
}

.overlay-chapter-title {
  color: #edf2f7;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overlay-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.overlay-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.reader-overlay-bottom {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
}

.reader-overlay-bottom.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.overlay-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(23, 27, 36, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.overlay-circle-btn:hover:not(:disabled) {
  background: rgba(35, 42, 56, 0.98);
  border-color: #8b5cf6;
  color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35);
}

.overlay-circle-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.96);
}

.overlay-circle-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

.overlay-circle-btn.play-btn.active {
  background: #7c3aed;
  border-color: #a78bfa;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(124, 58, 237, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
  }
}

.reader-settings-popup {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(23, 27, 36, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1001;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  width: min(320px, calc(100vw - 32px));
  animation: popup-slide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popup-slide {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.speed-options {
  display: flex;
  gap: 6px;
}

.speed-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-btn:hover {
  border-color: #8b5cf6;
  color: #fff;
}

.speed-btn.active {
  background: #7c3aed;
  border-color: #8b5cf6;
  color: #fff;
  font-weight: 700;
}

.settings-full-btn {
  width: 100%;
  text-align: center;
  background: #1e293b;
  border-color: #334155;
}

.reader-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.reader-chapter-modal {
  width: min(520px, 100%);
  max-height: 80vh;
  background: #171d28;
  border: 1px solid #303a4c;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  animation: popModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popModal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #283344;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #edf2f7;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-search-input {
  margin: 12px 20px 8px;
  padding: 10px 14px;
  background: #0f141c;
  border: 1px solid #2d3748;
  border-radius: 8px;
  color: #edf2f7;
  font-size: 0.9rem;
}

.modal-chapter-list {
  padding: 8px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 50vh;
}

.modal-chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #1a2230;
  border: 1px solid #283344;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-chapter-item:hover {
  background: #232d3f;
  border-color: #8b5cf6;
  color: #fff;
}

.modal-chapter-item.active {
  background: rgba(124, 58, 237, 0.2);
  border-color: #8b5cf6;
  color: #a78bfa;
  font-weight: 700;
}

.current-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}

.modal-empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .reader-overlay-top {
    top: 10px;
    height: 46px;
    padding: 0 8px;
  }
  .overlay-title-info {
    font-size: 0.8rem;
    max-width: calc(100% - 80px);
  }
  .reader-overlay-bottom {
    bottom: 16px;
    gap: 8px;
  }
  .overlay-circle-btn {
    width: 42px;
    height: 42px;
  }
}
