  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #141414;
            font-family: 'Helvetica Neue', Arial, sans-serif;
            color: #fff;
            overflow-x: hidden;
        }

        /* LOGIN PAGE STYLES */
        .login-container {
            min-height: 100vh;
            /* background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23000" width="1920" height="1080"/><rect fill="%23800020" width="960" height="540" x="480" y="270"/></svg>');*/
            background: url('../images/login1.webp');
            background-size: cover;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .login-header {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            padding: 20px 0;
            z-index: 100;
        }

        .login-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1920px;
            margin: 0 auto;
            padding: 0 60px;
        }

        .netflix-logo {
            color: #efb810;
            font-size: 48px;
            font-weight: bold;
            text-decoration: none;
        }

        .login-form {
            background: rgba(0,0,0,0.75);
            padding: 60px 68px 40px;
            border-radius: 4px;
            min-width: 450px;
            max-width: 450px;
        }

        .login-form h1 {
            color: #fff;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 28px;
        }

        .input-group {
            position: relative;
            margin-bottom: 16px;
        }

        .input-group input {
            width: 100%;
            height: 50px;
            background: #333;
            border: none;
            border-radius: 4px;
            color: #fff;
            font-size: 16px;
            padding: 16px 20px 0;
        }

        .input-group label {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #8c8c8c;
            font-size: 16px;
            transition: 0.3s;
            pointer-events: none;
        }

        .input-group input:focus + label,
        .input-group input:valid + label {
            top: 10px;
            font-size: 11px;
            color: #8c8c8c;
        }

        .input-group input:focus {
            outline: none;
            background: #454545;
        }

        .login-btn {
            width: 100%;
            height: 48px;
            background: #efb810;
            color: #fff;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 40px;
            margin-bottom: 12px;
            transition: background 0.3s;
        }

        .login-btn:hover {
            background: #f40612;
        }

        .form-help {
            display: flex;
            justify-content: space-between;
            color: #b3b3b3;
            font-size: 13px;
            margin-top: 16px;
        }

        .form-help a {
            color: #b3b3b3;
            text-decoration: none;
        }

        .form-help a:hover {
            text-decoration: underline;
        }

        .signup-link {
            margin-top: 16px;
            color: #737373;
            font-size: 16px;
        }

        .signup-link a {
            color: #fff;
            text-decoration: none;
        }

        .signup-link a:hover {
            text-decoration: underline;
        }

        .error-message {
            background: #e87c03;
            color: #fff;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 16px;
            font-size: 14px;
        }

        .success-message {
            background: #46d369;
            color: #fff;
            padding: 10px;
            border-radius: 4px;
            margin-bottom: 16px;
            font-size: 14px;
        }

        /* MAIN APP STYLES */
        .main-container {
            display: none;
        }

        /* Header */
        .main-header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent);
            transition: background-color 0.4s;
            padding: 0 4%;
        }

        .main-header.scrolled {
            background-color: #141414;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 68px;
        }

        .nav-left {
            display: flex;
            align-items: center;
        }

        .netflix-logo-main {
            color: #efb810;
            font-size: 25px;
            font-weight: bold;
            margin-right: 25px;
            text-decoration: none;
        }

        .main-nav {
            display: flex;
            list-style: none;
            align-items: center;
        }

        .main-nav li {
            margin-right: 20px;
        }

        .main-nav a {
            color: #e5e5e5;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.4s;
        }

        .main-nav a:hover,
        .main-nav a.active {
            color: #b3b3b3;
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 25px;
        }

        .search-icon,
        .notifications-icon {
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            transition: color 0.3s;
        }

        .search-icon:hover,
        .notifications-icon:hover {
            color: #b3b3b3;
        }

        .profile-menu {
            position: relative;
        }

        .profile-icon {
            width: 32px;
            height: 32px;
            border-radius: 4px;
            background: #efb810;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #fff;
            font-weight: bold;
        }

        .dropdown-menu {
            position: absolute;
            top: 45px;
            right: 0;
            background: rgba(0,0,0,0.9);
            border: 1px solid #333;
            border-radius: 4px;
            min-width: 160px;
            display: none;
        }

        .dropdown-menu.active {
            display: block;
        }

        .dropdown-menu a {
            display: block;
            color: #fff;
            padding: 8px 16px;
            text-decoration: none;
            font-size: 13px;
            transition: background 0.3s;
        }

        .dropdown-menu a:hover {
            background: #333;
        }

        /* Hero Section */
        .hero {
            height: 56.25vw;
            min-height: 500px;
            max-height: 800px;
            position: relative;
            background: linear-gradient(77deg, rgba(0,0,0,.6), transparent 85%), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect fill="%23000" width="1920" height="1080"/><rect fill="%23e50914" width="960" height="540" x="480" y="270" opacity="0.3"/></svg>');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            overflow: hidden;
        }
