:root {
    color-scheme: dark;
    --bg: #100d13;
    --panel: #19141d;
    --panel-2: #231b28;
    --line: #3a2c40;
    --text: #fff8fd;
    --muted: #bbaebe;
    --accent: #ff3d7f;
    --accent-2: #ffb348;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 80% -10%, #3a172d 0, transparent 30rem), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.site-header, footer { max-width: 1480px; margin: auto; padding: 22px 34px; display: flex; align-items: center; justify-content: space-between; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(16,13,19,.9); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { padding: 7px 9px; border-radius: 8px; color: #180b12; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 15px; }
.site-header nav { display: flex; gap: 24px; color: var(--muted); }
.site-header nav a:hover, .site-header nav a.active { color: var(--text); }
main { max-width: 1480px; margin: auto; padding: 0 34px 80px; }
.breadcrumbs { padding: 22px 3vw 0; color: var(--muted); font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { min-width: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #6f6173; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { display: block; max-width: min(520px, 60vw); overflow: hidden; color: #e3d8e5; text-overflow: ellipsis; white-space: nowrap; }
.section-directory { padding: 24px 3vw 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.directory-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(35,27,40,.96), rgba(25,20,29,.92)); }
.directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.directory-heading > span { font-size: 24px; font-weight: 850; letter-spacing: -.03em; }
.directory-heading small { color: #9b899e; }
.directory-heading:hover > span { color: var(--accent-2); }
.directory-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 14px 0 10px; }
.directory-categories a { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.directory-categories a:hover { background: #302335; color: var(--text); }
.directory-categories span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-categories small { flex: 0 0 auto; color: #826f87; }
.directory-all { display: inline-flex; margin-top: 7px; color: var(--accent); font-size: 13px; font-weight: 750; }
.section-switcher { padding: 24px 3vw 0; display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 12px; }
.section-switcher a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--muted); }
.section-switcher a:hover, .section-switcher a.active { border-color: #8b516f; background: var(--panel-2); color: var(--text); }
.section-switcher span { font-size: 18px; font-weight: 800; }
.section-switcher small { color: #927e96; }
.hero { min-height: 330px; padding: 78px 3vw 55px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.eyebrow { margin: 0 0 10px; color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 800px; margin-bottom: 18px; font-size: clamp(44px, 7vw, 92px); line-height: .92; letter-spacing: -.065em; }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.search label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.search > div { display: flex; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.search input { min-width: 0; flex: 1; padding: 14px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
button { padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }
.catalog-shell { display: grid; grid-template-columns: 260px 1fr; gap: 34px; }
.filters { align-self: start; position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(25,20,29,.9); }
.filters-heading, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.filters h2 { margin: 0; font-size: 21px; }
.filters-heading a { color: var(--accent); font-size: 13px; font-weight: 700; }
details { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 17px; }
summary { cursor: pointer; font-weight: 800; }
.filter-directory-link { display: inline-flex; margin-top: 10px; color: var(--accent); font-size: 12px; font-weight: 700; }
.filter-directory-link:hover { color: #ff8aae; }
.filter-list { max-height: 230px; margin-top: 12px; overflow: auto; }
.filter-list a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 9px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.filter-list a:hover, .filter-list a.active { background: var(--panel-2); color: var(--text); }
.filter-list a.active { box-shadow: inset 3px 0 0 var(--accent); }
.filter-list small { color: #826f87; }
.filter-list .filter-group-title { margin-top: 7px; color: #f1e8f2; }
.filter-list .filter-group-title:first-child { margin-top: 0; }
.filter-group-items { margin: 1px 0 8px 8px; padding-left: 7px; border-left: 1px solid var(--line); }
.results-heading { min-height: 74px; margin-bottom: 20px; }
.results-heading h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.results-heading > span { color: var(--muted); font-size: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform .2s, border-color .2s; }
.catalog-card:hover { transform: translateY(-4px); border-color: #76516d; }
.card-media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, #472039, #24141f 50%, #5b311e); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media span { color: rgba(255,255,255,.35); font-size: 68px; font-weight: 900; }
.video-card-media { position: relative; }
.play-badge { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; display: grid; place-items: center; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,61,127,.92); box-shadow: 0 10px 35px rgba(0,0,0,.45); font-size: 20px; }
.card-body { padding: 15px; }
.card-body h3 { margin: 10px 0 2px; overflow: hidden; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span, .chips a { max-width: 100%; padding: 5px 7px; overflow: hidden; border-radius: 6px; background: #302335; color: #d9c8dc; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chips a { border: 1px solid transparent; }
.chips a:hover { border-color: #76516d; background: #3c2940; color: white; }
.pagination-wrap { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pagination-summary { margin: 0; color: var(--muted); font-size: 13px; }
.pagination-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination-links a, .pagination-links span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); font-size: 13px; }
.pagination-links a:hover { border-color: #8b516f; color: var(--text); }
.pagination-links .active { border-color: var(--accent); background: var(--accent); color: white; font-weight: 800; }
.pagination-links .pagination-direction { min-width: auto; }
.pagination-links .disabled { opacity: .4; }
.pagination-links .pagination-ellipsis { min-width: 24px; padding: 0 3px; border-color: transparent; background: transparent; }
.empty-state { padding: 70px; border: 1px dashed #60485f; border-radius: 18px; text-align: center; background: var(--panel); }
.empty-state strong { font-size: 22px; }
.empty-state p { max-width: 540px; margin: 12px auto 0; color: var(--muted); line-height: 1.6; }
.detail { max-width: 1100px; margin: 55px auto; }
.detail h1 { font-size: clamp(40px, 6vw, 75px); }
.back-link { display: inline-block; margin-bottom: 45px; color: var(--muted); }
.video-detail { max-width: 1280px; margin-top: 24px; }
.video-detail .back-link { margin-bottom: 18px; }
.video-detail h1 { max-width: none; margin-bottom: 12px; font-size: clamp(30px, 4vw, 56px); line-height: 1; }
.video-detail .video-frame { width: auto; max-width: 100%; height: min(61.875vw, calc(100vh - 360px)); height: min(61.875vw, calc(100dvh - 360px)); margin: 18px auto 0; }
.detail-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.detail-media img { display: block; width: 100%; border-radius: 12px; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; margin-top: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #050406; box-shadow: 0 28px 70px rgba(0,0,0,.3); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.player-unavailable { min-height: 240px; margin-top: 32px; display: grid; place-items: center; padding: 30px; border: 1px dashed #60485f; border-radius: 18px; background: var(--panel); color: var(--muted); text-align: center; }
.gallery-thumb { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.gallery-thumb:hover { border-color: #8b516f; }
.gallery-thumb img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.gallery-thumb:hover img { transform: scale(1.02); }
.gallery-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 34px 84px; border: 0; background: rgba(6,4,8,.96); color: var(--text); }
.gallery-dialog::backdrop { background: rgba(0,0,0,.84); }
.gallery-dialog[open] { display: grid; grid-template-columns: 54px minmax(0, 1fr) 54px; align-items: center; gap: 18px; }
.gallery-dialog figure { min-width: 0; height: calc(100vh - 68px); margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 12px; }
.gallery-dialog figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-dialog figcaption { color: var(--muted); font-size: 13px; }
.gallery-close, .gallery-arrow { width: 48px; height: 48px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: white; font-size: 20px; }
.gallery-close { position: fixed; right: 24px; top: 22px; z-index: 2; font-size: 30px; }
.gallery-close:hover, .gallery-arrow:hover { background: var(--accent); }
.category-backlinks { margin-top: 40px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.related-link-group + .related-link-group { margin-top: 18px; }
.related-link-group h2 { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.related-link-group > div { display: flex; flex-wrap: wrap; gap: 9px; }
.category-backlinks a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: #e4d9e6; font-size: 13px; }
.category-backlinks a:hover { border-color: #8b516f; background: var(--panel-2); color: white; }
.directory-hero { min-height: 290px; padding: 62px 3vw 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.directory-hero h1 { margin-bottom: 16px; }
.directory-hero > div > p:last-child { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.directory-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .55fr) auto; gap: 10px; align-items: end; }
.directory-control label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.directory-control input, .directory-control select { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background: var(--panel); color: var(--text); font: inherit; }
.directory-control input:focus, .directory-control select:focus { border-color: #8b516f; }
.directory-controls button { min-height: 52px; }
.taxonomy-directory { padding: 0 3vw 30px; }
.taxonomy-directory .results-heading { border-bottom: 1px solid var(--line); }
.directory-reset { color: var(--accent); font-size: 13px; font-weight: 700; }
.taxonomy-directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.taxonomy-directory-grid a { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(25,20,29,.82); color: #e4d9e6; }
.taxonomy-directory-grid a:hover { border-color: #8b516f; background: var(--panel-2); color: white; }
.taxonomy-directory-grid span { overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-directory-grid small { flex: 0 0 auto; color: #826f87; font-size: 11px; }
.prose { margin-top: 34px; color: #ded3df; line-height: 1.8; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-nav a:hover { color: var(--text); }
.static-page { max-width: 900px; margin: 55px auto; }
.static-page h1 { font-size: clamp(42px, 6vw, 78px); }
.static-page-content { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(25,20,29,.84); color: #ded3df; font-size: 16px; line-height: 1.8; }
.static-page-content h2, .static-page-content h3 { margin-top: 1.6em; color: var(--text); }
.static-page-content a { color: var(--accent); text-decoration: underline; }
.static-page-content > :last-child { margin-bottom: 0; }
.error-page { max-width: 850px; min-height: calc(100vh - 210px); margin: auto; display: grid; align-content: center; }
.error-page h1 { font-size: clamp(42px, 7vw, 86px); }
.error-page > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.error-page > a { width: max-content; color: var(--accent); font-weight: 800; }
html.catalog-loading main { opacity: .55; pointer-events: none; transition: opacity .15s; }

@media (max-width: 1100px) {
    .hero { grid-template-columns: 1fr; gap: 25px; }
    .directory-hero { grid-template-columns: 1fr; gap: 25px; }
    .catalog-shell { grid-template-columns: 220px 1fr; }
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .taxonomy-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .site-header, footer, main { padding-left: 18px; padding-right: 18px; }
    .site-header nav { display: none; }
    .breadcrumbs { padding: 18px 0 0; }
    .section-directory { padding: 18px 0 0; grid-template-columns: 1fr; }
    .directory-categories { grid-template-columns: 1fr 1fr; }
    .section-switcher { padding: 18px 0 0; grid-template-columns: 1fr 1fr; }
    .section-switcher a { display: block; padding: 13px; }
    .section-switcher small { display: block; margin-top: 4px; }
    .hero { min-height: 0; padding: 52px 0 36px; }
    .directory-hero { min-height: 0; padding: 52px 0 36px; }
    .directory-controls { grid-template-columns: 1fr 1fr; }
    .directory-search-control { grid-column: 1 / -1; }
    .taxonomy-directory { padding: 0 0 30px; }
    .taxonomy-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .taxonomy-directory-grid a { display: block; padding: 11px; }
    .taxonomy-directory-grid small { display: block; margin-top: 4px; }
    h1 { font-size: 48px; }
    .catalog-shell { display: block; }
    .filters { position: static; margin-bottom: 28px; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .card-body { padding: 11px; }
    .detail-media { grid-template-columns: 1fr 1fr; gap: 7px; }
    .video-detail { margin-top: 20px; }
    .video-detail h1 { font-size: clamp(28px, 9vw, 42px); }
    .video-detail .video-frame { width: 100%; height: auto; margin-top: 14px; }
    .gallery-dialog { padding: 54px 12px 18px; }
    .gallery-dialog[open] { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 5px; }
    .gallery-dialog figure { height: calc(100vh - 80px); }
    .gallery-arrow { width: 40px; height: 40px; }
    .pagination-wrap { align-items: flex-start; }
    .pagination-links { width: 100%; }
    .pagination-links .pagination-direction { flex: 1; }
    footer { align-items: flex-start; gap: 16px; }
    .footer-nav { justify-content: flex-start; }
    .static-page { margin: 36px auto; }
    .static-page-content { padding: 20px; }
}
