/* =========================================
   Movie Zone • Details Pages (Full Redesign)
   Applies to: movie.html, series.html, season.html
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;900&family=Orbitron:wght@500;700&display=swap");

:root {
  --bg: #0a0a0f;
  --panel: #121826;
  --panel-2: #0f1629;
  --text: #c9d1e9;
  --muted: #a3afcc;
  --brand: #4da6ff;
  --brand-2: #7ac5ff;
  --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: radial-gradient(
      1200px 800px at 10% -10%,
      rgba(77, 166, 255, 0.08),
      transparent 55%
    ),
    radial-gradient(
      800px 600px at 100% 0%,
      rgba(122, 197, 255, 0.06),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.65;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---- Header ---- */
header {
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.9),
    rgba(18, 24, 38, 0.75)
  );
  padding: clamp(8px, 2vw, 14px) 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 900;
  font-family: "Orbitron", sans-serif;
  color: var(--brand);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.02), 0 10px 30px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header button {
  background: var(--hover);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 700;
  font-size: clamp(12px, 1.6vw, 16px);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
header button:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

/* ---- Main Container ---- */
main {
  max-width: 1100px;
  margin: clamp(16px, 3.2vw, 28px) auto 60px;
  padding: 0 clamp(14px, 3vw, 24px);
}
/* Logo / Title */
.logo {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex: 1;
  text-align: center;
}

/* ---- Details Card ---- */
.details {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 28px);
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.95),
    rgba(14, 20, 34, 0.95)
  );
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: clamp(16px, 3vw, 26px);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .details {
    grid-template-columns: 280px 1fr;
    align-items: start;
  }
}

/* Poster */
.poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--stroke);
}

/* Info */
.info h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 34px);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.info p.synopsis {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 16px);
}
.language {
  margin: 4px 0 12px;
  color: var(--brand);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
}

/* Genres (above downloads) */
.genres {
  margin: 10px 0 14px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  color: var(--brand);
}

.genrehead {
  font-weight: bold;
}

.genre-list {
  margin-left: 4px;
  font-weight: bold;
}
.genre-badge {
  padding: 6px 10px;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 700;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(28, 39, 66, 0.85),
    rgba(38, 51, 86, 0.85)
  );
  color: var(--text);
}

/* Divider */
.divider {
  border-top: 1px solid var(--stroke);
  opacity: 0.6;
  width: 100%;
  display: block;
  margin: 12px 0 18px;
}

/* ---- Download / Action Buttons ---- */
.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.download-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, var(--hover), #2a3a63);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(12px, 1.2vw, 14px);
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.2s ease, box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: var(--shadow);
}
.download-links a:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  filter: saturate(1.05);
}

/* ---- Trailer ---- */
.trailer {
  margin-top: clamp(18px, 3vw, 28px);
  text-align: center;
}
.trailer h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--brand);
  font-size: clamp(16px, 2.2vw, 22px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.trailer iframe {
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

/* ---- Categories (chips) ---- */
section.categories {
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.95),
    rgba(14, 20, 34, 0.95)
  );
  margin-top: clamp(18px, 3vw, 30px);
  padding: clamp(14px, 3vw, 22px);
  border-radius: 16px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
section.categories h2 {
  margin: 0 0 10px;
  font-family: "Orbitron", sans-serif;
  color: var(--brand);
  font-size: clamp(14px, 1.8vw, 20px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
section.categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
section.categories ul li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    135deg,
    rgba(28, 39, 66, 0.85),
    rgba(38, 51, 86, 0.85)
  );
  color: var(--text);
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 13px);
}

/* ---- Episodes list (season.html) ---- */
.episode-block {
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.episode-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}
@media (min-width: 620px) {
  .episode-buttons {
    grid-template-columns: 1fr auto;
  }
}
.subtitle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, var(--hover), #2a3a63);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(12px, 1.2vw, 14px);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, border-color 0.2s ease, filter 0.2s ease;
  width: 100%;
  text-align: center;
}
.subtitle-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  filter: saturate(1.05);
}

.download-links .subtitle-btn {
  margin-left: auto;
}

/* ---- Season buttons (series.html) ---- */
.season-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, var(--hover), #2a3a63);
  color: var(--text);
  font-weight: 800;
  font-size: clamp(12px, 1.2vw, 14px);
  text-decoration: none;
  margin: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.14s ease, border-color 0.2s ease, filter 0.2s ease;
}
.season-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  filter: saturate(1.05);
}
.season-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1220;
  border-color: transparent;
}

/* -------- 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;
}

/* ---- Motion Preferences ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !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;
  }
}
/* 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;
}
 /* 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;
  }
}