.type-portal-body {
    background:
        radial-gradient(circle at 1px 1px, rgba(204, 211, 220, 0.34) 0 2px, transparent 2.2px) 0 0 / 128px 128px repeat,
        linear-gradient(rgba(210, 218, 227, 0.22) 1px, transparent 1px) 0 0 / 128px 128px repeat,
        linear-gradient(90deg, rgba(210, 218, 227, 0.22) 1px, transparent 1px) 0 0 / 128px 128px repeat,
        repeating-linear-gradient(45deg, rgba(235, 239, 244, 0.34) 0 1px, transparent 1px 22px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 251, 0.96)),
        url(../images/anime-home/site-background-texture.png) top center / 640px auto repeat fixed;
}

.type-portal-body .section-panel::after,
.type-portal-body .bread-crumb-nav::after {
    display: none;
}

.type-portal-body .section-panel,
.type-portal-body .bread-crumb-nav {
    background: rgba(255, 255, 255, 0.94);
}

.type-portal {
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto 0;
}

.type-portal__eyebrow {
    display: inline-block;
    color: var(--site-pink-strong);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.type-portal__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.type-portal__heading h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.12;
}

.type-portal__heading p {
    max-width: 540px;
    margin: 0;
    color: var(--site-ink-soft);
    font-size: 14px;
    line-height: 1.9;
}

.type-hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 420px;
    gap: 24px;
    align-items: center;
    padding: 30px;
    background:
        radial-gradient(circle at top left, rgba(255, 145, 196, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(141, 220, 255, 0.22), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 244, 248, 0.95));
}

.type-hero-panel__copy h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 58px);
    line-height: 1.02;
}

.type-hero-panel__copy p {
    max-width: 640px;
    margin: 0;
    color: var(--site-ink-soft);
    font-size: 16px;
    line-height: 1.95;
}

.type-hero-panel__tags,
.type-hero-panel__actions,
.type-feature-card__meta,
.type-catalog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-hero-panel__tags {
    margin-top: 20px;
}

.type-hero-panel__tags span,
.type-feature-card__meta span,
.type-catalog-card__meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--site-ink-soft);
    font-size: 12px;
    box-shadow: var(--site-shadow-soft);
}

.type-hero-panel__actions {
    margin-top: 22px;
}

.type-hero-panel__actions a,
.type-channel-card__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.type-hero-panel__actions a:first-child,
.type-channel-card__actions a:first-child {
    color: #fff;
    background: linear-gradient(135deg, var(--site-pink-strong), #ff9dce 54%, var(--site-blue));
    box-shadow: 0 16px 28px rgba(255, 131, 190, 0.18);
}

.type-hero-panel__actions a:last-child,
.type-channel-card__actions a:last-child {
    color: var(--site-ink);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--site-shadow-soft);
}

.type-hero-panel__visual {
    position: relative;
    min-height: 470px;
    border-radius: 30px;
    background:
        linear-gradient(rgba(255, 156, 209, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 220, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 250, 0.92));
    background-size: 24px 24px, 24px 24px, auto;
}

.type-hero-panel__poster {
    position: absolute;
    right: 24px;
    bottom: 0;
    width: min(100%, 360px);
}

.type-hero-panel__poster img {
    width: 100%;
}

.type-hero-panel__mascot {
    position: absolute;
    left: 20px;
    bottom: 24px;
    width: 122px;
}

.type-hero-panel__assistant {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--site-shadow-soft);
}

.type-hero-panel__assistant img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.type-hero-panel__assistant strong {
    display: block;
    font-size: 14px;
}

.type-hero-panel__assistant span {
    display: block;
    margin-top: 4px;
    color: var(--site-ink-soft);
    font-size: 12px;
}

.type-subnav-panel {
    margin-top: 18px;
    padding: 16px 18px;
}

.type-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-subnav a,
.type-block-actions a,
.type-filter-tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
}

.type-subnav a,
.type-filter-tags a {
    border: 1px solid rgba(255, 145, 196, 0.14);
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.98), rgba(239, 249, 255, 0.96));
    color: var(--site-ink-soft);
    box-shadow: var(--site-shadow-soft);
}

