/* ==========================================================================
   CEREBRINES - NETFLIX-STYLE MINIMALIST CINEMATIC INTERFACE
   ========================================================================== */

:root {
    --netflix-black: #141414;
    --netflix-dark: #181818;
    --netflix-card: #202020;
    --netflix-red: #e50914;
    --netflix-red-hover: #b80710;
    --netflix-green: #46d369;
    --text-white: #ffffff;
    --text-gray: #a3a3a3;
    --text-light-gray: #e5e5e5;
    
    --font-main: 'Netflix Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-title: 'Fredoka', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    background-color: var(--netflix-black);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.netflix-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 68px;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    transition: background-color 0.4s ease;
    background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.netflix-nav.scrolled {
    background-color: #141414;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--netflix-red);
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
}

.brand-logo span.dot {
    color: #ffffff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
}

@media (max-width: 850px) {
    .nav-links {
        display: none;
    }
}

.nav-links a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-white);
    font-weight: 700;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search-input {
    background-color: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-white);
    padding: 0.4rem 0.75rem 0.4rem 2rem;
    font-size: 0.85rem;
    border-radius: 4px;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.nav-search-wrap.open .nav-search-input {
    width: 220px;
    opacity: 1;
    pointer-events: auto;
}

.nav-search-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 4px;
    z-index: 2;
}

.kids-badge {
    background-color: transparent;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kids-avatar {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    background-color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ==========================================================================
   HERO BANNER (VIDEO CAROUSEL SHOWCASE)
   ========================================================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 82vh;
    min-height: 560px;
    max-height: 800px;
    overflow: hidden;
    background-color: var(--netflix-black);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-fallback-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Vignette / Shadows for Text Legibility */
.hero-overlay-vignette {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(77deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0) 85%),
        linear-gradient(to top, #141414 0%, rgba(20,20,20,0.7) 20%, rgba(20,20,20,0) 60%),
        linear-gradient(to bottom, rgba(20,20,20,0.8) 0%, rgba(20,20,20,0) 25%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 620px;
    padding-left: 4%;
    margin-top: 5rem;
}

.hero-tagline-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-tagline-top .n-symbol {
    color: var(--netflix-red);
    font-size: 1.3rem;
    font-weight: 900;
    font-family: var(--font-title);
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--text-white);
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    letter-spacing: -0.02em;
}

/* Slide Progress Indicators */
.hero-carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 4%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-dot {
    height: 5px;
    width: 44px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: width 0.3s ease, background 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.5);
    width: 65px;
}

.carousel-dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: var(--netflix-red);
    border-radius: 3px;
}

.carousel-dot.active .carousel-dot-progress {
    width: 100%;
    transition: width 5s linear;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
}

.hero-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-light-gray);
    margin-bottom: 1rem;
}

.meta-match {
    color: var(--netflix-green);
    font-weight: 700;
}

.meta-badge {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.45;
    color: var(--text-white);
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Netflix Primary Play Button */
.btn-netflix-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: #ffffff;
    color: #000000;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-netflix-play:hover {
    background-color: rgba(255,255,255,0.75);
}

.btn-netflix-play:active {
    transform: scale(0.97);
}

/* Netflix Info Button */
.btn-netflix-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background-color: rgba(109, 109, 110, 0.7);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.1s ease;
}

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

/* Floating Audio / Award Badges */
.hero-side-controls {
    position: absolute;
    right: 0;
    bottom: 25%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sound-pill {
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-sound-pill:hover {
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.award-badge {
    background-color: rgba(0,0,0,0.6);
    border-left: 3px solid var(--text-white);
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   ROWS & CAROUSELS (NETFLIX ROWS)
   ========================================================================== */
.netflix-rows-container {
    position: relative;
    z-index: 4;
    margin-top: -80px;
    padding-bottom: 5rem;
}

.content-row {
    margin-bottom: 3.5rem;
    padding: 0 4%;
}

.row-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.row-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-light-gray);
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: color 0.2s ease;
}

.row-title:hover {
    color: var(--text-white);
}

.row-subtitle {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Category Filter Bar */
.category-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0 4% 1.5rem 4%;
    scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-light-gray);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--text-white);
}

