* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

/* ============ AUTH STYLES ============ */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('login_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auth-modal {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    padding: 60px 68px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo-text {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 3px;
    margin: 0;
}

.auth-form h1 {
    font-size: 28px;
    margin-bottom: 28px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
}

.auth-form input {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 16px;
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(69, 69, 69, 0.9);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e50914 0%, #ff4655 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff4655 0%, #e50914 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: #737373;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #737373;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-google {
    width: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google i {
    font-size: 18px;
}

.btn-github {
    width: 100%;
    padding: 16px;
    background: #24292e;
    border: 1px solid #24292e;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
}

.btn-github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-github i {
    font-size: 18px;
}

.auth-switch {
    margin-top: 20px;
    color: #737373;
    font-size: 14px;
}

.auth-switch a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 10%, transparent);
    z-index: 100;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: #141414;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #b3b3b3;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 18px;
}

.nav-right i {
    cursor: pointer;
    transition: color 0.3s;
}

.nav-right i:hover {
    color: #b3b3b3;
}

.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    min-width: 150px;
}

.user-menu:hover .dropdown,
.dropdown:hover,
.dropdown.show {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============ SEARCH BAR ============ */
.search-bar {
    position: fixed;
    top: 70px;
    right: 50px;
    background: rgba(0, 0, 0, 0.9);
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px; /* cards spacing */
    z-index: 99;
    overflow: visible;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 250px;
    outline: none;
}

.search-bar i {
    cursor: pointer;
}

/* ============ SEARCH DROPDOWN ============ */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.search-dropdown.hidden { display: none; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover { background: rgba(255,255,255,0.08); }

.search-result-item img {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.search-result-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-year {
    color: #b3b3b3;
    font-size: 12px;
}

.search-no-results {
    color: #b3b3b3;
    padding: 16px 14px;
    font-size: 14px;
    text-align: center;
}

/* ============ HERO SECTION ============ */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center 20%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), 
                 -2px -2px 10px rgba(0, 0, 0, 0.8),
                 0px 0px 20px rgba(0, 0, 0, 0.9);
}

.hero-description {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 1), 
                 -2px -2px 10px rgba(0, 0, 0, 0.8),
                 0px 0px 20px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-hero,
.btn-hero-info {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px; /* cards spacing */
    transition: all 0.3s;
}

.btn-hero {
    background: #fff;
    color: #000;
}

.btn-hero:hover {
    background: rgba(255, 255, 255, 0.75);
}

.btn-hero-info {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-hero-info:hover {
    background: rgba(109, 109, 110, 0.4);
}

.hero-fade {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(180deg, transparent, #141414);
}

.hero-fade-out {
    opacity: 0.3;
    transition: opacity 0.3s ease-in-out;
}

.hero-fade-in {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* ============ MOVIE ROWS ============ */
.movie-showcase {
    margin-top: -150px;
    position: relative;
    z-index: 3;
    padding: 0 50px;
}

.movie-row {
    margin-bottom: 40px;
    position: relative;
    padding: 0 60px;
}

.row-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 0 10px;
}

/* Scroll Buttons - SIEMPRE VISIBLES */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 340px;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    pointer-events: all;
}

.scroll-btn:hover {
    background: rgba(20, 20, 20, 0.95);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-left {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.scroll-right {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.large-posters + .scroll-btn,
.movie-row:has(.large-posters) .scroll-btn {
    height: 480px;
}

.row-posters {
    display: flex;
    gap: 10px; /* cards spacing */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.row-posters::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.movie-poster {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.movie-poster:hover {
    transform: scale(1.08);
}

.large-posters .movie-poster {
    height: 450px;
    width: 300px;
}

/* ============ MODAL ============ */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes modal-enter {
    from { opacity: 0; transform: scale(0.97) translateY(8px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    animation: modal-enter 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
    background: #181818;
    border-radius: 8px;
    max-width: 850px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: #181818;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: #282828;
}

.modal-body {
    padding: 0;
}

/* Estilos para el trailer de YouTube */
.movie-trailer {
    width: 100%;
    background: #000;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.movie-trailer iframe {
    width: 100%;
    height: 450px;
    border: none;
}

#modal-poster {
    width: 100%;
    border-radius: 8px 8px 0 0;
    object-fit: cover;
    max-height: 450px;
}

/* ── Modal info — diseño moderno Shadcn dark ── */
.modal-info {
    padding: 28px 32px 36px;
    background: #0e0e10;
}

.modal-info h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

/* Fila de meta: rating · año · duración */
.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.modal-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
}

.modal-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #555;
    display: inline-block;
}

.modal-year, .modal-runtime {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* Géneros como pills */
.modal-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.genre-pill {
    font-size: 12px;
    font-weight: 500;
    color: #ccc;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 4px 12px;
    letter-spacing: 0.2px;
}

/* Descripción */
.modal-overview {
    font-size: 14px;
    line-height: 1.7;
    color: #999;
    margin: 0 0 26px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 18px;
}

/* Botones */
.modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e50914;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s;
    letter-spacing: 0.1px;
}

.modal-btn-primary:hover { background: #c8070f; transform: translateY(-1px); }
.modal-btn-primary:active { transform: translateY(0); }

.modal-btn-primary.in-list {
    background: #1a6b35;
    border: 1px solid #46d369;
    color: #46d369;
}

.modal-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.modal-btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}
.modal-btn-secondary:active { transform: translateY(0); }

/* Estado "en lista" para el botón primario */
#watchlist-btn.in-list {
    background: #1a6b35 !important;
    border: 1px solid #46d369 !important;
    color: #46d369 !important;
}

/* ============ NOTIFICATIONS — estilo Sileo ============ */
@keyframes sileo-in {
    0%   { opacity: 0; top: -80px; }
    60%  { opacity: 1; top: 22px; }
    80%  { top: 12px; }
    100% { opacity: 1; top: 16px; }
}
@keyframes sileo-out {
    0%   { opacity: 1; top: 16px; }
    100% { opacity: 0; top: -80px; }
}
@keyframes sileo-progress {
    from { width: 100%; }
    to   { width: 0%; }
}

.notification {
    position: fixed;
    top: -80px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    min-width: 280px;
    max-width: 380px;
    background: rgba(18, 18, 22, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f0f0f0;
    padding: 13px 18px 16px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05) inset,
        0 8px 32px rgba(0,0,0,0.6),
        0 2px 8px rgba(0,0,0,0.35);
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
}

.notification.show {
    animation: sileo-in 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

.notification.hide {
    animation: sileo-out 0.3s ease-in forwards;
}

/* Layout interno */
.notification-inner {
    display: flex;
    align-items: center;
    gap: 11px;
}

.notification-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.notification-icon:empty { display: none; }

.notification-text {
    flex: 1;
    line-height: 1.35;
}

.notification-title {
    font-size: 13.5px;
    font-weight: 650;
    color: #fff;
    display: block;
    margin-bottom: 1px;
}

.notification-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: block;
}

/* Barra de progreso */
.notification-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    border-radius: 0 0 16px 16px;
    animation: sileo-progress linear forwards;
}

/* Tipos */
.notification.success .notification-icon { background: rgba(255,255,255,0.06); }
.notification.success .notification-bar  { background: rgba(255,255,255,0.3); }
.notification.error   .notification-icon { background: rgba(255,255,255,0.06); }
.notification.error   .notification-bar  { background: rgba(255,255,255,0.3); }
.notification.warning .notification-icon { background: rgba(255,255,255,0.06); }
.notification.warning .notification-bar  { background: rgba(255,255,255,0.3); }
.notification.welcome .notification-icon { background: rgba(255,255,255,0.06); }
.notification.welcome .notification-bar  { background: rgba(255,255,255,0.25); }

/* ============ FOOTER ============ */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #737373;
    font-size: 14px;
    margin-top: 50px;
}

/* ============ UTILITY CLASSES ============ */
.hidden {
    display: none !important;
}

/* ============ RESPONSIVE ============ */

/* Hamburger menu styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger-menu span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    /* ===== TOP BAR MÓVIL: limpia, 1 línea ===== */
    .navbar {
        padding: 10px 15px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
    }

    .nav-container {
        flex-wrap: nowrap;
        align-items: center;
    }

    .nav-left {
        width: auto;
        flex: 1;
        flex-wrap: nowrap;
        gap: 0;
    }

    .logo {
        font-size: 20px;
        letter-spacing: 2px;
    }

    /* Hamburger visible en móvil */
    .hamburger-menu {
        display: flex;
    }

    /* ── Drawer lateral ── */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 72vw;
        max-width: 300px;
        height: 100dvh;
        background: #0a0a0a;
        border-right: 1px solid rgba(255,255,255,0.07);
        padding: 80px 0 40px;
        gap: 0;
        z-index: 998;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateX(0) !important;
        pointer-events: all;
    }

    /* Overlay oscuro detrás del drawer */
    .nav-menu.active::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.55);
        z-index: -1;
        pointer-events: none;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        padding: 15px 28px;
        font-size: 15px;
        font-weight: 500;
        color: rgba(255,255,255,0.7);
        border-left: 2px solid transparent;
        transition: color 0.2s, border-color 0.2s, background 0.2s;
        letter-spacing: 0.2px;
    }

    .nav-menu a.active,
    .nav-menu a:hover {
        color: #fff;
        border-left-color: #e50914;
        background: rgba(255,255,255,0.04);
    }

    .nav-right {
        gap: 18px;
        order: unset;
        flex-shrink: 0;
    }

    .nav-right i {
        font-size: 18px;
    }

    /* Ocultar campana y saludo para dejar espacio */
    .fa-bell { display: none; }
    #profile-greeting { display: none; }

    .user-avatar {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }

    .user-menu .fa-caret-down {
        display: none;
    }

    .dropdown {
        top: 42px;
        right: -10px;
    }

    /* ===== FILTER PILLS ===== */
    .filter-pills {
        display: flex;
        gap: 8px;
        padding: 8px 12px;
        overflow-x: auto;
        scrollbar-width: none;
        position: sticky;
        top: 48px;
        z-index: 95;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .filter-pills::-webkit-scrollbar { display: none; }

    .filter-pill {
        flex-shrink: 0;
        padding: 6px 16px;
        background: transparent;
        border: 1.5px solid rgba(255,255,255,0.45);
        border-radius: 20px;
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
        display: flex;
        align-items: center;
        gap: 5px;
        font-family: 'Helvetica Neue', Arial, sans-serif;
    }

    .filter-pill.active {
        background: #fff;
        color: #000;
        border-color: #fff;
        font-weight: 700;
    }

    .filter-pill i { font-size: 10px; }

    /* ===== SEARCH BAR ===== */
    .search-bar {
        top: 92px;
        right: 15px;
        left: 15px;
        width: auto;
    }

    .search-bar input { width: 100%; }

    /* ===== HERO MÓVIL: card con bordes redondeados ===== */
    .hero {
        height: 62vh;
        margin: 0 10px;
        border-radius: 10px;
        overflow: hidden;
        padding: 0;
        padding-top: 0;
        background-position: center 20%;
        background-size: cover;
        position: relative;
    }

    .hero-content {
        bottom: 20px;
        max-width: 100%;
        padding: 0 16px;
        position: absolute;
        left: 0;
        right: 0;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 14px;
        max-width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .btn-hero {
        padding: 11px 20px;
        font-size: 14px;
        border-radius: 6px;
        font-weight: 700;
        gap: 7px;
        flex: 1;
        justify-content: center;
    }

    .btn-hero-info {
        padding: 11px 20px;
        font-size: 14px;
        border-radius: 6px;
        font-weight: 600;
        gap: 7px;
        flex: 1;
        justify-content: center;
        background: rgba(109, 109, 110, 0.75);
    }

    .btn-hero i, .btn-hero-info i { font-size: 13px; }

    .hero-fade { height: 130px; }

    /* ===== FILAS DE PELÍCULAS ===== */
    .movie-showcase {
        padding: 0 10px;
        margin-top: 16px;
    }

    .movie-row {
        margin-bottom: 28px;
        padding: 0 4px;
    }

    .row-title {
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 10px;
        padding-left: 4px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .row-title::after {
        content: 'Ver todo >';
        font-size: 12px;
        font-weight: 400;
        color: #b3b3b3;
        flex-shrink: 0;
        padding-left: 8px;
        cursor: pointer;
    }

    .row-posters {
        gap: 8px;
        padding: 8px 4px;
    }

    .movie-poster {
        width: 130px;
        height: 195px;
        min-width: 130px;
        border-radius: 6px;
    }

    .large-posters .movie-poster {
        width: 150px;
        height: 225px;
        min-width: 150px;
    }

    /* Flechas pequeñas en móvil */
    .scroll-btn {
        display: flex;
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 50%;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(8px);
        opacity: 1;
        top: auto;
        bottom: 6px;
        transform: none;
    }
    .scroll-left { left: 4px; border-radius: 50%; }
    .scroll-right { right: 4px; border-radius: 50%; }

    /* ===== BOTTOM NAVIGATION BAR ===== */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: rgba(18, 18, 18, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 200;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: #808080;
        flex: 1;
        height: 100%;
        transition: color 0.2s;
        cursor: pointer;
    }

    .bottom-nav-item i {
        font-size: 22px;
        line-height: 1;
    }

    .bottom-nav-item span {
        font-size: 10px;
        line-height: 1;
        font-family: 'Helvetica Neue', Arial, sans-serif;
    }

    .bottom-nav-item.active {
        color: #fff;
    }

    .bottom-nav-avatar {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        overflow: hidden;
        border: 2px solid transparent;
        transition: border-color 0.2s;
    }

    .bottom-nav-item.active .bottom-nav-avatar {
        border-color: #fff;
    }

    .bottom-nav-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Espacio para que el contenido no quede bajo el bottom nav */
    body { padding-bottom: 70px; }

    /* Footer innecesario en mobile */
    .footer { display: none; }

    /* Modal móvil */
    .modal {
        padding: 0;
    }

    .modal-content {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
        z-index: 1001;
    }

    .modal-body {
        padding: 0;
        max-height: 100vh;
        overflow-y: auto;
    }
    
    .movie-trailer iframe {
        height: 220px;
    }

    #modal-poster {
        width: 100%;
        max-height: 220px;
        object-fit: cover;
    }
    
    .modal-info {
        padding: 20px 15px;
    }
    
    .modal-info h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .modal-info p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .modal-meta {
        font-size: 13px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px; /* cards spacing */
    }

    .modal-actions button {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 15px;
    }

    /* Search bar móvil */
    .search-bar {
        padding: 10px 15px;
    }

    .search-bar input {
        font-size: 14px;
        padding: 10px 15px;
    }

    /* Auth móvil */
    .auth-modal {
        padding: 40px 25px 30px;
        margin: 15px;
    }

    .auth-logo .logo-text {
        font-size: 28px;
    }

    .auth-form h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .auth-form input {
        padding: 14px 16px;
        font-size: 15px;
    }

    .btn-primary,
    .btn-google {
        padding: 14px;
        font-size: 15px;
    }
}

/* Extra small screens (less than 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 12px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-right {
        gap: 14px;
    }

    .filter-pills {
        top: 44px;
        padding: 6px 10px;
        gap: 6px;
    }

    .filter-pill {
        padding: 5px 13px;
        font-size: 12px;
    }

    .hero {
        height: 58vh;
        margin: 0 8px;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-description {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .btn-hero,
    .btn-hero-info {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 6px;
    }

    .movie-poster {
        width: 115px;
        height: 172px;
        min-width: 115px;
    }

    .large-posters .movie-poster {
        width: 135px;
        height: 202px;
        min-width: 135px;
    }

    .row-title {
        font-size: 15px;
    }

    .auth-modal {
        padding: 30px 20px 25px;
        margin: 10px;
    }

    .auth-logo .logo-text {
        font-size: 24px;
    }

    .auth-form h1 {
        font-size: 22px;
    }
}

/* ============ BOTTOM NAV + FILTER PILLS (base, oculto en desktop) ============ */
.bottom-nav {
    display: none;
}

.filter-pills {
    display: none;
}

/* ============ PROFILE SELECTOR STYLES ============ */
.profile-selector-content {
    background: #141414;
    padding: 60px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-selector-content h1 {
    font-size: 3.5vw;
    font-weight: 400;
    margin-bottom: 40px;
    color: #fff;
}

.profiles-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.profile-card {
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-card:hover .profile-avatar {
    border: 4px solid #fff;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 4px solid transparent;
    transition: border 0.2s ease;
}

.profile-card .profile-name {
    margin-top: 15px;
    font-size: 18px;
    color: #808080;
    transition: color 0.2s ease;
}

.profile-card:hover .profile-name {
    color: #fff;
}

.profile-card.kid .profile-avatar {
    border: 4px solid #02d8e9;
}

.btn-add-profile {
    background: transparent;
    border: 2px dashed #808080;
    color: #808080;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-add-profile:hover {
    border-color: #fff;
    color: #fff;
}

.btn-add-profile i {
    margin-right: 10px;
}

/* Profile Editor Modal */
.profile-editor-content {
    background: #141414;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    margin: auto;
}

.profile-editor-content h2 {
    margin-bottom: 30px;
    text-align: center;
}

.avatar-selector {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-selector #selected-avatar {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #e50914;
}

.avatar-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.avatar-options img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    object-fit: cover;
    background-color: #333;
}

.avatar-options img:hover,
.avatar-options img.selected {
    opacity: 1;
    border-color: #e50914;
    transform: scale(1.1);
}

#profile-name {
    width: 100%;
    padding: 15px 20px;
    background: #333;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

#profile-name:focus {
    outline: 2px solid #e50914;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 30px;
    color: #aaa;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #e50914;
}

.profile-form-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.profile-form-buttons button {
    flex: 1;
    min-width: 120px;
}

.btn-secondary {
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #808080;
    color: #808080;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
}

.btn-danger {
    padding: 15px 30px;
    background: #b00020;
    border: none;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #cf2030;
}

/* ============ REVIEWS MODAL STYLES ============ */
.reviews-modal-content {
    background: #181818;
    padding: 30px;
    border-radius: 12px;
    max-width: 700px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    position: relative;
}

.close-reviews-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-reviews-modal:hover {
    color: #fff;
}

.reviews-modal-content h2 {
    margin-bottom: 20px;
    padding-right: 40px;
}

.movie-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #222;
    border-radius: 10px;
    margin-bottom: 25px;
}