.type-subnav a:hover,
.type-filter-tags a:hover {
    color: var(--site-ink);
    background: linear-gradient(135deg, rgba(255, 114, 168, 0.16), rgba(141, 220, 255, 0.2));
}

.type-filter-tags a.current {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--site-pink-strong), #ff9dce 54%, var(--site-blue));
}

.type-subnav a.is-filter,
.type-block-actions a:first-child {
    color: #fff;
    background: linear-gradient(135deg, var(--site-pink-strong), #ff9dce 54%, var(--site-blue));
    box-shadow: 0 16px 28px rgba(255, 131, 190, 0.18);
}

.type-block-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.type-block-head h1,
.type-block-head h2 {
    margin: 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.12;
}

.type-block-head p {
    margin: 8px 0 0;
    color: var(--site-ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.type-block-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-block-actions a:last-child {
    color: var(--site-ink);
    border: 1px solid rgba(255, 145, 196, 0.18);
    background: linear-gradient(135deg, rgba(255, 241, 247, 0.98), rgba(239, 249, 255, 0.96));
    box-shadow: var(--site-shadow-soft);
}

.type-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.type-filter-stack {
    display: grid;
    gap: 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 132, 189, 0.12);
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.type-filter-group {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.type-filter-group + .type-filter-group {
    border-top: 1px solid rgba(255, 132, 189, 0.12);
}

.type-filter-group h3 {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.3;
}

.type-filter-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 132, 189, 0.36) transparent;
}

.type-filter-group--full {
    width: 100%;
}

.type-filter-tags::-webkit-scrollbar {
    height: 6px;
}

.type-filter-tags::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 132, 189, 0.26);
}

.type-filter-panel .type-block-head {
    align-items: center;
    margin-bottom: 12px;
}

.type-filter-panel {
    padding: 18px 20px;
}

.type-filter-panel .type-block-head h1 {
    font-size: clamp(22px, 3vw, 30px);
}

.type-filter-panel .type-block-head p {
    display: none;
}

.type-filter-panel .type-block-actions a {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 12px;
}

.type-filter-panel .type-filter-tags a {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 4px 10px;
    font-size: 12px;
    box-shadow: none;
    border: 1px solid rgba(255, 132, 189, 0.2);
}

.type-overview-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.type-overview-card {
    padding: 24px;
    text-decoration: none;
}

.type-overview-card h3 {
    margin: 12px 0 10px;
    font-size: 24px;
}

.type-overview-card p {
    margin: 0;
    color: var(--site-ink-soft);
    line-height: 1.85;
}

.type-filter-panel,
.type-channel-panel,
.type-selector-panel,
.type-feature-panel,
.type-catalog-panel,
.type-pager-panel,
.type-rank-panel {
    margin-top: 24px;
    padding: 26px;
}

.type-channel-grid,
.type-selector-grid,
.type-feature-grid,
.type-catalog-grid {
    display: grid;
    gap: 18px;
}

.type-channel-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-channel-card,
.type-selector-group,
.type-feature-card,
.type-catalog-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 132, 189, 0.14);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--site-shadow-soft);
}

.type-channel-card {
    padding: 22px;
}

.type-channel-card__icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.type-channel-card__no {
    position: absolute;
    top: 18px;
    right: 18px;
    color: rgba(36, 49, 79, 0.2);
    font-size: 32px;
    font-weight: 800;
}

.type-channel-card h3,
.type-selector-group h3 {
    margin: 16px 0 10px;
    font-size: 22px;
}

.type-channel-card p {
    margin: 0;
    color: var(--site-ink-soft);
    line-height: 1.85;
}

.type-channel-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.type-selector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-selector-group {
    padding: 22px;
}

.type-selector-group__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-selector-group__tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 145, 196, 0.12);
    color: var(--site-ink-soft);
    text-decoration: none;
}

.type-selector-group__tags a:hover {
    color: var(--site-ink);
    background: linear-gradient(135deg, rgba(255, 114, 168, 0.18), rgba(141, 220, 255, 0.2));
}