.filter-chip.active {
    background-color: var(--text-white);
    color: var(--netflix-black);
    border-color: var(--text-white);
    font-weight: 700;
}

/* Grid of Cards (16:9 Cinematic Widescreen) */
.netflix-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    row-gap: 2.5rem;
}

@media (max-width: 600px) {
    .netflix-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Cinematic Card Item */
.cinema-card {
    position: relative;
    border-radius: 6px;
    overflow: visible;
    cursor: pointer;
    background-color: var(--netflix-dark);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s 0.3s;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
}

.cinema-card:hover {
    transform: scale(1.1);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s 0s;
}

.card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    background-color: #262626;
}

.card-img-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s ease;
}

/* Netflix "TOP 10" Badge */
.top10-badge {
    position: absolute;
    top: 0;
    right: 0.5rem;
    background-color: var(--netflix-red);
    color: #ffffff;
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.25rem 0.4rem;
    border-radius: 0 0 3px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.top10-badge span {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
}

/* Bottom Label Badge (Recién agregado / Próximamente) */
.bottom-label-badge {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    background-color: var(--netflix-red);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.bottom-label-badge.badge-soon {
    background-color: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #e5e5e5;
}

/* Card Hover Quick Details */
.card-details-panel {
    background-color: var(--netflix-dark);
    padding: 0.85rem 1rem;
    border-radius: 0 0 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
}

.card-actions-quick {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quick-action-btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background-color: rgba(42,42,42,0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
}

.circle-btn:hover {
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.08);
}

.circle-btn.btn-play-quick {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.circle-btn.btn-play-quick:hover {
    background-color: rgba(255,255,255,0.8);
}

.card-title-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 0.2rem;
}

.card-meta-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-gray);
    font-weight: 600;
}

.card-category-list {
    font-size: 0.75rem;
    color: var(--text-light-gray);
    font-weight: 500;
}

/* ==========================================================================
   NETFLIX DETAILS MODAL OVERLAY
   ========================================================================== */
.netflix-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.75);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.netflix-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.netflix-modal-window {
    background-color: #181818;
    border-radius: 8px;
    width: 100%;
    max-width: 780px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0,0,0,0.9);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.netflix-modal-backdrop.active .netflix-modal-window {
    transform: translateY(0);
}

.modal-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #181818 0%, rgba(24,24,24,0.4) 40%, rgba(0,0,0,0) 80%);
}

.modal-close-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #181818;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background-color 0.2s ease;
}

.modal-close-icon:hover {
    background-color: #2a2a2a;
}

.modal-hero-content {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    right: 2rem;
    z-index: 3;
}

.modal-title-heading {
    font-family: var(--font-title);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.modal-body-content {
    padding: 2rem;
}

.modal-grid-cols {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 650px) {
    .modal-grid-cols {
        grid-template-columns: 1fr;
    }
}

.modal-synopsis {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-light-gray);
    margin-bottom: 1.25rem;
}

.modal-meta-sidebar {
    font-size: 0.88rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-meta-sidebar strong {
    color: var(--text-white);
}

.skills-pill-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.skill-netflix-tag {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-white);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal Beta Registration Box */
.modal-notify-card {
    background-color: #242424;
    border-radius: 6px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-notify-input {
    background-color: #141414;
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.modal-notify-input:focus {
    outline: none;
    border-color: var(--netflix-red);
}

/* ==========================================================================
   FOOTER (NETFLIX STYLE)
   ========================================================================== */
.netflix-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 4% 3rem 4%;
    color: var(--text-gray);
    font-size: 0.85rem;
}

.footer-contact-title {
    margin-bottom: 1.5rem;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.footer-nav-grid ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-nav-grid a {
    color: var(--text-gray);
    text-decoration: none;
}

.footer-nav-grid a:hover {
    text-decoration: underline;
}

.footer-lang-btn {
    border: 1px solid var(--text-gray);
    background: transparent;
    color: var(--text-gray);
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    font-size: 0.8rem;
}
