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

body {
    background: url('assets/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    color: #333333;
    overflow-x: hidden;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(255,127,80,0.8)), url('assets/series-bg.jpg') no-repeat center;
    background-size: cover;
    color: #fff;
}

header h1 {
    font-size: 3.8em;
    font-family: 'Playfair Display', serif;
    color: #ffd700;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

header p {
    font-size: 1.4em;
    color: #f0f0f0;
    margin-top: 15px;
}

/* Main Container */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Sections */
section {
    background: linear-gradient(135deg, #ffeedf, #e6f3ff);
    border-radius: 15px;
    padding: 30px;
    max-width: 960px;
    width: 95%;
    margin: 20px auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Titles */
h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #333333;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 2em;
}

/* Temporadas y Episodios */
.seasons, .episodes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.season, .episode {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.season:hover, .episode:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    background: linear-gradient(135deg, #ffd8a8, #ffeebb);
}

.season img, .episode img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.season img:hover, .episode img:hover {
    transform: scale(1.05);
}

/* Descriptions */
.season-description, .episode-description {
    color: #555555;
    font-size: 1.2em;
    line-height: 1.8;
    text-align: justify;
    margin: 20px 0;
}

/* Video Section */
.video-container {
    text-align: center;
    margin: 40px 0;
    background: linear-gradient(135deg, #f4e3d7, #d0f0ff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-description {
    margin-bottom: 20px;
    font-size: 1.3em;
    line-height: 1.8;
    color: #555555;
}

iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Botones */
button.back-button {
    background: linear-gradient(135deg, #ff7f50, #ff4500);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 1.2em;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

button.back-button:hover {
    background: linear-gradient(135deg, #ff4500, #ff7f50);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Footer */
footer {
    padding: 20px;
    background: #333333;
    color: #555555;
    text-align: center;
    border-top: 2px solid #ffc107;
}

.footer-links a {
    color: #555555;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #ff7f50;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }

    iframe {
        height: 300px;
    }

    .season-description, .episode-description {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

    iframe {
        height: 200px;
    }

    button.back-button {
        font-size: 1em;
        padding: 10px 15px;
    }
}
