/* ==============================
   BASE STYLES
============================== */
body {
  background-image: url("rosebg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #eee;
  font-family: "Georgia", serif;
  margin: 0;
  min-height: 100vh;
  cursor: url('cursor.png') 4 4, auto;
}

a, button, img {
  cursor: url('cursor.png'), pointer !important;
}

h1, h2, h4 {
  text-align: center;
  color: #FFDB94;
  text-shadow: 0 0 8px rgba(255, 219, 148, 0.5);
}

p {
  text-align: center;
  color: #ffffff;
}

/* ==============================
   CONTAINER & LAYOUT
============================== */
#container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100vh;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

#left-box, #right-box, #middle-box {
  background-color: #300A2D;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 12px;
  box-shadow: 0 0 4px #D9C768;
  text-align: center;
}

#left-box, #right-box {
  width: 15%;
  height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#middle-box {
  width: 50%;
  overflow-y: auto;
}

#left-box { margin-right: -10px; }
#right-box { margin-left: -10px; }

/* ==============================
   LISTS & LINKS
============================== */
#left-box ul, #right-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#left-box li, #right-box li {
  margin: 10px 0;
  cursor: pointer;
  transition: color 0s;
}

#left-box li:hover, #right-box li:hover {
  color: #FFDB94;
}

a {
  color: #FFDB94;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================
   GALLERY
============================== */
#manga-gallery, #fanarts-gallery {
  display: flex;
  gap: 15px;
  padding: 15px 10px;
  border: 1px solid rgba(255, 219, 148, 0.3);
  border-radius: 10px;
  background: rgba(30, 20, 10, 0.3);
  box-shadow: 0 0 20px rgba(255, 219, 148, 0.1);
}

#manga-gallery {
  overflow-x: auto;
  scroll-behavior: smooth;
}

#fanarts-gallery {
  flex-wrap: wrap;
  justify-content: center;
}

/* Scrollbar styling */
#manga-gallery::-webkit-scrollbar {
  height: 8px;
}
#manga-gallery::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}
#manga-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 219, 148, 0.5);
  border-radius: 10px;
}
#manga-gallery::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 219, 148, 0.8);
}

/* Gallery & Fanart Images */
#manga-gallery img, #fanarts-gallery img {
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0s ease, box-shadow 0s ease;
  box-shadow: 0 0 10px rgba(255, 219, 148, 0.2);
}

#manga-gallery img:hover, #fanarts-gallery img:hover {
  transform: scale(1.07);
  box-shadow: 0 0 20px rgba(255, 219, 148, 0.4);
}

#manga-gallery img {
  height: 160px;
  width: auto;
}

#fanarts-gallery img {
  max-width: 130px;
  height: auto;
  object-fit: contain;
}

/* ==============================
   LIGHTBOX
============================== */
#lightbox, #fanart-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0s ease;
}

#lightbox img, #fanart-lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 219, 148, 0.4);
}

#close, #fanart-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #FFDB94;
  cursor: pointer;
  transition: transform 0s ease, color 0.2s ease;
}

#close:hover, #fanart-close:hover {
  transform: scale(1.2);
  color: #fff4e0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==============================
   EPISODES / AUDIO PLAYER
============================== */
.episode {
  background-color: #300A2D;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 15px;
  box-shadow: 0 0 5px #D9C768;
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #FFDB94;
  font-weight: bold;
  font-size: 1.1em;
}

.episode-header:hover {
  color: #fff;
}

.arrow {
  font-size: 1.2em;
  transition: transform 0s;
}

.episode-tracks {
  display: none;
  margin-top: 10px;
}

audio {
  width: 100%;
  outline: none;
  margin-bottom: 10px;
  border-radius: 8px;
}

/* ==============================
   MISC
============================== */
h1 { margin: 0; }