:root {
  color-scheme: dark;
  --page: #050403;
  --surface: #17100b;
  --surface-soft: #21160e;
  --surface-raised: #2b1b10;
  --paper: #e7d6bb;
  --paper-muted: #bda98e;
  --ink-dark: #21150d;
  --orange: #d66a24;
  --orange-bright: #f18a3d;
  --gold: #c9974c;
  --gold-pale: #e3bd79;
  --line: rgba(227, 189, 121, .24);
  --line-strong: rgba(227, 189, 121, .48);
  --danger: #b83d2d;
  --radius: 3px;
  --radius-large: 6px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 30px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .34);
  --container: 1480px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #050403;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--paper);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

.container {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 14px;
  color: #1b1008;
  background: var(--gold-pale);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  border-top: 4px solid var(--orange);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #2a190e 0%, #15100c 58%, #0c0907 100%);
}

.header-shell {
  display: grid;
  gap: 16px;
  padding-block: 18px 16px;
}

.brand {
  display: inline-flex;
  max-width: 100%;
  flex-direction: column;
}

.brand-kicker,
.eyebrow,
.section-label,
.error-ticket__label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brand-name {
  max-width: 100%;
  overflow: hidden;
  color: #f2dfc2;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(25px, 7vw, 40px);
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-note {
  margin: 7px 0 0;
  color: var(--paper-muted);
  font-size: 12px;
}

.header-tools {
  min-width: 0;
}

.search-label {
  display: block;
  margin-bottom: 6px;
  color: var(--paper-muted);
  font-size: 12px;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(4, 3, 2, .66);
}

.search-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 11px 12px;
  color: #f5e7d1;
  outline: 0;
  background: transparent;
}

.search-control input::placeholder {
  color: #847461;
}

.search-control button {
  border: 0;
  border-left: 1px solid var(--line-strong);
  padding: 0 15px;
  color: #211207;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
}

.search-control button:hover {
  background: var(--orange-bright);
}

.header-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 7px;
  color: #917e68;
  font-size: 10px;
  letter-spacing: .08em;
}

.header-quick a {
  color: var(--gold-pale);
}

.hot-strip {
  border-top: 1px solid rgba(255, 255, 255, .05);
  background: #0c0907;
}

.hot-strip__inner {
  display: grid;
  gap: 8px;
  padding-block: 9px;
}

.hot-strip__label {
  color: var(--orange-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.hot-strip__links {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.hot-strip__links a {
  max-width: 100%;
  overflow: hidden;
  color: var(--paper-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-strip__links a:hover {
  color: var(--gold-pale);
}

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

.sponsor-banner__item,
.sponsor-banner__item a,
.sponsor-banner__item img,
.sponsor-banner a,
.sponsor-banner img {
  width: 100%;
  height: 100%;
}

.sponsor-banner__item img,
.sponsor-banner img {
  object-fit: fill;
  border-radius: 2px;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-block: 2px 10px;
  border: 1px solid var(--line);
  background: var(--line);
}

.category-nav a {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 7px 5px;
  overflow: hidden;
  color: #d3c0a4;
  text-align: center;
  text-overflow: ellipsis;
  background: #17100b;
}

.category-nav a:hover,
.category-nav a[aria-current="page"],
.category-nav .category-home {
  color: #241207;
  background: var(--gold);
}

.page-main {
  padding-block: 16px 24px;
}

.home-heading,
.catalog-heading,
.search-heading,
.play-heading {
  margin-bottom: 18px;
}

.home-heading {
  display: grid;
  gap: 8px;
  align-items: end;
  border-left: 4px solid var(--orange);
  padding: 4px 0 4px 14px;
}

.home-heading h1,
.catalog-heading h1,
.search-heading h1,
.play-heading h1 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #f1dfc4;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(23px, 5.8vw, 36px);
  line-height: 1.2;
}

.home-heading p,
.catalog-heading p,
.search-heading p,
.play-heading p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 13px;
}

.content-section,
.catalog-content,
.search-results,
.related-section {
  margin-bottom: 22px;
}

.ranking-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.section-index {
  color: rgba(227, 189, 121, .38);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1;
  writing-mode: vertical-rl;
}

.section-index--small {
  display: block;
  margin-bottom: 16px;
  writing-mode: initial;
}

.section-body {
  min-width: 0;
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading--line {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-heading h2,
.curated-intro h2,
.catalog-toolbar h2,
.related-heading h2,
.site-footer h2 {
  margin: 2px 0 0;
  color: #ead8bc;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1.2;
}

.section-heading p,
.related-heading p {
  margin: 0;
  color: #8f806c;
  font-size: 11px;
  text-align: right;
}

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 12px;
}

.video-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
}

.video-card > a {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
}

.cover-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0806;
}

.cover-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 48%, rgba(29, 12, 3, .64));
}

.cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease, filter .28s ease;
}

.play-badge {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(190, 74, 21, .88);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .38);
}

.play-badge::after {
  position: absolute;
  top: 9px;
  left: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff3df;
  content: "";
}

.card-code {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  max-width: calc(100% - 16px);
  border-left: 2px solid var(--orange-bright);
  padding: 3px 7px;
  overflow: hidden;
  color: #f4dfc0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-overflow: ellipsis;
  background: rgba(24, 12, 6, .82);
  white-space: nowrap;
}

.card-copy {
  display: flex;
  min-height: 76px;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 11px 9px;
}

.card-copy h3 {
  display: -webkit-box;
  height: 44px;
  margin: 0;
  overflow: hidden;
  color: #e5d4b9;
  font-size: 14px;
  font-weight: 650;
  line-height: 22px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #947b5e;
  font-size: 10px;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.video-card:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.035);
}

.curated-section {
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
}

.curated-intro {
  margin-bottom: 13px;
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}

.curated-intro p {
  margin: 7px 0 0;
  color: var(--paper-muted);
  font-size: 12px;
}

.video-card--curated {
  background: #24170e;
}

.latest-section {
  border: 1px solid rgba(214, 106, 36, .3);
  padding: 14px;
  background: linear-gradient(145deg, #21140c, #100c09 62%);
}

.section-heading--offset {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.section-heading--offset .section-index {
  font-size: 25px;
}

.section-heading--offset p {
  grid-column: 2;
  text-align: left;
}

.video-card--latest {
  border-color: rgba(214, 106, 36, .28);
  background: #140e0a;
}

.catalog-heading {
  display: grid;
  gap: 15px;
  border: 1px solid var(--line);
  padding: 15px;
  background: linear-gradient(100deg, #2b1a0e, #120e0a);
}

.catalog-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.catalog-stats div {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: center;
  background: rgba(5, 4, 3, .42);
}

.catalog-stats dt {
  color: var(--paper-muted);
  font-size: 11px;
}

.catalog-stats dd {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--gold-pale);
  font-family: Georgia, serif;
  font-size: 21px;
  text-overflow: ellipsis;
}

.catalog-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.sort-panel {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.sort-panel a,
.sort-panel button,
.sort-panel span {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 11px;
  color: var(--paper-muted);
  background: #17100b;
}

.sort-panel a:hover,
.sort-panel .active,
.sort-panel .current {
  color: #231207;
  background: var(--gold);
}

.search-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.search-heading__number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #261207;
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  background: var(--orange);
  writing-mode: vertical-rl;
}

.search-heading > div:last-child {
  min-width: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
}

.search-heading strong {
  color: var(--gold-pale);
}

.empty-state {
  display: none;
  margin-top: 12px;
  border: 1px dashed var(--line-strong);
  padding: 24px 16px;
  text-align: center;
  background: rgba(34, 22, 13, .5);
}

.video-grid:empty + .empty-state {
  display: grid;
  gap: 4px;
}

.empty-state strong {
  color: var(--gold-pale);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 18px;
}

.empty-state span {
  color: var(--paper-muted);
  font-size: 12px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 20px 0 4px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.page-link,
.pagination a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--paper-muted);
  background: var(--surface);
}

.page-link:hover,
.pagination a:hover,
.page-link.current,
.page-link.active,
.pagination a.current,
.pagination a.active {
  border-color: var(--orange-bright);
  color: #231207;
  background: var(--gold-pale);
}

.play-heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  max-width: 960px;
  margin-inline: auto;
}

