:root {
  --page: #050304;
  --surface: #171012;
  --surface-soft: #211416;
  --surface-raised: #2a171b;
  --wine: #671d2d;
  --wine-deep: #43111c;
  --wine-bright: #9d344a;
  --gold: #d8bc7a;
  --gold-soft: #f0ddb0;
  --cream: #f4ead7;
  --muted: #b9a8a5;
  --line: rgba(216, 188, 122, 0.22);
  --line-strong: rgba(216, 188, 122, 0.46);
  --danger: #d85268;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
  --radius-sm: 3px;
  --radius: 7px;
  --radius-lg: 12px;
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 28px;
  --container: 1480px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cream);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

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;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #1d1113;
  background: var(--gold-soft);
  transform: translateY(-160%);
}

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

.club-line {
  height: 3px;
  background: linear-gradient(90deg, var(--wine-deep), var(--gold), var(--wine));
}

.site-header {
  background: linear-gradient(135deg, #241216, #120d0f 66%);
  border-bottom: 1px solid var(--line);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.brand-mark,
.age-chip {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 43px;
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold-soft);
  background: var(--wine-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.brand-name {
  overflow: hidden;
  color: #fff8eb;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(22px, 6vw, 31px);
  font-weight: 700;
  line-height: 1.16;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.brand-intro {
  margin: 6px 0 0 55px;
  color: var(--muted);
  font-size: 12px;
}

.search-panel {
  display: grid;
  align-content: center;
  gap: 7px;
}

.site-search label {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
}

.search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: clip;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0b0809;
}

.search-control input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: var(--cream);
  background: transparent;
}

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

.search-control button {
  min-width: 88px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  color: #211416;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  font-weight: 800;
  cursor: pointer;
}

.search-control button:hover {
  background: #fff0c9;
}

.header-utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8f8080;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.header-utility a {
  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 {
  display: block;
  width: 100%;
  height: 100%;
}

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

.category-nav {
  position: static;
  border-block: 1px solid var(--line);
  background: #241216;
}

.category-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-block: 1px;
  background: rgba(216, 188, 122, 0.14);
}

.category-nav__grid a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 7px 5px;
  color: #e9deda;
  background: #211416;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  word-break: break-word;
}

.category-nav__grid a:hover,
.category-nav__grid a:focus-visible,
.category-nav__grid .category-nav__home {
  color: #261418;
  background: var(--gold);
}

.hot-strip {
  border-bottom: 1px solid rgba(216, 188, 122, 0.13);
  background: #0f0a0b;
}

.hot-strip__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-block: 9px;
}

.hot-strip__label {
  padding: 2px 7px;
  border-left: 3px solid var(--wine-bright);
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
}

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

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

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

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

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

.home-heading {
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border-left: 4px solid var(--wine-bright);
  background: linear-gradient(90deg, rgba(103, 29, 45, 0.34), rgba(23, 16, 18, 0.74));
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

h1 {
  color: #fff7e8;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(22px, 5.8vw, 35px);
}

h2 {
  font-size: clamp(18px, 4.5vw, 25px);
}

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

.content-section + .content-section {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: end;
  gap: 12px;
  min-width: 0;
  margin-bottom: 12px;
}

.section-heading--offset {
  padding: 10px 13px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--wine-deep), transparent 70%);
}

.section-heading--offset p {
  margin-left: auto;
  text-align: right;
}

.section-heading--split {
  justify-content: space-between;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}

.section-heading--line {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-index {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.heading-seal,
.live-mark {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 700;
}

.curated-section {
  padding: 16px 12px 14px;
  border-block: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(67, 17, 28, 0.37), rgba(23, 16, 18, 0.75));
}

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

.video-card {
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(216, 188, 122, 0.17);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

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

.video-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: #100b0c;
}

.video-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 51%, rgba(29, 8, 13, 0.65));
  pointer-events: none;
}

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

.cover-badge {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 7px;
  max-width: calc(100% - 14px);
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  color: #fff4e3;
  background: rgba(91, 20, 34, 0.88);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-badge--gold {
  color: #241316;
  background: rgba(216, 188, 122, 0.92);
}

.cover-badge--wine {
  background: rgba(157, 52, 74, 0.92);
}

.play-symbol {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(35, 10, 16, 0.78);
}

.play-symbol::after {
  position: absolute;
  top: 8px;
  left: 10px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--gold-soft);
  content: "";
}

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

