/* Prevent overscrolling while allowing scroll */
html, body {
    height: 100%; /* Ensure full height */
    margin: 0;
    overflow-y: scroll; /* Enable vertical scroll */
    overscroll-behavior-y: contain; /* Prevent overscroll */
}

/* Updated Theme Colors */
:root {
    --background-color: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    --header-color: #1e1e2e;
    --accent-color: #5a5aff;
    --accent-hover: #8478ff;
    --accent-dark: #3a3a7a;
    --text-color: #b0b0c0;
    --subtext-color: #8888aa;
    --input-background: #151520;
    --input-border: #33334d;
    --shadow-color: rgba(0, 0, 0, 0.7);
}

/* Base Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Logo Container */
.logo-container {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: rgba(30, 30, 50, 0.9);
    padding: 6px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Logo Styling */
.logo {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #8c82dc;
    transition: color 0.3s, transform 0.3s;
}

.logo:hover {
    color: #a68ceb;
}

/* Camera Icon Styling */
.camera-icon {
    font-size: 1.5rem;
    color: #9c6fb2;
    transition: transform 0.5s;
}

.logo:hover .camera-icon {
    transform: rotate(360deg);
}

/* Trending Media Button (Top Right) */
.trending-button {
    position: fixed;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e0f0;
    background-color: rgba(30, 30, 45, 0.9);
    border: 1px solid #33334d;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.trending-button:hover {
    background-color: var(--accent-dark);
    color: #c0c0d0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Centered Search Section - Adjusted Margin */
.search-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 180px;
}

/* Search Bar Styling */
.search-container {
    max-width: 500px;
    width: 90%;
    padding: 0;
    background-color: rgba(20, 20, 35, 0.95);
    border-radius: 25px;
    border: 1px solid var(--input-border);
    backdrop-filter: blur(8px);
    transition: transform 0.3s;
}

.search-container:hover {
    transform: translateY(-3px);
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 50px;
    background-color: var(--input-background);
    overflow: hidden;
}

.search-bar {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-color);
    border: none;
    outline: none;
}

.search-bar::placeholder {
    color: var(--accent-hover);
    opacity: 0.8;
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Scroll Buttons Styling */
.season-scroll-button {
    background: linear-gradient(135deg, #333353, #5a5a8f);
    color: #b0b0c0;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.season-scroll-button:hover {
    background: linear-gradient(135deg, #444466, #7878b5);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.scroll-left {
    margin-right: 8px;
}

.scroll-right {
    margin-left: 8px;
}

/* Mobile Responsive Styling */
@media (max-width: 600px) {
    .logo-container {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.3rem;
    }

    .camera-icon {
        font-size: 1.2rem;
    }

    .trending-button {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .search-main {
        margin-top: 120px;
    }

    .search-container {
        max-width: 90%;
        border-radius: 20px;
    }

    .search-bar {
        font-size: 0.9rem;
    }

    .search-icon {
        font-size: 1.2rem;
    }
}
/* Styling for Keep Watching Heading */
.keep-watching-container h2 {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px var(--shadow-color);
}

/* Accent Color for Part of the Heading */
.keep-watching-container h2 .accent {
    color: var(--accent-color);
    transition: color 0.3s ease;
}

.keep-watching-container h2:hover .accent {
    color: var(--accent-hover);
}
