/* ==============================
   GALLERY STYLES
============================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.gallery-item {
  display: block;
  border: 4px solid red;
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  background: #111;
}
.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 0 16px 2px rgba(255, 0, 0, 0.25);
}
.gallery-item img {
  width: auto;
  height: 220px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: #000;
}
/* ==============================
   DOWNLOAD BUTTON
============================== */
.download-btn {
  display: block;
  margin: 32px auto 0 auto;
  padding: 12px 32px;
  background: #000;
  color: red;
  border: 2px solid red;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.download-btn:hover {
  background: #111;
  color: #fff;
}
.dropdown-menu,
.nav-menu {
  position: absolute;
  top: 60px;
  left: -200px;
  right: auto;
  margin: 0;
  width: 320px;
  max-width: 100vw;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  border-radius: 18px;
  padding: 18px 10px;
  font-size: 15px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 0, 0, 0.5);
  gap: 18px;
  overflow: visible;
  z-index: 1100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}
.dropdown-menu a,
.nav-menu a {
  font-size: 1.15rem;
  font-weight: bold;
  padding: 16px 18px;
  border-radius: 8px;
  color: red;
  background: transparent;
  text-align: left;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
  margin: 0 4px;
  min-width: 120px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.dropdown-menu a:active,
.dropdown-menu a:focus,
.dropdown-menu a:hover,
.nav-menu a:active,
.nav-menu a:focus,
.nav-menu a:hover {
  background: rgba(255, 0, 0, 0.08);
  color: #ff0000;
}
/* ==============================
   GLOBAL RESET
============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 🚫 prevents horizontal scroll */
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #000 !important;
  color: red;
  @media (max-width: 600px) {
    body,
    html {
      background: #000 !important;
    }
  }
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
a,
span,
button {
  color: red;
}

a {
  text-decoration: none;
}

/* ==============================
   HEADER
============================== */

header {
  padding: 36px 48px;
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 20;
}

.site-title-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.site-title img {
  max-height: 300px; /* medium size */
  max-width: 200%;
  margin-top: 24px;
}

/* ==============================
   NAV TOGGLE (MENU DIVIDER)
============================== */

.nav-toggle {
  background: #000;
  border: 1px solid red;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  transition: transform 0.15s ease;
}

.nav-toggle:active {
  transform: scale(0.92);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-toggle__bars span {
  width: 18px;
  height: 2px;
  background: red;
  border-radius: 999px;
}

.nav-toggle__label {
  font-size: 0.75rem;
  font-weight: bold;
}

/* ==============================
   DROPDOWN MENU
============================== */

.nav-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.97);
  border: 1px solid red;
  border-radius: 14px;
  padding: 14px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

.nav-menu.open {
  max-height: 400px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-menu a {
  padding: 10px 24px;
  color: red;
  text-align: right;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.nav-menu a:hover {
  background: rgba(255, 0, 0, 0.08);
}

/* ==============================
   MAIN SPACING
============================== */

main {
  padding-top: 40px;
}

/* ==============================
   FILMS SECTION
============================== */

#films {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 16px;
  text-align: center;
}

/* ==============================
   SLIDER LAYOUT
============================== */

.film-slider {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;

  position: relative;
}

/* ==============================
   SLIDES
============================== */

.film-slide {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.film-slide.film-slide--active {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}

/* ==============================
   POSTER
============================== */

.film__poster {
  width: 280px;
}

.film__poster-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.film__poster-wrap img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid red;
}

.film__caption {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ==============================
   VIDEO / TRAILER
============================== */

.film__video {
  flex: 1;
  max-width: 720px;
  min-width: 0;
}

.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 0, 0, 0.5);
  background: #000;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  display: block;
  pointer-events: auto;
  z-index: 1;
}

/* ==============================
   SLIDER ARROWS
============================== */

.film-slider__btn {
  background: #000;
  color: red;
  border: 1px solid red;
  border-radius: 50%;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  cursor: pointer;

  transition: transform 0.15s ease;
}

.film-slider__btn:active {
  transform: scale(0.9);
}

/* ==============================
   POSTER BADGE (WATCH NOW)
============================== */

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;

  background: #000;
  border: 1px solid red;
  border-radius: 999px;

  padding: 6px 12px;

  font-size: 11px;
  font-weight: bold;
  color: red;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.15s ease;
}

.poster-badge:active {
  transform: scale(0.9);
}

/* ==============================
   FOOTER
============================== */

.ms-footer {
  margin-top: 60px;
  padding: 26px 16px;
  border-top: 1px solid rgba(255, 0, 0, 0.4);
  text-align: center;
}

/* IG badge (thin rounded like index) */
.ms-footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* less wide */

  border: 1px solid red; /* ✅ thin */
  border-radius: 999px;
  padding: 18px 18px; /* taller, less wide */

  background: #000;
  font-weight: bold;

  transition: transform 0.15s ease;
}

.ms-footer-ig svg {
  stroke: red;
  width: 36px;
  height: 36px;
}

.ms-footer-ig:active {
  transform: scale(0.92);
}

.copyright-red {
  margin-top: 10px;
  font-size: 12px;
}

/* ==============================
   FADE-IN
============================== */

.js-fade {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================
   MOBILE FIXES
============================== */

@media (max-width: 768px) {
  header {
    padding: 18px 16px 6px;
  }

  .nav-wrapper {
    width: 100%;
    justify-content: flex-end;
  }

  .nav-menu {
    left: 0;
    right: auto;
    min-width: 140px;
    border-radius: 12px;
    padding: 10px 0;
  }

  .nav-menu a {
    font-size: 0.95rem;
    padding: 9px 16px;
  }

  .site-title img {
    max-height: 170px;
    max-width: 90vw;
    margin-top: 12px;
    margin-left: 0;
    display: block;
    margin-right: auto;
  }

  .film-slide {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .film-slider {
    gap: 12px;
  }

  .film-slider__btn {
    width: 28px;
    height: 28px;
    font-size: 16px;
    background: #000 !important;
  }

  .film__poster {
    width: 100%;
    max-width: 220px;
  }

  .film__video {
    width: 100%;
    max-width: 220px;
  }

  .video-responsive {
    padding-bottom: 56.25%;
    max-width: 100vw;
    border-radius: 12px;
  }
}
