:root {
  --bg-color: #050811;
  --card-bg: #0c1322;
  --card-hover: #131c31;
  --blueray-deep: #00122e;
  --blueray-glow: rgba(0, 114, 255, 0.4);
  --accent-gold: #ffd700;
  --accent-gold-gradient: linear-gradient(135deg, #ffe066 0%, #d4af37 50%, #996515 100%);
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #e0e6ed 50%, #8a9ba8 100%);
  --accent-red: #ff334b;
  --text-main: #f0f4fc;
  --text-muted: #889bb5;
  --border-color: #1a2742;
  --border-gold: rgba(255, 215, 0, 0.35);
  --header-bg: #070c18;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Padauk', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  user-select: none;
  -webkit-user-select: none;
  min-height: 100vh;
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Glowing & Shimmering Brand Logo */
.brand-logo-box {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.1rem, 3.5vw, 1.4rem);
  letter-spacing: 2px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--accent-gold);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.15) 0%, rgba(0, 18, 46, 0.8) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(0, 114, 255, 0.2);
  animation: glowPulse 3s ease-in-out infinite alternate;
}

.brand-logo-box span {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 6px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.brand-logo-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(30deg);
  animation: shimmerLight 3.5s infinite;
}

@keyframes shimmerLight {
  0% { left: -60%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3), 0 0 20px rgba(0, 114, 255, 0.2);
    border-color: #d4af37;
  }
  100% {
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.6), 0 0 35px rgba(0, 114, 255, 0.5);
    border-color: #fff275;
  }
}

.menu-toggle-btn {
  background: #0f182c;
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  transition: all 0.2s;
}
.menu-toggle-btn:hover {
  background: #192745;
  border-color: var(--accent-gold);
}
.menu-toggle-btn svg { width: 20px; height: 20px; fill: var(--accent-gold); }

/* Left Slide-in Side Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 300px);
  background: #080d1a;
  border-right: 1px solid var(--border-color);
  z-index: 160;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.9);
}
.side-drawer.open {
  transform: translateX(0);
}

.side-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  background: #060913;
}
.drawer-brand {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.drawer-brand span { color: var(--accent-gold); }
.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.drawer-close-btn:hover { color: #fff; }

.drawer-category-label {
  padding: 14px 16px 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.drawer-menu-list {
  list-style: none;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}
.drawer-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  border-left: 3px solid transparent;
  background: #0f1629;
  transition: all 0.2s;
}
.drawer-menu-list li a svg { width: 18px; height: 18px; fill: var(--text-muted); }
.drawer-menu-list li a.active, .drawer-menu-list li a:hover {
  color: #fff;
  background: #17233f;
  border-left-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.2);
}
.drawer-menu-list li a.active svg, .drawer-menu-list li a:hover svg { fill: var(--accent-gold); }

/* Main Container */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px;
}

/* Advertisement Slot (16:9 Image Aspect Ratio) */
.ads-banner-container {
  width: 100%;
  max-width: 650px;
  margin: 8px auto 14px auto;
}

.ads-banner-box {
  display: block;
  width: 100%;
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: radial-gradient(circle, #0e1933 0%, #060a14 100%);
  border: 1.5px dashed var(--accent-gold);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 114, 255, 0.15);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ads-banner-box:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
}

.ads-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  gap: 6px;
}

.ads-placeholder-content svg {
  width: 38px;
  height: 38px;
  fill: var(--accent-gold);
  opacity: 0.85;
}

