.aap-home-content-panel {
    background: #333;
    border: 0;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.aap-home-content-panel > .aap-section-heading {
    align-items: center;
    background: #333;
    border-bottom: 3px solid var(--aap-accent);
    box-sizing: border-box;
    height: 51px;
    justify-content: center;
    margin: 0;
    padding: 0 15px;
}

.aap-home-content-panel > .aap-section-heading h2 {
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 500;
    gap: 9px;
    line-height: 22px;
    margin: 0;
    text-transform: uppercase;
}

.aap-home-content-panel > .aap-section-heading > a {
    display: none;
}

.aap-home-content-panel__body {
    box-sizing: border-box;
    height: calc(100% - 51px);
    overflow: hidden;
    padding: 15px;
    position: relative;
}

.aap-home-recommendations {
    height: 144px;
}

.aap-home-news {
    height: 402px;
}

.aap-home-videos {
    height: 368px;
}

.aap-home-announces {
    height: 361px;
}

.aap-home-collections {
    height: 248px;
}

.aap-recommendation-login {
    align-items: center;
    background: #272727;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    gap: 18px;
    height: 63px;
    justify-content: center;
    padding: 10px 16px;
    text-align: center;
}

.aap-recommendation-login p {
    color: #c4c4c4;
    font-size: 13px;
    line-height: 18px;
    margin: 0;
    max-width: 840px;
}

.aap-recommendation-login .aap-button {
    background: #3a3a3a;
    border-color: #4a4a4a;
    flex: 0 0 auto;
    height: 34px;
    min-width: 86px;
}

.aap-home-recommendations .aap-card-rail {
    height: 63px;
    margin: 0;
    padding: 0;
}

.aap-home-news-layout {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2fr);
    height: 100%;
}

.aap-home-news-card {
    background: #272727;
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}

