

.type-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.tsn-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 16px;
    font-size: 13px;
    color: var(--text-2);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.tsn-item:hover { color: var(--accent); border-color: var(--accent); }
.tsn-item.is-active,
.tsn-item--lib { color: #fff; border-color: var(--accent); background: var(--accent); }

.type-subnav { display: none; }

.hero-genre-panel.hero-genre-panel--single {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;

    gap: 0;

    max-width: none;
    margin: 18px 0 26px;
    padding: 0 var(--page-pad-r) 0 0;

    position: relative;
    z-index: 1000;
    overflow: visible;
    min-height: 40px;
}

.hero-genre-panel--single .hgp-head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 40px;
    padding: 0 18px;
    margin-right: 12px;
    font-size: 16px;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
    white-space: nowrap;
}

.hero-genre-panel--single .hgp-tag,
.hero-genre-panel--single .hgp-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 84px;
    height: 40px;
    line-height: 40px;
    margin-right: 12px;
    padding: 0;
    font-size: 16px;
    color: var(--text-2);
    background-color: rgba(39, 44, 84, 0.86);
    border: none;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
}
.hero-genre-panel--single .hgp-more { position: relative; flex: 0 0 auto; margin-right: 0; }
.hero-genre-panel--single .hgp-more .hgp-more-btn { margin-right: 0; }
.hero-genre-panel--single .hgp-tag:hover,
.hero-genre-panel--single .hgp-more:focus-within .hgp-more-btn,
.hero-genre-panel--single .hgp-more:hover .hgp-more-btn {
    color: #fff;
    background-color: rgba(65, 77, 144, 0.96);
}

.hero-genre-panel--single .hgp-more-btn .mac-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    margin-left: 4px;
    transition: transform 0.2s;
}
.hero-genre-panel--single .hgp-more:focus-within .hgp-more-btn .mac-icon,
.hero-genre-panel--single .hgp-more:hover .hgp-more-btn .mac-icon { transform: rotate(180deg); }

.hero-genre-panel--single .hgp-more-panel {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 5;
    isolation: isolate;
    grid-template-columns: repeat(6, 88px);
    gap: 22px 20px;
    padding: 28px 30px;
    border-radius: 5px;
    background-color: initial;
    box-shadow: rgba(0, 0, 0, 0.34) 2px 2px 1px 0;
}
.hero-genre-panel--single .hgp-more-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: rgba(9, 11, 33, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.hero-genre-panel--single .hgp-more:hover .hgp-more-panel,
.hero-genre-panel--single .hgp-more:focus-within .hgp-more-panel { display: grid; }
.hero-genre-panel--single .hgp-more-item {
    display: block;
    width: 88px;
    min-width: 0;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-2);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.hero-genre-panel--single .hgp-more-item > a {
    display: block;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-genre-panel--single .hgp-more-item:hover { color: var(--accent); background: none; }

@media (min-width: 1440px) and (max-width: 1678px) {
    .hero-genre-panel.hero-genre-panel--single { min-height: 36px; }
    .hero-genre-panel--single .hgp-head { height: 36px; font-size: 15px; }
    .hero-genre-panel--single .hgp-tag,
    .hero-genre-panel--single .hgp-more-btn { width: 78px; height: 36px; line-height: 36px; font-size: 15px; }
    .hero-genre-panel--single .hgp-more-panel {
        top: 36px;
        grid-template-columns: repeat(5, 78px);
        gap: 20px 16px;
    }
    .hero-genre-panel--single .hgp-more-item { width: 78px; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .hero-genre-panel.hero-genre-panel--single {

        flex-wrap: wrap;
        row-gap: 10px;
    }

    .hero-genre-panel--single .hgp-tag:nth-child(n+10) { display: none; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .hero-genre-panel.hero-genre-panel--single { min-height: 34px; }
    .hero-genre-panel--single .hgp-head { height: 34px; font-size: 14px; padding: 0 14px; }
    .hero-genre-panel--single .hgp-tag,
    .hero-genre-panel--single .hgp-more-btn { width: 72px; height: 34px; line-height: 34px; font-size: 14px; }
    .hero-genre-panel--single .hgp-more-panel {
        top: 34px;
        grid-template-columns: repeat(4, 74px);
        gap: 18px 14px;
        padding: 22px 20px;
    }
    .hero-genre-panel--single .hgp-more-item { width: 74px; font-size: 14px; }
}

@media (max-width: 1199px) {
    .hero-genre-panel.hero-genre-panel--single {
        margin: 12px 0 18px;

        padding: 0 16px;
        min-height: 34px;

        flex-wrap: wrap;
        row-gap: 10px;
    }
    .hero-genre-panel--single .hgp-head { height: 34px; font-size: 14px; padding: 0 14px; }
    .hero-genre-panel--single .hgp-tag,
    .hero-genre-panel--single .hgp-more-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 72px;
        height: 34px;
        line-height: 34px;
        margin-right: 10px;
        font-size: 14px;
    }

    .hero-genre-panel--single .hgp-tag:nth-child(n+7) { display: none; }
    .hero-genre-panel--single .hgp-more-panel {
        top: 34px;
        grid-template-columns: repeat(4, 74px);
        gap: 18px 14px;
        padding: 22px 20px;
    }
    .hero-genre-panel--single .hgp-more-item { width: 74px; font-size: 14px; }
}

@media (max-width: 767px) {
    .hero-genre-panel.hero-genre-panel--single { display: none; }
}

.list-container { width: 100%; max-width: none; margin: 0; padding: 0 0 40px; }

.vod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: var(--grid-gap-y) var(--grid-gap-x);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .list-container { padding-bottom: 60px; }
    .vod-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

.list-container .section {
    max-width: none;
}
