.anime1-page {
    --anime1-accent: #ff72ba;
    --anime1-purple: #b891ff;
    background: #0b0b12;
}

.anime1-main {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 108px 0 90px;
}

.anime1-feature {
    position: relative;
    min-height: clamp(370px, 43vw, 570px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: #15131c;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.4);
}

.anime1-feature__image,
.anime1-feature__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.anime1-feature__image {
    object-fit: cover;
    object-position: center 35%;
    transition: opacity 0.25s ease;
}

.anime1-feature__shade {
    background:
        linear-gradient(90deg, rgba(8, 7, 12, 0.92) 0%, rgba(8, 7, 12, 0.62) 48%, rgba(8, 7, 12, 0.08) 100%),
        linear-gradient(0deg, rgba(8, 7, 12, 0.95) 0%, transparent 70%);
}

.anime1-feature__content {
    position: relative;
    z-index: 1;
    width: min(650px, 76%);
    padding: clamp(26px, 5vw, 62px);
}

.anime1-feature__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.anime1-feature__badges span {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(5, 5, 9, 0.75);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.anime1-feature__badges i {
    margin-right: 5px;
    color: var(--anime1-accent);
}

.anime1-eyebrow {
    margin: 0 0 9px;
    color: var(--anime1-purple);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.anime1-feature h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.08;
    text-wrap: balance;
}

.anime1-feature__description {
    display: -webkit-box;
    max-width: 640px;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.anime1-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.anime1-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff;
    font: 700 0.78rem var(--font-secondary);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.anime1-button:hover {
    transform: translateY(-2px);
}

.anime1-button--primary {
    background: linear-gradient(135deg, #ff5caa, #df48c7);
    box-shadow: 0 8px 24px rgba(236, 73, 178, 0.27);
}

.anime1-button--quiet {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(14, 13, 20, 0.7);
}

.anime1-feature__arrow {
    position: absolute;
    z-index: 2;
    top: 24px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(9, 9, 14, 0.72);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.anime1-feature__arrow:hover {
    background: rgba(255, 114, 186, 0.8);
}

.anime1-feature__arrow--previous {
    right: 72px;
}

.anime1-feature__arrow--next {
    right: 22px;
}

.anime1-feature__dots {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 22px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.anime1-feature__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.anime1-feature__dot.is-active {
    background: var(--anime1-accent);
    box-shadow: 0 0 0 4px rgba(255, 114, 186, 0.18);
}

.anime1-section,
.anime1-watch {
    margin-top: 54px;
    scroll-margin-top: 100px;
}

.anime1-section__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.anime1-section__heading h2 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.anime1-section__heading > a {
    color: var(--anime1-accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.anime1-section__heading > a:hover {
    color: #fff;
}

.anime1-section__heading > a i {
    margin-left: 5px;
}

.anime1-shelf {
    display: grid;
    grid-auto-columns: minmax(150px, 1fr);
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    scrollbar-color: rgba(255, 114, 186, 0.55) rgba(255, 255, 255, 0.06);
    scrollbar-width: thin;
}

.anime1-shelf__card {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.anime1-shelf__image-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: #17141e;
}

.anime1-shelf__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anime1-shelf__card:hover img,
.anime1-shelf__card:focus-visible img {
    transform: scale(1.05);
}

.anime1-shelf__play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 7, 12, 0.32);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.anime1-shelf__play i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--anime1-accent);
}

.anime1-shelf__card:hover .anime1-shelf__play,
.anime1-shelf__card:focus-visible .anime1-shelf__play {
    opacity: 1;
}

.anime1-shelf__episode {
    display: inline-block;
    margin-top: 9px;
    color: var(--anime1-purple);
    font-size: 0.67rem;
    font-weight: 700;
}

.anime1-shelf__title {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime1-catalog__heading {
    align-items: flex-end;
}

.anime1-search {
    position: relative;
    display: block;
    width: min(100%, 330px);
}

.anime1-search i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.anime1-search input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    outline: 0;
    background: #171620;
    color: #fff;
    font: inherit;
}

.anime1-search input:focus {
    border-color: var(--anime1-accent);
    box-shadow: 0 0 0 3px rgba(255, 114, 186, 0.12);
}

.anime1-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.anime1-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: #15141d;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.anime1-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 114, 186, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.anime1-card__poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #1d1a27;
    cursor: pointer;
}

.anime1-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.anime1-card:hover .anime1-card__poster img {
    transform: scale(1.045);
}

.anime1-card__episode-count {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(26, 116, 255, 0.93);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
}

.anime1-card__play {
    position: absolute;
    right: 11px;
    bottom: 11px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 91, 172, 0.93);
    color: #fff;
}

.anime1-card__content {
    padding: 13px;
}

.anime1-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px;
    color: var(--anime1-purple);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
}

.anime1-card__meta span {
    color: rgba(255, 255, 255, 0.5);
}

.anime1-card h3 {
    margin: 0;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.35;
}

.anime1-card__genres {
    margin: 7px 0 12px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
}

.anime1-card__details {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 9px 10px;
    border: 1px solid rgba(255, 114, 186, 0.24);
    border-radius: 8px;
    background: rgba(255, 114, 186, 0.07);
    color: #ffc2df;
    font: 700 0.72rem var(--font-secondary);
    cursor: pointer;
}

.anime1-card__details:hover {
    background: rgba(255, 114, 186, 0.16);
}

.anime1-watch {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: #121119;
}

.anime1-watch__episode {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
}

.anime1-watch__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 0.7fr);
    gap: 18px;
}

