#voluverse-container {
  padding: 2vw;
}

#voluverse-container section {
  margin-bottom: 40px;
}

#voluverse-container h2 {
  color: white;
  font-size: 1.6rem;
  margin: 0 0 10px;
  padding-left: 5px;
  font-weight: 600;
}

/* ========== SCROLLABLE GRID ========= */
#voluverse-container .row-wrapper {
  position: relative;
  overflow: visible;
}

#voluverse-container .grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  gap: 16px;
  position: relative; /* ✅ enables proper stacking under fade overlays */
  z-index: 1;
}

#voluverse-container .grid::-webkit-scrollbar {
  height: 8px;
}
#voluverse-container .grid::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 4px;
}

/* ========== THUMBNAIL CARDS ========= */
#voluverse-container .card {
  flex: 0 0 auto;
  width: calc(100% / 4.5 - 16px); /* 👀 4.5 items visible */
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
  cursor: pointer;
}

#voluverse-container .card:hover {
  transform: scale(1.05);
  z-index: 2;
}

#voluverse-container .card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Optional title overlay */
#voluverse-container .card p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  margin: 0;
  font-size: 0.9rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
}

/* ========== RESPONSIVE BREAKPOINTS ========= */
@media (max-width: 1024px) {
  #voluverse-container .card {
    width: calc(100% / 2.5 - 16px); /* 👀 2.5 items */
  }
}
@media (max-width: 768px) {
  #voluverse-container .card {
    width: calc(100% / 1.5 - 16px); /* 👀 1.5 items */
  }
}
@media (max-width: 480px) {
  #voluverse-container .card {
    width: 100%; /* 1 item only */
  }
}

/* ========== NETFLIX-STYLE FADE SHADOWS ========= */

/* Right fade */
#voluverse-container .row-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to right, rgba(173,31,95,0), rgba(173,31,95,0.9));
  pointer-events: none;
  z-index: 3;
}

/* Left fade */
#voluverse-container .row-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, rgba(173,31,95,0), rgba(173,31,95,0.9));
  pointer-events: none;
  z-index: 3;
}

/* ========== AVADA-COMPATIBLE MODAL STYLES ========= */

/* Avada-compatible modal content styles */
.voluverse-modal-content {
  text-align: center;
  padding: 20px;
}

.voluverse-modal-content h3 {
  color: #333;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.voluverse-modal-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.voluverse-modal-content .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.voluverse-modal-content .btn {
  padding: 12px 20px;
  background: #e62482;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s;
  display: inline-block;
}

.voluverse-modal-content .btn:hover {
  background: #ff4da1;
  text-decoration: none;
  color: white;
}

.voluverse-modal-content .btn.disabled {
  background: #666;
  color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.voluverse-modal-content .btn.disabled:hover {
  background: #666;
  color: #ccc;
}

.voluverse-modal-content .btn.patreon {
  background: #ff6b35;
  margin-top: 5px;
}

.voluverse-modal-content .btn.patreon:hover {
  background: #ff8c5a;
}

/* Ensure cards are clickable */
body #voluverse-container .card {
  cursor: pointer !important;
  user-select: none;
}

body #voluverse-container .card:hover {
  transform: scale(1.05) !important;
  z-index: 2 !important;
}

/* Add more specific selectors to override Avada styles */
body #voluverse-container {
  padding: 2vw;
  font-family: inherit;
  line-height: normal;
  letter-spacing: 0.07em; /* Add letter spacing to fix narrow text */
}

body #voluverse-container section {
  margin-bottom: 40px;
}

body #voluverse-container h2 {
  color: white !important;
  font-size: 1.6rem !important;
  margin: 0 0 10px !important;
  padding-left: 5px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

body #voluverse-modal {
  position: fixed !important;
  top: 0 !important; 
  left: 0 !important;
  width: 100vw !important; 
  height: 100vh !important;
  display: none !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
  font-family: inherit !important;
}

body .modal-backdrop {
  position: absolute !important;
  width: 100% !important; 
  height: 100% !important;
  background: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(4px) !important;
}

body .modal-box {
  position: relative !important;
  background: #1e1e1e !important;
  padding: 30px 25px !important;
  border-radius: 12px !important;
  color: white !important;
  text-align: center !important;
  max-width: 300px !important;
  z-index: 10000 !important;
  box-shadow: 0 0 20px rgba(0,0,0,0.8) !important;
  font-family: sans-serif !important;
  line-height: 1.4 !important;
}

body .modal-box h3 {
  font-size: 1.4rem !important;
  margin-bottom: 12px !important;
  font-weight: 600 !important;
}

body .modal-box p {
  margin: 0 0 15px 0 !important;
  color: #ccc !important;
}

body .modal-actions {
  margin-top: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

body .modal-actions .btn {
  padding: 10px !important;
  background: #e62482 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  transition: background 0.2s !important;
  cursor: pointer !important;
  font-size: 0.9rem !important;
}

body .modal-actions .btn:hover {
  background: #ff4da1 !important;
  text-decoration: none !important;
}

body .modal-actions .btn.cancel {
  background: #444 !important;
}