:root {
    --magenta: #e9005a;
    --hot: #ff397d;
    --dark: #111217;
    --panel: #1d1f27;
    --panel-2: #262934;
    --line: #3a3d49;
    --text: #ececf0;
    --muted: #aaaeba;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; color: var(--text); background: #0b0c10; font: 14px/1.5 "Trebuchet MS", Arial, sans-serif; }
a { color: var(--hot); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.site-shell { width: min(1140px, calc(100% - 28px)); margin-inline: auto; }
.top-strip { padding: 5px 0; color: #9295a0; background: #07070a; border-bottom: 1px solid #24252b; font-size: 11px; text-transform: uppercase; }
.site-header { background: linear-gradient(180deg, #20222a, #15161c); border-bottom: 4px solid var(--magenta); }
.header-inner { min-height: 104px; display: flex; align-items: center; gap: 34px; }
.brand { flex: 0 0 238px; display: block; text-decoration: none; }
.wordmark { position: relative; display: inline-flex; align-items: baseline; gap: 5px; padding-right: 35px; color: #fff; font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: 0; }
.wordmark-primary { color: var(--magenta); }
.wordmark-secondary { color: #fff; }
.wordmark-mark { position: absolute; right: 0; top: 2px; width: 27px; height: 20px; border: 3px solid var(--magenta); border-radius: 4px; }
.wordmark-mark::before { content: ''; position: absolute; left: 7px; top: 4px; width: 6px; height: 6px; border: 2px solid #fff; border-radius: 50%; }
.wordmark-mark::after { content: ''; position: absolute; right: -7px; top: 3px; border-left: 7px solid var(--magenta); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.footer-wordmark { transform: scale(.65); transform-origin: left center; }
.header-copy { flex: 1; min-width: 0; }
.header-kicker { margin: 0 0 11px; color: #c8cad1; font-weight: 700; }
nav { display: flex; flex-wrap: wrap; gap: 5px; }
.site-header nav a { min-height: 34px; display: inline-flex; align-items: center; padding: 7px 12px; color: #eee; background: #2a2c35; border: 1px solid #41434e; font-weight: 700; }
.site-header nav a:hover { color: #fff; background: var(--magenta); border-color: var(--magenta); text-decoration: none; }
main.site-shell { padding-block: 17px 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: #fff; font-size: 28px; line-height: 1.13; }
h2 { color: #fff; font-size: 21px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.2; }
.intro-band { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 26px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--magenta); }
.intro-band p { max-width: 840px; margin-bottom: 0; color: #c7c8cf; }
.primary-link, .more-link { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; padding: 7px 13px; color: #fff; background: var(--magenta); font-weight: 700; text-decoration: none; }
.primary-link:hover, .more-link:hover { color: #111; background: #fff; text-decoration: none; }
.content-section { padding-block: 20px 3px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin-bottom: 6px; }
.section-heading p { max-width: 620px; margin-bottom: 6px; color: var(--muted); }
.featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.featured-item { overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.featured-image { display: block; aspect-ratio: 16 / 8; overflow: hidden; background: #090a0c; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.featured-copy { padding: 10px; }
.featured-copy h3 { margin-bottom: 5px; }
.featured-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.category-panel { padding: 14px; background: var(--panel); border-top: 4px solid var(--magenta); }
.category-panel:nth-child(even) { border-color: #6c7180; }
.category-panel h3 { margin-bottom: 5px; }
.category-panel > p { color: var(--muted); }
.directory-links { list-style: none; margin: 0 0 12px; padding: 0; }
.directory-links li { display: grid; grid-template-columns: minmax(160px,.65fr) 1fr; gap: 12px; padding: 7px 4px; border-top: 1px solid #343640; }
.directory-links a { font-weight: 700; }
.directory-links span { color: var(--muted); font-size: 13px; }
.more-link { min-height: 31px; padding: 5px 10px; font-size: 12px; }
.archive-note, .category-page, .content-page, .not-found { margin-top: 20px; padding: 19px; background: var(--panel); border: 1px solid var(--line); }
.archive-note { border-left: 5px solid var(--magenta); }
.breadcrumbs { gap: 8px; margin: 2px 0 12px; color: var(--muted); font-size: 12px; }
.category-page > header, .content-page > header { max-width: 900px; }
.category-page .directory-links { max-width: 960px; margin-top: 17px; }
.category-copy, .content-page section { max-width: 900px; margin-top: 20px; padding-top: 15px; border-top: 3px solid var(--magenta); }
.content-page section .directory-links { margin-top: 12px; }
.error-code { margin: 0; color: var(--magenta); font-size: 54px; font-weight: 800; line-height: 1; }
.site-footer { color: #c2c3ca; background: #101116; border-top: 4px solid var(--magenta); }
.footer-inner { min-height: 106px; display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: center; gap: 22px; padding-block: 15px; }
.footer-inner p { margin: 4px 0 0; color: #9699a4; font-size: 12px; }
.site-footer a { color: var(--hot); }

@media (max-width: 800px) {
    .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .category-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .site-shell { width: min(100% - 18px,1140px); }
    .header-inner { display: block; padding-block: 14px; }
    .brand { width: 238px; margin-bottom: 10px; }
    .site-header nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-header nav a { justify-content: center; text-align: center; }
    .intro-band { grid-template-columns: 1fr; gap: 14px; }
    h1 { font-size: 24px; }
    .section-heading { display: block; }
    .featured-grid { grid-template-columns: 1fr; }
    .directory-links li { grid-template-columns: 1fr; gap: 2px; }
    .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

/* Dark video index layout */
.jav-wrap { width: min(1120px, calc(100% - 28px)); margin-inline: auto; }
.jav-toolbar { padding: 5px 0; color: #8f929c; background: #07070a; font-size: 11px; }
.jav-toolbar .jav-wrap { display: flex; justify-content: space-between; gap: 20px; }
.jav-toolbar a { color: #bbb; }
.jav-header { background: #17181e; border-bottom: 4px solid var(--magenta); }
.jav-header-row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.jav-brand { text-decoration: none; }
.jav-mark { position: relative; display: inline-flex; align-items: baseline; gap: 5px; padding-right: 34px; font: 800 38px/1 Arial, sans-serif; }
.jav-mark b { color: var(--magenta); }
.jav-mark em { color: #fff; font-style: normal; }
.jav-mark i { position: absolute; right: 0; top: 2px; width: 27px; height: 20px; border: 3px solid var(--magenta); }
.jav-mark i::after { content: ''; position: absolute; right: -8px; top: 3px; border-left: 7px solid var(--magenta); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.jav-header-row p { max-width: 520px; margin: 0; color: #c7c9d0; font-weight: 700; text-align: right; }
.jav-nav { display: flex; gap: 1px; }
.jav-nav a { padding: 9px 15px; color: #eee; background: #292b34; border-top: 1px solid #3d404a; font-weight: 700; text-decoration: none; }
.jav-nav a:hover { color: #fff; background: var(--magenta); }
.jav-main { padding-block: 17px 30px; }
.jav-intro { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 28px; padding: 19px 21px; background: #1c1e25; border-left: 5px solid var(--magenta); }
.jav-intro-copy p { max-width: 820px; margin: 0; color: #c6c8d0; }
.jav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 7px 14px; color: #fff; background: var(--magenta); font-weight: 700; text-decoration: none; }
.jav-button:hover { color: #111; background: #fff; text-decoration: none; }
.jav-featured, .jav-topics { margin-top: 21px; }
.jav-section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.jav-section-title h2, .jav-section-title p { margin-bottom: 6px; }
.jav-section-title p { color: var(--muted); }
.jav-video-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.jav-video-card { overflow: hidden; background: #1a1c22; border: 1px solid #353843; }
.jav-video-image { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #090a0c; }
.jav-video-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.jav-video-image > span { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; border-radius: 50%; background: rgba(233,0,90,.9); transform: translate(-50%,-50%); }
.jav-video-image > span::after { content: ''; position: absolute; left: 17px; top: 12px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.jav-video-copy { padding: 10px; }
.jav-video-copy h3, .jav-video-copy p { margin: 0; }
.jav-video-copy p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.jav-topic-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.jav-topic { padding: 14px; background: #1c1e25; border-top: 4px solid var(--magenta); }
.jav-topic h3, .jav-topic p { margin-top: 0; }
.jav-topic p { color: var(--muted); }
.jav-topic > a { display: inline-block; padding: 5px 9px; color: #fff; background: #343742; font-size: 12px; font-weight: 700; text-decoration: none; }
.jav-topic > a:hover { background: var(--magenta); }
.jav-scene-note { margin-top: 20px; padding: 17px 19px; background: #1c1e25; border: 1px solid #383b46; }
.jav-scene-note h2 { margin-bottom: 5px; }
.jav-scene-note p { margin: 0; }
.jav-trail { display: flex; gap: 8px; margin-bottom: 11px; color: #9699a4; font-size: 12px; }
.jav-category-page, .jav-scene-page, .jav-missing { padding: 20px; background: #1b1d24; border: 1px solid #393c47; }
.jav-page-heading { max-width: 880px; padding-bottom: 8px; }
.jav-link-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-top: 10px; }
.jav-link-board article { display: grid; grid-template-columns: 9px minmax(0,1fr); gap: 10px; padding: 11px; background: #252730; border: 1px solid #3b3e49; }
.jav-live-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #54d86a; box-shadow: 0 0 0 3px rgba(84,216,106,.12); }
.jav-link-board h3, .jav-link-board p { margin: 0; }
.jav-link-board p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.jav-category-copy, .jav-scene-section { max-width: 900px; margin-top: 21px; padding-top: 15px; border-top: 2px solid var(--magenta); }
.jav-scene-section .jav-link-board { margin-top: 11px; }
.jav-info-page { max-width: 820px; }
.jav-missing > p:first-child { margin: 0; color: var(--magenta); font-size: 56px; font-weight: 800; line-height: 1; }
.jav-footer { color: #aaa; background: #0d0e12; border-top: 4px solid var(--magenta); }
.jav-footer-grid { min-height: 96px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; padding-block: 14px; }
.jav-footer-grid strong { color: #fff; }
.jav-footer-grid p { max-width: 650px; margin: 4px 0 0; font-size: 12px; }
.jav-footer-grid nav { display: flex; gap: 13px; }
.jav-footer-grid small { color: #777; }

@media (max-width: 840px) {
    .jav-video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .jav-topic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .jav-wrap { width: min(100% - 18px,1120px); }
    .jav-toolbar .jav-wrap { display: block; }
    .jav-toolbar a { display: none; }
    .jav-header-row { min-height: 0; display: block; padding-block: 13px; }
    .jav-header-row p { margin-top: 8px; text-align: left; }
    .jav-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .jav-nav a { text-align: center; }
    .jav-intro { grid-template-columns: 1fr; gap: 14px; }
    .jav-section-title { display: block; }
    .jav-link-board { grid-template-columns: 1fr; }
    .jav-footer-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 420px) {
    .jav-video-grid { grid-template-columns: 1fr; }
}