.play-heading__mark {
  border: 1px solid var(--orange);
  padding: 10px 5px;
  color: var(--orange-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.45;
  text-align: center;
}

.screening-room {
  margin-bottom: 22px;
}

.player-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .58);
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
}

.player-frame.is-ready {
  border-color: var(--gold);
}

.video-actions {
  width: 100%;
  max-width: 960px;
  min-height: 44px;
  margin: 6px auto 0;
  border-top: 2px solid var(--orange);
  padding: 8px 10px;
  background: var(--surface-soft);
}

.video-actions:empty {
  min-height: 0;
  border-top: 0;
  padding: 0;
}

.video-actions button,
.video-actions a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 11px;
  color: var(--paper);
  background: #130d09;
}

.related-section {
  border: 1px solid var(--line);
  padding: 14px;
  background: #100c09;
}

.related-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}

.related-heading__index {
  color: rgba(214, 106, 36, .72);
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
}

.related-heading p {
  grid-column: 2;
  text-align: left;
}

.site-footer {
  border-top: 3px solid var(--gold);
  color: var(--paper-muted);
  background: linear-gradient(140deg, #29180d, #100c09 55%, #080605);
}

.footer-layout {
  display: grid;
  gap: 20px;
  padding-block: 24px;
}

.footer-identity p {
  max-width: 620px;
  margin: 9px 0;
  font-size: 12px;
}

.footer-mark {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.friend-links {
  border-left: 2px solid var(--orange);
  padding-left: 14px;
}

.friend-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
}

.friend-links__list a {
  max-width: 100%;
  overflow: hidden;
  color: #cbb89d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-links__list a:hover {
  color: var(--orange-bright);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-block: 12px 18px;
  color: #7d6c59;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
  background: #050403;
}

.error-shell {
  width: min(100%, 680px);
}

.error-ticket {
  position: relative;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--orange);
  padding: 28px 20px;
  text-align: center;
  background: linear-gradient(145deg, #2b1a0e, #100c09);
  box-shadow: var(--shadow);
}

.error-code {
  display: block;
  margin: 9px 0 0;
  color: var(--gold-pale);
  font-family: Georgia, serif;
  font-size: clamp(72px, 24vw, 150px);
  line-height: .95;
}

.error-ticket h1 {
  margin: 10px 0 4px;
  color: #f0dec2;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 28px;
}

.error-ticket p {
  margin: 0 0 20px;
  color: var(--paper-muted);
}

.error-ticket a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--gold);
  padding: 8px 18px;
  color: #211207;
  font-weight: 800;
  background: var(--gold-pale);
}

@media (min-width: 500px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .section-heading--offset {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .section-heading--offset p {
    grid-column: auto;
    text-align: right;
  }
}

@media (min-width: 641px) {
  .sponsor-banner,
  .sponsor-banner.container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    width: min(100% - 36px, var(--container));
  }

  .header-shell {
    grid-template-columns: minmax(220px, .8fr) minmax(340px, 1.2fr);
    align-items: end;
  }

  .hot-strip__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .category-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .home-heading {
    grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr);
  }

  .home-heading p {
    text-align: right;
  }

  .ranking-section {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
  }

  .section-index {
    font-size: 40px;
  }

  .curated-section {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
  }

  .curated-intro {
    margin-bottom: 0;
  }

  .catalog-heading {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
  }

  .sort-panel {
    justify-content: flex-end;
  }

  .related-heading {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .related-heading p {
    grid-column: auto;
    text-align: right;
  }

  .footer-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 820px) {
  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-nav {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page-main {
    padding-block: 20px 30px;
  }

  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .category-nav {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }

  .content-section,
  .catalog-content,
  .search-results,
  .related-section {
    margin-bottom: 28px;
  }

  .latest-section,
  .related-section {
    padding: 18px;
  }
}

@media (min-width: 1380px) {
  .video-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .curated-section {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
