/* =========================================
   Movie Zone • Movies/Series Pages Styles
   Based on homepage redesign (unified file)
   ========================================= */

/* Import shared theme */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;900&family=Orbitron:wght@500;700&display=swap");

:root {
  --bg: #0a0a0f;
  --panel: #0f1629;
  --panel-2: #121826;
  --text: #c9d1e9;
  --muted: #8a94b3;
  --brand: #64b2ff;
  --brand-2: #223242;
  --stroke: #263356;
  --hover: #1c2742;
  --focus: #9dd6ff;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Base */
* {
  box-sizing: border-box;
}
input,
textarea,
button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
      180deg,
      rgba(9, 9, 14, 0.85),
      rgba(9, 9, 14, 0.65)
    ),
    var(--panel);
  backdrop-filter: blur(6px);
  color: var(--brand);
  text-align: center;
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(20px, 3vw, 36px);
  padding: clamp(10px, 2.5vw, 18px) 12px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.45);
}
header button {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 18px;
  cursor: pointer;
}

/* Sections */
main {
  max-width: 1240px;
  margin: 24px auto;
  padding: 0 clamp(12px, 3vw, 20px);
}

/* Grid layout (responsive 5-col desktop) */
.grid {
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 820px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Cards */
.card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.9),
    rgba(12, 18, 30, 0.9)
  );
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease, filter 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(77, 166, 255, 0.6);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  filter: saturate(1.05);
}
.card a.card-link {
  display: block;
  height: 100%;
}
.card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.card h3 {
  margin: 0;
  padding: 10px;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 800;
  text-align: center;
  color: #d5e2ff;
  background: linear-gradient(
    180deg,
    rgba(15, 22, 41, 0.95),
    rgba(15, 22, 41, 0.85)
  );
  border-top: 1px solid var(--stroke);
}
.card::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(28px, 4vw, 44px);
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  background: radial-gradient(
    320px 220px at 50% 40%,
    rgba(0, 0, 0, 0.25),
    transparent 60%
  );
}
.card:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.pagination button {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pagination button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination #pageInfo {
  font-weight: 600;
  color: var(--muted);
}

/* Footer */
/* -------- Footer -------- */
footer {
  margin-top: 24px;
  background: linear-gradient(
    180deg,
    rgba(12, 18, 30, 0.9),
    rgba(12, 18, 30, 1)
  );
  border-top: 1px solid var(--stroke);
  padding: clamp(16px, 3vw, 26px);
  text-align: center;
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 14px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.03);
}

/* New Footer Styles */
footer .container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer .footer-column {
  text-align: center;
}

footer .footer-column h3 {
  color: var(--brand);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  margin: 0 0 12px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

footer .footer-links li {
  display: inline-block;
}

footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 6px 10px;
  border-radius: 6px;
}

footer .footer-links a:hover {
  color: var(--brand);
  background: rgba(77, 166, 255, 0.1);
}

footer .copyright {
  margin-top: 16px;
  padding-top: 16px;
  /* border-top: 1px solid var(--stroke); */
  color: var(--muted);
  font-size: clamp(11px, 1.1vw, 13px);
}
/* Social icons in footer */
footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer .social-link:hover {
  color: var(--brand);
  transform: translateY(-2px);
}

footer .social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
}
@media (max-width: 768px) {
  .movie-header {
    font-size: 12px !important; /* smaller for mobile */
  }

  button {
    font-size: 12px !important;
  }
}
/* ===================
   Preloader Styling
   =================== */
#preloader {
  position: fixed;
  top: 25;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0a0f2c, #000000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Spinner container */
.spinner {
  display: flex;
  gap: 12px;
}

/* Animated dots */
.spinner div {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  animation: bounce 0.8s infinite alternate;
}

.spinner div:nth-child(2) {
  animation-delay: 0.2s;
}
.spinner div:nth-child(3) {
  animation-delay: 0.4s;
}

/* Bounce animation */
@keyframes bounce {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }
  to {
    transform: translateY(-18px);
    opacity: 1;
  }
}
 /* Ad box */
   .ad-box {
        background: #121826;
        border: 1px solid #263356;
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 1.2em auto;
        padding: 4px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
        overflow: hidden;
      }
    .top-banner,
      .bottom-banner {
        width: 380px;
        height: 70px;
      }
     
      /* Responsive */
      @media (max-width: 768px) {
        .top-banner,
        .bottom-banner {
          width: 380px;
          height: 70px;
        }
       
      }
      /* ---- Logo Link (Clickable MovieZone) ---- */
     .logo-link {
      color: var(--brand);
      text-decoration: none;
      cursor: pointer;
      display: inline-block;
      transition: color 0.2s ease, transform 0.2s ease;
     }

     .logo-link:hover {
      color: var(--brand-2);
      transform: scale(1.05);
     }
   /* ==============================
  Dark Animated Ad Buttons - PC & Mobile
============================== */



.buttons {
  display: flex;
  flex-wrap: nowrap; /* always one line */
  justify-content: center;
  gap: 15px;
  overflow-x: auto; /* scroll if overflow on mobile */
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.ad-btn {
  position: relative;
  flex: 0 0 auto; /* do not shrink */
  padding: 16px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  min-width: 140px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
}

/* Button 1: Gradient Blue Glow */
.btn1 {
  background: linear-gradient(135deg, #0f1c3c, #000);
}
.btn1:hover {
  background: linear-gradient(135deg, #000, #0f1c3c);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0,0,0,0.9);
}

/* Button 2: Neon Blue Border */
.btn2 {
  background: #000;
  border: 2px solid #1e90ff;
}
.btn2:hover {
  box-shadow: 0 0 20px #1e90ff, 0 0 35px #00ffff;
  transform: scale(1.08);
}

/* Button 3: Ripple Effect */
.btn3 {
  background: #111;
}
.btn3::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0; height: 0;
  background: rgba(30,144,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  pointer-events: none;
}
.btn3:active::after {
  width: 300px;
  height: 300px;
  opacity: 0.5;
  transition: 0s;
}

/* Button 4: Rainbow Glow Animation */
.btn4 {
  background: #000;
  border-radius: 15px;
  border: 2px solid transparent;
}
.btn4::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(45deg, #1e90ff, #ff00ff, #00ffff, #1e90ff);
  border-radius: 18px;
  z-index: -1;
  filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glowAnim 3s linear infinite;
}
.btn4:hover::before {
  opacity: 1;
}

@keyframes glowAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mobile scroll & responsiveness */
.buttons::-webkit-scrollbar {
  display: none; /* hide scroll bar */
}
@media screen and (max-width: 768px) {
  .ad-btn {
    min-width: 120px;
    padding: 14px 25px;
    font-size: 1rem;
  }
}
@media screen and (max-width: 480px) {
  .ad-btn {
    min-width: 100px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}