/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E50914;
    --dark-bg: #040715;
    --darker-bg: #0a0a0a;
    --light-text: #ffffff;
    --gray-text: #b3b3b3;
    --hover-bg: #2a2a2a;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 69px;                   /* Desktop / Tablet */
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(20, 20, 20, 0.8); /* #141414 mit 80% Deckkraft */
  color: white;
  padding: 15px 25px;
  font-family: 'Arial', sans-serif;
  display: flex;
  justify-content: space-between; /* Text links, Buttons rechts */
  align-items: center;
  z-index: 1000;
  width: 100%;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner .text-container {
  flex: 1; /* Nimmt den gesamten verfügbaren Platz */
  text-align: left; /* Text linksbündig */
}

.cookie-banner .button-container {
  display: flex;
  flex-direction: column; /* Buttons untereinander */
  gap: 10px; /* Abstand zwischen den Buttons */
}

.cookie-banner button {
  background-color: #00d4ff;
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.cookie-banner button:hover {
  background-color: #009cc2;
}

/* Text und Links im Banner */
.cookie-banner p {
  font-size: 14px;
  line-height: 1.6;
  margin: 10px 0;
}

.cookie-banner a {
  color: #00d4ff;
  text-decoration: none;
}

/* Buttons im Banner */
.cookie-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.cookie-btn {
  background-color: #00d4ff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 15px;
  transition: background-color 0.3s ease;
}

.cookie-btn:hover {
  background-color: #009bb5;
}

/* Zeige Banner an */
.cookie-banner.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
/* ────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: clamp(60vh, 80vh, 100vh);
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 4% 60px 4%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, var(--dark-bg) 0%, rgba(20,20,20,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 90%;
}

.hero-title {
    font-size: clamp(2rem, 7.5vw, 3.8rem);
    font-weight: bold;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: clamp(1rem, 2.4vw, 1.18rem);     /* etwas größer als 1.05, aber kontrolliert */
    line-height: 1.6;
    margin-bottom: 28px;
    color: #fff;                             /* etwas heller als --gray-text für besseren Kontrast */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    max-width: 620px;                           /* ← das ist der Game-Changer: Text bleibt linksbündig & kurz */
    display: -webkit-box;
    -webkit-line-clamp: 4;                      /* 4 statt 5 Zeilen → knackiger */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Basis für .hero-buttons – gilt überall (PC/Tablet: nebeneinander) */
.hero-buttons {
    display: flex;
    flex-direction: row;           /* ← Standard: nebeneinander */
    gap: 16px;                     /* Abstand zwischen Buttons */
    align-items: center;           /* vertikal ausrichten */
    margin-top: 20px;              /* etwas Luft nach oben */
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    min-width: 220px;
    justify-content: center;
}

.btn-primary {
    background-color: #e50914;  /* Netflix-Rot ähnlich */
    color: #fff;
}

.btn-primary span {
    color: #fff;
}

.btn-secondary {
    background-color: #555; 
    color: #fff;
}

.btn-secondary span {
    color: #fff;
}

.btn, .btn span {
    text-decoration: none;
}

/* Sterne Rating */
/* Wrapper – falls du beides zusammen stylen willst */
.hero-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;           /* Abstand zwischen Sternen und Text */
    margin-bottom: 12px;
    flex-wrap: wrap;      /* bei sehr kleinem Bildschirm umbrechen */
}

/* Sterne selbst */
.hero-rating {
    display: flex;
    gap: 4px;
    font-size: 1.7rem;
    line-height: 1;
}

/* Graue (leere) Sterne */
.hero-rating span {
    color: #555;
}

/* Gefüllte Sterne je nach data-rating */
.hero-rating[data-rating] span:nth-child(-n+5) {
    color: #e50914;           /* Netflix-Rot oder was du willst */
}

