/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #141414;
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #e50914;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1000;
}

header.scrolled {
    background-color: #000;
}

.header-left h1 {
    font-size: 1.8rem;
    color: #e50914;
    margin-right: 20px;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

nav a.active {
    font-weight: bold;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#searchInput {
    padding: 8px;
    width: 250px;
    border-radius: 4px;
    border: none;
    background-color: #333;
    color: #fff;
}

#searchButton {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px;
    margin-top: 70px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.hero-buttons button {
    padding: 10px 20px;
    margin-right: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.play-btn {
    background-color: #e50914;
    color: #fff;
}

.more-info-btn {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
}

/* Content Section Styles */
.content-section {
    padding: 40px 20px;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.content-slider {
    position: relative;
}

.movie-row {
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: 10px 0;
}

.movie {
    flex: 0 0 auto;
    width: 180px;
    height: 270px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie:hover {
    transform: scale(1.1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slider-arrow.left {
    left: 0;
}

.slider-arrow.right {
    right: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
    background-color: #181818;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
}

.close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.player-container {
    position: relative;
    padding-top: 56.25%;
    margin-top: 20px;
    background-color: #000;
}

#videoPlayer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.source-buttons {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.source-btn {
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.source-btn.active {
    background: #e50914;
}

.episode-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.episode-selector label {
    margin-right: 5px;
    color: #ccc;
}

.episode-selector select {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px;
}

.content-info {
    margin-top: 20px;
}

.content-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.content-meta span {
    color: #ccc;
}

footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    color: #ccc;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.footer-section {
    width: 30%;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 5px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    text-decoration: underline;
}

.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    overflow-y: auto;
}

.search-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 5% auto;
    background-color: #181818;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-header h2 {
    font-size: 1.5rem;
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}