/* 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: 'Gabriola', sans-serif;
    color: #333333;
    overflow-x: hidden;
}

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

header h1 {
    font-size: 3.8em;
    font-family: 'Gabriola', serif;
    color: #ffdd59;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

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

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

/* Sections */
section {
    background: rgba(255, 240, 190, 0.9);
    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: 'Gabriola', serif;
    color: #4c2a4d;
    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: 25px;
}

.season, .episode {
    background: rgba(76, 42, 77, 0.8);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    color: #ffffff;
}

.season:hover, .episode:hover {
    box-shadow: 0 8px 20px rgba(255, 221, 89, 0.7);
    transform: scale(1.05);
    background: rgba(255, 221, 89, 0.8);
    color: #4c2a4d;
}

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

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

/* Descriptions */
.season-description, .episode-description {
    color: #4c2a4d;
    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: rgba(255, 240, 190, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #4c2a4d;
}

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

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

/* Botones */
button.back-button {
    background: linear-gradient(135deg, #ffdd59, #4c2a4d);
    color: #ffffff;
    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(255, 221, 89, 0.8);
}

button.back-button:hover {
    background: linear-gradient(135deg, #4c2a4d, #ffdd59);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 221, 89, 1);
}

/* Footer */
footer {
    padding: 20px;
    background: #ffffff;
    color: #4c2a4d;
    text-align: center;
    border-top: 2px solid #ffdd59;
}

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

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

/* 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;
    }
}