.ads-badge {
  background: var(--accent-gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.ads-text {
  font-size: clamp(0.85rem, 2.8vw, 1.05rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-top: 4px;
}

.ads-subtext {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Search Box */
.search-wrapper {
  display: flex;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.search-wrapper input {
  flex: 1;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}
.search-wrapper button {
  background: var(--accent-gold-gradient);
  border: none;
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-wrapper button svg { width: 18px; height: 18px; fill: #000; }

/* Section Header */
.section-title-wrap {
  display: flex;
  align-items: center;
  margin: 16px 0 12px 0;
}
.accent-bar {
  width: 4px;
  height: 20px;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  border-radius: 2px;
  margin-right: 10px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

/* Grid & Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}
@media (min-width: 768px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}
.video-card:hover {
  border-color: var(--accent-gold);
  background: var(--card-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 114, 255, 0.2);
}

.thumbnail-box {
  width: 100%;
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  background-color: #000;
  overflow: hidden;
}
.thumbnail-box img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hd-badge, .book-badge, .comic-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(5, 8, 17, 0.9);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}
.book-badge { color: #5cdbb5; border-color: #5cdbb5; }
.comic-badge { color: #ff76ac; border-color: #ff76ac; }

.card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.video-card:hover .card-title { color: var(--accent-gold); }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.card-watermark {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Pagination */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  gap: 6px;
}
.pagination-bar span, .pagination-bar button {
  background: #0f1629;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.pagination-bar button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.pagination-bar button.active {
  background: var(--accent-gold-gradient);
  border-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
}
.pagination-info {
  border: none !important;
  background: transparent !important;
  color: var(--text-muted);
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  min-height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #060a14;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  border: none;
  background: none;
  flex: 1;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
}
.bottom-nav-item svg { width: 20px; height: 20px; fill: currentColor; margin-bottom: 2px; }
.bottom-nav-item:hover, .bottom-nav-item.active { color: var(--accent-gold); }

/* Rich Footer */
.site-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}
.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .footer-main-grid { grid-template-columns: 1.5fr 1fr 1.5fr; }
}

.footer-logo {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--accent-gold); }
.footer-subheading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  cursor: pointer;
}
.footer-links a:hover { color: var(--accent-gold); }

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f1a33;
  color: #fff;
  border: 1px solid var(--accent-gold);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.2);
}
.telegram-btn svg { width: 18px; height: 18px; fill: var(--accent-gold); }
.telegram-btn:hover {
  background: #172852;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.footer-disclaimer-box {
  margin-top: 24px;
  padding: 14px;
  background: #090f1d;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ================= 1. Player Overlay ================= */
.player-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.player-overlay.open { display: flex; }
.video-view-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.back-btn-bar {
  padding: 12px 16px;
  background: #070c18;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-color);
  color: #fff;
  position: relative;
  z-index: 1000;
  user-select: none;
}
.back-btn-bar svg { width: 18px; height: 18px; fill: #fff; margin-right: 8px; }
.back-btn-bar:hover { color: var(--accent-gold); }
.back-btn-bar:hover svg { fill: var(--accent-gold); }

.video-stage {
  position: relative;
  width: 100%;
  background: #000;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}
.video-stage video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}

.playback-spinner-box {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  background: rgba(7, 12, 24, 0.9);
  padding: 16px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.spinner-ring {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.playback-spinner-box span { color: #fff; font-size: 0.82rem; }

/* Custom Controls */
.custom-controls {
  background: #0b1120;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.seek-container {
  position: relative;
  width: 100%;
  height: 5px;
  background: #192642;
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 8px;
}
.seek-progress {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 3px;
  width: 0%;
  position: relative;
}
.seek-handle {
  position: absolute;
  right: -5px;
  top: -3.5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-gold);
}

.ctrl-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ctrl-group-left, .ctrl-group-right { display: flex; align-items: center; }
.ctrl-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctrl-group-right .ctrl-btn { margin-right: 0; margin-left: 12px; }
.ctrl-btn svg { width: 18px; height: 18px; fill: #fff; }
.ctrl-btn:hover svg { fill: var(--accent-gold); }
.time-display { font-family: monospace; font-size: 0.8rem; color: var(--text-muted); }

.settings-wrapper { position: relative; }
.quality-menu {
  display: none;
  position: absolute;
  bottom: 30px;
  right: 0;
  background: #0e172c;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  list-style: none;
  padding: 4px 0;
  z-index: 20;
}
.quality-menu.open { display: block; }
.quality-menu li {
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}
.quality-menu li:hover, .quality-menu li.selected {
  background: var(--accent-gold-gradient);
  color: #000;
  font-weight: 700;
}

/* Player Title & Download */
.player-title-box {
  padding: 14px 16px;
  background: #070c18;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 600px) {
  .player-title-box { flex-direction: row; justify-content: space-between; align-items: center; }
}
.player-video-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent-gold-gradient);
  color: #000;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.download-btn svg { width: 16px; height: 16px; fill: #000; }
.download-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.similar-section { padding: 18px 14px; }

/* ================= 2. Text Book Reader Overlay ================= */
.reader-overlay {
  position: fixed;
  inset: 0;
  background: #050811;
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  user-select: text;
  -webkit-user-select: text;
}
.reader-overlay.open { display: flex; }

.reader-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #0a1020;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

.reader-top-bar {
  position: sticky;
  top: 0;
  background: #070c18;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.font-controls {
  display: flex;
  gap: 8px;
}
.font-controls button {
  background: #101a33;
  color: var(--accent-gold);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}
.font-controls button:hover {
  background: var(--accent-gold);
  color: #000;
}

.reader-content-box {
  padding: 24px 20px 60px 20px;
}

.reader-book-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border-color);
  line-height: 1.5;
}

.reader-text {
  font-size: 1.05rem;
  line-height: 2.1;
  color: #e2e8f5;
}

.reader-text p {
  margin-bottom: 24px;
  text-align: justify;
}

/* ================= 3. Comic Info & Chapter Select Overlay ================= */
.comic-info-overlay {
  position: fixed;
  inset: 0;
  background: #050811;
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.comic-info-overlay.open { display: flex; }

.comic-info-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 16px 50px 16px;
}

.comic-header-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}
@media (min-width: 600px) {
  .comic-header-view { flex-direction: row; align-items: flex-start; }
}

.comic-cover-box {
  width: 140px;
  height: 190px;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}
.comic-cover-box img { width: 100%; height: 100%; object-fit: cover; }

.comic-header-meta { flex: 1; }
.comic-title { font-size: 1.3rem; color: #fff; margin-bottom: 8px; font-weight: 700; }
.comic-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; white-space: pre-line; }

.chapter-list-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 20px 0 14px 0;
  letter-spacing: 0.5px;
}

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

.chapter-btn {
  background: #0f1629;
  border: 1px solid var(--border-color);
  color: #e2e8f5;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}
.chapter-btn:hover {
  background: var(--accent-gold-gradient);
  border-color: var(--accent-gold);
  color: #000;
}

/* ================= 4. Comic Image Scroll Reader Overlay ================= */
.comic-reader-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.comic-reader-overlay.open { display: flex; }

.comic-reader-top-bar {
  position: sticky;
  top: 0;
  background: rgba(7, 12, 24, 0.95);
  backdrop-filter: blur(5px);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.comic-reader-title {
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.comic-images-flow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.comic-images-flow img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  background: #111;
}

.comic-reader-footer {
  padding: 30px 20px 80px 20px;
  display: flex;
  justify-content: center;
}

.next-chapter-btn {
  background: var(--accent-gold-gradient);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.loading-state-box {
  text-align: center;
  padding: 60px 10px;
  color: var(--text-muted);
}
