.category-page { color: #102458; }
.category-hero { position: relative; min-height: 250px; overflow: hidden; border-radius: 16px; background: #061749; color: #fff; }
.category-hero__art { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.category-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,17,65,.85), rgba(3,17,65,.25) 47%, transparent 70%); }
.category-hero__content { position: relative; z-index: 1; padding: 22px 34px; width: 55%; }
.category-crumbs { display: flex; flex-wrap: wrap; gap: 9px; font-size: 12px; margin-bottom: 22px; }
.category-crumbs a { color: #e4edff; }
.category-hero h1 { font-size: clamp(28px, 3vw, 46px); line-height: 1.2; margin: 0 0 14px; text-shadow: 0 2px 12px #061b64; }
.category-hero h1 i { color: #8bddff; }
.category-hero p { font-size: 15px; max-width: 480px; line-height: 1.7; margin-bottom: 16px; }
.category-hero__pills { display: flex; gap: 12px; }
.category-hero__pills span { background: linear-gradient(120deg,#168fff,#0759ff); padding: 7px 18px; border-radius: 30px; box-shadow: 0 0 16px #2664ee90; font-weight: 700; white-space: nowrap; }
.category-hero__pills span:nth-child(2) { background: linear-gradient(120deg,#7858ff,#5033f2); }
.category-hero__pills span:nth-child(3) { background: linear-gradient(120deg,#357aff,#613eff); }
.category-layout { display: grid; grid-template-columns: 200px minmax(0,1fr) 250px; gap: 18px; margin-top: 20px; scroll-margin-top: 110px; }
.category-layout > * { min-width: 0; }
.category-panel { background: #ffffffd9; border: 1px solid #e3edfc; border-radius: 13px; padding: 14px; margin-bottom: 18px; box-shadow: 0 4px 18px #346ac008; }
.category-panel h2 { font-size: 16px; margin: 0; line-height: 1.5; }
.category-menu { padding: 12px 8px; }
.category-menu h2 { padding: 0 6px 10px; }
.category-menu h2 i { color: #127eff; margin-right: 8px; }
.category-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; min-height: 44px; color: #244273; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.category-menu a i { width: 18px; flex-shrink: 0; color: #4e70b3; }
.category-menu small { color: #6a80a6; }
.category-menu a.is-active { color: #086bff; background: #d3e9ff; }
.category-help { margin-top: 26px; background: linear-gradient(135deg,white,#e2f0ff); display: flow-root; }
.category-help img { width: 60px; height: 70px; object-fit: contain; float: left; margin-right: 6px; }
.category-help h2 { padding: 8px 0 16px; }
.category-help h2 small { display: block; font-size: 12px; }
.category-help a { display: block; clear: both; padding: 8px 10px; min-height: 44px; background: #ffffffbd; margin-top: 8px; border-radius: 8px; font-size: 14px; }
.category-help a i { margin-right: 10px; }
.category-tabs { display: flex; flex-wrap: nowrap; gap: 7px; margin-bottom: 12px; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.category-tabs { scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 13px; font-size: 12px; color: #243d76; background: #e9efff; border-radius: 30px; text-align: center; }
.category-tabs a { flex: 0 0 auto; white-space: nowrap; }
.category-tabs a.is-active { color: #fff; background: linear-gradient(120deg,#267bff,#4d4eff); }
.category-controls { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.category-controls select { min-width: 120px; max-width: 45%; padding: 8px 12px; border: 1px solid #d9e5fb; border-radius: 7px; background: #fff; color: #213d79; font-size: 13px; min-height: 40px; }
.category-search { display: flex; max-width: 270px; min-width: 0; border: 1px solid #d9e5fb; border-radius: 7px; background: #fff; }
.category-search input { min-width: 0; width: 100%; border: 0; padding: 8px 12px; border-radius: inherit; background: transparent; font-size: 13px; color: #17366d; }
.category-search button { min-width: 42px; border: 0; color: #3b5f9e; background: transparent; }
.category-count { margin: 0 0 9px; font-size: 13px; color: #516a98; overflow-wrap: anywhere; }
.category-topic-description { font-size: 13px; color: #60759b; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.category-post { --card-accent: #168bff; --card-soft: #d9efff; overflow: hidden; background: #fff; border: 1px solid #e5efff; border-radius: 11px; box-shadow: 0 3px 8px #426fbb0b; min-width: 0; transition: box-shadow .2s; }
.category-post:hover { box-shadow: 0 5px 20px #3160ae22; }
.category-post--mint { --card-accent: #00b795; --card-soft: #d2f7ed; }
.category-post--violet { --card-accent: #6454ff; --card-soft: #e3e1ff; }
.category-post--gold { --card-accent: #cc8500; --card-soft: #fff0c6; }
.category-post--pink { --card-accent: #ed4699; --card-soft: #ffe0f1; }
.category-post__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 1; overflow: hidden; background: linear-gradient(135deg,var(--card-soft),#f0f8ff); }
.category-post__media img { width: 100%; object-fit: cover; }
.category-post__media--placeholder::before { content: ''; position: absolute; width: 100px; border: 1px solid #ffffffb0; border-radius: 50%; box-shadow: 0 0 0 20px #ffffff38,0 0 0 40px #ffffff26; transform: translate(45px,12px); }
.category-post__media > i { color: var(--card-accent); font-size: 54px; position: relative; filter: drop-shadow(0 5px 3px #406ca825); }
.category-post__badge { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 3px 10px; font-size: 11px; font-weight: 700; color: #fff; border: 1px solid color-mix(in srgb, var(--card-accent) 75%, #fff 25%); border-radius: 20px; background: rgb(8 20 63 / 82%); box-shadow: 0 2px 8px rgb(3 12 45 / 35%); text-shadow: 0 1px 2px rgb(0 0 0 / 45%); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.category-post__body { padding: 10px 12px 12px; }
.category-post h3 { font-size: 14px; line-height: 1.5; margin: 0 0 5px; }
.category-post h3 a { color: #0c2260; }
.category-post h3 a:hover { color: #196cff; }
.category-post__summary { color: #7484a5; font-size: 12px; line-height: 1.6; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.category-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: #6178a4; font-size: 11px; line-height: 1.5; }
.category-post__meta > span { white-space: nowrap; }
.category-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.category-panel__heading h2 i { color: #3471ff; margin-right: 5px; }
.category-recommendations h2 i { color: #ffbd25; }
.category-panel__heading button { padding: 4px; border: 0; background: transparent; color: #266dff; font-size: 12px; min-height: 36px; flex-shrink: 0; }
.category-post--compact { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 9px; border: 0; border-radius: 0; box-shadow: none; margin-bottom: 12px; background: transparent; }
.category-post--compact .category-post__media { width: 100px; height: 50px; aspect-ratio: 2 / 1; border-radius: 8px; }
.category-post--compact .category-post__media > i { font-size: 28px; }
.category-post--compact .category-post__body { padding: 0; }
.category-post--compact h3 { font-size: 12px; }
.category-post--compact:hover { box-shadow: none; }
.category-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.category-tags a { font-size: 11px; padding: 4px 7px; color: #294b88; background: #eef3ff; border-radius: 20px; overflow-wrap: anywhere; max-width: 100%; }
.category-tags small { color: #6c82ae; }
.category-mascot { position: relative; min-height: 190px; padding-top: 10px; }
.category-mascot p { position: relative; z-index: 1; display: inline-block; padding: 13px; border: 1px solid #c7dbff; background: #fff; border-radius: 40% 45% 15% 35%; font-size: 12px; }
.category-mascot img { position: absolute; right: 0; bottom: 0; width: 140px; height: 150px; object-fit: contain; }
.category-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; }
.category-pagination a { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 5px 10px; background: #fff; border: 1px solid #e2edff; border-radius: 7px; color: #47679e; font-size: 12px; }
.category-pagination [aria-current] { background: #396aff; color: #fff; }
.category-page a:focus-visible,.category-page button:focus-visible,.category-page select:focus-visible,.category-page input:focus-visible { outline: 3px solid #5592ff; outline-offset: 3px; }
@media (min-width: 1500px) { .category-hero { min-height: 280px; } .category-hero__content { padding-top: 30px; } }
@media (max-width: 1199px) { .category-layout { grid-template-columns: 170px minmax(0,1fr) 210px; gap: 13px; } .category-grid { gap: 10px; } .category-post__body { padding: 8px; } .category-menu a { gap: 8px; padding: 9px 6px; font-size: 13px; } .category-hero__content { width: 60%; } }
@media (min-width: 769px) and (max-width: 1023px) { .category-layout { grid-template-columns: 170px minmax(0,1fr); } .category-extras { display: none; } .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 768px) {
    .category-page { padding: 8px 0 90px; }
    .category-hero { min-height: 290px; border-radius: 12px; }
    .category-hero__art { object-position: 66% center; }
    .category-hero::after { background: linear-gradient(0deg,#06184df5,rgba(3,17,65,.75) 27%,transparent 76%); }
    .category-hero__content { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; min-height: 290px; padding: 16px; }
    .category-crumbs { display: none; }
    .category-hero h1 { font-size: 28px; margin-bottom: 8px; max-width: 90%; }
    .category-hero p { max-width: 280px; font-size: 13px; line-height: 1.6; margin-bottom: 12px; }
    .category-hero__pills { gap: 8px; }
    .category-hero__pills span { flex: 1; text-align: center; padding: 7px 4px; font-size: 12px; }
    .category-layout { display: block; margin-top: 14px; scroll-margin-top: 85px; }
    .category-sidebar,.category-extras { display: none; }
    .category-tabs { gap: 7px; margin-bottom: 14px; }
    .category-tabs a { min-height: 40px; padding: 7px 17px; font-size: 12px; }
    .category-controls { gap: 12px; }
    .category-controls select { min-height: 44px; min-width: 112px; }
    .category-search { max-width: none; flex: 1; }
    .category-count { font-size: 12px; }
    .category-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
    .category-post { display: grid; grid-template-columns: 94px minmax(0,1fr); padding: 6px; gap: 10px; border-radius: 9px; }
    .category-post__media { min-height: 82px; height: 100%; aspect-ratio: auto; border-radius: 6px; }
    .category-post__media > i { font-size: 38px; }
    .category-post__badge { display: none; }
    .category-post__body { padding: 0 2px 0 0; min-width: 0; }
    .category-post h3 { font-size: 13px; line-height: 1.5; margin-bottom: 4px; }
    .category-post__summary { font-size: 11px; line-height: 1.5; margin-bottom: 5px; min-height: 0; }
    .category-post__meta { font-size: 10px; gap: 4px 10px; }
    .category-pagination { gap: 5px; }
    .category-pagination a { min-width: 36px; min-height: 44px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) { .category-post { transition: none; } }
