* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: #0f171e;
    color: #fff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.navbar {
    background-color: transparent;
    padding: 1.2rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(15, 23, 30, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo {
    color: #e50914;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.logo .tagline {
    font-size: 0.8rem;
    color: #fff;
    text-transform: none;
    font-weight: normal;
    opacity: 0.8;
    margin-top: 2px;
}

.logo:hover {
    opacity: 0.8;
}

.search-container {
    position: relative;
}

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 2.5rem;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-bar input:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.5);
}

.search-bar i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 30, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    color: #fff;
}

.search-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-poster {
    width: 50px;
    height: 75px;
    border-radius: 4px;
    object-fit: cover;
}

.search-item-info {
    flex: 1;
}

.search-item-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #fff;
}

.search-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #90caf9;
}

.search-item-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.search-item-rating i {
    color: #ffd700;
    font-size: 0.8rem;
}

.search-message {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.search-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-section {
    height: 90vh;
    background-size: cover;
    background-position: center 20%;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    transition: background-image 0.5s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 30, 1) 0%,
        rgba(15, 23, 30, 0.7) 50%,
        rgba(15, 23, 30, 0.4) 100%
    );
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-logo {
    max-width: 500px;
    max-height: 200px;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #90caf9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-meta i {
    color: #ffd700;
}

.watch-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background-color: #e50914;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: none;
}

.watch-button:hover {
    background-color: #f40612;
    transform: scale(1.05);
}

.watch-button i {
    font-size: 1.4rem;
}

.movie-section {
    position: relative;
    margin-bottom: 2rem;
}

.movie-row {
    display: flex;
    gap: 1.2rem;
    padding: 0 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding: 1rem 2rem;
    scroll-padding: 2rem;
}

.movie-row::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.movie-card {
    flex: 0 0 auto;
    width: 200px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #1a242f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.movie-card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
}

.movie-info {
    padding: 1rem;
    background: linear-gradient(to top, #1a242f 80%, transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-info {
    transform: translateY(0);
}

.movie-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #90caf9;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.movie-year {
    color: rgba(255, 255, 255, 0.7);
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.movie-section:hover .scroll-button {
    opacity: 1;
}

.scroll-button:hover {
    background-color: rgba(229, 9, 20, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.movie-section::before,
.movie-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.movie-section::before {
    left: 0;
    background: linear-gradient(to right, #0f171e, transparent);
}

.movie-section::after {
    right: 0;
    background: linear-gradient(to left, #0f171e, transparent);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
}

.platform-select:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.2);
}

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
}

.scroll-top:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .title-logo {
        max-width: 400px;
        max-height: 160px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo .tagline {
        font-size: 0.7rem;
    }

    .search-bar {
        width: 200px;
    }

    .search-results {
        position: fixed;
        top: 60px;
        left: 1rem;
        right: 1rem;
        max-height: calc(100vh - 80px);
    }

    .hero-section {
        height: 80vh;
        align-items: flex-end;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .title-logo {
        max-width: 300px;
        max-height: 120px;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-meta {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .watch-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .title-logo {
        max-width: 250px;
        max-height: 100px;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .watch-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

.cast-section {
    padding: 2rem;
    color: #fff;
}

.cast-section .section-title {
    color: #e50914;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.cast-member {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cast-member-photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.cast-member-info {
    flex: 1;
}

.cast-member-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #fff;
}

.cast-member-character {
    font-size: 0.9rem;
    color: #aaa;
}

/* Add styles for action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    padding: 10px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.action-buttons::-webkit-scrollbar {
    display: none;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.action-btn.active {
    background: #e50914;
}

/* Add styles for favorites and recently watched sections */
.favorites-section,
.recently-watched-section {
    margin-top: 2rem;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #aaa;
}
