:root {
  color-scheme: dark;
  --live-bg: #0d0b07;
  --live-panel: #17130c;
  --live-panel-strong: #20190d;
  --live-gold: #d8b85a;
  --live-gold-bright: #f2d77e;
  --live-text: #eee5d7;
  --live-muted: rgba(238, 229, 215, 0.62);
  --live-line: rgba(216, 184, 90, 0.2);
  --live-sans: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --live-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--live-bg);
}

body {
  color: var(--live-text);
  font-family: var(--live-sans);
  -webkit-font-smoothing: antialiased;
}

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

.page {
  position: relative;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 24px 132px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 184, 90, 0.14), transparent 18rem),
    linear-gradient(180deg, #120f08 0%, #16120a 52%, #0d0b07 100%);
}

.listing-page { width: min(100%, 448px); }

.playback-page {
  width: min(100%, 860px);
  padding-right: 30px;
  padding-left: 30px;
}

.top-back {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(238, 229, 215, 0.72);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.top-back:hover,
.top-back:focus-visible { color: var(--live-gold-bright); }

.top-back:focus-visible,
.replay-card:focus-visible,
.state-action:focus-visible {
  outline: 2px solid rgba(242, 215, 126, 0.78);
  outline-offset: 3px;
}

.page-header {
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(216, 184, 90, 0.12);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--live-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.page-header h1 {
  margin: 0;
  color: #fbf7ee;
  font-family: var(--live-serif);
  font-size: clamp(24px, 5.5vw, 34px);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.page-lead {
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--live-muted);
  font-size: 13px;
  line-height: 1.75;
}

.vip-learn-link {
  display: inline-flex;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--live-gold-bright);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: underline;
  text-decoration-color: rgba(242, 215, 126, 0.42);
  text-underline-offset: 4px;
  cursor: pointer;
}

.vip-learn-link:hover,
.vip-learn-link:focus-visible {
  color: #fff0bf;
  text-decoration-color: currentColor;
  outline: none;
}

body.modal-open { overflow: hidden; }

.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: 18px;
  place-items: center;
  background: rgba(4, 3, 1, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.vip-dialog {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 36px);
  max-height: min(760px, calc(100dvh - 36px));
  perspective: 1400px;
  outline: none;
}

.vip-flip {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 680ms cubic-bezier(0.22, 0.78, 0.24, 1);
}

.vip-flip.is-flipped { transform: rotateY(180deg); }

.vip-face {
  width: 100%;
  max-height: calc(100vh - 36px);
  max-height: min(760px, calc(100dvh - 36px));
  overflow-y: auto;
  padding: 24px 22px 22px;
  border: 1px solid rgba(216, 184, 90, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(216, 184, 90, 0.12), transparent 17rem),
    linear-gradient(180deg, #211a0d, #151108);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  overscroll-behavior: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.vip-face-front { position: relative; }

.vip-face-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.vip-dialog-close {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--live-muted);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.vip-dialog-close:hover,
.vip-dialog-close:focus-visible {
  background: rgba(216, 184, 90, 0.13);
  color: var(--live-gold-bright);
  outline: none;
}

.vip-dialog-kicker {
  margin: 0;
  color: var(--live-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.vip-dialog h2 {
  margin: 8px 40px 0 0;
  color: #fff5d5;
  font-family: var(--live-serif);
  font-size: 23px;
  line-height: 1.35;
}

.vip-access-notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 215, 126, 0.3);
  border-radius: 10px;
  background: rgba(216, 184, 90, 0.09);
}

.vip-access-notice strong {
  display: block;
  color: #fff0bf;
  font-size: 14px;
  line-height: 1.5;
}

.vip-access-notice p {
  margin: 5px 0 0;
  color: rgba(238, 229, 215, 0.72);
  font-size: 12px;
  line-height: 1.65;
}

.vip-benefits {
  display: grid;
  gap: 10px;
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.vip-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(238, 229, 215, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.vip-benefits .vip-benefit-note {
  display: block;
  padding-left: 0;
  color: #9fb6d7;
  font-size: 13px;
  font-weight: 600;
}

.vip-benefit-number {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(216, 184, 90, 0.28);
  border-radius: 8px;
  background: rgba(216, 184, 90, 0.08);
  color: var(--live-gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.vip-benefits-star .vip-benefit-number {
  border: 0;
  background: transparent;
  font-size: 19px;
  line-height: 1;
}

.vip-benefit-link {
  color: var(--live-gold-bright);
  text-decoration: underline;
  text-decoration-color: rgba(242, 215, 126, 0.45);
  text-underline-offset: 3px;
}

.vip-benefit-link:hover,
.vip-benefit-link:focus-visible {
  color: #fff0bf;
  text-decoration-color: currentColor;
  outline: none;
}

.vip-rights-entry,
.vip-back-entry {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  padding: 3px 2px;
  border: 0;
  background: transparent;
  color: var(--live-gold-bright);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(242, 215, 126, 0.42);
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.vip-rights-entry:hover,
.vip-rights-entry:focus-visible,
.vip-back-entry:hover,
.vip-back-entry:focus-visible {
  color: #fff0bf;
  text-decoration-color: currentColor;
  outline: none;
}

.vip-rights-entry:active,
.vip-back-entry:active { color: #fff5d5; }

.vip-wechat {
  margin-top: 21px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 184, 90, 0.16);
  text-align: center;
}

.vip-wechat h3 {
  margin: 0;
  color: #fff0bf;
  font-family: var(--live-serif);
  font-size: 16px;
}

.vip-qr {
  width: min(100%, 190px);
  margin: 12px auto 0;
  padding: 6px;
  border-radius: 16px;
  background: #fff;
}

.vip-qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

.vip-face-back h2 { margin: 8px 40px 0 0; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 10px;
}

.section-heading h2 {
  margin: 0;
  color: rgba(251, 247, 238, 0.92);
  font-family: var(--live-serif);
  font-size: 17px;
}

.section-heading span {
  color: rgba(238, 229, 215, 0.42);
  font-size: 11px;
}

.replay-list {
  display: grid;
  gap: 11px;
}

.replay-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--live-line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(40, 32, 16, 0.92), rgba(22, 18, 11, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 246, 211, 0.035), 0 12px 26px rgba(0, 0, 0, 0.15);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.replay-card:hover,
.replay-card:focus-visible {
  border-color: rgba(242, 215, 126, 0.48);
  background: linear-gradient(145deg, rgba(53, 41, 17, 0.96), rgba(25, 20, 12, 0.98));
  transform: translateY(-1px);
}

.replay-card.is-checking {
  cursor: wait;
  opacity: 0.68;
  pointer-events: none;
}

.play-mark {
  display: grid;
  width: 54px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(216, 184, 90, 0.34);
  border-radius: 9px;
  background: linear-gradient(155deg, #3b2d10, #1b1509);
  color: var(--live-gold-bright);
}

.play-mark svg { width: 23px; height: 23px; }

.replay-copy { min-width: 0; }

.replay-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}

.replay-date {
  color: rgba(232, 219, 191, 0.62);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.member-badge {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(242, 215, 126, 0.28);
  border-radius: 5px;
  background: rgba(216, 184, 90, 0.08);
  color: #e7ca73;
  font-size: 10px;
  font-weight: 800;
}

.replay-title {
  margin: 0;
  color: #f3ecdf;
  font-family: var(--live-serif);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.replay-description {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: rgba(238, 229, 215, 0.5);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-arrow { color: rgba(216, 184, 90, 0.58); font-size: 22px; }

.loading-state,
.state-panel {
  display: grid;
  min-height: 190px;
  padding: 26px 22px;
  place-items: center;
  border: 1px solid rgba(216, 184, 90, 0.14);
  border-radius: 12px;
  background: rgba(20, 16, 9, 0.56);
  text-align: center;
}

.loading-state { color: rgba(238, 229, 215, 0.55); font-size: 13px; }

.state-copy strong {
  display: block;
  color: var(--live-gold-bright);
  font-family: var(--live-serif);
  font-size: 18px;
  line-height: 1.5;
}

.state-copy p {
  max-width: 440px;
  margin: 8px auto 0;
  color: rgba(238, 229, 215, 0.6);
  font-size: 13px;
  line-height: 1.75;
}

.state-action {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  border: 1px solid rgba(242, 215, 126, 0.42);
  border-radius: 8px;
  background: #d8b85a;
  color: #21190b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.playback-header {
  padding-top: 16px;
}

.playback-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.playback-heading-row h1 { min-width: 0; }

.access-pill {
  display: inline-flex;
  flex: none;
  min-height: 28px;
  align-items: center;
  margin-top: 3px;
  padding: 0 9px;
  border: 1px solid rgba(242, 215, 126, 0.28);
  border-radius: 6px;
  background: rgba(216, 184, 90, 0.08);
  color: #e7ca73;
  font-size: 11px;
  font-weight: 800;
}

.playback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: rgba(238, 229, 215, 0.5);
  font-size: 12px;
}

.player-frame {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(216, 184, 90, 0.24);
  border-radius: 12px;
  background: #070604;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

#player {
  width: 100%;
  height: 100%;
}

#player .prism-player,
#player video {
  width: 100% !important;
  height: 100% !important;
}

#player .prism-cover {
  background-size: contain !important;
}

#player .prism-big-play-btn {
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
}

.player-state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(216, 184, 90, 0.14), transparent 18rem),
    #100d08;
}

.player-feedback {
  margin: 10px 0 0;
  color: rgba(238, 229, 215, 0.52);
  font-size: 12px;
  line-height: 1.6;
}

.replay-info {
  margin-top: 18px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(216, 184, 90, 0.12);
}

.replay-info h2 {
  margin: 0;
  color: rgba(251, 247, 238, 0.9);
  font-family: var(--live-serif);
  font-size: 16px;
}

.replay-info p {
  margin: 8px 0 0;
  color: rgba(238, 229, 215, 0.58);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

@media (max-width: 620px) {
  .playback-page {
    width: min(100%, 448px);
    padding-right: 24px;
    padding-left: 24px;
  }

  .playback-heading-row {
    display: block;
  }

  .access-pill {
    margin-top: 10px;
  }

  .player-frame {
    min-height: 190px;
    border-radius: 9px;
  }
}

@media (max-width: 480px) {
  .vip-face { padding: 20px 18px 18px; }
  .vip-dialog h2 { font-size: 21px; }
  .vip-access-notice { margin-top: 13px; padding: 10px 11px; }
  .vip-access-notice strong { font-size: 13px; }
  .vip-access-notice p { font-size: 12px; }
  .vip-benefits { gap: 8px; margin-top: 14px; }
  .vip-benefits li { gap: 8px; font-size: 13px; line-height: 1.45; }
  .vip-benefits .vip-benefit-note { padding-left: 0; font-size: 12px; }
  .vip-benefit-number {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    font-size: 10px;
  }
  .vip-benefits-star .vip-benefit-number {
    border: 0;
    background: transparent;
    font-size: 17px;
  }
  .vip-rights-entry,
  .vip-back-entry { margin-top: 13px; font-size: 13px; }
  .vip-face-back .vip-benefits { gap: 7px; margin-top: 10px; }
  .vip-back-entry { margin-top: 6px; }
  .vip-face-back .vip-wechat { margin-top: 10px; padding-top: 10px; }
  .vip-wechat { margin-top: 13px; padding-top: 12px; }
  .vip-wechat h3 { font-size: 15px; }
  .vip-qr { width: min(100%, 164px); margin-top: 8px; padding: 5px; border-radius: 14px; }
}

@media (max-width: 390px) {
  .page { padding-right: 18px; padding-left: 18px; }
  .replay-card { grid-template-columns: 48px minmax(0, 1fr) 16px; gap: 11px; padding: 13px; }
  .play-mark { width: 48px; height: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .replay-card { transition: none; }
  .vip-flip { transition: none; }
}