.anime1-watch__player {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #050509;
}

.anime1-watch__player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.anime1-watch__empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: radial-gradient(ellipse, rgba(45, 28, 58, 0.55), rgba(5, 5, 9, 0.92));
    color: rgba(255, 255, 255, 0.66);
    text-align: center;
}

.anime1-watch__empty i {
    color: var(--anime1-accent);
    font-size: 2rem;
}

.anime1-watch__empty p {
    margin: 0;
    font-size: 0.82rem;
}

.anime1-watch__empty--hidden {
    display: none;
}

.anime1-episodes {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #171620;
}

.anime1-episodes__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anime1-episodes__heading h3 {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
}

.anime1-episodes__heading span {
    color: var(--anime1-purple);
    font-size: 0.78rem;
    font-weight: 700;
}

.anime1-episodes__list {
    display: flex;
    max-height: 360px;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 10px;
}

.anime1-episode {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    cursor: pointer;
}

.anime1-episode:hover,
.anime1-episode.is-active {
    border-color: rgba(255, 114, 186, 0.35);
    background: rgba(255, 114, 186, 0.12);
    color: #fff;
}

.anime1-episode__number {
    color: var(--anime1-purple);
    font-size: 0.72rem;
    font-weight: 800;
}

.anime1-episode__title {
    overflow: hidden;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.anime1-episode > i {
    color: var(--anime1-accent);
    font-size: 0.66rem;
}

.anime1-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 30px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.anime1-watch__description {
    max-width: 850px;
    margin-top: 22px;
}

.anime1-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    line-height: 1.65;
}

.anime1-description--collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.anime1-description--expanded {
    display: block;
}

.anime1-description__toggle {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffacd1;
    font: 700 0.75rem var(--font-secondary);
    text-decoration: underline;
    cursor: pointer;
}

.anime1-description__toggle[hidden] {
    display: none;
}

@media (max-width: 1000px) {
    .anime1-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .anime1-main {
        width: min(100% - 28px, 620px);
        padding-top: 98px;
    }

    .anime1-feature {
        min-height: 480px;
        align-items: flex-end;
    }

    .anime1-feature__shade {
        background: linear-gradient(0deg, rgba(8, 7, 12, 0.97) 0%, rgba(8, 7, 12, 0.55) 65%, rgba(8, 7, 12, 0.08) 100%);
    }

    .anime1-feature__content {
        width: 100%;
        padding: 28px 22px 55px;
    }

    .anime1-feature__arrow {
        top: 14px;
    }

    .anime1-feature__arrow--next {
        right: 14px;
    }

    .anime1-feature__arrow--previous {
        right: 62px;
    }

    .anime1-section,
    .anime1-watch {
        margin-top: 40px;
    }

    .anime1-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .anime1-watch {
        padding: 17px;
    }

    .anime1-watch__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .anime1-main {
        width: calc(100% - 22px);
        padding-top: 96px;
    }

    .anime1-feature {
        min-height: 440px;
        border-radius: 12px;
    }

    .anime1-feature h2 {
        font-size: 2.1rem;
    }

    .anime1-feature__description {
        font-size: 0.82rem;
    }

    .anime1-section__heading,
    .anime1-catalog__heading {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .anime1-search {
        width: 100%;
    }

    .anime1-grid {
        gap: 10px;
    }

    .anime1-card__content {
        padding: 10px;
    }

    .anime1-card h3 {
        font-size: 0.88rem;
    }

    .anime1-shelf {
        grid-auto-columns: 145px;
        gap: 12px;
    }

    .anime1-watch__heading {
        align-items: flex-start;
    }
}