.aap-home-news-card > a {
    display: block;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.aap-home-news-card img,
.aap-home-video-card__image > img {
    height: 100%;
    object-fit: cover;
    transition: filter .2s, transform .25s;
    width: 100%;
}

.aap-home-news-card:hover img,
.aap-home-video-cards article:hover img {
    filter: brightness(.78);
    transform: scale(1.025);
}

.aap-home-media-placeholder {
    align-items: center;
    background: #292929;
    color: #777;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.aap-home-news-card__copy {
    background: rgba(24, 24, 24, .9);
    bottom: 0;
    box-sizing: border-box;
    display: block;
    left: 0;
    padding: 11px 13px 13px;
    position: absolute;
    right: 0;
}

.aap-home-news-card__copy time,
.aap-home-news-card__copy strong,
.aap-home-news-card__copy small {
    display: block;
}

.aap-home-news-card__copy time {
    color: #aaa;
    font-size: 10px;
    line-height: 14px;
    margin-bottom: 4px;
}

.aap-home-news-card__copy strong {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 600;
    line-height: 19px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.aap-home-news-card__copy small {
    color: #b8b8b8;
    display: -webkit-box;
    font-size: 11px;
    line-height: 16px;
    margin-top: 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.aap-home-news-list {
    background: #272727;
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}

.aap-home-news-list nav {
    align-items: center;
    border-bottom: 1px solid #3a3a3a;
    display: flex;
    gap: 4px;
    height: 43px;
    overflow: hidden;
    padding: 0 10px;
}

.aap-home-news-list nav a {
    border-bottom: 2px solid transparent;
    color: #aaa;
    font-size: 11px;
    line-height: 41px;
    padding: 0 9px;
    white-space: nowrap;
}

.aap-home-news-list nav a:hover,
.aap-home-news-list nav a.is-active {
    border-bottom-color: var(--aap-accent);
    color: #fff;
}

.aap-home-news-list > div {
    box-sizing: border-box;
    display: grid;
    grid-template-rows: repeat(5, minmax(0, 1fr));
    height: 278px;
    padding: 4px 8px;
}

.aap-home-news-list > div > a {
    align-items: center;
    border-top: 1px solid #363636;
    display: grid;
    gap: 9px;
    grid-template-columns: 46px minmax(0, 1fr) 44px;
    min-height: 0;
    padding: 4px;
}

.aap-home-news-list > div > a:first-child {
    border-top: 0;
}

.aap-home-news-list > div > a:hover {
    background: #303030;
}

.aap-home-news-list > div > a > img,
.aap-home-news-list > div > a > span {
    align-items: center;
    background: #333;
    border-radius: 4px;
    display: flex;
    height: 43px;
    justify-content: center;
    object-fit: cover;
    width: 46px;
}

.aap-home-news-list > div > a > b {
    display: -webkit-box;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.aap-home-news-list > div > a > time {
    color: #888;
    font-size: 10px;
    text-align: right;
}

.aap-home-news-list > div > p {
    align-items: center;
    color: #888;
    display: flex;
    font-size: 12px;
    grid-row: 1 / -1;
    justify-content: center;
    margin: 0;
    text-align: center;
}

.aap-home-video-layout {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 3fr) minmax(245px, 1fr);
    height: 100%;
}

.aap-home-video-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: 100%;
}

.aap-home-video-cards article {
    background: #272727;
    border-radius: 6px;
    min-width: 0;
    overflow: hidden;
}

.aap-home-video-cards article > a {
    box-sizing: border-box;
    display: block;
    height: 100%;
    padding-bottom: 9px;
}

.aap-home-video-card__image {
    background: #292929;
    display: block;
    height: 194px;
    overflow: hidden;
    position: relative;
}

.aap-home-video-card__image > i {
    align-items: center;
    background: rgba(255, 102, 102, .92);
    border-radius: 50%;
    display: flex;
    height: 42px;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
}

.aap-home-video-card__image > i .aap-icon {
    fill: #fff;
    margin-left: 2px;
}

.aap-home-video-cards article strong,
.aap-home-video-cards article small {
    display: block;
    margin-left: 11px;
    margin-right: 11px;
}

.aap-home-video-cards article strong {
    display: -webkit-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.aap-home-video-cards article small {
    color: #999;
    font-size: 10px;
    line-height: 14px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-video-partners {
    align-items: center;
    background: #272727;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    text-align: center;
}

.aap-home-video-partners > strong {
    font-size: 15px;
}

.aap-home-video-partners > p {
    color: #aaa;
    font-size: 11px;
    line-height: 17px;
    margin: 8px 0 15px;
    max-width: 240px;
}

.aap-home-video-partners > div {
    display: flex;
    justify-content: center;
    margin-bottom: 17px;
    min-height: 42px;
    padding-left: 10px;
}

.aap-home-video-partners > div > span {
    align-items: center;
    background: #3a3a3a;
    border: 2px solid #272727;
    border-radius: 50%;
    display: flex;
    height: 42px;
    justify-content: center;
    margin-left: -10px;
    overflow: hidden;
    width: 42px;
}

.aap-home-video-partners > div img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.aap-home-video-partners .aap-button {
    background: #383838;
    border-color: #484848;
    height: 34px;
}

.aap-home-announces .aap-home-content-panel__body {
    overflow: hidden;
}

.aap-home-announces .aap-card-rail {
    gap: 10px;
    grid-auto-columns: 200px;
    height: 280px;
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    scroll-snap-type: none;
}

.aap-home-announces .aap-card-rail > div,
.aap-home-announces .aap-anime-card,
.aap-home-announces .aap-anime-card__poster {
    height: 280px;
}

.aap-home-announces .aap-anime-card {
    position: relative;
}

.aap-home-announces .aap-anime-card__poster {
    border-radius: 8px;
}

.aap-home-announces .aap-anime-card__body {
    background: rgba(18, 18, 18, .75);
    bottom: 0;
    left: 0;
    padding: 10px;
    position: absolute;
    right: 0;
    z-index: 3;
}

.aap-home-announces .aap-anime-card__body h3 {
    font-size: 14px;
    font-weight: 500;
    line-height: 19px;
    min-height: 0;
    text-align: center;
}

.aap-home-announces .aap-anime-card__body h3 a {
    -webkit-line-clamp: 3;
}

.aap-home-announces .aap-anime-card__body p,
.aap-home-announces .aap-anime-card__play {
    display: none;
}

.aap-home-announces .aap-anime-card__rating {
    background: #3cce7b;
    font-size: 14px;
    line-height: 28px;
    min-height: 28px;
}

.aap-home-announces .aap-anime-card__rating .aap-icon {
    color: #fff;
    fill: #fff;
}

.aap-home-announces .aap-skeleton-card > span,
.aap-home-announces .aap-skeleton-card > small {
    display: none;
}

.aap-home-rail-button {
    align-items: center;
    background: rgba(39, 39, 39, .84);
    border: 0;
    cursor: pointer;
    display: flex;
    height: 54px;
    justify-content: center;
    padding: 0;
    position: absolute;
    top: calc(50% - 27px);
    width: 32px;
    z-index: 6;
}

.aap-home-rail-button.is-prev {
    border-radius: 0 10px 10px 0;
    left: 0;
}

.aap-home-rail-button.is-next {
    border-radius: 10px 0 0 10px;
    right: 0;
}

.aap-home-collection-rail {
    display: grid;
    gap: 10px;
    grid-auto-columns: 320px;
    grid-auto-flow: column;
    height: 167px;
    overflow-x: auto;
    scrollbar-width: none;
}

.aap-home-collection-rail::-webkit-scrollbar {
    display: none;
}

.aap-home-collection-rail > a {
    background: #272727;
    border-radius: 6px;
    display: block;
    height: 167px;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.aap-home-collection-rail > a > span {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100%;
    overflow: hidden;
}

.aap-home-collection-rail > a > span img {
    height: 167px;
    object-fit: cover;
    width: 100%;
}

.aap-home-collection-rail > a > span > i {
    grid-column: 1 / -1;
}

.aap-home-collection-rail > a > b {
    background: rgba(18, 18, 18, .82);
    bottom: 0;
    box-sizing: border-box;
    display: block;
    left: 0;
    padding: 10px 12px;
    position: absolute;
    right: 0;
}

.aap-home-collection-rail > a > b > strong,
.aap-home-collection-rail > a > b > small {
    display: block;
}

.aap-home-collection-rail > a > b > strong {
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-collection-rail > a > b > small {
    color: #aaa;
    font-size: 10px;
    line-height: 14px;
    margin-top: 2px;
}

@media (max-width: 820px) {
    .aap-home-content-panel {
        margin-bottom: 10px !important;
    }

    .aap-home-live-grid {
        margin-bottom: 6px;
    }

    .aap-home-recommendations {
        margin-top: 0;
    }

    .aap-home-content-panel > .aap-section-heading {
        height: 51px;
        justify-content: flex-start;
        padding: 0 18px;
    }

    .aap-home-content-panel > .aap-section-heading h2 {
        font-size: 16px;
    }

    .aap-home-content-panel__body {
        height: calc(100% - 51px);
        padding: 10px;
    }

    .aap-home-recommendations {
        height: 178px;
    }

    .aap-home-news {
        height: 1058px;
    }

    .aap-home-videos {
        height: 1222px;
    }

    .aap-home-announces {
        height: 295px;
    }

    .aap-home-collections {
        height: 238px;
    }

    .aap-recommendation-login {
        flex-direction: column;
        gap: 9px;
        height: 107px;
        padding: 9px 13px;
    }

    .aap-recommendation-login p {
        font-size: 12px;
        line-height: 17px;
        max-width: 330px;
    }

    .aap-recommendation-login .aap-button {
        height: 32px;
    }

    .aap-home-news-layout {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .aap-home-news-list {
        display: none;
    }

    .aap-home-news-card__copy {
        padding: 14px 15px 16px;
    }

    .aap-home-news-card__copy strong {
        font-size: 16px;
        line-height: 22px;
    }

    .aap-home-news-card__copy small {
        font-size: 12px;
        line-height: 17px;
    }

    .aap-home-video-layout {
        display: block;
    }

    .aap-home-video-cards {
        gap: 10px;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        height: 1151px;
    }

    .aap-home-video-card__image {
        height: calc(100% - 76px);
        min-height: 0;
    }

    .aap-home-video-cards article > a {
        height: 100%;
    }

    .aap-home-video-cards article strong {
        font-size: 14px;
        line-height: 19px;
        margin-top: 8px;
        -webkit-line-clamp: 1;
    }

    .aap-home-video-cards article small {
        font-size: 11px;
        line-height: 15px;
    }

    .aap-home-video-partners {
        display: none;
    }

    .aap-home-announces .aap-card-rail {
        gap: 10px;
        grid-auto-columns: 160px;
        height: 224px;
        overflow-x: auto;
    }

    .aap-home-announces .aap-card-rail > div,
    .aap-home-announces .aap-anime-card,
    .aap-home-announces .aap-anime-card__poster {
        height: 224px;
    }

    .aap-home-announces .aap-anime-card__body {
        padding: 8px;
    }

    .aap-home-announces .aap-anime-card__body h3 {
        font-size: 12px;
        line-height: 16px;
    }

    .aap-home-announces .aap-anime-card__rating {
        font-size: 13px;
        line-height: 26px;
        min-height: 26px;
    }

    .aap-home-rail-button {
        display: none;
    }

    .aap-home-collection-rail {
        grid-auto-columns: 320px;
        height: 167px;
    }
}

@media (max-width: 370px) {
    .aap-home-collection-rail {
        grid-auto-columns: 300px;
    }
}

.aap-recommendation-login {
    background: transparent;
    border-radius: 0;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

.aap-recommendation-login .aap-button {
    font-size: 11px;
    height: 28px;
    min-width: 72px;
    padding: 0 13px;
}

.aap-home-news-card:nth-of-type(3),
.aap-home-video-cards article:nth-child(4) {
    display: none;
}

.aap-home-news-card__copy {
    min-height: 126px;
}

.aap-home-news-card__author {
    align-items: center;
    color: #aaa;
    display: grid;
    font-size: 10px;
    font-style: normal;
    gap: 6px;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    height: 18px;
    line-height: 14px;
    margin-top: 7px;
}

.aap-home-news-card__author > img,
.aap-home-news-card__author > i {
    align-items: center;
    background: #3b3b3b;
    border-radius: 50%;
    display: flex;
    height: 18px;
    justify-content: center;
    object-fit: cover;
    width: 18px;
}

.aap-home-news-card__author > b {
    color: #d58bd9;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-news-card__author > time {
    color: #aaa;
    font-size: 10px;
    margin: 0;
}

.aap-home-news-list nav {
    gap: 7px;
    padding: 8px;
}

.aap-home-news-list nav a {
    background: #555;
    border: 0;
    border-radius: 4px;
    color: #fff;
    flex: 1 1 0;
    font-size: 9px;
    height: 27px;
    line-height: 27px;
    min-width: 0;
    overflow: hidden;
    padding: 0 4px;
    text-align: center;
    text-overflow: ellipsis;
}

.aap-home-news-list nav a:hover,
.aap-home-news-list nav a.is-active {
    background: var(--aap-accent);
    border: 0;
}

.aap-home-news-list > div > a {
    gap: 8px;
    grid-template-columns: 58px minmax(0, 1fr) 38px;
}

.aap-home-news-list > div > a > .aap-home-news-list__tag {
    background: var(--aap-accent);
    border-radius: 4px;
    color: #fff;
    display: block;
    font-size: 8px;
    font-weight: 700;
    height: 16px;
    line-height: 16px;
    overflow: hidden;
    padding: 0 5px;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    width: 58px;
}

.aap-home-video-cards article > a {
    padding-bottom: 7px;
}

.aap-home-video-card__image {
    height: 184px;
}

.aap-home-video-cards article strong {
    margin-left: 10px;
    margin-right: 10px;
}

.aap-home-video-card__meta {
    align-items: center;
    color: #aaa;
    display: grid;
    gap: 7px;
    grid-template-columns: 26px minmax(0, 1fr);
    margin: 5px 10px 0;
}

.aap-home-video-card__meta > img,
.aap-home-video-card__meta > i {
    align-items: center;
    background: #3b3b3b;
    border-radius: 50%;
    display: flex;
    height: 26px;
    justify-content: center;
    object-fit: cover;
    width: 26px;
}

.aap-home-video-card__meta b,
.aap-home-video-card__meta em {
    display: block;
    font-size: 9px;
    font-style: normal;
    font-weight: 400;
    line-height: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-video-card__meta b {
    color: #d58bd9;
}

.aap-home-video-partners {
    justify-content: flex-start;
    padding: 8px;
}

.aap-home-video-partners > nav {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.aap-home-video-partners > nav > a {
    align-items: center;
    background: #555;
    border-radius: 4px;
    display: flex;
    font-size: 9px;
    height: 27px;
    justify-content: center;
    overflow: hidden;
    padding: 0 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-video-partners > nav > a:hover,
.aap-home-video-partners > nav > a.is-active {
    background: var(--aap-accent);
}

.aap-home-video-partners > .aap-home-video-partners__count {
    color: #ddd;
    font-size: 10px;
    line-height: 14px;
    margin: 12px 0 7px;
}

.aap-home-video-partners > div {
    margin: 0 0 8px;
    min-height: 30px;
    padding-left: 7px;
}

.aap-home-video-partners > div > span {
    height: 30px;
    margin-left: -7px;
    width: 30px;
}

.aap-home-video-partners > .aap-home-video-partners__cta {
    color: #ddd;
    font-size: 10px;
    line-height: 14px;
    margin: 0 0 8px;
    max-width: 235px;
}

.aap-home-video-partners .aap-button {
    font-size: 10px;
    height: 28px;
}

.aap-home-announces .aap-anime-card__rating {
    display: none;
}

.aap-home-announces .aap-anime-card__catalog {
    align-items: center;
    background: rgba(28, 28, 28, .82);
    border-radius: 6px;
    display: flex;
    height: 28px;
    justify-content: center;
    right: 8px;
    top: 8px;
    width: 28px;
}

@media (max-width: 820px) {
    .aap-recommendation-login {
        gap: 8px;
        padding: 0;
    }

    .aap-recommendation-login p {
        font-size: 16px;
        line-height: 22px;
    }

    .aap-recommendation-login .aap-button {
        font-size: 14px;
        height: 30px;
        min-width: 80px;
    }

    .aap-home-news-layout {
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .aap-home-news-card:nth-of-type(3),
    .aap-home-video-cards article:nth-child(4) {
        display: block;
    }

    .aap-home-news-card__copy {
        min-height: 126px;
        padding: 11px 10px 10px;
    }

    .aap-home-news-card__copy strong {
        font-size: 14px;
        line-height: 19px;
    }

    .aap-home-news-card__copy small {
        font-size: 12px;
        line-height: 17px;
        -webkit-line-clamp: 2;
    }

    .aap-home-video-cards {
        grid-template-rows: repeat(4, minmax(0, 1fr));
    }

    .aap-home-video-card__image {
        height: 174px;
    }

    .aap-home-video-cards article strong {
        font-size: 14px;
        line-height: 19px;
        -webkit-line-clamp: 2;
    }

    .aap-home-video-card__meta {
        margin-top: 5px;
    }

    .aap-home-announces .aap-anime-card__catalog {
        height: 26px;
        right: 6px;
        top: 6px;
        width: 26px;
    }
}

.aap-home-news-card__copy {
    background: #272727;
}

.aap-recommendation-login .aap-button {
    background: #666;
    border: 0;
    border-radius: 14px;
    color: #fff;
}

.aap-recommendation-login .aap-button:hover {
    background: #777;
}

@media (max-width: 820px) {
    .aap-home-content-panel > .aap-section-heading h2 > .aap-icon {
        display: none;
    }

    .aap-recommendation-login p {
        max-width: none;
        width: 100%;
    }

    .aap-home-content-panel > .aap-section-heading h2 {
        gap: 0;
    }
}