.type-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 24px;
}

.type-stage__main,
.type-stage__side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.type-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.type-feature-card,
.type-catalog-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.type-feature-card__cover,
.type-catalog-card__cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 226, 240, 0.9), rgba(215, 240, 255, 0.9));
}

.type-feature-card__cover {
    aspect-ratio: 4 / 3;
}

.type-catalog-card__cover {
    aspect-ratio: 16 / 9;
}

.type-feature-card__cover img,
.type-catalog-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-feature-card__cover img,
.type-catalog-card__cover img {
    display: block;
}

.type-feature-card__cover span,
.type-catalog-card__cover span {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--site-pink-strong), var(--site-blue-strong));
}

.type-feature-card__body,
.type-catalog-card__body {
    padding: 14px;
}

.type-feature-card__body h3,
.type-catalog-card__body h3 {
    margin: 12px 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

.type-feature-card__body p,
.type-catalog-card__body p {
    margin: 0;
    color: var(--site-ink-soft);
    line-height: 1.85;
}

.type-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.type-pager-panel .mac_pages {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.type-pager-panel .page_info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.type-pager-panel .page_link,
.type-pager-panel .page_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--site-shadow-soft);
}

.type-pager-panel .page_link.page_current {
    color: #fff;
    background: linear-gradient(135deg, var(--site-pink-strong), var(--site-blue-strong));
}

.type-pager-panel .page_input {
    width: 56px !important;
    border-radius: 999px;
}

.type-rank-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.type-rank-list li + li {
    margin-top: 10px;
}

.type-rank-list a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.type-rank-list b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-pink-strong), var(--site-blue-strong));
}

.type-rank-list strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.type-rank-list small {
    color: var(--site-ink-soft);
}

@media (max-width: 1200px) {
    .type-hero-panel,
    .type-stage {
        grid-template-columns: 1fr;
    }

    .type-channel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .type-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 860px) {
    .type-portal {
        width: calc(100% - 20px);
    }

    .type-overview-strip,
    .type-channel-grid,
    .type-selector-grid,
    .type-feature-grid,
    .type-catalog-grid {
        grid-template-columns: 1fr;
    }

    .type-portal__heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .type-block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .type-filter-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .type-portal {
        width: calc(100% - 10px);
        margin-top: 12px;
    }

    .type-filter-panel,
    .type-hero-panel,
    .type-channel-panel,
    .type-selector-panel,
    .type-feature-panel,
    .type-catalog-panel,
    .type-pager-panel,
    .type-rank-panel {
        padding: 14px;
    }

    .type-hero-panel__visual {
        min-height: 360px;
    }

    .type-hero-panel__poster {
        width: min(100%, 300px);
    }

    .type-pager-panel .mac_pages {
        grid-template-columns: 1fr;
    }

    .type-pager-panel .page_info {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .type-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .type-filter-panel,
    .type-catalog-panel,
    .type-pager-panel,
    .type-rank-panel {
        padding: 12px;
        border-radius: 20px;
    }

    .type-block-head {
        gap: 8px;
    }

    .type-block-head h2 {
        font-size: 22px;
    }

    .type-filter-stack {
        border-radius: 16px;
    }

    .type-filter-group {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
        padding: 10px 12px;
    }

    .type-filter-group h3 {
        margin: 0;
        font-size: 13px;
    }

    .type-filter-tags {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible;
        white-space: normal;
        padding-bottom: 0;
    }

    .type-filter-panel .type-filter-tags a,
    .type-subnav a {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .type-catalog-card {
        border-radius: 18px;
    }

    .type-catalog-card__body {
        padding: 10px;
    }

    .type-catalog-card__body h3 {
        margin: 8px 0 0;
        font-size: 14px;
        line-height: 1.35;
    }

    .type-catalog-card__body p {
        display: none;
    }

    .type-pager-panel .page_link,
    .type-pager-panel .page_btn {
        min-width: 38px;
        padding: 8px 10px;
        font-size: 12px;
    }
}