.average-rating {
    text-align: center;
}

.average-rating #avg-rating {
    font-size: 48px;
    font-weight: bold;
    color: #ffc107;
}

.average-rating .stars {
    color: #ffc107;
    font-size: 24px;
    letter-spacing: 2px;
}

.average-rating #total-ratings {
    display: block;
    color: #888;
    margin-top: 5px;
}

.thumbs-stats {
    display: flex;
    gap: 20px;
    font-size: 20px;
}

.user-rating-section {
    background: #252525;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.user-rating-section h3 {
    margin-bottom: 15px;
    font-weight: 500;
}

.rating-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.thumb-btn {
    font-size: 32px;
    background: #333;
    border: 2px solid transparent;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.2s;
}

.thumb-btn:hover {
    background: #444;
    transform: scale(1.1);
}

.thumb-btn.active {
    border-color: #e50914;
    background: #3a2020;
}

.star-rating {
    display: flex;
    gap: 10px; /* cards spacing */
    margin-bottom: 20px;
}

.star-rating .star {
    font-size: 36px;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffc107;
    transform: scale(1.2);
}

#review-text {
    width: 100%;
    height: 100px;
    padding: 15px;
    background: #333;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

#review-text:focus {
    outline: 2px solid #e50914;
}

#submit-review-btn {
    width: auto;
    padding: 12px 30px;
}

