:root {
    --netflix-red: #E50914;
    --dark-bg: #141414;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    width: 100%;
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
overflow-x: visible;}

a {
    text-decoration: none;
    color: #e5e5e5;
    transition: color 0.3s;
}

a:hover {
    color: #b3b3b3;
}
.hero {
    transition: background-image 0.5s ease-in-out;
    width: 100%;
    margin-top: 5rem;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 4%;
    background-size: cover;
    align-items: center;
    background-position: center;
    margin-bottom: 2px;
}

.hero h1 {
    font-size: 3rem;
}

.hero p {
    max-width: 500px;
    color: #ccc;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    height: 70px;
    z-index: 1000;
    background-color: var(--dark-bg);
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 92px;
    margin-right: 25px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.nav-links .active {
    font-weight: bold;
    color: white;
}

.icon {
    font-size: 20px;
    cursor: pointer;
}

.kids-link {
    font-size: 14px;
}

.nav-notification {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--netflix-red);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.profile-icon {
    width: 32px;
    border-radius: 4px;
}

/* Sliders */
.sliders-container {
    padding: 0 4%;
    padding-top: 100px;
    /* Space for navbar */
    position: relative;
    z-index: 3;
    padding-bottom: 100px;
}

.slider-section {
    margin-bottom: 3.5vw;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0;
}

.slider-title {
    margin-top: 5px;
    font-size: 1.20vw;
    font-weight: bold;
    color: #e5e5e5;
    line-height: 1.25vw;
}

.slider-indicators {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.slider-indicators div {
    width: 12px;
    height: 2px;
    background-color: #4d4d4d;
}

.slider-indicators div.active {
    background-color: #aaa;
}

.movie-row {
    display: flex;
    gap: 8px;
    max-width: 100%;
    /* Small gap between movie cards */
    overflow-x: visible;
    /* Let the expanded cards paint outside this box vertically */
    padding: 10px 4% 50px 4%;
    /* Added bottom padding to hold the expanding modal */
    margin: 0 -4%;
    /* Pull edges back out so we don't double up padding from container */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.movie-row::-webkit-scrollbar {
    display: none;
}

.movie-card {
    min-width: 250px;
    width: 250px;
    height: 140px;
    background-color: #222;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0s, border-radius 0.3s 0s, z-index 0s 0.3s, box-shadow 0.3s 0s;
    position: relative;
    z-index: 1;
    transform-origin: center center;
    /* Default origin */
}

/* Modifiers applied by JavaScript to prevent edge clipping */
.movie-card.origin-left {
    transform-origin: left center;
}

.movie-card.origin-right {
    transform-origin: right center;
}

.movie-card:hover {
    transform: scale(1.6) translateY(-5%);
    /* Reduced vertical translation since container has more padding */
    z-index: 99;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s, border-radius 0.3s 0.6s, box-shadow 0.3s 0.6s, z-index 0s 0s;
}

.movie-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease, border-radius 0.3s;
    z-index: 2;
}

.movie-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border-radius: 4px;
    transition: opacity 0.3s ease, border-radius 0.3s;
    pointer-events: none;
    z-index: 1;
}

.movie-card iframe.playing {
    width: 100%;
    opacity: 1;
    z-index: 3;
    border-radius: 6px 6px 0 0;
}

.movie-card:hover img {
    border-radius: 6px 6px 0 0;
    transition: border-radius 0s 0.6s;
}

.movie-card img.playing-video {
    opacity: 0;
}

/* Card Details Modal */
.card-details {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #181818;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 18px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s 0s, visibility 0.3s 0s;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
    cursor: default;
}

.movie-card:hover .card-details {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s 0.6s, visibility 0s 0.6s;
}

.details-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-buttons,
.right-buttons {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s, background-color 0.2s;
}

.btn-icon:hover {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-play-icon {
    background-color: white;
    color: black;
    border: none;
}

.btn-play-icon:hover {
    background-color: #e6e6e6;
}

.btn-play-icon i {
    margin-left: 2px;
}

.details-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: bold;
}

.match-score {
    color: #46d369;
}

.age-badge {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1px 3px;
    border-radius: 2px;
    font-family: Arial, sans-serif;
}

.age-badge.red-accent {
    background-color: #d32f2f;
    border: none;
    font-weight: bold;
}

.resolution {
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1px 3px;
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.9);
}

.duration {
    color: rgba(255, 255, 255, 0.9);
}

.details-tags {
    display: flex;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
}

.details-tags span:not(:last-child)::after {
    content: "•";
    color: #666;
    margin-left: 6px;
}

/* Badges */
.badge-top10 {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 28px;
    background-color: var(--netflix-red);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    z-index: 4;
    border-bottom-left-radius: 2px;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.badge-top10 span.top {
    font-size: 7px;
    letter-spacing: 0.5px;
    line-height: 8px;
}

.badge-top10 span.number {
    font-size: 13px;
    line-height: 13px;
}

.badge-bottom {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 4px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 2px;
    z-index: 4;
    white-space: nowrap;
    text-transform: uppercase;
}

.movie-card.has-progress .badge-bottom {
    bottom: 12px;
}

.badge-bottom.red {
    background-color: var(--netflix-red);
    color: white;
}

.badge-bottom.white {
    background-color: white;
    color: black;
}

/* Progress bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(100, 100, 100, 0.7);
    z-index: 5;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.progress-value {
    height: 100%;
    background-color: var(--netflix-red);
    border-bottom-left-radius: 4px;
}
.movie-card iframe {
        width: 100%;

}


/* Mobile adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .movie-card {
        min-width: 250px;
        width: 250px;
        height: 125px;

    }

    .slider-title {
        font-size: 6vw;
        margin-bottom: 1px;
        line-height: 4.5vw;
    }

    #main-content, .slider-section{
            max-width: 100%;
            align-items: center;
            padding: 6px;
                            margin: 0;

}


.movie-row {
                max-width: 100%;
                margin: 0;
                height: 235px;
                overflow-x: auto;
                align-items: center;
             padding-top: 5px;
    padding-bottom: 80px;
}
.btn-icon {
    width: 10px;
    height: 15px;
    padding: 10px;
}
.progress-value {
    font-size: 10px;
}
.movie-card:hover {
    transform: scale(1.1) translateY(-10px);
}
.card-details {
    height: 73px;
         padding: 10px 8px;
         gap: 6px;
     }
     .btn-icon {
         width: 24px;
         height: 24px;
         font-size: 12px;
         padding: 0;
     }
     .details-info {
         font-size: 9px;
         gap: 4px;
         flex-wrap: wrap;
     }
     .details-tags {
         margin-top: 0;
         font-size: 5px;
     }
     .movie-card:hover {
         transform: scale(1.15) translateY(-2px); /* Reduz escala para caber melhor */
     }

/* Footer */
footer {
    padding: 0 4%;
    color: #737373;
    font-size: 13px;
    margin-bottom: 20px;
}

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

.footer-content p {
    margin-bottom: 30px;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
}

.footer-links a {
    color: #737373;
}

.footer-links a:hover {
    text-decoration: underline;
}
}
@media (max-width: 768px) {

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}
