:root {
  --page: #050505;
  --surface: #111111;
  --surface-2: #191919;
  --paper: #f3f0eb;
  --ink: #101010;
  --text: #f5f2ee;
  --muted: #aaa39d;
  --red: #d71920;
  --red-dark: #8f0e13;
  --line: #3b3937;
  --line-light: #d0cbc4;
  --focus: #ffffff;
  --radius: 2px;
  --space: 16px;
  --shadow: 7px 7px 0 rgba(215, 25, 32, .2);
  --container: 1480px;
  --font-main: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-condensed: "Arial Narrow", Impact, "PingFang SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; background: #050505; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(calc(100% - 24px), var(--container)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible, input:focus-visible, iframe:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header { border-top: 6px solid var(--red); background: var(--page); }
.masthead {
  display: grid;
  gap: 14px;
  padding-block: 16px 14px;
  border-bottom: 1px solid var(--line);
}
.brand-block { display: flex; min-width: 0; align-items: stretch; }
.brand-link {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  border-left: 8px solid var(--red);
  padding: 2px 12px;
}
.brand-kicker, .section-code, .heading-label, .footer-code, .card-meta {
  color: var(--red);
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.brand-name {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-condensed);
  font-size: clamp(27px, 8vw, 42px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.age-mark {
  display: grid;
  width: 58px;
  min-width: 58px;
  place-items: center;
  border: 2px solid var(--paper);
  color: var(--paper);
  font: 900 20px/1 var(--font-condensed);
}
.header-utility { display: grid; align-content: end; gap: 7px; }
.private-note { margin: 0; color: var(--muted); font-size: 12px; text-align: left; }
.private-note span { color: var(--red); }
.search-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.search-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.search-control input {
  min-width: 0;
  height: 44px;
  border: 2px solid var(--paper);
  border-right: 0;
  border-radius: 0;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
}
.search-control input::placeholder { color: #68635f; }
.search-control button {
  min-height: 44px;
  border: 2px solid var(--red);
  border-radius: 0;
  padding: 0 15px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
  cursor: pointer;
}
.search-control button:hover { background: #f1262d; }
.hotline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding-block: 9px;
}
.hotline-title {
  border: 1px solid var(--red);
  padding: 3px 8px;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}
.hotline-links { display: flex; flex-wrap: wrap; gap: 5px 13px; min-width: 0; }
.hotline-links a { color: #d7d1cb; font-size: 13px; }
.hotline-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }

.sponsor-banner,
.sponsor-banner.container {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px 6px;
  width: 100% !important;
  max-width: none !important;
  margin: 2px 0 !important;
  padding: 0 !important;
}
.sponsor-banner__item,
.sponsor-banner__item a,
.sponsor-banner__item img {
  display: block;
  width: 100%;
  height: 100%;
}
.sponsor-banner__item img {
  border-radius: 2px;
  object-fit: fill;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding-block: 8px;
  counter-reset: navitem;
}
.category-nav a {
  display: grid;
  min-width: 0;
  min-height: 46px;
  grid-template-columns: auto minmax(0, 1fr);
  place-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  padding: 7px 5px;
  color: #ece8e4;
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.category-nav a:not(.category-home) { counter-increment: navitem; }
.category-nav a:not(.category-home) .nav-index::before { content: counter(navitem, decimal-leading-zero); }
.nav-index { color: var(--red); font: 900 10px/1 var(--font-condensed); }
.category-nav a:hover, .category-nav a:focus-visible { border-color: var(--red); color: #fff; background: #231112; }
.category-home { border-color: var(--red) !important; background: var(--red) !important; }
.category-home .nav-index { color: #fff; }

.page-main { padding-block: 16px 28px; }
.ruled-heading, .directory-heading, .search-heading, .play-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border-top: 3px solid var(--red);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; font-family: var(--font-condensed); line-height: 1.1; }
h1 { font-size: clamp(27px, 7vw, 44px); letter-spacing: -.025em; }
h2 { font-size: clamp(21px, 5.5vw, 31px); }
.ruled-heading p { margin: 0; max-width: 480px; color: var(--muted); font-size: 13px; }
.catalog-section, .listing-shell, .search-results, .related-section { margin-top: 20px; }
.section-heading {
  display: grid;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.offset-heading { grid-template-columns: 52px minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); }
.offset-heading p { display: none; }
.heading-number {
  align-self: stretch;
  display: grid;
  min-width: 52px;
  place-items: center;
  color: #fff;
  background: var(--red);
  font: 900 18px/1 var(--font-condensed);
}
.split-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  border-left: 8px solid var(--red);
  padding: 8px 0 8px 12px;
  background: var(--paper);
  color: var(--ink);
}
.section-stamp { border: 2px solid var(--ink); margin-right: 10px; padding: 5px 7px; font: 900 10px/1 var(--font-condensed); }
.rail-heading { grid-template-columns: 52px minmax(0, auto) 1fr; border-bottom: 3px solid var(--paper); }
.heading-rule { height: 1px; background: var(--line); }
.related-heading { grid-template-columns: 58px minmax(0, 1fr); border: 1px solid var(--line); }
.related-heading p { display: none; margin: 0 12px; color: var(--muted); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 8px;
  counter-reset: videocards;
}
.video-card {
  min-width: 0;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: videocards;
}
.video-card > a { display: flex; height: 100%; min-width: 0; flex-direction: column; }
.video-cover { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #161616; }
.video-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease, filter .22s ease; }
.video-card:hover .video-cover img { transform: scale(1.035); filter: contrast(1.08); }
.video-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .7));
  pointer-events: none;
}
.play-badge {
  position: absolute;
  z-index: 2;
  left: 9px;
  bottom: 9px;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  background: rgba(215, 25, 32, .92);
}
.play-badge::after {
  position: absolute;
  top: 7px;
  left: 10px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
  content: "";
}
.card-sequence {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  padding: 4px 6px;
  color: #fff;
  background: var(--red);
  font: 900 10px/1 var(--font-condensed);
}
.card-sequence::before { content: "#" counter(videocards, decimal-leading-zero); }
.cover-ribbon {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  border: 1px solid rgba(255,255,255,.8);
  padding: 3px 6px;
  color: #fff;
  background: rgba(10,10,10,.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
}
.video-copy { display: flex; min-height: 72px; flex: 1; flex-direction: column; justify-content: space-between; padding: 8px; }
.video-copy h3 {
  display: -webkit-box;
  min-width: 0;
  height: 2.8em;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.card-meta { display: block; margin-top: 6px; font-size: 9px; }
.video-card--light { border-color: var(--line-light); background: var(--paper); }
.video-card--light .video-copy h3 { color: var(--ink); }
.video-card--line { border-top: 3px solid var(--red); }
.video-card--directory .video-copy { border-top: 1px solid var(--line); }
.video-card:hover { border-color: var(--red); }
.empty-state {
  margin-top: 9px;
  border: 1px dashed #59544f;
  padding: 18px;
  color: var(--muted);
  background: #0c0c0c;
  text-align: center;
}
.video-grid:has(.video-card) + .empty-state { display: none; }

.directory-heading { border-bottom-width: 3px; }
.directory-title h1 { margin-top: 2px; }
.directory-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0; }
.directory-stats div { border: 1px solid var(--line); padding: 8px 10px; background: var(--surface); }
.directory-stats dt { color: var(--muted); font-size: 11px; }
.directory-stats dd { margin: 1px 0 0; color: #fff; font: 900 21px/1.2 var(--font-condensed); }
.listing-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 10px;
  border-left: 7px solid var(--red);
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
}
.sort-panel { display: flex; min-width: 0; align-items: center; gap: 7px; }
.sort-label { flex: 0 0 auto; color: #fff; background: var(--red); padding: 5px 8px; font-size: 11px; font-weight: 900; }
.sort-output { display: flex; min-width: 0; flex-wrap: wrap; gap: 5px; }
.sort-output a, .sort-output span { border: 1px solid #aaa39d; padding: 4px 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.sort-output a:hover, .sort-output .active, .sort-output .current { border-color: var(--red); color: #fff; background: var(--red); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.page-link { display: grid; min-width: 39px; min-height: 39px; place-items: center; border: 1px solid var(--line); padding: 5px 9px; background: var(--surface); font-weight: 800; }
.page-link:hover { border-color: var(--red); background: #291112; }
.page-link.current, .page-link.active, .page-link.on { border-color: var(--red); color: #fff; background: var(--red); }

.search-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.search-query-block { min-width: 0; }
.search-query-block h1 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.result-count { min-width: 82px; border: 2px solid var(--red); padding: 7px; text-align: center; }
.result-count strong, .result-count span { display: block; }
.result-count strong { color: #fff; font: 900 23px/1 var(--font-condensed); }
.result-count span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.result-rail { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; border-bottom: 3px solid var(--red); padding-bottom: 8px; }
.result-rail p { display: none; margin: 0; color: var(--muted); font-size: 12px; }
.empty-state--search { display: grid; gap: 4px; }
.empty-state--search strong { color: var(--text); font-size: 17px; }

.play-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.play-title-block { min-width: 0; }
.play-title-block h1 { display: -webkit-box; overflow: hidden; font-size: clamp(24px, 6vw, 38px); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.play-age { border: 2px solid var(--red); padding: 6px; color: #fff; font: 900 10px/1 var(--font-condensed); }
.watch-stage { border: 1px solid var(--line); padding: 6px; background: var(--surface); }
.player-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #393939;
  background: #000;
}
.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
  background: #000;
}
.player-status {
  position: absolute;
  z-index: 0;
  inset: auto 8px 8px auto;
  padding: 4px 7px;
  color: #b8b2ac;
  background: rgba(0,0,0,.75);
  font-size: 10px;
  pointer-events: none;
}
.player-frame.is-loaded .player-status { display: none; }
.player-frame.is-delayed .player-status { color: #fff; background: var(--red-dark); }
.video-actions-panel { width: 100%; max-width: 960px; margin: 6px auto 0; border-top: 3px solid var(--red); padding: 9px 8px; background: var(--paper); color: var(--ink); }
.related-section { margin-top: 20px; }

.site-footer { margin-top: 14px; border-top: 6px solid var(--red); background: var(--paper); color: var(--ink); }
.footer-grid { display: grid; gap: 20px; padding-block: 22px; }
.footer-identity { border-left: 8px solid var(--red); padding-left: 12px; }
.footer-identity h2 { margin-top: 3px; }
.footer-identity p { max-width: 620px; margin: 8px 0 0; color: #625d58; font-size: 13px; }
.friend-section { border-top: 1px solid var(--line-light); padding-top: 13px; }
.friend-section h2 { margin-bottom: 9px; font-size: 20px; }
.friend-links { display: flex; flex-wrap: wrap; gap: 5px; }
.friend-links a { border: 1px solid #aaa49e; padding: 5px 8px; color: #373330; font-size: 12px; }
.friend-links a:hover { border-color: var(--red); color: #fff; background: var(--red); }
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; border-top: 2px solid var(--ink); padding-block: 11px 17px; color: #625d58; font-size: 11px; }

.error-body { display: grid; min-height: 100vh; place-items: center; padding: 18px; }
.error-page { width: min(100%, 720px); }
.error-panel { position: relative; border: 2px solid var(--paper); border-top: 9px solid var(--red); padding: clamp(24px, 7vw, 58px); background: var(--surface); box-shadow: var(--shadow); }
.error-code { color: var(--red); font: 900 clamp(82px, 26vw, 180px)/.75 var(--font-condensed); letter-spacing: -.08em; }
.error-panel h1 { margin-top: 12px; }
.error-panel p { max-width: 520px; color: var(--muted); }
.return-link { display: inline-block; margin-top: 8px; border: 2px solid var(--red); padding: 10px 15px; color: #fff; background: var(--red); font-weight: 900; }
.return-link:hover { border-color: #fff; background: #fff; color: var(--ink); }
.error-domain { display: block; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 10px; color: #79736e; font-size: 11px; }

@media (min-width: 560px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .category-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-grid { gap: 11px; }
  .video-copy { min-height: 78px; padding: 10px; }
  .video-copy h3 { font-size: 14px; }
  .offset-heading { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .offset-heading p { display: block; margin: 0 14px; color: var(--muted); font-size: 12px; }
  .heading-number { min-width: 62px; }
  .result-rail p { display: block; }
}

@media (min-width: 641px) {
  .sponsor-banner,
  .sponsor-banner.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .directory-heading { grid-template-columns: minmax(0, 1fr) minmax(270px, .65fr); align-items: end; }
  .listing-toolbar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .related-heading { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .related-heading p { display: block; }
}

@media (min-width: 900px) {
  .masthead { grid-template-columns: minmax(320px, .85fr) minmax(400px, 1.15fr); align-items: end; padding-block: 21px 16px; }
  .header-utility { justify-self: stretch; }
  .private-note { text-align: right; }
  .category-nav { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .category-nav a { min-height: 50px; }
  .page-main { padding-block: 20px 32px; }
  .ruled-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .ruled-heading p { text-align: right; }
  .catalog-section, .listing-shell, .search-results, .related-section { margin-top: 26px; }
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
  .footer-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .friend-section { border-top: 0; border-left: 1px solid var(--line-light); padding: 0 0 0 20px; }
}

@media (min-width: 1240px) {
  .video-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .video-copy h3 { font-size: 15px; }
  .masthead { grid-template-columns: minmax(390px, .9fr) minmax(500px, 1.1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