.reviews-list {
    max-height: 300px;
    overflow-y: auto;
}

.review-item {
    background: #252525;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.review-user-info {
    flex: 1;
}

.review-user-name {
    font-weight: 600;
    margin-bottom: 3px;
}

.review-date {
    color: #888;
    font-size: 12px;
}

.review-rating {
    color: #ffc107;
    font-size: 14px;
}

.review-content {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-spoiler {
    background: #333;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #888;
}

.review-spoiler.revealed {
    background: transparent;
    cursor: default;
    color: #ddd;
}

.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.review-action-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.review-action-btn:hover {
    color: #fff;
}

/* Match Badge */
.match-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #46d369;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    margin-right: 10px;
}

.match-badge.low {
    background: #f5c518;
}

.match-badge.very-low {
    background: #e50914;
    color: #fff;
}

/* Recommendations Section */
.recommendations-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.recommendation-reason {
    font-size: 14px;
    color: #46d369;
    margin-top: 5px;
}

/* Top 10 Ranking */
.top10-badge {
    position: absolute;
    left: -5px;
    bottom: 10px;
    font-size: 60px;
    font-weight: 900;
    color: #141414;
    text-shadow: -2px 0 #fff, 0 -2px #fff, 2px 0 #fff, 0 2px #fff;
    font-style: italic;
}