.video-card h3 {
  display: -webkit-box;
  height: 2.9em;
  min-height: 2.9em;
  overflow: hidden;
  color: #eee3d6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-code,
.card-trail {
  overflow: hidden;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-trail {
  margin-top: auto;
  padding-top: 2px;
  color: #9c8986;
  letter-spacing: 0.03em;
}

.video-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
}

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

.video-card--curated {
  border-bottom: 3px solid var(--wine-bright);
}

.video-card--latest .video-card__body {
  border-top: 1px solid rgba(216, 188, 122, 0.12);
}

.catalog-heading {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, var(--wine-deep), #181012 70%);
  box-shadow: var(--shadow);
}

.catalog-heading__title p {
  margin-top: 5px;
}

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

.catalog-stats div {
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(7, 4, 5, 0.36);
}

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

.catalog-stats dd {
  margin: 2px 0 0;
  color: var(--gold-soft);
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.catalog-body {
  display: grid;
  min-width: 0;
}

.catalog-rail {
  display: none;
}

.catalog-content {
  min-width: 0;
}

.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.compact-heading--bordered {
  padding: 10px 0;
  border-block: 1px solid var(--line);
}

.sort-panel {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  padding: 10px;
  border-left: 3px solid var(--wine-bright);
  background: var(--surface-soft);
}

.sort-panel > span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sort-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sort-options a,
.sort-options button {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #d7c9c4;
  background: #100b0c;
  cursor: pointer;
}

.sort-options a:hover,
.sort-options a.active,
.sort-options a.current,
.sort-options button:hover,
.sort-options button.active {
  color: #221316;
  border-color: var(--gold);
  background: var(--gold);
}

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

.page-link {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: #ddd0c8;
  background: var(--surface);
  font-weight: 700;
}

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

.search-heading {
  padding: 15px 16px 17px;
  border-top: 3px solid var(--gold);
  background: linear-gradient(135deg, #2b161b, #151012);
}

.search-heading__label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

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

.search-grid:empty {
  display: block;
  min-height: 128px;
  padding: 28px 16px;
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  text-align: center;
}

.search-grid:empty::before {
  display: block;
  color: var(--gold-soft);
  content: "暂无匹配视频";
  font-size: 17px;
  font-weight: 700;
}

.search-grid:empty::after {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  content: "请更换关键词后重新搜索";
  font-size: 13px;
}

.play-heading {
  max-width: 960px;
  margin-inline: auto;
  padding-left: 13px;
  border-left: 4px solid var(--wine-bright);
}

.play-heading__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.play-heading h1 {
  display: -webkit-box;
  max-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.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);
  border-radius: var(--radius-sm);
  background: #000;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  overscroll-behavior: auto;
}

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

.player-frame.is-loading::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  content: "正在进入私享放映厅…";
  font-size: 12px;
}

.player-frame iframe {
  position: relative;
  z-index: 1;
}

.video-actions-panel {
  width: 100%;
  max-width: 960px;
  margin: 7px auto 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.video-actions-panel a,
.video-actions-panel button {
  min-height: 34px;
}

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

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(145deg, #221317, #0e090a 68%);
}

.footer-layout {
  padding-block: 22px;
}

.friend-section {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

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

.footer-section-heading h2 {
  font-size: 17px;
}

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

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

.friend-links a:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

.footer-bottom {
  display: grid;
  gap: 4px;
  padding-top: 16px;
  color: #8f7f7d;
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-brand {
  color: var(--gold-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 700;
}

.error-page {
  display: grid;
  min-height: 100vh;
}

.error-shell {
  display: grid;
  place-items: center;
  width: min(100% - 24px, 760px);
  margin: auto;
  padding-block: 24px;
}

.error-card {
  width: 100%;
  padding: 25px 20px;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--wine-bright);
  background: linear-gradient(140deg, #2a161b, #120c0e);
  box-shadow: var(--shadow);
  text-align: center;
}

.error-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--gold-soft);
  font-family: Georgia, "Songti SC", serif;
  font-size: 19px;
  font-weight: 700;
}

.error-card h1 {
  margin: 3px 0;
  color: var(--gold);
  font-size: clamp(70px, 24vw, 132px);
  line-height: 0.95;
}

.error-card h2 {
  margin-top: 12px;
}

.error-card > p:not(.section-kicker) {
  margin: 9px auto 20px;
  color: var(--muted);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: #231416;
  background: var(--gold);
  font-weight: 800;
}

.primary-link:hover {
  background: var(--gold-soft);
}

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

  .video-grid {
    gap: 14px 11px;
  }

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

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

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

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

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

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

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

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

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

@media (min-width: 800px) {
  .header-layout {
    grid-template-columns: minmax(280px, 0.78fr) minmax(390px, 1.22fr);
    align-items: center;
    gap: 36px;
    padding-block: 18px;
  }

  .site-search label {
    text-align: right;
  }

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

  .page-main {
    padding-block: 25px 32px;
  }

  .catalog-body {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
  }

  .catalog-rail {
    display: block;
    padding-top: 3px;
    border-right: 1px solid var(--line-strong);
    color: var(--muted);
  }

  .catalog-rail p {
    margin: 8px 0 0;
    font-size: 9px;
    letter-spacing: 0.13em;
    line-height: 1.7;
  }
}

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

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

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

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

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

  .category-nav__grid {
    grid-template-columns: repeat(12, 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;
  }
}
