/* =====================
   БАЗА
===================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #000;
  color: #ccc;
  font-family: Georgia, "Times New Roman", serif;
}


/* =====================
   ВЕРХНЕЕ МЕНЮ
===================== */

.comics-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px 0;
}

.comics-menu a,
.comics-menu a:visited {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.comics-menu a:hover {
  text-decoration: underline;
}


/* =====================
   РИДЕР КОМИКСА
===================== */

.comic-reader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  margin-top: 40px;
}

.comic-reader img {
  display: block;
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
}


/* =====================
   НАВИГАЦИЯ СТРАНИЦ
===================== */

.comic-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0;
}

.comic-nav button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #eee;
}

#page-numbers {
  display: flex;
  gap: 6px;
  align-items: center;
}

#page-numbers button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 16px;
  cursor: pointer;
}

#page-numbers button.active {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  cursor: default;
}


/* =====================
   ПРЕВЬЮ КОМИКСОВ / ЧАСТЕЙ
===================== */

.comics-preview {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 80px auto;
  flex-wrap: wrap;
}

a.comic-card {
  width: 260px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

a.comic-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.6);
}

a.comic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

a.comic-card img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}


/* =====================
   iPad + ПК
===================== */

@media (min-width: 769px) {

  .comics-menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    gap: 32px;
    padding: 0;
  }

  .comics-menu a {
    opacity: 0.85;
  }

  .comics-menu a:hover {
    opacity: 1;
  }

  .comic-nav {
    gap: 14px;
    margin: 24px 0;
  }
  