.movie-poster-container {
    position: relative;
    display: inline-block;
}

/* Continue Watching Progress Bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #333;
}

.progress-bar {
    height: 100%;
    background: #e50914;
}

/* Scrollbar for reviews */
.reviews-list::-webkit-scrollbar {
    width: 8px;
}

.reviews-list::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

.reviews-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Mobile responsive for new features */
@media (max-width: 768px) {
    .profile-selector-content {
        padding: 30px 20px;
    }
    
    .profile-selector-content h1 {
        font-size: 24px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profiles-grid {
        gap: 20px;
    }
    
    .reviews-modal-content {
        padding: 20px 15px;
    }
    
    .movie-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .thumb-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .star-rating .star {
        font-size: 28px;
    }
}

/* ============ AVATAR SELECTOR STYLES ============ */
.avatar-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.avatar-selector-content {
    background: #181818;
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.avatar-selector-content h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.close-avatar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10001;
}

.close-avatar-modal:hover {
    color: #e50914;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px;
}

.avatar-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #e50914;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.5);
}

.avatar-option img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.user-avatar {
    cursor: pointer !important;
    transition: transform 0.2s;
}

.user-avatar:hover {
    transform: scale(1.1);
}
/* Optimized for performance - build 1.0 */

/* ============ SKELETON LOADERS ============ */
@keyframes skeleton-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton-card {
    background: linear-gradient(90deg, #1f1f1f 25%, #2d2d2d 50%, #1f1f1f 75%);
    background-size: 400px 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 4px;
    flex-shrink: 0;
    width: 150px;
    height: 225px;
}

.skeleton-card.large {
    width: 200px;
    height: 300px;
}

.skeleton-hero {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
    background-size: 400px 100%;
    animation: skeleton-shimmer 1.8s ease-in-out infinite;
}

/* ============ STATUS BANNER (servidor durmiendo) ============ */
#server-status-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: linear-gradient(90deg, #1a1a1a, #222);
    color: #e5e5e5;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#server-status-banner .banner-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #444;
    border-top: 2px solid #e50914;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

#server-status-banner .banner-retry-btn {
    background: #e50914;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
}

