.anime-hero {
    position: relative;

    width: 100%;
    height: 440px;

    background: #0d0d0f;
}


.anime-hero-background {
    position: absolute;

    inset: 0;

    background-size: cover;

    background-position: center 30%;
}


.anime-hero-shadow {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            #0d0d0f 0%,
            rgba(13,13,15,0.78) 30%,
            rgba(13,13,15,0.10) 100%
        );
}

.anime-details-container {
    width: 90%;
    max-width: 1500px;

    margin: auto;
}


.anime-details {
    position: relative;

    z-index: 10;

    display: flex;

    gap: 35px;

    margin-top: -145px;
}


.anime-poster {
    width: 250px;

    flex-shrink: 0;
}


.anime-poster img {
    width: 100%;

    aspect-ratio: 2 / 3;

    object-fit: cover;

    background: #17171b;

    box-shadow:
        0 20px 60px
        rgba(0,0,0,0.6);
}

.anime-information {
    max-width: 800px;

    padding-top: 70px;
}


.anime-status {
    display: inline-block;

    margin-bottom: 12px;

    color: #8b5cf6;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.anime-information h1 {
    margin-bottom: 15px;

    color: white;

    font-size: 44px;
}


.anime-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 20px;

    color: #a1a1aa;

    font-size: 13px;
}


.anime-description {
    max-width: 750px;

    margin-bottom: 25px;

    color: #c4c4cc;

    font-size: 15px;

    line-height: 1.7;
}

.anime-actions {
    margin-bottom: 28px;
}


.anime-watch-button {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 22px;

    background: #8b5cf6;

    color: white;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;

    transition: 0.2s;
}


.anime-watch-button:hover {
    background: #7c3aed;
}

.anime-extra {
    display: flex;

    flex-wrap: wrap;

    gap: 25px;

    color: #8b8b94;

    font-size: 12px;
}


.anime-extra strong {
    color: #d4d4d8;
}

.anime-ad {
    width: 90%;
    max-width: 1200px;

    margin: 70px auto;

    text-align: center;
}


.anime-ad > span {
    display: block;

    margin-bottom: 8px;

    color: #606069;

    font-size: 10px;
}


.anime-ad-placeholder {
    min-height: 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #17171b;

    border:
        1px dashed #303037;

    color: #606069;

    font-size: 12px;
}

.episodes-section {
    width: 90%;
    max-width: 1500px;

    margin: auto;

    padding-bottom: 100px;
}


.episodes-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 25px;
}


.episodes-header h2 {
    margin-top: 5px;

    font-size: 26px;
}


.season-select {
    min-width: 160px;

    padding: 11px 14px;

    border:
        1px solid #29292e;

    outline: none;

    background: #17171b;

    color: white;

    cursor: pointer;
}

.episodes-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;
}


.episode-item {
    min-height: 85px;

    display: flex;

    align-items: center;

    padding: 15px;

    background: #17171b;

    color: white;

    text-decoration: none;

    border:
        1px solid transparent;

    transition: 0.2s;
}


.episode-item:hover {
    background: #202025;

    border-color: #8b5cf6;
}


.episode-number {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    margin-right: 15px;

    background: #242429;

    color: #8b5cf6;

    font-size: 18px;
    font-weight: 800;
}


.episode-info {
    flex: 1;
}


.episode-info h3 {
    margin-bottom: 6px;

    font-size: 14px;
}


.episode-info p {
    color: #7f7f88;

    font-size: 11px;
}


.episode-play {
    margin-left: 15px;

    color: #8b5cf6;

    font-size: 18px;
}


.no-episodes {
    color: #71717a;

    font-size: 14px;
}

.anime-error {
    min-height: 70vh;

    display: none;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.anime-error.active {
    display: flex;
}


.anime-error h1 {
    margin-bottom: 10px;
}


.anime-error p {
    margin-bottom: 25px;

    color: #8b8b94;
}


.anime-error a {
    padding: 12px 20px;

    background: #8b5cf6;

    color: white;

    text-decoration: none;
}

@media (max-width: 800px) {

    .anime-hero {
        height: 330px;
    }


    .anime-details {
        flex-direction: column;

        margin-top: -90px;

        gap: 20px;
    }


    .anime-poster {
        width: 175px;
    }


    .anime-information {
        padding-top: 0;
    }


    .anime-information h1 {
        font-size: 34px;
    }


    .episodes-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 500px) {

    .anime-hero {
        height: 270px;
    }


    .anime-poster {
        width: 145px;
    }


    .anime-details-container,
    .episodes-section {
        width: 92%;
    }


    .anime-extra {
        flex-direction: column;

        gap: 8px;
    }


    .episodes-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }


    .season-select {
        width: 100%;
    }

}

.anime-favorite-button {
    min-height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid #393940;

    background: #17171b;

    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s;
}


.anime-favorite-button:hover {
    background: #242429;

    border-color: #8b5cf6;
}


.anime-favorite-button.active {
    background: #241a35;

    border-color: #8b5cf6;

    color: #a78bfa;
}

