html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f0f0f;
    color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.site-navbar {
    background-color: #141414 !important;
    border-bottom: 1px solid #2a2a2a;
}

.navbar-brand {
    font-weight: bold;
    color: #e50914 !important;
    letter-spacing: 0.5px;
}

.nav-link {
    color: #e5e5e5 !important;
    transition: all 0.3s ease;
    padding: 8px 12px !important;
    border-radius: 4px;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(246, 6, 18, 0.986);
}

.home-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 100px 0;
    text-align: center;
}

.home-section h1 {
    font-size: 2.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.home-section p {
    font-size: 1.25rem;
    color: #b3b3b3;
    margin-bottom: 2rem;
}

.hero-btn {
    background-color: #e50914;
    border-color: #e50914;
    padding: 0.75rem 2rem;
}

.hero-btn:hover {
    background-color: #b8070f;
    border-color: #b8070f;
}

.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background-color: #141414;
}

.section-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e50914;
    padding-left: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-header .section-title {
    margin-bottom: 0;
}

.age-badge {
    background-color: #e50914;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.movie-card {
    background-color: #1a1a1a;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.3);
}

.poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fixed size container for the poster area */
.poster-container {
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: #222;
    position: relative;
}

.poster-action {
    background: linear-gradient(160deg, #b31217, #e52d27);
}

.poster-series {
    background: linear-gradient(160deg, #0f2027, #203a43, #2c5364);
}

.poster-romantic {
    background: linear-gradient(160deg, #ff758c, #ff7eb3);
}

.poster-indian {
    background: linear-gradient(160deg, #f7971e, #ffd200);
    color: #1a1a1a;
}

.poster-adult {
    background: linear-gradient(160deg, #232526, #414345);
}

.movie-card .card-body {
    padding: 1rem;
}

.movie-card .card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #fff;
}

/* Custom UI Additions */
.form-control:focus {
    box-shadow: none;
    border-color: #e50914;
}

.btn-outline-secondary {
    border-color: #333;
    color: #bbb;
}

.btn-outline-secondary:hover {
    background-color: #222;
    border-color: #444;
}

.btn-xs {
    font-size: 0.75rem;
}

/* Series Overlay */
.series-card {
    border: 2px solid #0d6efd !important;
}

.series-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.movie-card:hover .series-overlay {
    opacity: 1;
}

.folder-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-top: 10px;
}

.episode-item {
    background: #222 !important;
    color: #fff !important;
    border-color: #333 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-radius: 4px !important;
}

.episode-item:hover {
    background: #333 !important;
}

/* Horizontal Scroll for Recent Section */
.recent-scroll-wrapper {
    position: relative;
    overflow: hidden;
}

.horizontal-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.horizontal-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal-scroll .col-6,
.horizontal-scroll .col-md-3 {
    flex: 0 0 auto;
}

@media (max-width: 768px) {

    .home-section {
        padding: 60px 0;
    }

    .home-section h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 40px 0;
    }

    .poster {
        font-size: 1.1rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #FFF;
    transform: translateY(-5px);
}

.whatsapp-icon {
    margin-right: 0;
}

.whatsapp-text {
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px;
    display: none;
}

.whatsapp-float:hover .whatsapp-text {
    display: inline;
}

/* Modal Styling */
#videoModal .modal-content {
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.4);
}

#videoPlayer {
    background-color: #000;
}