#server-status-banner .banner-retry-btn:hover {
    background: #f40612;
}

/* ================================================================
   ULTRA PREMIUM UI — Inspired by 21st.dev + ReactBits
   ================================================================ */

/* ---- Logo (blanco puro) ---- */
.logo {
    color: #ffffff;
}

/* ---- Navbar Glassmorphism ---- */
.navbar.scrolled {
    background: rgba(15, 15, 15, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.6) !important;
}

/* ---- Hero Aurora Blobs ---- */
.hero-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.14;
    animation: aurora-float 15s ease-in-out infinite;
}

.aurora-blob:nth-child(1) {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #e50914, transparent 65%);
    top: -200px; left: -150px;
    animation-duration: 14s;
    animation-delay: 0s;
}

.aurora-blob:nth-child(2) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #6600cc, transparent 65%);
    top: 0; right: -150px;
    animation-duration: 19s;
    animation-delay: -5s;
}

.aurora-blob:nth-child(3) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #0055ff, transparent 65%);
    bottom: -100px; left: 35%;
    animation-duration: 17s;
    animation-delay: -9s;
}

@keyframes aurora-float {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    25%       { transform: translate(40px, -30px) scale(1.08); }
    50%       { transform: translate(-25px, 40px) scale(0.94); }
    75%       { transform: translate(25px, 25px) scale(1.06); }
}

