/* Netflix-like Dark Theme & Layout */

/* Hero Section */
.hero-wrapper {
    position: relative;
    height: 85vh;
    /* Cinematic height */
    width: 100%;
    margin-bottom: -100px;
    /* Slight overlap with content */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #141414 0%, rgba(20, 20, 20, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 4%;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.45);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.7rem 2rem;
    margin-right: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.btn-info-circle {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

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

/* Content Rows */
.row-container {
    padding: 0 4%;
    /* margin-bottom: 3rem; */
    position: relative;
    z-index: 10;
}

.row-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e5e5e5;
    transition: color 0.2s;
}

.row-title:hover {
    color: white;
}

.row-scroll {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 3rem 1rem;
    /* Space for hover scale + right scroll button */
    /* Space for hover scale */
    scroll-behavior: smooth;
    position: static;
    /* Ensure no new stacking context relative to siblings if possible */
    /* z-index: auto; */
}

/* Hide Scrollbar */
.row-scroll::-webkit-scrollbar {
    display: none;
}

.row-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.movie-card {
    flex: 0 0 auto;
    width: 200px;
    /* Adjust based on preference */
    margin-right: 30px;
    position: relative;
    transition: transform 0.3s ease-in-out, z-index 0.3s;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1;
    /* Base z-index */
}

.movie-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* .movie-card:hover {
    transform: scale(1.3);
    z-index: 999;
} */

.row-backdrop-card {
    width: 300px;
}

/* Top 10 Badge Style */
.top-10-card {
    display: flex;
    align-items: center;
    width: 320px;
    position: relative;
    margin-right: -20px !important;
}

.provider-card {
    width: 100px;
    margin-right: 20px;
}

.provider-img-wrap {
    transition: transform 0.3s;
}

.provider-card:hover .provider-img-wrap {
    transform: scale(1.1);
}

.top-10-rank {
    font-size: 10rem;
    font-weight: 900;
    color: #000;
    -webkit-text-stroke: 4px #595959;
    position: relative;
    right: -20px;
    z-index: 50;
    line-height: 1;
}

.top-10-img {
    flex: 0 0 200px;
    z-index: 60;
}


/* Scroll Controls (Optional - Visible on Hover) */
.scroll-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4%;
    background: rgba(20, 20, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    /* Lower than hovered card */
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    font-size: 2rem;
}

.row-container:hover .scroll-handle {
    opacity: 1;
}

.scroll-left {
    left: 0;
}

.scroll-right {
    right: 0;
}

/* Continue Watching Progress */
.progress-bar-container {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    background: var(--netflix-red);
    height: 100%;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .row-container {
        padding: 0 2%;
        margin-bottom: 2rem;
    }

    .row-title {
        font-size: 1.2rem;
        margin-left: 10px;
    }

    .row-scroll {
        padding: 1.5rem 0.5rem;
    }

    .movie-card {
        width: 140px;
        margin-right: 12px;
    }

    .row-backdrop-card {
        width: 240px;
    }

    .top-10-card {
        width: 260px;
    }

    .top-10-rank {
        font-size: 6rem;
        right: -10px;
    }

    .top-10-img {
        flex: 0 0 140px;
    }

    .scroll-handle {
        display: none !important;
        /* Hide scroll arrows on touch devices */
    }

    .hero-content {
        bottom: 10%;
        left: 5%;
        max-width: 90%;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Fixed grid for search/media listing */
    .row>.col-6 {
        width: 50% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .row>.col-6 .movie-card {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 5px;
    }
}