.catalog-page {
    width: min(1200px, calc(100% - 32px));
    margin: 18px auto 32px;
}
.catalog-crumb { margin-bottom: 16px; color: #666; font-size: 14px; }
.catalog-heading { margin-bottom: 14px; color: #333; font-size: 18px; font-weight: 700; }
.catalog-layout {
    display: grid;
    grid-template-columns: 174px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
}
.catalog-categories { border: 1px solid #dfdfdf; background: #fff; }
.catalog-categories .catalog-heading { margin: 0; padding: 10px 14px; background: #418bca; color: #fff; }
.catalog-categories a { display: block; border-bottom: 1px solid #eee; padding: 10px 14px; font-size: 14px; }
.catalog-categories a[aria-current="page"] { background: #f4f8fb; color: #2374b6; font-weight: 700; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; }
.catalog-grid .item { min-width: 0; }
.catalog-grid .item a { display: block; }
.catalog-grid img { display: block; width: 100%; aspect-ratio: 21 / 11; object-fit: cover; background: #f1f1f1; }
.catalog-grid .title {
    display: block;
    overflow: hidden;
    padding: 7px 4px;
    font-size: 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.topic-grid .item { border: 1px solid #eee; }
.topic-index { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.topic-index .catalog-categories { display: flex; flex-wrap: wrap; align-items: stretch; }
.topic-index .catalog-categories .catalog-heading { margin: 0; }
.topic-index .catalog-categories a { border: 0; }
.topic-index .item { background: #fff; transition: box-shadow .2s; }
.topic-index .item:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .10); }
.topic-index img { aspect-ratio: 2 / 1; }
.topic-index .title { padding: 8px 14px 4px; text-align: left; font-size: 16px; }
.topic-index time { display: block; padding: 0 14px; color: #647e7a; font-size: 12px; line-height: 22px; }
.topic-index .spec_desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 14px 12px;
    color: #666;
    font-size: 12px;
    line-height: 20px;
    overflow-wrap: anywhere;
}
.zone-grid { width: min(100%, 1108px); margin: 0 auto; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 28px; }
.zone-grid img { aspect-ratio: 158 / 210; border-radius: 8px; }
.catalog-page > .catalog-heading, .zone-group .catalog-heading { padding-bottom: 9px; border-bottom: 2px solid #df3d42; }
.zone-group { margin-top: 26px; }
.catalog-page a:focus-visible { outline: 2px solid #418bca; outline-offset: 2px; }
@media (max-width: 860px) {
    .catalog-grid, .zone-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.catalog-index-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.topic-home-nav { display: flex; justify-content: center; border: 1px solid #ddd; }
.topic-home-nav a { padding: 10px 28px; border-inline: 1px solid #eee; font-size: 17px; }
.topic-home-ranks { margin: 32px 0; width: min(245px, 100%); }
.topic-home-ranks h2 { margin-bottom: 14px; border-bottom: 1px solid #eee; padding-bottom: 8px; font-size: 17px; }
.topic-home-ranks h2 span { color: #f35c57; }
.topic-home-ranks ol { list-style: decimal inside; border: 1px solid #eee; padding: 10px 14px; line-height: 2.4; }
.topic-home-ranks li::marker { color: #e45c55; font-weight: 700; }
.topic-home-section { position: relative; margin-top: 24px; }
.topic-home-section h2 { border-bottom: 1px solid #bbb; margin-bottom: 16px; padding: 5px 0; font-size: 18px; }
.topic-home-more { position: absolute; right: 6px; top: 5px; }
.topic-home-covers, .topic-home-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.topic-home-covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic-home-covers img { display: block; width: 100%; height: auto; aspect-ratio: 280 / 116; object-fit: cover; }
.topic-home-covers span { display: block; padding: 4px; color: #fff; background: #555; text-align: center; }
@media (max-width: 650px) {
    .topic-home-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.topic-home-ranks ol { list-style: none; counter-reset: topic-rank; padding: 0 12px; }
.topic-home-ranks li { counter-increment: topic-rank; padding: 6px 0; }
.topic-home-ranks li:first-child { padding-block: 15px; }
.topic-home-ranks li::before { content: counter(topic-rank); display: inline-block; width: 20px; line-height: 20px; margin-right: 11px; color: #fff; background: #aaa; text-align: center; border-radius: 3px; }
.topic-home-ranks li:nth-child(-n+3)::before { background: #d95952; }
.topic-home-section h2 { width: fit-content; min-width: 160px; padding: 7px 16px; background: #666; color: #fff; }
.topic-home-carousel { padding-inline: 28px; }
.topic-home-carousel .carousel-track a::after { content: none; }
.topic-home-carousel .carousel-dots { justify-content: space-between; top: calc(50% - 16px); bottom: auto; }
.topic-home-carousel .carousel-dots button { width: 26px; height: 32px; border-radius: 0; }
.topic-home-carousel .carousel-dots button::before { width: 14px; height: 14px; border: solid #929292; border-width: 2px 2px 0 0; border-radius: 0; background: transparent; box-shadow: none; transform: rotate(-135deg); }
.topic-home-carousel .carousel-dots button:first-child::before { margin-left: 8px; }
.topic-home-carousel .carousel-dots button:last-child::before { transform: rotate(45deg); margin-right: 8px; }
.catalog-collections { width: min(970px, calc(100% - 32px)); }
.catalog-collections .catalog-layout { grid-template-columns: 175px minmax(0, 1fr); gap: 28px; }
.collection-list-title { align-self: start; padding: 10px 15px; background: #d83f34; color: #fff; font-size: 17px; }
.catalog-collections .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px 28px; }
.catalog-collections .item { border: 0; background: transparent; }
.catalog-collections .item img { aspect-ratio: 2 / 1; border-radius: 0 0 12px 12px; }
.catalog-collections .item .title { text-align: center; font-size: 14px; }
@media (max-width: 690px) { .catalog-collections .catalog-layout { grid-template-columns: minmax(0,1fr); } }