/* ---- Hero Cursor Spotlight ---- */
.hero-spotlight {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero:hover .hero-spotlight {
    opacity: 1;
}

/* ---- Hero Buttons Enhanced ---- */
.btn-hero {
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.25s,
                box-shadow 0.25s !important;
}

.btn-hero:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

.btn-hero-info {
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.25s,
                box-shadow 0.25s !important;
}

.btn-hero-info:hover {
    box-shadow: 0 8px 30px rgba(109, 109, 110, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* ---- Movie Card Wrapper — solo scale al hover ---- */
.movie-card-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    cursor: pointer;
}

.movie-card-wrapper .movie-poster {
    display: block;
    transition: transform 0.3s ease;
}

.movie-card-wrapper:hover .movie-poster {
    transform: scale(1.2) !important;
}

/* ocultar overlay y play que se crean desde JS pero no queremos mostrar */
.movie-card-overlay,
.movie-card-play {
    display: none;
}

/* ---- Enhanced Modal Animation ---- */
@keyframes modalSlideIn {
    from {
        transform: scale(0.88) translateY(24px);
        opacity: 0;
        filter: blur(10px);
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.modal-content {
    animation: modalSlideIn 0.48s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.modal {
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* ---- Row Title Gradient Text ---- */
.row-title {
    background: linear-gradient(90deg, #ffffff 50%, rgba(255, 255, 255, 0.45) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ---- Scroll Reveal for Movie Rows ---- */
.movie-row {
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.movie-row.reveal-hidden {
    opacity: 0;
    transform: translateY(36px);
}

.movie-row.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Scroll Button Glow ---- */
.scroll-btn:hover {
    background: rgba(229, 9, 20, 0.12) !important;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.2) !important;
}

/* ---- Search Bar Glow ---- */
#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.4), 0 0 20px rgba(229, 9, 20, 0.15);
}

/* ---- Auth Modal Floating Particles ---- */
@keyframes float-particle {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
    50%       { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

/* ---- Star Rating Pulse on Select ---- */
.star-rating .star.active {
    animation: star-pop 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes star-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.5); }
    100% { transform: scale(1.2); }
}

/* ---- Notification Toast Glow ---- */

/* ================================================================
   MOBILE PREMIUM UI — Vista celular rediseñada
   ================================================================ */
@media (max-width: 768px) {

    /* ── Navbar ─────────────────────────────────────────────── */
    .navbar {
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    }

    /* ── Hero card ──────────────────────────────────────────── */
    .hero {
        height: 130vw !important;
        max-height: none !important;
        min-height: 480px;
        margin: 8px 10px 0 !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        background-position: center top !important;
        background-size: cover !important;
        box-shadow:
            0 20px 60px rgba(0,0,0,0.7),
            0 0 0 1px rgba(255,255,255,0.06) !important;
    }

    /* gradiente suave solo en la parte inferior para el texto */
    .hero-fade {
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.5)  30%,
            transparent       60%
        ) !important;
        height: 50% !important;
    }

    .hero-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0 16px 18px !important;
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        margin-bottom: 6px !important;
        letter-spacing: -0.3px;
        text-shadow: 0 2px 12px rgba(0,0,0,0.9) !important;
    }

    .hero-description {
        font-size: 12px !important;
        line-height: 1.45 !important;
        color: rgba(255,255,255,0.82) !important;
        margin-bottom: 14px !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-shadow: 0 1px 6px rgba(0,0,0,0.8) !important;
    }

    /* Botones hero mobile — premium */
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
    }

    .btn-hero {
        flex: 1 !important;
        justify-content: center !important;
        padding: 12px 0 !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #000 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
        letter-spacing: 0.2px;
        gap: 7px !important;
        transform: none !important;
    }

    .btn-hero:active {
        transform: scale(0.97) !important;
    }

    .btn-hero-info {
        flex: 1 !important;
        justify-content: center !important;
        padding: 12px 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        border-radius: 10px !important;
        background: rgba(255,255,255,0.18) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
        color: #fff !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
        gap: 7px !important;
        transform: none !important;
    }

    .btn-hero-info:active {
        transform: scale(0.97) !important;
        background: rgba(255,255,255,0.25) !important;
    }

    /* ── Filter pills ────────────────────────────────────────── */
    .filter-pills {
        margin: 10px 0 0 !important;
        background: transparent !important;
        border-bottom: none !important;
        padding: 4px 14px !important;
    }

    .filter-pill {
        padding: 7px 18px !important;
        border-radius: 50px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        border: 1.5px solid rgba(255,255,255,0.25) !important;
        background: rgba(255,255,255,0.07) !important;
        color: rgba(255,255,255,0.75) !important;
        backdrop-filter: blur(8px);
        transition: all 0.2s ease !important;
    }

    .filter-pill.active {
        background: #ffffff !important;
        color: #000000 !important;
        border-color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(255,255,255,0.2) !important;
    }

    /* ── Movie rows ─────────────────────────────────────────── */
    .movie-showcase {
        padding: 0 !important;
        margin-top: 28px !important;
    }

    .movie-row {
        margin-bottom: 24px !important;
        padding: 0 !important;
    }

    .row-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
        padding-left: 14px !important;
        letter-spacing: -0.2px;
    }

    .row-posters {
        padding: 6px 36px !important;
        gap: 10px !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .movie-card-wrapper {
        scroll-snap-align: start;
        border-radius: 10px !important;
    }

    .movie-poster {
        width: 120px !important;
        height: 180px !important;
        min-width: 120px !important;
        border-radius: 10px !important;
    }

    .large-posters .movie-poster {
        width: 145px !important;
        height: 218px !important;
        min-width: 145px !important;
    }

    /* desactivar scale hover en móvil (no hay mouse) */
    .movie-card-wrapper:hover .movie-poster {
        transform: none !important;
    }

    /* ── Scroll buttons móvil — flechas laterales centradas ─── */
    .scroll-btn {
        position: absolute !important;
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        width: 32px !important;
        height: 56px !important;
        font-size: 16px !important;
        border-radius: 6px !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        opacity: 0.85 !important;
        z-index: 10 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        color: #fff !important;
        box-shadow: none !important;
    }
    .scroll-btn:active {
        opacity: 1 !important;
        transform: translateY(-50%) scale(0.95) !important;
    }
    .scroll-left {
        left: 0 !important;
        border-radius: 0 6px 6px 0 !important;
    }
    .scroll-right {
        right: 0 !important;
        border-radius: 6px 0 0 6px !important;
    }

    /* ── Bottom nav premium ─────────────────────────────────── */
    .bottom-nav {
        height: 64px !important;
        background: rgba(10,10,10,0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-top: 1px solid rgba(255,255,255,0.08) !important;
        padding: 0 8px !important;
        box-shadow: 0 -8px 30px rgba(0,0,0,0.5) !important;
    }

    .bottom-nav-item {
        gap: 4px !important;
        border-radius: 14px;
        padding: 6px 0;
        transition: color 0.2s, background 0.2s !important;
    }

    .bottom-nav-item.active {
        color: #fff !important;
    }

    .bottom-nav-item i {
        font-size: 20px !important;
    }

    .bottom-nav-item span {
        font-size: 9px !important;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    /* ── Modal fullscreen premium ───────────────────────────── */
    .modal {
        padding: 0 !important;
        background: rgba(0,0,0,0.6) !important;
        backdrop-filter: blur(8px) !important;
    }

    .modal-content {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        background: #0f0f0f !important;
    }

    /* Imagen hero del modal */
    #modal-poster {
        width: 100% !important;
        height: 200px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        object-position: center 75% !important;
        display: block;
    }

    .movie-trailer iframe {
        height: 200px !important;
        width: 100% !important;
    }

    .modal-info {
        padding: 18px 16px 100px !important;
    }

    .modal-info h2 {
        font-size: 22px !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px;
        margin-bottom: 10px !important;
        line-height: 1.2;
    }

    /* Metadata pills en modal */
    .movie-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .movie-meta span {
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.15) !important;
        border-radius: 50px !important;
        padding: 4px 12px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #e5e5e5 !important;
        letter-spacing: 0.2px;
        transform: none !important;
    }

    .movie-meta .rating {
        background: rgba(245, 197, 24, 0.15) !important;
        border-color: rgba(245, 197, 24, 0.4) !important;
        color: #f5c518 !important;
    }

    .movie-genres {
        font-size: 12px !important;
        color: rgba(255,255,255,0.5) !important;
        margin-bottom: 14px !important;
        font-weight: 500;
        letter-spacing: 0.2px;
    }

    #modal-overview {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: rgba(255,255,255,0.8) !important;
        margin-bottom: 20px !important;
    }

    /* Botones del modal mobile */
    .modal-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .modal-btn-primary, .modal-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    .modal-info {
        padding: 20px 18px 28px !important;
    }

    .modal-info h2 {
        font-size: 22px !important;
    }

    /* Botón cerrar modal más visible */
    .close-modal {
        width: 36px !important;
        height: 36px !important;
        background: rgba(0,0,0,0.7) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255,255,255,0.2) !important;
        border-radius: 50% !important;
        top: 12px !important;
        right: 12px !important;
        font-size: 20px !important;
    }

    /* ── Search bar mobile ──────────────────────────────────── */
    .search-bar {
        border-radius: 0 !important;
        background: rgba(18,18,18,0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        padding: 10px 14px !important;
        top: 48px !important;
    }

    #search-input {
        background: rgba(255,255,255,0.08) !important;
        border: 1px solid rgba(255,255,255,0.14) !important;
        border-radius: 10px !important;
        padding: 11px 14px !important;
        font-size: 15px !important;
        color: #fff !important;
    }

    /* ── Auth modal mobile ──────────────────────────────────── */
    .auth-container {
        align-items: flex-end !important;
        padding-bottom: 0 !important;
    }

    .auth-modal {
        border-radius: 24px 24px 0 0 !important;
        padding: 32px 24px 40px !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        border-bottom: none !important;
        background: rgba(18,18,18,0.98) !important;
    }

    .auth-logo .logo-text {
        font-size: 26px !important;
        letter-spacing: 4px;
    }

    .auth-form h1 {
        font-size: 22px !important;
        margin-bottom: 22px !important;
    }

    .auth-form input {
        border-radius: 12px !important;
        padding: 15px 16px !important;
        font-size: 16px !important;
        background: rgba(255,255,255,0.07) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
    }

    .btn-primary {
        border-radius: 12px !important;
        padding: 15px !important;
        font-size: 16px !important;
    }

    .btn-google, .btn-github {
        border-radius: 12px !important;
        padding: 13px !important;
        font-size: 15px !important;
    }

    /* ── Profile selector mobile ────────────────────────────── */
    .profile-selector-content {
        padding: 40px 20px !important;
    }

    .profile-selector-content h1 {
        font-size: 24px !important;
        margin-bottom: 32px !important;
    }

    .profiles-grid {
        gap: 20px !important;
    }

    .profile-avatar {
        width: 80px !important;
        height: 80px !important;
        border-radius: 10px !important;
    }
}

/* Extra small (< 480px) — refinements adicionales */
@media (max-width: 480px) {
    .hero {
        height: 135vw !important;
        margin: 6px 8px 0 !important;
        border-radius: 16px !important;
        background-position: center top !important;
    }

    .hero-title {
        font-size: 20px !important;
    }

    .movie-poster {
        width: 110px !important;
        height: 165px !important;
        min-width: 110px !important;
    }

    .large-posters .movie-poster {
        width: 130px !important;
        height: 195px !important;
        min-width: 130px !important;
    }

    .row-posters {
        padding: 6px 10px !important;
    }

    .row-title {
        padding-left: 10px !important;
        font-size: 15px !important;
    }

    .auth-modal {
        padding: 28px 20px 36px !important;
    }
}


/* ================================================================
   HERO ESTILO NETFLIX — trailer autoplay, meta, pager, progreso
   ================================================================ */

/* Capa de video (trailer) */
.hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.playing {
    opacity: 1;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 0;
}

.hero-fade { z-index: 2; }
.hero-content { z-index: 3; }

/* Línea de metadatos: Película • Acción • 2025 • ★ 7.8 */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.hero-meta span + span::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    vertical-align: middle;
}

