:root {
  --page-bg: #050304;
  --surface: #171013;
  --surface-raised: #211419;
  --surface-soft: #2a171e;
  --wine: #651d32;
  --wine-deep: #3d1220;
  --wine-bright: #8b2947;
  --gold: #d9bd84;
  --gold-soft: #f0ddb3;
  --ivory: #f7f0e5;
  --muted: #b9a8a8;
  --line: rgba(217, 189, 132, 0.23);
  --line-strong: rgba(217, 189, 132, 0.48);
  --danger: #ce526d;
  --radius-sm: 3px;
  --radius-md: 7px;
  --radius-lg: 12px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  --container: 1440px;
  --gap: 14px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ivory);
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  z-index: 1000;
  top: -100px;
  left: 12px;
  padding: 9px 14px;
  background: var(--gold-soft);
  color: #241217;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  background: linear-gradient(125deg, #28141b 0%, #171013 48%, #31131f 100%);
  border-bottom: 1px solid var(--line);
}

.header-frame {
  display: grid;
  gap: 14px;
  padding-block: 15px 13px;
}

.brand-panel,
.search-panel {
  min-width: 0;
}

.brand-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  color: #2b141b;
  background: linear-gradient(145deg, var(--gold-soft), #b78c4d);
  border: 1px solid #f4deb0;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
  box-shadow: 0 0 0 4px rgba(217, 189, 132, 0.09);
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  overflow: hidden;
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(21px, 5vw, 29px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.19em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.search-panel {
  display: grid;
  gap: 5px;
}

.search-kicker,
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: rgba(7, 4, 5, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.site-search input {
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 0 13px;
  color: var(--ivory);
  background: transparent;
  border: 0;
  outline: 0;
}

.site-search input::placeholder {
  color: #8f7d7d;
}

.site-search button {
  min-width: 88px;
  padding: 0 15px;
  color: #241217;
  background: linear-gradient(135deg, var(--gold-soft), #c59a59);
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.hot-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 8px 11px;
  border-top: 1px solid rgba(217, 189, 132, 0.1);
}

.hot-strip__label {
  flex: 0 0 auto;
  padding: 2px 7px;
  color: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
}

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

.hot-strip__links a {
  max-width: 180px;
  overflow: hidden;
  color: #cbbbbb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.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 {
  width: 100%;
  height: 100%;
}

.sponsor-banner__item a {
  display: block;
}

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

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-block: 8px;
  background: #0b0708;
}

.category-nav a {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 7px 5px;
  overflow: hidden;
  color: #dacdca;
  background: var(--surface);
  border: 1px solid rgba(217, 189, 132, 0.1);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
}

.category-nav a:hover,
.category-nav a:focus-visible,
.category-nav__home {
  color: #29131a !important;
  background: var(--gold-soft) !important;
  border-color: var(--gold) !important;
}

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

.home-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px 15px;
  background: linear-gradient(100deg, var(--wine-deep), rgba(30, 16, 21, 0.94));
  border-left: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.home-intro h1,
.catalog-head h1,
.search-summary h1,
.watch-heading h1 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  color: #fff8ef;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.25;
}

.home-intro p,
.section-heading p,
.catalog-head p,
.search-summary p,
.watch-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.content-section,
.catalog-content,
.search-results,
.related-section {
  margin-top: 20px;
}

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

.section-heading h2,
.catalog-toolbar h2,
.footer-heading h2 {
  margin: 1px 0 0;
  color: #fff8ed;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 20px;
  line-height: 1.25;
}

.section-heading--split {
  justify-content: flex-start;
}

.section-heading--split p,
.section-heading--related p {
  margin-left: auto;
}

.section-number {
  color: transparent;
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 0.85;
  -webkit-text-stroke: 1px var(--line-strong);
}

.curated-section {
  padding: 15px 12px 13px;
  background: linear-gradient(145deg, rgba(72, 20, 36, 0.54), rgba(24, 14, 17, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-heading--offset {
  align-items: center;
  border-bottom-color: rgba(217, 189, 132, 0.35);
}

.section-seal {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  font-family: Georgia, serif;
  font-size: 11px;
}

.section-heading--ledger {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  align-items: center;
}

.section-heading--ledger p {
  display: none;
}

.ledger-line {
  align-self: stretch;
  background: var(--wine-bright);
}

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

.video-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid rgba(217, 189, 132, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

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

.video-cover {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #120b0d;
}

.video-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 8, 14, 0.55), transparent 53%);
  pointer-events: none;
}

.video-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.video-cover img.is-loaded {
  animation: imageReveal 260ms ease-out both;
}

.video-cover img.is-error {
  opacity: 0.35;
}

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

.play-glyph {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 248, 237, 0.8);
  border-radius: 50%;
  background: rgba(63, 15, 29, 0.74);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -45%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.play-glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff8ed;
  transform: translate(-40%, -50%);
}

.video-card:hover .play-glyph,
.video-card:focus-within .play-glyph {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.private-flag,
.new-flag,
.card-index {
  position: absolute;
  z-index: 3;
  top: 7px;
  right: 7px;
  max-width: calc(100% - 14px);
  padding: 3px 6px;
  overflow: hidden;
  color: #291219;
  background: var(--gold-soft);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-flag {
  color: #fff5eb;
  background: var(--wine-bright);
}

.card-index {
  right: auto;
  left: 7px;
  color: var(--gold-soft);
  background: rgba(38, 10, 18, 0.86);
  border: 1px solid rgba(217, 189, 132, 0.4);
}

.video-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  padding: 9px 9px 10px;
}

.video-card__body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  max-height: 2.8em;
  margin: 3px 0 0;
  overflow: hidden;
  color: #f3eae5;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-label,
.card-entry {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #a99090;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-entry {
  margin-top: auto;
  padding-top: 5px;
  color: var(--gold);
}

.video-card--curated {
  background: #25141a;
  border-color: rgba(217, 189, 132, 0.27);
}

.video-card--latest {
  border-radius: var(--radius-sm);
  border-bottom: 2px solid var(--wine-bright);
}

.empty-state {
  display: none;
  margin: 10px 0 0;
  padding: 22px 15px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.video-grid:not(:has(.video-card)) + .empty-state {
  display: block;
}

.catalog-head {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: linear-gradient(120deg, #451321, #211217 70%);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

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

.catalog-stats div {
  min-width: 0;
  padding: 10px;
  background: rgba(9, 5, 6, 0.42);
  border: 1px solid rgba(217, 189, 132, 0.25);
}

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

.catalog-stats dd {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--surface);
  border-left: 3px solid var(--wine-bright);
}

.toolbar-index {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.sort-area {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sort-area__label {
  color: var(--muted);
  font-size: 11px;
}

.sort-area a,
.sort-area button,
.sort-area span:not(.sort-area__label) {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 9px;
  color: #e0d3ce;
  background: #2a181e;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.sort-area a:hover,
.sort-area .active,
.sort-area .current {
  color: #261219;
  background: var(--gold-soft);
  border-color: var(--gold);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  padding: 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-link {
  display: grid;
  place-items: center;
  min-width: 35px;
  min-height: 35px;
  padding: 5px 9px;
  color: #d7c9c6;
  background: #29171d;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.page-link:hover,
.page-link.current,
.page-link.active,
.page-link.on {
  color: #281219;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  font-weight: 800;
}

.search-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  padding: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
}

.search-summary__mark {
  display: grid;
  place-items: center;
  padding: 7px;
  color: var(--gold);
  background: var(--wine-deep);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  writing-mode: vertical-rl;
}

.search-summary strong {
  color: var(--gold-soft);
}

.section-heading--search a {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 11px;
  border-bottom: 1px solid var(--line-strong);
}

.empty-state--search {
  flex-direction: column;
  gap: 5px;
}

.empty-state--search strong {
  color: var(--gold-soft);
  font-size: 16px;
}

.video-grid:not(:has(.video-card)) + .empty-state--search {
  display: flex;
}

.watch-stage {
  margin-inline: auto;
}

.watch-heading {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
  padding: 13px 14px;
  background: linear-gradient(100deg, var(--wine-deep), var(--surface));
  border-left: 4px solid var(--gold);
}

.watch-heading h1 {
  font-size: clamp(20px, 5vw, 30px);
}

.adult-notice {
  justify-self: start;
  padding: 5px 9px;
  color: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 800;
}

.player-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 540px;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(217, 189, 132, 0.42);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
  overscroll-behavior: auto;
}

.player-shell::before {
  content: "正在连接私享放映厅…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8f7d7d;
  background: #080506;
  font-size: 12px;
}

.player-shell.is-ready::before {
  display: none;
}

.player-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  overscroll-behavior: auto;
}

.video-actions-wrap {
  width: 100%;
  max-width: 960px;
  margin: 8px auto 0;
  padding: 9px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
}

.video-actions-wrap:empty {
  display: none;
}

.video-actions-wrap a,
.video-actions-wrap button {
  min-height: 34px;
  color: var(--ivory);
}

.related-section {
  margin-top: 22px;
}

.site-footer {
  padding-block: 18px max(18px, env(safe-area-inset-bottom));
  background: linear-gradient(150deg, #211116, #0d0809 62%);
  border-top: 1px solid var(--line-strong);
}

.footer-frame {
  display: grid;
  gap: 18px;
}

.friend-section {
  display: grid;
  gap: 10px;
}

.footer-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.footer-heading span {
  color: var(--gold);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.friend-links a {
  max-width: 190px;
  padding: 5px 8px;
  overflow: hidden;
  color: #c8b9b6;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(217, 189, 132, 0.15);
  border-radius: var(--radius-sm);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.friend-links a:hover {
  color: var(--gold-soft);
  border-color: var(--line-strong);
}

.footer-bottom {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  color: #8f8080;
  border-top: 1px solid rgba(217, 189, 132, 0.14);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  color: var(--gold-soft);
}

.footer-brand span {
  padding: 2px 5px;
  color: #281219;
  background: var(--gold-soft);
  border-radius: 2px;
  font-size: 9px;
  font-weight: 900;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 20%, #3e1522 0%, #12090c 42%, #050304 75%);
}

.error-panel {
  width: min(100%, 620px);
  padding: 28px 20px;
  text-align: center;
  background: rgba(25, 14, 18, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.error-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  color: var(--gold-soft);
}

.error-brand span {
  padding: 3px 6px;
  color: #2b141a;
  background: var(--gold-soft);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 900;
}

.error-code {
  margin: 18px 0 2px;
  color: transparent;
  font-family: Georgia, serif;
  font-size: clamp(74px, 24vw, 145px);
  font-weight: 900;
  line-height: 0.85;
  -webkit-text-stroke: 1px var(--gold);
}

.error-panel h1 {
  margin: 5px 0 8px;
  color: var(--ivory);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: 29px;
}

.error-panel p:not(.eyebrow) {
  margin: 0 auto;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  justify-content: center;
  margin: 20px 0 14px;
  padding: 10px 19px;
  color: #281219;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.error-panel small {
  display: block;
  overflow-wrap: anywhere;
  color: #76696a;
}

@keyframes imageReveal {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

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

  .video-card__body {
    padding: 10px 11px 11px;
  }

  .video-card__body h3 {
    font-size: 14px;
  }

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

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

  .adult-notice {
    justify-self: end;
  }
}

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

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

  .header-frame {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    align-items: center;
    gap: 30px;
  }

  .brand-panel {
    display: grid;
    grid-template-columns: auto minmax(100px, 1fr);
  }

  .brand-note {
    display: block;
    justify-self: end;
    padding-left: 16px;
    border-left: 1px solid var(--line);
  }

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

  .page-main {
    padding-block: 22px 28px;
  }

  .home-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 16px 19px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .section-heading--ledger p {
    display: block;
  }

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

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

  .footer-bottom {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .copyright {
    text-align: right;
  }
}

@media (min-width: 900px) {
  :root {
    --gap: 17px;
  }

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

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

  .curated-section {
    padding: 18px 17px 16px;
  }

  .search-summary {
    padding: 18px;
  }

  .watch-stage {
    padding-inline: 18px;
    border-right: 1px solid rgba(217, 189, 132, 0.12);
    border-left: 1px solid rgba(217, 189, 132, 0.12);
  }
}

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

  .header-frame {
    grid-template-columns: minmax(460px, 0.9fr) minmax(500px, 1.1fr);
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