.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* hace que la imagen llene todo sin deformarse */
    object-position: center;
    z-index: 0; /* mantiene la imagen en el fondo */
}
        .hero-content {
            padding: 0 4%;
            max-width: 50%;
        }

        .hero-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 15px;
        }

        .hero-description {
            font-size: clamp(1rem, 2vw, 1.4rem);
            line-height: 1.4;
            margin-bottom: 20px;
            max-width: 360px;
        }

        .hero-buttons {
            display: flex;
            gap: 12px;
            margin-bottom: 20px;
        }

        .play-btn,
        .info-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 24px;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }

        .play-btn {
            background: #fff;
            color: #000;
        }

        .play-btn:hover {
            background: rgba(255,255,255,0.8);
        }

        .info-btn {
            background: rgba(109,109,110,0.7);
            color: #fff;
        }

        .info-btn:hover {
            background: rgba(109,109,110,0.4);
        }

        /* Content Rows */
        .content-section {
            margin-bottom: 20px;
        }

        .row-title {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 10px;
            padding: 0 4%;
        }

        .top-10-title {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .top-10-logo {
            background: #efb810;
            color: #fff;
            font-size: 12px;
            font-weight: bold;
            padding: 2px 6px;
            border-radius: 2px;
        }

        .slider-container {
            position: relative;
            padding: 0 4%;
        }

        .slider {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            gap: 4px;
            padding-bottom: 20px;
        }

        .slider::-webkit-scrollbar {
            display: none;
        }

        .movie-card {
            flex: 0 0 auto;
            width: 240px;
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease-in-out;
            border-radius: 4px;
            overflow: hidden;
        }

        .movie-card:hover {
            transform: scale(1.05);
            z-index: 2;
        }

        .movie-poster {
            width: 100%;
            height: 135px;
            background: #efb810;
            position: relative;
            border-radius: 4px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-weight: bold;
        }
.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* fuerza a que se estire a las dimensiones del contenedor */
    display: block;
}

        .top-10-card .movie-poster {
            display: flex;
            align-items: flex-end;
        }

        .top-10-number {
            font-size: 80px;
            font-weight: 900;
            color: #fff;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            margin-right: 10px;
            margin-bottom: 35px;
            /*z-index: 1;*/
            position: relative;
        }

        .movie-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 20px 10px 10px;
        }

   .movie-title {
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    margin-bottom: 4px;
   
}

        .movie-meta {
            font-size: 11px;
            color: #b3b3b3;
        }

        .movie-hover-info {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: #141414;
            border-radius: 4px;
            padding: 12px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s;
            z-index: 10;
            box-shadow: 0 8px 32px rgba(0,0,0,0.6);
        }

        .movie-card:hover .movie-hover-info {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .movie-actions {
            display: flex;
            gap: 8px;
            margin-bottom: 8px;
        }

        .action-btn {
            width: 32px;
            height: 32px;
            border: 2px solid #fff;
            border-radius: 50%;
            background: transparent;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .action-btn:hover {
            background: #fff;
            color: #000;
        }

        .play-action {
            background: #fff;
            color: #000;
            border-color: #fff;
        }

        .movie-genres {
            font-size: 11px;
            color: #b3b3b3;
        }

        /* Genre Filter */
        .genre-filter {
            padding: 0 4%;
            margin: 20px 0;
        }

        .genre-buttons {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .genre-btn {
            padding: 6px 16px;
            border: 1px solid #333;
            background: transparent;
            color: #fff;
            border-radius: 20px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }

        .genre-btn:hover,
        .genre-btn.active {
            background: #fff;
            color: #000;
        }

        /* Search */
        .search-container {
            position: fixed;
            top: 68px;
            right: 4%;
            width: 300px;
            background: rgba(0,0,0,0.9);
            border: 1px solid #333;
            border-radius: 4px;
            padding: 20px;
            display: none;
            z-index: 1000;
        }

        .search-container.active {
            display: block;
        }

        .search-input {
            width: 100%;
            padding: 12px;
            background: #333;
            border: none;
            border-radius: 4px;
            color: #fff;
            font-size: 14px;
        }

        .search-input:focus {
            outline: none;
            background: #454545;
        }

        .search-results {
            margin-top: 10px;
            max-height: 300px;
            overflow-y: auto;
        }

        .search-result {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px;
            cursor: pointer;
            border-radius: 4px;
            transition: background 0.3s;
        }

        .search-result:hover {
            background: #333;
        }

        .search-result-poster {
            width: 40px;
            height: 60px;
            background: #efb810;
            border-radius: 2px;
            flex-shrink: 0;
        }

        .search-result-info h4 {
            font-size: 14px;
            margin-bottom: 4px;
        }

        .search-result-info p {
            font-size: 12px;
            color: #b3b3b3;
        }

        /* Modal */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 2000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: #181818;
            border-radius: 6px;
            width: 90%;
            max-width: 850px;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-video {
            width: 100%;
            height: 480px;
            background: #000;
            position: relative;
            border-radius: 6px 6px 0 0;
        }

        .video-player {
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #000, #333);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 24px;
            border-radius: 6px 6px 0 0;
           
        }

        .video-player .video1 {
        width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #000, #333);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 24px;
            border-radius: 6px 6px 0 0;
         

}

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #181818;
            border: none;
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            z-index: 1;
        }

        .modal-info {
            padding: 48px;
        }

        .modal-title {
            font-size: 26px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .modal-meta {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
        }

        .match-score {
            color: #46d369;
            font-weight: 600;
        }

        .modal-description {
            font-size: 16px;
            line-height: 1.4;
            margin-bottom: 24px;
        }

        .modal-details {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 32px;
        }

        .episodes-section {
            margin-top: 24px;
        }

        .episodes-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .season-selector {
            background: #333;
            border: 1px solid #555;
            color: #fff;
            padding: 8px 12px;
            border-radius: 4px;
        }

        .episode {
            display: flex;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid #404040;
            cursor: pointer;
            transition: background 0.3s;
        }

        .episode:hover {
            background: rgba(255,255,255,0.05);
        }

        .episode-number {
            font-size: 24px;
            font-weight: 600;
            color: #d2d2d2;
            min-width: 30px;
        }

        .episode-poster {
            width: 140px;
            height: 78px;
            background: #efb810;
            border-radius: 4px;
            flex-shrink: 0;
            position: relative;
        }

        .episode-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.6);
            border: 2px solid #fff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .episode:hover .episode-play {
            opacity: 1;
        }

        .episode-info {
            flex: 1;
        }

        .episode-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .episode-duration {
            color: #d2d2d2;
            font-size: 14px;
            margin-bottom: 8px;
        }

        .episode-description {
            color: #d2d2d2;
            font-size: 14px;
            line-height: 1.4;
        }

        /* Loading */
        .loading {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            color: #fff;
        }
.episode.active {
    background-color: rgba(0, 255, 100, 0.15); /* verde claro */
    border-left: 4px solid #00ff64;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}
        /* Responsive Design */
        @media (max-width: 768px) {
            .login-form {
                min-width: 320px;
                padding: 60px 28px 40px;
            }

            .login-nav {
                padding: 0 20px;
            }

            .netflix-logo {
                font-size: 32px;
            }

            .main-header {
                padding: 0 20px;
            }

            .main-nav {
                display: none;
            }

            .netflix-logo-main {
                font-size: 20px;
                margin-right: 15px;
            }

            .hero-content {
                max-width: 100%;
                padding: 0 20px;
            }

            .slider-container {
                padding: 0 20px;
            }

            .movie-card {
                width: 160px;
            }

            .movie-poster {
                height: 130px;
            }

            .top-10-number {
                font-size: 40px;
                 margin-bottom: 50px;
                 padding-left: 20px;
                 margin-right: auto;
            }

            .modal-content {
                width: 95%;
                margin: 20px;
            }

            .modal-video {
                height: 250px;
            }

            .modal-info {
                padding: 24px;
            }

            .modal-details {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .search-container {
                width: 250px;
                right: 20px;
            }
        }

        @media (max-width: 480px) {
            .hero-buttons {
                flex-direction: column;
                gap: 8px;
            }

            .play-btn,
            .info-btn {
                width: 100%;
                justify-content: center;
            }

            .movie-card {
                width: 150px;
            }

            .movie-poster {
                height: 120px;
            }
        }
/* ESTILOS DEL FOOTER */
.site-footer {
  background: #efb810;
  color: #111; /* texto oscuro para buen contraste */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 18px 12px;
}

.footer-container{
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* LEFT: logo + marca */
.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-logo {
  height: 56px;           /* ajusta la altura del logo */
  width: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;     /* opcional */
}

/* marca debajo/ al lado del logo */
.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.footer-brand strong { font-size: 1rem; }
.footer-brand small { font-size: 0.8rem; opacity: 0.95; }

/* RIGHT: enlaces y contacto */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  min-width: 0;
}

.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.footer-nav a {
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  opacity: 0.95;
}
.footer-nav a:hover { text-decoration: underline; }

/* contacto */
.footer-contact {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

/* copyright */
.footer-copy {
  opacity: 0.9;
  font-size: 0.82rem;
}

/* RESPONSIVE: pantallas pequeñas */
@media (max-width: 720px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-right {
    align-items: center;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* Ajustes finos para móviles muy pequeños */
@media (max-width: 360px) {
  .footer-logo { height: 48px; }
  .footer-nav a { font-size: 0.88rem; }
  .footer-contact { font-size: 0.85rem; }
}