/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #141414;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}
header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #e50914;
}
header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}
header nav a:hover {
    color: #e50914;
}

/* Hero Banner */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('thumbnails/movie1.jpg') center/cover no-repeat;
}
.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}
.hero p {
    font-size: 20px;
    color: #ccc;
}

/* Movie Rows */
.movie-row {
    padding: 40px 20px;
}
.movie-row h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #e50914;
}
.movie-row-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 10px;
}
.movie-row-container::-webkit-scrollbar {
    height: 8px;
}
.movie-row-container::-webkit-scrollbar-thumb {
    background: #e50914;
    border-radius: 4px;
}

/* Movie Cards */
.movie-card {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #1c1c1c;
}
.movie-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}
.movie-card:hover img {
    transform: scale(1.05);
}
.movie-card .movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0));
    padding: 10px;
    text-align: center;
}
.movie-card h3 {
    margin-bottom: 5px;
    font-size: 16px;
}
.badge {
    display: inline-block;
    background-color: #f5a623;
    color: #000;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
}

/* Buttons */
button {
    background-color: #e50914;
    border: none;
    color: white;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}
button:hover {
    background-color: #f6121d;
}

/* Modal */
/* Modal Player Improvements */
.modal {
    display: none;
    position: fixed;
    top:0; left:0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95); /* darker background */
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px #000;
    background: black;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}
.close-btn:hover {
    background: rgba(255,255,255,0.3);
}
/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #141414;
    color: #777;
    font-size: 14px;
    border-top: 1px solid #333;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .movie-card {
        flex: 0 0 150px;
    }
}