/* Halbe Sterne (optional – Beispiel für 4.7) */
.hero-rating[data-rating="4.7"] span:nth-child(5) {
    background: linear-gradient(to right, #e50914 70%, #555 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Aufrufe-Text */
.view-count {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 500;
}

/* Alternativ: etwas dezenter wie viele Plattformen */
.view-count::before {
    content: "•";           /* kleiner Punkt als Trenner */
    margin: 0 8px;
    color: #666;
}

@media (min-width: 1400px) {
    .hero-description {
        font-size: clamp(1.05rem, 1.8vw, 1.22rem);
        max-width: 580px;                       /* noch schmaler auf UltraWide/4K */
        -webkit-line-clamp: 4;
    }
}

@media (min-width: 1800px) {
    .hero-description {
        max-width: 540px;
    }
}

/* ────────────────────────────────────────────────
   MOBILE – mehr Abstand oben für Hero
───────────────────────────────────────────────── */
@media (max-width: 680px) {
    body {
        padding-top: 90px;                     /* ← Hauptänderung: mehr Platz für Header */
    }

    .hero {
        padding-top: 60px;                      /* ← zusätzlicher Innenabstand oben im Hero */
        padding-bottom: 80px;
        height: clamp(45vh, 55vh, 65vh);
        min-height: 360px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8.5vw, 2.8rem);
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 0.98rem;
        -webkit-line-clamp: 4;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.98rem;
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 100px;                     /* noch etwas mehr bei sehr kleinen Screens */
    }
}


/* ────────────────────────────────────────────────
   CAROUSEL / ROWS
───────────────────────────────────────────────── */
.row-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0 4% 16px;
    padding-right: 0;
}

.row-header h2 {
    margin: 0;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    font-weight: 700;
}

.progress-container {
    height: 4px;
    width: 180px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    margin-top: 6px;
    flex-shrink: 0;
}

.segment {
    width: 24px;
    height: 100%;
    background: #444;
    border-radius: 1px;
    transition: background 0.35s ease;
}

.segment.active {
    background: #e50914;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 4% 50px;
}

.carousel {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.card {
    flex: 0 0 calc(100% / 6 - 8px);
    aspect-ratio: 16 / 9;
    margin-right: 8.5px;
    background: #222;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.1s ease, border 0.1s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Hover-Effekte für die gesamte Karte */
.card:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3); /* Sanfter Schlagschatten */
    border: 2px solid white; /* Weißer Rand */
}

/* Hover-Effekt für das Bild innerhalb der Karte */
.card img {
    width: 100%; /* Volle Breite */
    height: 100%; /* Volle Höhe */
    object-fit: cover; /* Bild wird nicht verzerrt */
    transition: transform 0.3s ease; /* Animierte Transformation */
}

/* Bild vergrößern bei Hover */
.card:hover img {
    transform: scale(1.5); /* Bild wird leicht vergrößert */
}

.card:last-child {
    margin-right: 0;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    color: white;
    font-size: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.3s;
}

.carousel-wrapper:hover .arrow {
    opacity: 0.92;
    pointer-events: auto;
}

.arrow:hover {
    background: rgba(0,0,0,0.75);
    opacity: 1;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }

/* CAROUSEL RESPONSIVE */
@media (max-width: 1100px) {
    .card { flex: 0 0 calc(100% / 5 - 8px); }
    .progress-container { width: 120px; }
    .segment { width: 20px; }
}

@media (max-width: 900px) {
    .card { flex: 0 0 calc(100% / 4 - 7px); }
    .carousel-wrapper { margin: 0 5% 40px; }
    .arrow { width: 8%; font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .card { flex: 0 0 calc(100% / 3 - 6px); }
    .progress-container { width: 110px; }
    .segment { width: 18px; }
}

@media (max-width: 520px) {
    .card { flex: 0 0 calc(50% - 8px); }
    .carousel-wrapper { margin: 0 5% 30px; }
    .progress-container { width: 100px; }
    .segment { width: 14px; }
}

@media (max-width: 380px) {
    .card { flex: 0 0 calc(100% - 10px); }
    .progress-container { width: 80px; }
    .segment { width: 12px; }
}

/* ────────────────────────────────────────────────
   MOVIE DETAIL PAGE
───────────────────────────────────────────────── */
.movie-detail-container {
    padding-top: 0px;
    min-height: 100vh;
    background: transparent;
}

.movie-hero {
    position: relative;
    height: clamp(50vh, 70vh, 80vh);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 0 4%;
    overflow: hidden;
}

.movie-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.4) 70%, rgba(0,0,0,0.2) 100%);
}

.movie-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--dark-bg) 0%, rgba(20,20,20,0) 100%);
}

.movie-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.movie-detail-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9);
    letter-spacing: -1px;
    color: #ffffff;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4d4d4;
    font-size: 0.95rem;
}