/* Botón de sonido (abajo a la derecha) */
.hero-sound-btn {
    position: absolute;
    right: 22px;
    bottom: 26px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: rgba(20, 20, 20, 0.55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-sound-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.08);
}

/* Pager de puntos */
.hero-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.hero-dot {
    pointer-events: auto;
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.4);
}

.hero-aurora { z-index: 0; }

/* ---------- Desktop: tarjeta redondeada como Netflix ---------- */
@media (min-width: 769px) {
    .navbar {
        padding: 14px 40px;
        background: #000;
        border-bottom: none;
    }

    .navbar .nav-menu { gap: 6px; }

    .navbar .nav-menu a {
        display: block;
        padding: 9px 16px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 500;
        color: #e5e5e5;
        transition: background 0.2s, color 0.2s;
    }

    .navbar .nav-menu a.active {
        background: #333;
        color: #fff;
        font-weight: 700;
    }

    .navbar .nav-menu a:hover { color: #fff; }

    .hero {
        height: min(72vh, 660px);
        min-height: 440px;
        margin: 84px 40px 0;
        padding: 0 56px;
        border-radius: 20px;
        overflow: hidden;
        background-color: #1a1a1a;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        align-items: flex-end;
        padding-bottom: 64px;
    }

    .hero-aurora, .hero-spotlight { display: none; }

    /* degradado lateral + inferior para que el texto se lea sobre el trailer */
    .hero-fade {
        top: 0;
        height: 100%;
        background:
            linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.18) 35%, transparent 55%),
            linear-gradient(0deg, rgba(0,0,0,0.45) 0%, transparent 30%);
    }

    .hero-content { max-width: 560px; }

    .hero-title {
        font-size: clamp(40px, 5.2vw, 72px);
        line-height: 1.05;
        margin-bottom: 14px;
    }

    .hero-description {
        font-size: 17px;
        margin-bottom: 22px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .btn-hero,
    .btn-hero-info {
        padding: 13px 28px;
        font-size: 18px;
        border-radius: 999px;
    }

    .btn-hero { font-weight: 700; }

    .btn-hero-info {
        background: rgba(109, 109, 110, 0.7);
        backdrop-filter: none;
    }

    .movie-showcase {
        margin-top: 28px;
        padding: 0 40px;
    }

    .movie-poster { border-radius: 10px; }
}
