/* ══════════════════════════════════════════
   SECTION 7 — MOVIES & SERIEN SLIDER
   Brand: Kodi IPTV 4K | kodiiptv4k.de
   ══════════════════════════════════════════ */

.movies {
  background: #07090F;
  padding: 52px 0;
  overflow: hidden;
}

/* ── HEADING ── */
.movies-header {
  text-align: center;
  padding: 0 24px;
  margin-bottom: 24px;
}

.movies-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: 32px;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #00D4FF;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.movies-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  color: #F0F4FF;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.08;
  margin-bottom: 16px;
}

.movies-h2-cyan { color: #00D4FF; }
.movies-h2-gold { color: #F5C518; }

.movies-header p,
.movies-sub {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #B8CAD8;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.75;
  text-align: center;
  background: #111827;
  border: 1px solid rgba(245,197,24,0.22);
  border-top: 2px solid #F5C518;
  border-radius: 8px;
  padding: 20px 28px;
  box-shadow: 0 0 24px rgba(245,197,24,0.07), 0 4px 20px rgba(0,0,0,0.4);
}

.movies-sub strong { color: #F0F4FF; font-weight: 600; }

.movies-header p strong {
  color: #F0F4FF;
  font-weight: 600;
}

/* ── SLIDER OUTER ── */
.movies-slider-outer {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  padding: 16px 0 32px;
}

/* ── TRACK ── */
.movies-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: moviesScroll 55s linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .movies-slider-outer:hover .movies-track {
    animation-play-state: paused;
  }
}

@keyframes moviesScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MOVIE CARD ── */
.movie-card {
  flex-shrink: 0;
  position: relative;
  width: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #1C2A3A;
  background: #111827;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:focus {
  outline: none;
  z-index: 2;
}
@media (hover: hover) {
  .movie-card:hover {
    transform: scale(1.05);
    border-color: rgba(0,212,255,0.5);
    box-shadow:
      0 0 0 1px rgba(0,212,255,0.15),
      0 8px 32px rgba(0,212,255,0.2),
      0 20px 60px rgba(0,0,0,0.6);
    z-index: 2;
  }
}

/* keyboard focus ring for Android TV */
.movie-card:focus-visible {
  border-color: #F5C518;
  box-shadow:
    0 0 0 2px #F5C518,
    0 8px 32px rgba(245,197,24,0.25);
}

.movie-card img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center top;
}

/* ── BADGES ── */
.mc-badge-4k {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(0,212,255,0.4);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #00D4FF;
  padding: 2px 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  z-index: 3;
}

.mc-badge-neu {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #E53E3E;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 3;
}

/* ── PLAY OVERLAY ── */
.mc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 4;
}

@media (hover: hover) {
  .movie-card:hover .mc-play { opacity: 1; }
}

.mc-play svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.8));
}

/* ── CTA STRIP ── */
.movies-cta-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px 32px;
  text-align: center;
}

.movies-cta-strip p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #D8E4EE;
  background: rgba(245,197,24,0.05);
  border: 1px solid rgba(245,197,24,0.22);
  border-top: 3px solid #F5C518;
  border-radius: 12px;
  padding: 14px 28px;
  max-width: 520px;
  line-height: 1.5;
}
.movies-cta-strip p .gold-num {
  color: #F5C518;
  font-weight: 700;
}

.movies-cta-btn {
  display: block;
  width: 100%;
  max-width: 460px;
}

/* ── MOBILE TOUCH ── */
.movies-track {
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
}

/* ── MOBILE ── */
@media (max-width: 390px) {
  .movies { padding: 44px 0; }
  .movies-header { padding: 0 16px; margin-bottom: 32px; }
  .movies-badge { font-size: 12px; padding: 7px 16px; margin-bottom: 16px; }
  .movies-header h2 { font-size: clamp(26px, 8vw, 36px); margin-bottom: 10px; }
  .movies-header p { font-size: 14px; }
  .movie-card { width: 155px; }
  .movie-card img { height: 233px; }
  .movies-track { gap: 10px; }
  .movies-cta-strip { padding: 16px 16px 24px; gap: 14px; }
  .movies-cta-strip p { font-size: 14px; padding: 12px 18px; max-width: 100%; }
  .movies-cta-btn { max-width: 100%; }
}

@media (min-width: 391px) and (max-width: 600px) {
  .movies { padding: 52px 0; }
  .movies-header h2 { font-size: clamp(28px, 7vw, 40px); }
  .movie-card { width: 168px; }
  .movie-card img { height: 252px; }
  .movies-track { gap: 12px; }
  .movies-cta-strip { padding: 20px 20px 28px; }
}

/* Slow down animation on mobile for better visual experience */
@media (max-width: 600px) {
  .movies-slider-outer {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
  }
  @keyframes moviesScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .movies-track { animation-duration: 120s; }
  .mc-badge-4k { font-size: 8px; padding: 2px 5px; }
  .mc-badge-neu { font-size: 8px; padding: 2px 5px; }
}

@media (max-width: 389px) {
  .movies-track { animation-duration: 150s; }
}