.meta-badge {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.8) 0%, rgba(229, 9, 20, 0.6) 100%);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
    transition: all 0.3s ease;
}

.meta-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.5);
}

.movie-detail-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #c4c4c4;
    margin-bottom: 30px;
    max-width: 750px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Video Player Section */
.video-section {
    padding: 50px 4%;
    background: linear-gradient(180deg, var(--dark-bg) 0%, #0f0f1a #141414 100%);
    position: relative;
    margin-bottom: 0;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.5), transparent);
}

.video-container {
    max-width: 1300px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 40px rgba(229, 9, 20, 0.1);
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.video-wrapper:hover {
    box-shadow: 0 25px 70px rgba(0,0,0,0.9), 0 0 50px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-title::before {
    content: '▶';
    font-size: 1.2rem;
    color: var(--primary-red);
}

/* Movie Info Section */
.info-section {
    padding: 70px 4%;
    max-width: 1300px;
    margin: 0 auto;
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 70px;
}

.info-block {
    margin-bottom: 50px;
}

.info-block h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--light-text);
    border-bottom: 3px solid var(--primary-red);
    padding-bottom: 12px;
    display: inline-block;
    position: relative;
}

.info-block h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
}

.info-block p {
    color: #c4c4c4;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.cast-member {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.cast-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cast-member:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-color: rgba(229, 9, 20, 0.3);
}

.cast-member:hover::before {
    transform: scaleX(1);
}

.cast-name {
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.cast-role {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 500;
}

.movie-details-sidebar {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 100px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row:hover {
    background: rgba(255,255,255,0.02);
    padding-left: 10px;
    padding-right: 10px;
}

.detail-label {
    color: #a0a0a0;
    font-weight: 500;
}

.detail-value {
    color: var(--light-text);
    font-weight: 700;
    text-align: right;
}

.rating-box {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c41e3a 100%);
    color: var(--light-text);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
    position: relative;
    overflow: hidden;
}

.rating-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.rating-number {
    font-size: 3.5rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.rating-text {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ────────────────────────────────────────────────
   FOOTER – Disney+-Style (einfach, dunkel, zentriert)
───────────────────────────────────────────────── */
footer {
    background-color: var(--dark-bg);           /* #141414 oder dein dunkler BG */
    padding: 40px 4% 30px;                      /* oben mehr Luft, unten weniger */
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* dezente Trennlinie */
    text-align: center;
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 32px;                             /* horizontaler Abstand größer, vertikal wrappt */
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--gray-text);                    /* #b3b3b3 */
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;                        /* Links brechen nicht in der Mitte */
}

.footer-links a:hover {
    color: var(--light-text);                   /* #ffffff beim Hover */
    text-decoration: underline;
}

.footer-bottom {
    color: var(--gray-text);
    font-size: 0.8rem;
    margin-top: 8px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsiv: Bei sehr kleinen Screens kleinerer Gap & Font */
@media (max-width: 680px) {
    .footer-links {
        gap: 16px 24px;
        font-size: 0.82rem;
    }
    
    footer {
        padding: 30px 5% 20px;
    }
}

@media (max-width: 680px) {
    body {
        padding-top: 130px;          /* ← aggressiver Wert – teste mit 220–280 */
    }
    
.hero {
        padding-top: 60px;           /* ← extra Luft oben im Hero selbst */
        min-height: 80vh;            /* etwas kleiner, damit mehr Content sichtbar */
        /* oder sogar */
        /* margin-top: -40px; */     /* zieht Hero etwas hoch – riskant */
    }
}
/* ────────────────────────────────────────────────
   RESPONSIVE – MOVIE DETAIL & ALLGEMEIN
───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .movie-hero {
        height: 55vh;
    }
    .info-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .movie-details-sidebar {
        position: static;
    }
    .cast-list {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .movie-detail-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }
}

@media (max-width: 480px) {
    .movie-meta {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .video-section {
        padding: 30px 5%;
    }
    .info-section {
        padding: 50px 5%;
    }
    .rating-number {
        font-size: 2.8rem;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Touch-Geräte: Hover entschärfen */
@media (hover: none) {
    .card:hover,
    .cast-member:hover,
    .meta-badge:hover {
        transform: none;
        box-shadow: none;
    }
    .arrow {
        opacity: 0.85 !important;
        pointer-events: auto !important;
    }
}