body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #1a1a1a;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    text-align: center;
    margin-bottom: 30px;
}

#searchInput {
    padding: 10px;
    width: 80%;
    max-width: 400px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #333;
    color: white;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

button:hover {
    background-color: #0056b3;
}

.results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.card p {
    font-size: 14px;
    color: #aaa;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#player {
    margin-top: 30px;
    aspect-ratio: 16/9;
    width: 100%;
}

iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

.season-form {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.season-form select {
    padding: 8px;
    margin: 5px;
    background-color: #444;
    border: 1px solid #555;
    color: white;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
}

@media (max-width: 600px) {
    .results {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .card img {
        height: 200px;
    }

    #searchInput {
        width: 70%;
    }
#nextEpisodeButton {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    display: none; /* Hidden by default */
}

#nextEpisodeButton:hover {
    background-color: #218838;
}
}