/* ===================== MOVIE DETAIL PAGE ===================== */

.movie-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px min(6vw, 48px);
}
.movie-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}
.movie-logo img { width: 30px; height: 30px; border-radius: 7px; }
.movie-logo span { color: var(--red); }

.movie-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.movie-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,8,0.96) 0%, rgba(5,5,8,0.8) 32%, rgba(5,5,8,0.35) 66%, rgba(5,5,8,0.08) 100%),
    linear-gradient(to top, rgba(5,5,8,0.95) 0%, rgba(5,5,8,0.55) 28%, transparent 58%),
    linear-gradient(to bottom, rgba(5,5,8,0.55) 0%, transparent 22%);
}

.movie-hero-content {
  position: relative;
  z-index: 1;
  padding: 110px min(6vw, 80px) 64px;
}

.movie-title-row {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 18px;
}
.movie-title-row strong {
  color: #fff;
  font-weight: 800;
  margin-left: 8px;
}

.movie-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.movie-rating-badge {
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.movie-runtime { color: var(--text-dim); font-size: 0.95rem; }
.movie-hd-badge {
  background: rgba(255,255,255,0.12);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}
.movie-dot { color: var(--text-dimmer); }

.movie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn-download, .btn-trailer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-download {
  background: #f5c518;
  color: #111;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.35);
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(245, 197, 24, 0.5); }
.btn-trailer {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-trailer:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.movie-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 56px;
  flex-wrap: wrap;
}
.movie-overview {
  flex: 1 1 480px;
  max-width: 620px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
}
.movie-info-panel {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.movie-info-row { display: flex; gap: 18px; }
.movie-info-label { flex: 0 0 90px; color: var(--text-dim); font-size: 0.9rem; }
.movie-info-value { color: #fff; font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 900px) {
  .movie-hero-content { padding: 100px 24px 48px; }
  .movie-bottom-row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .movie-info-panel { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 520px) {
  .movie-topbar { padding: 18px 20px; }
  .movie-actions { flex-direction: column; align-items: stretch; }
  .btn-download, .btn-trailer { justify-content: center; }
  .movie-title-row strong { display: block; margin-left: 0; margin-top: 4px; }
}
