/* DearFlip 3D WebGL FlipBook Styles for akula */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  background-color: #0b0f19 !important;
}

.comic-reader-viewport {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #171d2b 0%, #080b12 100%);
  overflow: hidden;
}

.top-nav-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 999999;
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-back-home {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-back-home:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

#dflip-container {
  width: 100vw !important;
  height: 100vh !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
}

/* Стилизация и фиксация нижней панели управления DearFlip */
.df-ui.df-ui-controls {
  position: fixed !important;
  bottom: 14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 999999 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 36px !important;
  padding: 4px 10px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: auto !important;
  max-width: 96vw !important;
  height: auto !important;
}

.df-ui .df-ui-btn {
  color: #f1f5f9 !important;
  font-size: 18px !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  opacity: 1 !important;
  background: transparent !important;
}

.df-ui .df-ui-btn:hover {
  color: #38bdf8 !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

.df-ui .df-ui-btn.df-active {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.25) !important;
}

.df-ui-btn.df-custom-nav-btn {
  font-size: 20px !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
}

.df-ui-btn.df-custom-nav-btn:hover {
  background: rgba(56, 189, 248, 0.3) !important;
  color: #fff !important;
}

.df-ui .df-ui-page {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #94a3b8 !important;
  min-width: 48px !important;
  text-align: center !important;
  border-radius: 20px !important;
}

.df-ui .df-ui-page input {
  color: #fff !important;
}

.df-ui .df-ui-page label {
  color: #94a3b8 !important;
}

/* Боковые стрелки листания по краям экрана */
.df-ui-nav {
  z-index: 999990 !important;
  opacity: 0.9 !important;
  transition: all 0.2s ease !important;
}

.df-ui-nav:hover {
  opacity: 1 !important;
}

.df-ui-nav .df-ui-btn {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Боковая панель миниатюр (Thumbnails Sidebar) */
.df-ui-sidebar {
  z-index: 999995 !important;
  background: rgba(11, 15, 25, 0.96) !important;
  backdrop-filter: blur(15px) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
}
