:root {
  color-scheme: dark;
  --bg: #07080d;
  --panel: #11131b;
  --panel-hover: #151721;
  --text: #f8f8fb;
  --muted: #a2a5b1;
  --accent: #ff3357;
  --yellow: #ffd348;
  --qq-blue: #12b7f5;
  --line: rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
}

html {
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 0%, rgba(255, 211, 72, 0.09), transparent 28rem),
    radial-gradient(circle at 5% 35%, rgba(255, 51, 87, 0.08), transparent 24rem),
    var(--bg);
  line-height: 1.65;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .page-shell,
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: calc(88px + env(safe-area-inset-top, 0px)) 24px 32px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(7, 8, 13, 0.98), rgba(10, 12, 18, 0.99)),
    var(--bg);
}

.access-gate.is-keyboard-visible {
  top: var(--visual-viewport-top, 0px);
  bottom: auto;
  height: var(--visual-viewport-height, 100vh);
  place-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 16px;
  scroll-padding-bottom: 20px;
}

.access-gate.is-keyboard-visible .access-back-link {
  display: none;
}

.access-card {
  width: min(430px, 100%);
  padding: 32px 28px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 85px rgba(0, 0, 0, 0.36);
}

.access-gate.is-keyboard-visible .access-card {
  padding: 14px 16px;
}

.access-title {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.access-gate.is-keyboard-visible .access-title {
  font-size: 20px;
}

.access-hint {
  margin-bottom: 25px;
  color: var(--yellow);
  font-size: 14px;
}

.access-gate.is-keyboard-visible .access-hint {
  display: none;
}

.access-gate.is-keyboard-visible .access-field {
  grid-template-columns: minmax(0, 1fr) auto;
}

.access-gate.is-keyboard-visible .access-submit {
  width: 104px;
}

.access-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.access-field input {
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 13px;
  font: 600 15px/1.2 inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-field {
  position: relative;
  display: block;
  min-width: 0;
}

.password-field input {
  padding-right: 48px;
}

.password-visibility-button {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.password-visibility-button:hover {
  color: var(--yellow);
  background: rgba(255, 211, 72, 0.1);
}

.access-field input:focus {
  border-color: rgba(255, 211, 72, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.13);
}

.access-submit {
  width: 104px;
}

.access-error {
  margin: 13px 0 0;
  color: #ff758b;
  font-size: 13px;
}

.access-back-link {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(17, 19, 27, 0.92);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.access-back-link:hover {
  color: var(--yellow);
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.34);
}

.access-card noscript {
  display: block;
  margin-top: 10px;
  color: #ff758b;
  font-size: 13px;
}

.page-shell {
  width: min(520px, 100%);
  margin: auto;
  padding: calc(94px + env(safe-area-inset-top, 0px)) 20px 96px;
}

.home-view {
  width: min(760px, 100%);
  margin: 0 auto;
}

.home-fixed-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 70;
  width: min(760px, calc(100vw - 32px));
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 13px;
  background: rgba(7, 8, 13, 0.95);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.home-heading {
  position: relative;
  margin-bottom: 0;
  padding-right: 0;
}

.home-heading > div {
  min-width: 0;
}

.home-heading h1 {
  margin-bottom: 8px;
  padding-right: 46px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
}

.home-announcement {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 14px;
  min-height: 37px;
  color: #ffe8a3;
  background:
    linear-gradient(90deg, rgba(255, 51, 87, 0.18), rgba(255, 211, 72, 0.08)),
    rgba(17, 19, 27, 0.92);
  border: 1px solid rgba(255, 211, 72, 0.22);
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.home-announcement-icon {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  color: var(--yellow);
  background: rgba(255, 211, 72, 0.1);
  border-radius: 9px;
}

.home-announcement-icon svg {
  width: 17px;
  height: 17px;
}

.home-announcement-viewport {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.home-announcement-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: home-announcement-marquee var(--announcement-duration, 28s) linear infinite;
  animation-duration: var(--announcement-duration, 28s) !important;
}

.home-announcement-message {
  display: block;
  padding-right: 72px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
  line-height: 35px;
}

.experience-announcement {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
}

.source-section-heading.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.experience-heading-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.experience-heading-main > div {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.experience-heading-main .eyebrow {
  margin-bottom: 10px;
}

.experience-heading > p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.experience-settings-entry {
  flex: 0 0 auto;
  margin-left: auto;
}

.experience-xianyu-section {
  margin-top: 0;
}

.experience-heading-divider {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 211, 72, 0.78),
    rgba(255, 255, 255, 0.46) 45%,
    rgba(255, 51, 87, 0.64)
  );
  box-shadow: 0 1px 8px rgba(255, 211, 72, 0.16);
}

body.is-experience-route .page-shell {
  padding-top: calc(32px + env(safe-area-inset-top, 0px));
}

@keyframes home-announcement-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-section-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: 9px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

body.is-home-route .page-shell {
  padding-top: calc(165px + env(safe-area-inset-top, 0px));
}

.settings-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-header-actions {
  position: absolute;
  top: 0;
  right: 12px;
  display: flex;
  gap: 8px;
}

.settings-link:hover {
  color: var(--yellow);
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.34);
}

.settings-link svg {
  width: 18px;
  height: 18px;
}

.entry-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 126px;
  padding: 20px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(3, 5, 12, 0.24);
  transition: transform 0.25s cubic-bezier(.2, .8, .25, 1), border-color 0.2s ease,
    background-color 0.2s ease, box-shadow 0.25s ease;
}

.entry-card:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.3);
  color: var(--text);
  border-color: rgba(255, 211, 72, 0.42);
  box-shadow: 0 22px 46px rgba(3, 5, 12, 0.34);
  transform: translateY(-6px) scale(1.012);
}

.entry-card:active {
  transform: translateY(-2px) scale(0.997);
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.entry-icon svg {
  width: 24px;
  height: 24px;
}

.entry-icon-video {
  color: var(--yellow);
}

.entry-icon-beta {
  padding: 0;
  background: transparent;
  border-color: transparent;
}

.entry-icon-beta img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 13px;
}

.home-xianyu-icon {
  width: 52px;
  height: 52px;
  background: transparent;
  border: 0;
}

.home-xianyu-icon .entry-avatar {
  display: block;
}

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

.entry-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.3;
}

.entry-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.entry-card.is-disabled {
  pointer-events: none;
  color: #767b86;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.68;
}

.entry-card.is-disabled .entry-copy p,
.entry-card.is-disabled .entry-icon {
  color: #767b86;
}

.entry-card-xianyu {
  border-color: rgba(255, 211, 72, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 211, 72, 0.12), rgba(255, 51, 87, 0.08)),
    var(--panel);
}

.entry-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: cover;
  background: #191c25;
  border: 2px solid rgba(255, 211, 72, 0.65);
  border-radius: 50%;
}

.back-link {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-bottom: 0;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(17, 19, 27, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.back-link:hover {
  color: var(--yellow);
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.34);
}

.back-link .icon {
  width: 15px;
  height: 15px;
}

.site-footer {
  margin-top: 78px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 7px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-copyright {
  color: #767b86;
  font-size: 12px;
}

.beta-access-section {
  width: min(520px, 100%);
}

.beta-access-card {
  padding: 28px;
  background: linear-gradient(135deg, rgba(255, 51, 87, 0.16), rgba(255, 211, 72, 0.07));
  border: 1px solid rgba(255, 51, 87, 0.3);
  border-radius: 18px;
}

.beta-access-card h1 {
  margin-bottom: 10px;
  font-size: clamp(27px, 4vw, 34px);
  line-height: 1.15;
}

.beta-access-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.cinema-section {
  width: min(620px, 100%);
}

.cinema-choice-grid {
  display: grid;
  gap: 12px;
}

.cinema-choice-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 104px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cinema-choice-card:hover {
  background: var(--panel-hover);
  border-color: rgba(18, 183, 245, 0.34);
  transform: translateY(-1px);
}

.cinema-choice-card h2 {
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 1.3;
}

.cinema-choice-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.entry-icon-cinema {
  color: var(--qq-blue);
}

.cinema-detail-section {
  width: min(620px, 100%);
}

.install-panel,
.install-note-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.install-panel:hover,
.android-app-link:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 51, 87, 0.3);
  transform: translateY(-1px);
}

.install-panel-copy h2 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.3;
}

.install-panel-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.ios-app-list,
.android-app-list {
  display: grid;
  gap: 12px;
}

.cinema-app-divider {
  height: 1px;
  margin: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
}

.ios-app-item {
  display: grid;
  gap: 12px;
}

.install-note-panel {
  margin-top: 12px;
  padding: 22px;
}

.install-note-panel h2 {
  margin-bottom: 9px;
  font-size: 18px;
}

.install-note-panel p {
  margin-bottom: 0;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.install-screenshot {
  width: min(430px, 100%);
  margin: 19px auto 0;
}

.install-screenshot img {
  display: block;
  width: 100%;
  background: var(--panel-hover);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.button-install {
  min-height: 48px;
  padding: 12px 19px;
  color: #fff;
  background: var(--accent);
  border-color: transparent;
  border-radius: 14px;
  font-size: 14px;
}

.button-install:hover {
  color: #fff;
  background: #ff4d6c;
  box-shadow: 0 12px 30px rgba(255, 51, 87, 0.24);
}

.android-app-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.android-app-actions .button {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 13px;
  font-size: 14px;
  text-align: center;
}

.button-apk {
  color: #fff;
  background: var(--qq-blue);
  border-color: transparent;
}

.button-apk:hover {
  color: #fff;
  background: #42c9f8;
  box-shadow: 0 12px 30px rgba(18, 183, 245, 0.24);
}

.button-apk.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.button-install.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.downgrade-section {
  width: min(620px, 100%);
}

.downgrade-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}

.downgrade-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 22px;
  border-radius: 15px;
  font-size: 16px;
  text-decoration: none;
}

.downgrade-button .icon {
  width: 20px;
  height: 20px;
}

.official-section {
  width: min(620px, 100%);
}

.official-credentials {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.official-credentials > .eyebrow {
  margin-bottom: 0;
  color: var(--yellow);
}

.system-restart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.system-restart-actions .button {
  min-height: 46px;
  border-radius: 13px;
  font-size: 14px;
}

.credentials-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.credentials-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.credentials-value {
  min-width: 0;
  padding: 9px 12px;
  overflow: hidden;
  color: var(--yellow);
  background: rgba(255, 211, 72, 0.08);
  border: 1px solid rgba(255, 211, 72, 0.22);
  border-radius: 10px;
  font: 700 14px/1.4 inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credentials-row .button {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 11px;
  font-size: 13px;
  white-space: nowrap;
}

.usage-section {
  margin-bottom: 76px;
}

.usage-tutorial-link {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
}

.source-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.source-section-heading h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}

.source-section-heading > p {
  max-width: 480px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.source-heading-actions {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.source-heading-actions > p {
  margin-bottom: 0;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-tabs {
  position: sticky;
  top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 60;
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  background: rgba(10, 12, 18, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.source-tabs::-webkit-scrollbar {
  display: none;
}

.source-tab {
  flex: 1 0 84px;
  min-height: 38px;
  padding-right: 12px;
  padding-left: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font: 800 13px/1.2 inherit;
  white-space: nowrap;
  scroll-snap-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.source-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.source-tab.is-active {
  color: #111;
  background: var(--yellow);
}

.playback-history-toggle.is-active {
  color: #111;
  background: var(--yellow);
  border-color: transparent;
}

.custom-vod {
  display: grid;
  gap: 12px;
}

.bilibili-search {
  grid-template-columns: minmax(88px, 96px) minmax(0, 1fr) 104px minmax(112px, 124px) 88px;
}

.mv-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(112px, 124px) 88px;
  gap: 8px;
}

.mv-search input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 600 14px/1.3 inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mv-search input:focus-visible {
  border-color: rgba(255, 211, 72, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

.mv-search .button {
  min-height: 44px;
}

.mv-results {
  display: grid;
  gap: 12px;
}

.bilibili-results {
  display: grid;
  gap: 12px;
}

.bilibili-card {
  align-items: start;
  grid-template-columns: minmax(120px, 154px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.bilibili-card .custom-vod-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
}

.bilibili-card .custom-vod-body h3 {
  font-size: 17px;
  line-height: 1.3;
}

.bilibili-card .custom-vod-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bilibili-player {
  width: 100%;
  max-height: min(68vh, 460px);
  margin-top: 2px;
  aspect-ratio: 16 / 9;
  background: #05070c;
  border-radius: 8px;
  object-fit: contain;
}

.mv-popular-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.mv-popular-list.is-empty,
.mv-popular-list.is-loading {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 38px;
}

.mv-card {
  align-content: start;
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mv-card:hover,
.mv-card:focus-visible,
.mv-card.is-active {
  border-color: rgba(255, 211, 72, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 211, 72, 0.18);
  transform: translateY(-1px);
}

.mv-card.is-active {
  grid-column: 1 / -1;
  grid-template-columns: minmax(120px, 154px) minmax(0, 1fr);
  align-items: start;
  padding: 10px;
}

.mv-trending-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.mv-trending-card .mv-poster {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0;
}

.mv-trending-card .mv-card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 44px;
  padding: 6px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, 0.94));
  pointer-events: none;
}

.mv-trending-card .mv-card-body h3 {
  color: var(--text);
  font-size: 11px;
  line-height: 1.28;
}

.mv-trending-card .custom-vod-meta {
  color: var(--yellow);
  font-size: 10px;
}

.mv-trending-card.is-active {
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  overflow: visible;
  padding: 10px;
}

.mv-trending-card.is-active .mv-poster {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.mv-trending-card.is-active .mv-card-body {
  position: static;
  min-height: 0;
  padding: 0;
  background: none;
  pointer-events: auto;
}

.mv-trending-card.is-active .mv-card-body h3 {
  font-size: 15px;
  line-height: 1.3;
}

.mv-trending-card.is-active .custom-vod-meta {
  color: var(--muted);
  font-size: 13px;
}

.mv-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.mv-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mv-card-body h3 {
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.32;
}

.mv-card .custom-vod-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-card .mv-actions {
  display: none;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 2px;
}

.mv-card.is-active .mv-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.mv-player {
  width: 100%;
  max-height: min(68vh, 460px);
  margin-top: 2px;
  aspect-ratio: 16 / 9;
  background: #05070c;
  border-radius: 8px;
  object-fit: contain;
}

.mv-card .mv-actions .button {
  min-width: 0;
  min-height: 36px;
  padding: 7px 6px;
  justify-content: center;
  font-size: 12px;
}

.mv-card .mv-actions .button.is-loading {
  opacity: 0.68;
  pointer-events: none;
}

.mv-card .mv-actions .custom-vod-button-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mv-popular .custom-vod-popular-heading {
  align-items: flex-start;
}

.mv-popular .custom-vod-popular-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.custom-vod-search {
  display: grid;
  grid-template-columns: minmax(88px, 96px) minmax(0, 1fr) 104px minmax(112px, 124px) 88px;
  gap: 8px;
}

.custom-vod-search input,
.custom-vod-search select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: 600 14px/1.3 inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-vod-search select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-vod-search input:focus-visible,
.custom-vod-search select:focus-visible {
  border-color: rgba(255, 211, 72, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

.custom-vod-search .button {
  min-height: 44px;
}

.playback-history-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  margin: auto;
  overflow-y: auto;
  padding: 15px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.playback-history-dialog[open] {
  display: grid;
  gap: 10px;
}

.playback-history-dialog::backdrop {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(3px);
}

.tutorial-video-dialog {
  width: min(1080px, calc(100vw - 24px));
  max-height: min(92vh, 820px);
  margin: auto;
  overflow: hidden;
  padding: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.tutorial-video-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 11px;
}

.tutorial-video-dialog::backdrop {
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(3px);
}

.tutorial-video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-video-heading h2 {
  margin: 0;
  font-size: 17px;
}

.tutorial-video-close {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.tutorial-video-close svg {
  width: 17px;
  height: 17px;
}

.tutorial-video-player {
  min-width: 0;
}

.tutorial-video-player video {
  display: block;
  width: 100%;
  max-height: min(76vh, 700px);
  aspect-ratio: 16 / 9;
  background: #05070c;
  border-radius: 8px;
  object-fit: contain;
}

.playback-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.playback-history-heading h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 17px;
}

.playback-history-heading h2 span {
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  font-size: 11px;
}

.playback-history-heading-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.playback-history-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-height: 38px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.playback-history-close:hover {
  color: #ff6b81;
  border-color: rgba(255, 107, 129, 0.42);
}

.playback-history-close svg {
  width: 17px;
  height: 17px;
}

.playback-history-player:empty {
  display: none;
}

.playback-history-player {
  margin-bottom: 12px;
}

.playback-history-player video {
  max-height: min(42vh, 420px);
}

.playback-history-list {
  display: grid;
  gap: 8px;
  justify-items: start;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
  max-height: min(52vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.playback-history-list.is-empty {
  display: block;
  max-height: none;
  overflow: visible;
  color: var(--muted);
  font-size: 13px;
}

.playback-history-item {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 36px;
  gap: 7px;
  align-items: stretch;
  justify-self: start;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
}

.playback-history-play {
  display: inline-grid;
  grid-template-columns: 48px minmax(0, auto);
  gap: 10px;
  align-items: center;
  min-height: 66px;
  justify-self: start;
  min-width: 0;
  width: -webkit-fit-content;
  width: fit-content;
  max-width: 100%;
  padding: 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.playback-history-play:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 211, 72, 0.34);
}

.playback-history-poster {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 50px;
  overflow: hidden;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.playback-history-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playback-history-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.playback-history-copy strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.playback-history-copy small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.playback-history-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.playback-history-remove:hover {
  color: #ff6b81;
  border-color: rgba(255, 107, 129, 0.42);
}

.custom-vod-popular {
  display: grid;
  gap: 11px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.custom-vod-popular-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.custom-vod-popular-heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.custom-vod-popular-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 10px;
}

.custom-vod-popular-tabs button {
  min-height: 28px;
  padding: 5px 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: 800 12px/1.2 inherit;
  cursor: pointer;
}

.custom-vod-popular-tabs button.is-active {
  color: #111;
  background: var(--yellow);
}

.custom-vod-popular-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}

.custom-vod-popular-list.is-empty,
.custom-vod-popular-list.is-loading {
  display: block;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  line-height: 38px;
}

.custom-vod-popular-skeleton {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--panel-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.custom-vod-popular-skeleton::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.035) 0%,
      rgba(255, 255, 255, 0.105) 38%,
      rgba(255, 211, 72, 0.08) 52%,
      rgba(255, 255, 255, 0.035) 68%
    );
  background-size: 220% 100%;
  animation: custom-vod-skeleton-shimmer 1.15s ease-in-out infinite;
}

.custom-vod-popular-skeleton::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  height: 28px;
  content: "";
  background: rgba(255, 255, 255, 0.045);
  border-radius: 6px;
}

@keyframes custom-vod-skeleton-shimmer {
  0%,
  100% {
    background-position: 125% 0;
    opacity: 0.72;
  }

  50% {
    background-position: -25% 0;
    opacity: 1;
  }
}

.custom-vod-popular-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel-hover);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.custom-vod-popular-card.is-active {
  border-color: rgba(255, 211, 72, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 211, 72, 0.18);
}

.custom-vod-popular-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.045);
}

.custom-vod-popular-card img.is-unavailable {
  background: rgba(255, 255, 255, 0.045);
}

.custom-vod-poster.is-loading,
.custom-vod-popular-card img.is-loading {
  box-sizing: border-box;
  border: 2px solid rgba(255, 211, 72, 0.16);
  border-top-color: rgba(255, 211, 72, 0.86);
  border-right-color: rgba(255, 211, 72, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  animation: vod-poster-spin 0.8s linear infinite;
}

@keyframes vod-poster-spin {
  to {
    transform: rotate(360deg);
  }
}

.custom-vod-popular-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 6px 6px 5px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 13, 0.94));
  text-align: left;
}

.custom-vod-popular-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.custom-vod-popular-copy small {
  overflow: hidden;
  color: var(--yellow);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-vod-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.custom-vod-status.is-error {
  color: #ff758b;
}

.custom-vod-results {
  display: grid;
  gap: 12px;
}

.custom-vod-result {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.custom-vod-poster {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--panel-hover);
  border-radius: 9px;
}

.custom-vod-poster.is-unavailable {
  background: rgba(255, 255, 255, 0.045);
}

.custom-vod-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.custom-vod-body h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 17px;
  line-height: 1.3;
}

.custom-vod-meta {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.custom-vod-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.custom-vod-route {
  min-height: 31px;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: 700 12px/1.2 inherit;
  cursor: pointer;
}

.custom-vod-route.is-active {
  color: #111;
  background: var(--yellow);
  border-color: transparent;
}

.custom-vod-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.mv-result-card {
  align-items: start;
  grid-template-columns: minmax(120px, 154px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
}

.mv-result-card .mv-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
}

.mv-result-card .mv-card-body h3 {
  font-size: 17px;
  line-height: 1.3;
}

.mv-result-card .mv-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.mv-result-card.is-active {
  grid-column: auto;
  grid-template-columns: minmax(120px, 154px) minmax(0, 1fr);
}

.custom-vod-cart {
  display: grid;
  gap: 10px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.custom-vod-cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.custom-vod-cart-heading h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.custom-vod-cart-heading span {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  color: #111;
  background: var(--yellow);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
}

.custom-vod-cart-list {
  display: grid;
  gap: 8px;
}

.custom-vod-cart-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.custom-vod-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.custom-vod-cart-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.custom-vod-cart-copy strong,
.custom-vod-cart-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-vod-cart-copy strong {
  font-size: 13px;
}

.custom-vod-cart-copy small {
  color: var(--muted);
  font-size: 11px;
}

#custom-vod-cart-copy,
#custom-vod-cart-tubo,
#mv-cart-copy,
#mv-cart-tubo {
  width: 100%;
  min-height: 40px;
}

.custom-vod-actions .button {
  width: 100%;
  min-height: 38px;
  padding: 8px 7px;
  gap: 5px;
  font-size: 12px;
}

.custom-vod-actions .custom-vod-button-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-vod-player-wrap {
  display: grid;
  gap: 8px;
}

body.player-scroll-locked {
  overflow: hidden;
}

html.playback-history-scroll-locked,
body.playback-history-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body.playback-history-scroll-locked {
  position: fixed;
  right: 0;
  bottom: auto;
  left: 0;
  top: var(--playback-history-scroll-top, 0);
  width: 100%;
}

html.tutorial-video-scroll-locked,
body.tutorial-video-scroll-locked {
  overflow: hidden;
  overscroll-behavior: none;
}

body.tutorial-video-scroll-locked {
  position: fixed;
  right: 0;
  bottom: auto;
  left: 0;
  top: var(--tutorial-video-scroll-top, 0);
  width: 100%;
}

.video-player-shell {
  position: relative;
  width: 100%;
}

.video-player-shell .custom-vod-player,
.video-player-shell .mv-player,
.video-player-shell .bilibili-player {
  display: block;
  margin: 0;
}

.mv-card .video-player-shell,
.bilibili-card .video-player-shell {
  margin-top: 2px;
}

.video-player-shell:fullscreen,
.video-player-shell:-webkit-full-screen,
.video-player-shell[data-player-fullscreen="true"] {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-player-shell:fullscreen video,
.video-player-shell:-webkit-full-screen video,
.video-player-shell[data-player-fullscreen="true"] video {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.video-player-shell.is-rotated-landscape {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1000;
  width: var(--player-stage-width, 100dvh);
  height: var(--player-stage-height, 100dvw);
  background: #000;
  border-radius: 0;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center;
}

.video-player-shell.is-rotated-landscape video {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: contain;
}

.player-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.video-player-controls {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 4px;
}

.player-lock {
  position: absolute;
  z-index: 7;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.player-tools {
  z-index: 6;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.player-enter-fullscreen,
.player-landscape,
.player-exit {
  gap: 4px;
  width: 68px;
}

.video-player-button.player-cast,
.video-player-button.player-lock,
.video-player-button.player-landscape,
.video-player-button.player-exit {
  display: none;
}

.video-player-shell:fullscreen .player-enter-fullscreen,
.video-player-shell:-webkit-full-screen .player-enter-fullscreen,
.video-player-shell[data-player-fullscreen="true"] .player-enter-fullscreen {
  display: none;
}

.video-player-shell:fullscreen .player-cast,
.video-player-shell:fullscreen .player-lock,
.video-player-shell:fullscreen .player-landscape,
.video-player-shell:-webkit-full-screen .player-cast,
.video-player-shell:-webkit-full-screen .player-lock,
.video-player-shell:-webkit-full-screen .player-landscape,
.video-player-shell[data-player-fullscreen="true"] .player-cast,
.video-player-shell[data-player-fullscreen="true"] .player-lock,
.video-player-shell[data-player-fullscreen="true"] .player-landscape {
  display: inline-flex;
}

.video-player-shell:fullscreen:not(.wants-landscape) .player-exit,
.video-player-shell:-webkit-full-screen:not(.wants-landscape) .player-exit,
.video-player-shell[data-player-fullscreen="true"]:not(.wants-landscape) .player-exit {
  display: inline-flex;
}

.player-enter-fullscreen .video-player-button-label,
.player-landscape .video-player-button-label,
.player-exit .video-player-button-label {
  overflow: hidden;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.video-player-shell.is-locked .player-tools,
.video-player-shell.is-locked .player-cast-panel {
  display: none;
}

.video-player-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 36px;
  color: #fff;
  background: rgba(6, 8, 14, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.video-player-button:hover {
  background: rgba(6, 8, 14, 0.88);
  border-color: rgba(255, 211, 72, 0.46);
}

.video-player-button.is-active {
  color: #111;
  background: var(--yellow);
  border-color: transparent;
}

.video-player-button .icon {
  width: 18px;
  height: 18px;
}

.video-player-button .icon svg {
  width: 100%;
  height: 100%;
}

.player-cast-panel {
  position: absolute;
  z-index: 5;
  top: 50px;
  right: 8px;
  display: grid;
  gap: 5px;
  left: 52px;
  width: min(220px, calc(100% - 60px));
  padding: 7px;
  background: rgba(8, 10, 17, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.player-cast-panel button,
.player-cast-panel a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 34px;
  padding: 7px 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 8px;
  font: 650 12px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
}

.player-cast-panel button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.player-cast-panel button:not(:disabled):hover,
.player-cast-panel a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.player-cast-panel .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.player-cast-panel .icon svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 640px) {
  .video-player-button {
    width: 34px;
    min-height: 34px;
  }

  .player-tools {
    flex-direction: column;
  }

  .player-enter-fullscreen,
  .player-landscape,
  .player-exit {
    width: 60px;
  }

  .player-cast-panel {
    top: 48px;
  }
}

.custom-vod-player {
  width: 100%;
  max-height: min(72vh, 520px);
  aspect-ratio: 16 / 9;
  background: #05070c;
  border-radius: 10px;
  object-fit: contain;
}

.custom-vod-episode-select {
  width: 100%;
  max-width: 260px;
  min-height: 36px;
  padding: 8px 32px 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 650 13px/1.3 inherit;
}

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

.usage-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 17px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.usage-list li:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.24);
  transform: translateY(-1px);
}

.usage-badge {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  color: #111;
  background: var(--yellow);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 850;
}

.usage-list p {
  margin-bottom: 0;
}

.source-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 17px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.source-entry:hover {
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.24);
  transform: translateY(-1px);
}

.source-entry-copy {
  min-width: 0;
}

.source-entry-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  font-size: 16px;
}

.source-entry-title .icon {
  color: var(--yellow);
}

.source-entry code {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-entry-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#vod-sources .source-entry-title {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d9dbe3;
  background: rgba(255, 255, 255, 0.06);
  font: 700 12px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.button-primary {
  color: #111;
  background: var(--yellow);
  border-color: transparent;
}

.button-primary:hover {
  color: #111;
  background: #ffe066;
  box-shadow: 0 10px 24px rgba(255, 211, 72, 0.16);
}

.button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.icon svg {
  width: 100%;
  height: 100%;
}

.settings-section {
  max-width: 920px;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.settings-grid-divider {
  grid-column: 1 / -1;
  margin: 0;
}

.settings-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 14px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.settings-tab {
  min-height: 34px;
  padding: 7px 6px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font: 800 12px/1.2 inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.settings-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.settings-tab.is-active {
  color: #111;
  background: var(--yellow);
}

.announcement-speed-form {
  margin-top: 14px;
}

.settings-category {
  margin-bottom: 16px;
}

.settings-category + .settings-stat-grid {
  margin-top: 0;
}

.settings-category .settings-grid:last-child {
  margin-bottom: 0;
}

.settings-stat-grid {
  margin-top: 16px;
}

.settings-panel {
  min-width: 0;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.stats-panel {
  grid-column: 1 / -1;
}

.stats-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.stats-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  color: var(--qq-blue);
  background: rgba(18, 183, 245, 0.12);
  border: 1px solid rgba(18, 183, 245, 0.25);
  border-radius: 12px;
}

.stats-icon svg {
  width: 22px;
  height: 22px;
}

.stats-heading .eyebrow {
  margin-bottom: 5px;
}

.stats-summary {
  margin-top: 18px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
}

.stats-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  overflow: visible;
}

.stats-grid {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.stats-grid-base {
  stroke: rgba(255, 255, 255, 0.2);
}

.stats-line {
  fill: none;
  stroke: var(--qq-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-point {
  fill: #fff;
  stroke: var(--qq-blue);
  stroke-width: 3;
}

.stats-value {
  fill: var(--text);
  font-size: 13px;
  font-weight: 750;
}

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

.stats-labels span {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: var(--muted);
  text-align: center;
}

.stats-labels strong {
  color: var(--text);
  font-size: 13px;
}

.stats-labels small {
  font-size: 11px;
}

.settings-panel h2 {
  margin-bottom: 6px;
  font-size: 25px;
  line-height: 1.2;
}

.password-setting-form + .password-setting-form {
  margin-top: 14px;
}

.password-setting-form,
.source-setting-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.password-setting-form label,
.source-setting-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.password-setting-form input,
.source-setting-form input {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 14px/1.2 inherit;
  outline: none;
}

.password-setting-form input:focus,
.source-setting-form input:focus {
  border-color: rgba(255, 211, 72, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

.watermark-settings-form {
  display: grid;
  gap: 14px;
}

.watermark-settings-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.watermark-settings-form input[type="text"],
.watermark-settings-form input[type="number"] {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 14px/1.2 inherit;
  outline: none;
}

.watermark-settings-form input:focus {
  border-color: rgba(255, 211, 72, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

.watermark-settings-form input[type="range"] {
  width: 100%;
  accent-color: #ffd348;
}

.watermark-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.watermark-toggle-row .settings-field-note {
  margin: 0;
}

.watermark-toggle-label {
  margin-bottom: 4px !important;
  font-size: 14px !important;
  color: var(--text) !important;
}

.watermark-range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.watermark-range-row #watermark-opacity-value {
  color: var(--yellow);
  font-weight: 800;
}

.home-entry-visibility-form .button {
  justify-self: start;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 27px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-slider {
  background: rgba(255, 211, 72, 0.9);
  border-color: rgba(255, 211, 72, 0.9);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

.settings-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #8ee08a;
  font-size: 13px;
}

.settings-status.is-error {
  color: #ff758b;
}

.source-setting-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.source-copy-setting-form {
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tutorial-video-form {
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tutorial-video-form #tutorial-video-file {
  width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 13px/1.25 inherit;
  outline: none;
}

.tutorial-video-form #tutorial-video-file::file-selector-button {
  margin: 0 10px 0 0;
  padding: 8px 11px;
  color: #111;
  background: var(--yellow);
  border: 0;
  border-radius: 8px;
  font: 800 12px/1 inherit;
  cursor: pointer;
}

.tutorial-video-form .settings-field-note.is-error {
  color: #ff758b;
}

.tutorial-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tutorial-video-actions .button {
  flex: 1 1 160px;
  width: auto;
}

.source-setting-form .button,
.cinema-setting-form .button {
  width: 100%;
}

.cinema-setting-form {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 16px;
}

.cinema-app-setting-list {
  display: grid;
  gap: 14px;
}

.cinema-setting-form label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.cinema-setting-form input,
.cinema-setting-form textarea {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 14px/1.45 inherit;
  outline: none;
}

.cinema-setting-form input:focus,
.cinema-setting-form textarea:focus {
  border-color: rgba(255, 211, 72, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

.cinema-setting-form textarea {
  resize: vertical;
}

.cinema-setting-form input[type="file"] {
  margin-top: 8px;
  padding: 9px 10px;
  color: var(--muted);
  font: 600 12px/1.3 inherit;
}

.cinema-setting-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.cinema-setting-form legend {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
}

.cinema-setting-form fieldset div + div {
  margin-top: 11px;
}

.cinema-app-setting-item .button-danger {
  margin-top: 14px;
}

.cinema-image-preview {
  display: block;
  width: min(360px, 100%);
  min-height: 120px;
  margin: 0;
  object-fit: contain;
  background: var(--panel-hover);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.cinema-app-setting-item .cinema-image-preview {
  margin-top: 12px;
}

.cinema-apk-upload {
  display: grid;
  gap: 8px;
}

.cinema-apk-upload label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.cinema-apk-status {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 750;
}

.cinema-apk-upload small {
  color: var(--muted);
  font-size: 11px;
}

.source-setting-form + .managed-source-list {
  margin-top: 16px;
}

.announcement-setting-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.announcement-setting-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 13px;
}

.announcement-setting-item.is-default {
  color: #ffe8a3;
  background: rgba(255, 211, 72, 0.06);
  border-color: rgba(255, 211, 72, 0.22);
}

.announcement-setting-copy {
  min-width: 0;
}

.announcement-setting-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.announcement-setting-copy p {
  margin-bottom: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-setting-item.is-default .announcement-setting-copy p {
  color: #ffe8a3;
}

.announcement-badge {
  padding: 6px 9px;
  color: var(--yellow);
  background: rgba(255, 211, 72, 0.1);
  border: 1px solid rgba(255, 211, 72, 0.2);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.managed-announcement-list {
  display: grid;
  gap: 9px;
}

.announcement-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed var(--line);
  border-radius: 13px;
  font-size: 13px;
  text-align: center;
}

.settings-field-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.managed-source-list {
  display: grid;
  gap: 9px;
}

.managed-source-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.managed-source-item.is-editing {
  grid-template-columns: minmax(0, 1fr);
  cursor: default;
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

.managed-inline-form {
  display: grid;
  gap: 12px;
}

.managed-inline-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.managed-inline-form input[type="text"],
.managed-inline-form input[type="url"] {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 14px/1.2 inherit;
  outline: none;
}

.managed-inline-form input:focus-visible {
  border-color: rgba(255, 211, 72, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

.managed-inline-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 14px !important;
}

.managed-inline-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.managed-inline-actions .button {
  width: auto;
}

.managed-source-item.is-dragging {
  position: relative;
  z-index: 20;
  cursor: grabbing;
  background: var(--panel-hover);
  border-color: rgba(255, 211, 72, 0.46);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.source-drag-handle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 38px;
  flex: 0 0 auto;
  color: #767b86;
  border-radius: 9px;
  touch-action: none;
}

.managed-source-item:hover .source-drag-handle,
.managed-source-item.is-dragging .source-drag-handle {
  color: var(--yellow);
}

.managed-source-item .source-entry-copy {
  width: 100%;
}

.managed-source-item code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.managed-vod-source-item {
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  cursor: default;
  touch-action: auto;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

.managed-vod-source-item .managed-source-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.source-status-badge {
  justify-self: start;
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.vod-source-enabled-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
}

.button-danger {
  color: #ffb4c0;
  background: rgba(255, 51, 87, 0.12);
  border-color: rgba(255, 51, 87, 0.28);
}

.button-danger:hover {
  color: #fff;
  background: rgba(255, 51, 87, 0.24);
  border-color: rgba(255, 51, 87, 0.48);
}

.qq-section {
  margin-top: 0;
}

.qq-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(18, 183, 245, 0.14), rgba(255, 51, 87, 0.09));
  border: 1px solid rgba(18, 183, 245, 0.28);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.qq-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0;
}

.qq-card .eyebrow {
  color: var(--accent);
}

.qq-number {
  margin-bottom: 0;
  color: var(--muted);
}

.qq-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.button-qq {
  min-height: 46px;
  padding: 11px 18px;
  color: #04151f;
  background: var(--qq-blue);
  border-color: transparent;
  border-radius: 13px;
  font-size: 14px;
}

.button-qq:hover {
  color: #04151f;
  background: #42c9f8;
  box-shadow: 0 12px 30px rgba(18, 183, 245, 0.2);
}

.qq-actions .button-secondary {
  min-height: 46px;
  padding: 11px 15px;
  border-radius: 13px;
  font-size: 14px;
}

.group-divider {
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.video-to-community-divider {
  margin: 0 0 32px;
}

.wechat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(7, 193, 96, 0.13), rgba(18, 183, 245, 0.08));
  border: 1px solid rgba(7, 193, 96, 0.28);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.wechat-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: 0;
}

.wechat-card .eyebrow {
  color: var(--accent);
}

.wechat-number {
  margin-bottom: 0;
  color: var(--muted);
}

.group-title-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--qq-blue);
  background: rgba(18, 183, 245, 0.12);
  border: 1px solid rgba(18, 183, 245, 0.25);
  border-radius: 10px;
}

.wechat-card .group-title-icon {
  color: #07c160;
  background: rgba(7, 193, 96, 0.12);
  border-color: rgba(7, 193, 96, 0.25);
}

.group-title-icon svg {
  width: 19px;
  height: 19px;
}

.wechat-qr {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 14px;
  background: #fff;
  border-radius: 16px;
}

.wechat-qr img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  border-radius: 10px;
}

.wechat-qr-placeholder {
  margin: 0;
  color: #888;
  font-size: 14px;
}

.wechat-save-button {
  justify-self: start;
  min-height: 46px;
  padding: 11px 20px;
  color: #04150b;
  background: #07c160;
  border-color: transparent;
  border-radius: 13px;
  font-size: 14px;
}

.wechat-save-button:hover {
  color: #04150b;
  background: #0bd46d;
  box-shadow: 0 12px 30px rgba(7, 193, 96, 0.2);
}

.wechat-save-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wechat-image-preview {
  margin-top: 14px;
}

.wechat-image-preview img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}

.wechat-upload-field {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wechat-upload-field .button {
  margin: 0;
  min-height: 43px;
}

.wechat-upload-note {
  color: var(--muted);
  font-size: 12px;
}

.home-stats-section {
  margin-top: 30px;
}

.back-to-top-button {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #111;
  background: #fff;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.back-to-top-button:hover {
  background: #f5f5f5;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

.back-to-top-button svg {
  width: 22px;
  height: 22px;
  transform: rotate(-45deg);
}

.refresh-page-button {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #111;
  background: var(--yellow);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.refresh-page-button:hover {
  background: #ffe066;
  box-shadow: 0 16px 42px rgba(255, 211, 72, 0.28);
  transform: translateY(-2px);
}

.refresh-page-button:disabled {
  cursor: wait;
  transform: none;
}

.refresh-page-button svg {
  width: 22px;
  height: 22px;
}

.refresh-page-button.is-refreshing svg {
  animation: refresh-spin 0.55s linear infinite;
}

@keyframes refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.copy-toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  padding: 11px 16px;
  pointer-events: none;
  color: #111;
  background: var(--yellow);
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 13px;
  font-weight: 800;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.settings-toast {
  position: fixed;
  z-index: 110;
  right: 16px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  left: 16px;
  max-height: min(28vh, 180px);
  overflow-y: auto;
  padding: 14px 16px;
  color: #111;
  background: #8ee08a;
  border-radius: 13px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.settings-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.settings-toast.is-error {
  color: #fff;
  background: #d93047;
}

.privacy-mask {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  place-items: center;
  color: var(--yellow);
  background: #07080d;
  font-size: 18px;
  font-weight: 800;
}

body.is-privacy-masked .privacy-mask {
  display: grid;
}

.page-watermark {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  overflow: hidden;
  background-repeat: repeat;
  background-size: 320px 220px;
}

@media print {
  body {
    display: none;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 211, 72, 0.38);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .page-shell {
    padding: calc(84px + env(safe-area-inset-top, 0px)) 16px 88px;
  }

  .source-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .experience-settings-entry {
    align-self: flex-end;
    margin-left: 0;
  }

  .experience-heading-main .experience-settings-entry {
    align-self: flex-start;
  }

  .home-heading {
    align-items: center;
    margin-bottom: 22px;
  }

  .home-heading h1 {
    font-size: 34px;
  }

  .home-announcement {
    min-height: 35px;
  }

  .home-announcement-message {
    font-size: 13px;
    line-height: 33px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    min-height: 108px;
    padding: 17px;
  }

  .entry-icon,
  .entry-avatar {
    width: 46px;
    height: 46px;
  }

  .entry-copy strong {
    font-size: 16px;
  }

  .entry-copy p {
    font-size: 13px;
  }

  .back-link {
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 14px;
    min-height: 38px;
    padding: 8px 11px;
  }

  .site-footer {
    margin-top: 58px;
    padding-top: 18px;
    font-size: 12px;
  }

  .beta-access-card {
    padding: 24px 20px;
  }

  .cinema-choice-card {
    align-items: flex-start;
    min-height: 96px;
    padding: 18px;
  }

  .cinema-choice-card h2 {
    font-size: 17px;
  }

  .install-panel,
  .install-note-panel {
    padding: 19px;
  }

  .install-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .android-app-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .credentials-row {
    grid-template-columns: 1fr;
  }

  .credentials-row .button {
    width: 100%;
  }

  .system-restart-actions {
    grid-template-columns: 1fr;
  }

  .install-panel-copy h2 {
    font-size: 17px;
  }

  .install-screenshot {
    margin-top: 16px;
  }

  .access-card {
    padding: 28px 20px;
  }

  .access-title {
    font-size: 22px;
  }

  .access-field {
    grid-template-columns: 1fr;
  }

  .access-submit {
    width: 100%;
  }

  .button-install {
    width: 100%;
  }

  .usage-list li {
    align-items: flex-start;
  }

  .source-section-heading > p {
    text-align: left;
  }

  .source-entry {
    grid-template-columns: 1fr;
  }

  .source-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .custom-vod-search select {
    grid-column: 1;
    grid-row: 1;
  }

  .custom-vod-search input {
    grid-column: 2 / -1;
    grid-row: 1;
  }

  .custom-vod-search .button {
    width: 100%;
  }

  .custom-vod-search .vod-reset {
    grid-column: 1;
    grid-row: 2;
  }

  .custom-vod-search .playback-history-toggle {
    grid-column: 2;
    grid-row: 2;
  }

  .custom-vod-search .vod-search-submit {
    grid-column: 3;
    grid-row: 2;
  }

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

  .mv-search input {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mv-search .vod-reset {
    grid-column: 1;
    grid-row: 2;
  }

  .mv-search .playback-history-toggle {
    grid-column: 2;
    grid-row: 2;
  }

  .mv-search .vod-search-submit {
    grid-column: 3;
    grid-row: 2;
  }

  .playback-history-toggle {
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .playback-history-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
    padding: 13px;
  }

  .playback-history-heading {
    align-items: flex-start;
  }

  .playback-history-list {
    max-height: min(52vh, 480px);
  }

  .mv-card:not(.mv-result-card) {
    grid-template-columns: 1fr;
  }

  .mv-card:not(.mv-result-card).is-active {
    grid-template-columns: 1fr;
  }

  .mv-result-card {
    grid-template-columns: minmax(112px, 120px) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .mv-result-card.is-active {
    grid-template-columns: minmax(112px, 120px) minmax(0, 1fr);
  }

  .custom-vod-cart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-vod-cart-heading .button {
    width: 100%;
  }

  .custom-vod-cart-item {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .mv-cart-actions {
    grid-template-columns: 1fr;
  }

  .custom-vod-popular-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .custom-vod-popular-tabs {
    width: 100%;
  }

  .custom-vod-popular-tabs button {
    flex: 1;
  }

  .custom-vod-popular-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .custom-vod-result:not(.mv-result-card) {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .custom-vod-poster:not(.mv-poster) {
    width: 78px;
  }

  .mv-result-card,
  .mv-result-card.is-active {
    grid-template-columns: minmax(104px, 112px) minmax(0, 1fr);
  }

  .bilibili-card,
  .bilibili-card.is-active {
    grid-template-columns: minmax(104px, 112px) minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .qq-card {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px 20px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .access-back-link {
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 14px;
    min-height: 38px;
    padding: 8px 11px;
  }

  .access-gate {
    padding-top: calc(78px + env(safe-area-inset-top, 0px));
    padding-right: 16px;
    padding-left: 16px;
  }

  .stats-panel {
    padding: 19px;
  }

  .stats-value {
    font-size: 11px;
  }

  .stats-labels strong {
    font-size: 11px;
  }

  .stats-labels small {
    font-size: 9px;
  }

  .settings-panel {
    padding: 21px 18px;
  }

  .password-setting-form,
  .source-setting-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .source-setting-form .button {
    width: 100%;
  }

  .managed-source-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .managed-source-item .button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .managed-vod-source-item {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .managed-vod-source-item .button {
    grid-column: auto;
    width: 100%;
  }

  .qq-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .source-entry-actions {
    grid-template-columns: 1fr;
  }

  .custom-vod-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mv-actions,
  .mv-result-card .mv-actions {
    grid-template-columns: 1fr;
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --panel-hover: #f5f8fd;
  --text: #17202c;
  --muted: #5d6675;
  --line: rgba(20, 34, 58, 0.14);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 82% 0%, rgba(217, 154, 0, 0.09), transparent 28rem),
    radial-gradient(circle at 5% 35%, rgba(255, 51, 87, 0.07), transparent 24rem),
    var(--bg);
}

html[data-theme="light"] .access-gate {
  background: linear-gradient(180deg, rgba(243, 246, 251, 0.99), rgba(236, 241, 249, 0.99));
}

html[data-theme="light"] .theme-icon-sun,
html[data-theme="light"] .theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

html:not([data-theme="light"]) .theme-icon-moon {
  display: none;
}

html[data-theme="light"] .button {
  color: #263243;
  background: #ffffff;
  border-color: rgba(20, 34, 58, 0.15);
  box-shadow: 0 1px 3px rgba(20, 34, 58, 0.08);
}

html[data-theme="light"] .button:hover {
  color: #17202c;
  background: #f2f6fc;
  border-color: rgba(20, 34, 58, 0.24);
}

html[data-theme="light"] .button-primary {
  color: #17202c;
  background: var(--yellow);
  border-color: transparent;
}

html[data-theme="light"] .button-primary:hover {
  color: #17202c;
}

html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  color: var(--text);
  background: #ffffff;
  border-color: rgba(20, 34, 58, 0.16);
}

html[data-theme="light"] .source-tab:hover,
html[data-theme="light"] .settings-tab:hover,
html[data-theme="light"] .watermark-toggle-row,
html[data-theme="light"] .managed-source-item,
html[data-theme="light"] .announcement-setting-item,
html[data-theme="light"] .settings-status,
html[data-theme="light"] .managed-vod-source-item {
  color: var(--text);
  background: #f5f8fd;
  border-color: rgba(20, 34, 58, 0.14);
}

html[data-theme="light"] .custom-vod-search input,
html[data-theme="light"] .mv-search input,
html[data-theme="light"] .custom-vod-search select,
html[data-theme="light"] .custom-vod-episode-select,
html[data-theme="light"] .password-setting-form input,
html[data-theme="light"] .source-setting-form input,
html[data-theme="light"] .watermark-settings-form input[type="text"],
html[data-theme="light"] .watermark-settings-form input[type="number"],
html[data-theme="light"] .managed-inline-form input[type="text"],
html[data-theme="light"] .managed-inline-form input[type="url"] {
  background: #ffffff;
}

html[data-theme="light"] .custom-vod-search select option {
  color: #17202c;
  background: #ffffff;
}

html[data-theme="light"] .custom-vod-poster.is-loading,
html[data-theme="light"] .custom-vod-popular-card img.is-loading {
  background: #e8edf6;
}

html[data-theme="light"] .custom-vod-poster.is-unavailable,
html[data-theme="light"] .custom-vod-popular-card img.is-unavailable {
  background: #edf1f7;
}

html[data-theme="light"] .back-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .entry-card,
html[data-theme="light"] .entry-icon,
html[data-theme="light"] .source-entry,
html[data-theme="light"] .custom-vod-result,
html[data-theme="light"] .mv-card,
html[data-theme="light"] .settings-panel {
  border-color: rgba(20, 34, 58, 0.13);
}

html[data-theme="light"] .entry-icon,
html[data-theme="light"] .source-entry-icon {
  background: #f0f4fa;
}

html[data-theme="light"] .entry-card {
  box-shadow: 0 12px 28px rgba(33, 48, 76, 0.11);
}

html[data-theme="light"] .entry-card:hover {
  box-shadow: 0 22px 44px rgba(33, 48, 76, 0.17);
}

html[data-theme="light"] .entry-card.is-disabled {
  color: #67707d;
  background: #edf1f7;
}

html[data-theme="light"] .entry-avatar {
  background: #edf1f7;
}

html[data-theme="light"] .home-section-divider {
  background: linear-gradient(90deg, transparent, rgba(20, 34, 58, 0.18), transparent);
}

html[data-theme="light"] .footer-copyright,
html[data-theme="light"] .entry-card.is-disabled .entry-copy p,
html[data-theme="light"] .entry-card.is-disabled .entry-icon {
  color: #67707d;
}

html[data-theme="light"] .home-fixed-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(20, 34, 58, 0.12);
  box-shadow: 0 8px 26px rgba(33, 48, 76, 0.07);
}

html[data-theme="light"] .home-announcement {
  color: #735014;
  background: linear-gradient(90deg, rgba(217, 154, 0, 0.13), rgba(255, 51, 87, 0.06)), #fff8e3;
  border-color: rgba(184, 131, 14, 0.26);
}

html[data-theme="light"] .home-announcement-icon {
  color: #8a5d00;
  background: rgba(184, 131, 14, 0.12);
}

html[data-theme="light"] .settings-link,
html[data-theme="light"] .back-link,
html[data-theme="light"] .access-back-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .settings-link:hover,
html[data-theme="light"] .back-link:hover,
html[data-theme="light"] .access-back-link:hover {
  color: #17202c;
  background: #f2f6fc;
  border-color: rgba(20, 34, 58, 0.22);
}

html[data-theme="light"] .source-tabs,
html[data-theme="light"] .custom-vod-popular-tabs,
html[data-theme="light"] .settings-tabs {
  background: #e9eef7;
  border-color: rgba(20, 34, 58, 0.1);
}

html[data-theme="light"] .custom-vod-popular,
html[data-theme="light"] .custom-vod-cart,
html[data-theme="light"] .custom-vod-result,
html[data-theme="light"] .mv-placeholder,
html[data-theme="light"] .usage-list li,
html[data-theme="light"] .source-entry {
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(33, 48, 76, 0.08);
}

html[data-theme="light"] .custom-vod-route,
html[data-theme="light"] .custom-vod-cart-item,
html[data-theme="light"] .cinema-app-divider {
  color: var(--text);
  background: #f0f4fa;
  border-color: rgba(20, 34, 58, 0.12);
}

html[data-theme="light"] .custom-vod-popular-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 24, 40, 0.88));
}

html[data-theme="light"] .custom-vod-popular-skeleton {
  background: #f0f4fa;
  border-color: rgba(20, 34, 58, 0.12);
}

html[data-theme="light"] .custom-vod-popular-skeleton::before {
  background:
    linear-gradient(
      100deg,
      rgba(20, 34, 58, 0.06) 0%,
      rgba(20, 34, 58, 0.13) 38%,
      rgba(255, 211, 72, 0.22) 52%,
      rgba(20, 34, 58, 0.06) 68%
    );
  background-size: 220% 100%;
}

html[data-theme="light"] .custom-vod-popular-skeleton::after {
  background: rgba(20, 34, 58, 0.08);
}

body[data-tv-app="true"] {
  min-height: 100dvh;
}

body[data-tv-app="true"] .tv-shell {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: calc(9px + env(safe-area-inset-top, 0px)) 18px 9px;
  background: rgba(7, 8, 13, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-tv-app="true"] .tv-shell-eyebrow {
  margin: 0 0 2px;
  color: var(--yellow);
  font-size: 11px;
  letter-spacing: 0.12em;
}

body[data-tv-app="true"] .tv-shell strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

body[data-tv-app="true"] .tv-access-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

body[data-tv-app="true"] .tv-access-role {
  color: var(--text);
  font-weight: 750;
}

body[data-tv-app="true"] .tv-access-countdown {
  color: var(--yellow);
  font-weight: 750;
}

body[data-tv-app="true"] .tv-access-status {
  overflow: hidden;
  max-width: 220px;
  text-overflow: ellipsis;
}

body[data-tv-app="true"] .tv-access-status.is-error {
  color: #ff758b;
}

body[data-tv-app="true"] .page-shell {
  width: min(1680px, 100%);
  padding-top: 12px;
  padding-right: 20px;
  padding-left: 20px;
}

body[data-tv-app="true"] .back-link,
body[data-tv-app="true"] .usage-section,
body[data-tv-app="true"] #vod-sources,
body[data-tv-app="true"] .video-to-community-divider,
body[data-tv-app="true"] .video-to-community-divider ~ .group-divider,
body[data-tv-app="true"] .video-to-community-divider ~ .qq-section,
body[data-tv-app="true"] .video-to-community-divider ~ .wechat-section {
  display: none;
}

body[data-tv-app="true"] .source-tabs {
  top: 0;
}

body[data-tv-app="true"] .source-tab {
  flex: 0 0 132px;
  min-height: 44px;
  font-size: 14px;
}

body[data-tv-app="true"] .custom-vod-popular-list {
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
}

body[data-tv-app="true"] .mv-popular-list {
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}

body[data-tv-app="true"] .tv-login-dialog {
  width: min(430px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

body[data-tv-app="true"] .tv-login-dialog::backdrop {
  background: rgba(4, 6, 12, 0.78);
  backdrop-filter: blur(4px);
}

body[data-tv-app="true"] .tv-login-form {
  display: grid;
  gap: 10px;
  padding: 22px;
}

body[data-tv-app="true"] .tv-login-form h1 {
  margin-bottom: 4px;
  font-size: 23px;
  line-height: 1.2;
}

body[data-tv-app="true"] .tv-login-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

body[data-tv-app="true"] .tv-login-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: 600 14px/1.3 inherit;
  outline: none;
}

body[data-tv-app="true"] .tv-login-form input:focus-visible {
  border-color: rgba(255, 211, 72, 0.65);
  box-shadow: 0 0 0 4px rgba(255, 211, 72, 0.12);
}

body[data-tv-app="true"] .tv-login-error {
  margin: 0;
  color: #ff758b;
  font-size: 13px;
}

body[data-tv-app="true"] .tv-login-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

body[data-tv-app="true"] button:focus-visible,
body[data-tv-app="true"] a:focus-visible,
body[data-tv-app="true"] input:focus-visible,
body[data-tv-app="true"] select:focus-visible,
body[data-tv-app="true"] [tabindex]:focus-visible {
  outline: 3px solid rgba(255, 211, 72, 0.82);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  body[data-tv-app="true"] .tv-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-right: 12px;
    padding-left: 12px;
  }

  body[data-tv-app="true"] .tv-access-panel {
    width: 100%;
    justify-content: space-between;
    overflow: hidden;
    font-size: 11px;
  }

  body[data-tv-app="true"] .tv-access-status {
    max-width: 34vw;
  }

  body[data-tv-app="true"] .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (min-width: 768px) {
  body[data-tv-app="true"] .custom-vod-popular-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-tv-app="true"] .mv-popular-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  body[data-tv-app="true"] .custom-vod-popular-list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  body[data-tv-app="true"] .mv-popular-list {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  body[data-tv-app="true"] .tv-shell {
    padding-right: 42px;
    padding-left: 42px;
  }

  body[data-tv-app="true"] .tv-shell strong {
    font-size: 20px;
  }

  body[data-tv-app="true"] .tv-access-panel {
    font-size: 15px;
  }

  body[data-tv-app="true"] .page-shell {
    padding-right: 42px;
    padding-bottom: 110px;
    padding-left: 42px;
  }

  body[data-tv-app="true"] .source-tab {
    flex: 0 0 160px;
    min-height: 52px;
    font-size: 17px;
  }

  body[data-tv-app="true"] .custom-vod-search,
  body[data-tv-app="true"] .mv-search,
  body[data-tv-app="true"] .bilibili-search {
    gap: 12px;
  }

  body[data-tv-app="true"] .custom-vod-search input,
  body[data-tv-app="true"] .custom-vod-search select,
  body[data-tv-app="true"] .mv-search input,
  body[data-tv-app="true"] .custom-vod-search .button,
  body[data-tv-app="true"] .mv-search .button {
    min-height: 52px;
    font-size: 17px;
  }

  body[data-tv-app="true"] .custom-vod-popular-list {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  body[data-tv-app="true"] .mv-popular-list {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }

  body[data-tv-app="true"] .custom-vod-result {
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 22px;
  }

  body[data-tv-app="true"] .custom-vod-poster {
    width: 152px;
  }

  body[data-tv-app="true"] .custom-vod-actions .button,
  body[data-tv-app="true"] .mv-card .mv-actions .button {
    min-height: 48px;
    font-size: 15px;
  }
}

html[data-theme="light"] .entry-card-xianyu,
html[data-theme="light"] .beta-access-card,
html[data-theme="light"] .qq-card,
html[data-theme="light"] .wechat-card {
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(33, 48, 76, 0.12);
}

html[data-theme="light"] .entry-card-xianyu {
  background:
    linear-gradient(135deg, rgba(217, 154, 0, 0.1), rgba(255, 51, 87, 0.06)),
    #ffffff;
}

html[data-theme="light"] .beta-access-card {
  background:
    linear-gradient(135deg, rgba(255, 51, 87, 0.09), rgba(217, 154, 0, 0.06)),
    #ffffff;
  border-color: rgba(191, 54, 77, 0.18);
}

body[data-tv-app="true"] .tv-shell strong.tv-shell-title {
  display: block;
  color: var(--text);
  font-size: clamp(24px, 2.6vw, 40px) !important;
  line-height: 1.08;
}

body[data-tv-app="true"] .tv-access-role {
  min-height: 34px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 9px;
}

body[data-tv-app="true"].tv-guest .tubo-link,
body[data-tv-app="true"].tv-guest .custom-vod-copy-link,
body[data-tv-app="true"].tv-guest .custom-vod-cart-add,
body[data-tv-app="true"].tv-guest .mv-cart-add,
body[data-tv-app="true"].tv-guest .bilibili-cart-add,
body[data-tv-app="true"].tv-guest .custom-vod-cart {
  display: none !important;
}

body[data-tv-app="true"] .custom-vod-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child {
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  height: clamp(360px, 34vw, 520px);
  min-height: 0;
  overflow: hidden;
  border-color: rgba(255, 211, 72, 0.24);
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-poster {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-body {
  align-content: center;
  padding: clamp(18px, 2vw, 32px);
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-body h3 {
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1.18;
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-meta {
  -webkit-line-clamp: 4;
  font-size: 15px;
  line-height: 1.65;
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-route {
  min-height: 40px;
  font-size: 14px;
}

body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-actions .button {
  width: min(240px, 100%);
  min-height: 48px;
  font-size: 16px;
}

@media (max-width: 900px) {
  body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-poster {
    aspect-ratio: 16 / 9;
  }

  body[data-tv-app="true"] #custom-vod-results .custom-vod-result:first-child .custom-vod-body {
    padding: 16px;
  }
}

html[data-theme="light"] .qq-card {
  background:
    linear-gradient(135deg, rgba(18, 183, 245, 0.1), rgba(255, 51, 87, 0.05)),
    #ffffff;
  border-color: rgba(19, 127, 168, 0.2);
}

html[data-theme="light"] .wechat-card {
  background:
    linear-gradient(135deg, rgba(7, 193, 96, 0.09), rgba(18, 183, 245, 0.05)),
    #ffffff;
  border-color: rgba(9, 141, 70, 0.2);
}

html[data-theme="light"] .entry-avatar {
  background: #edf1f7;
}

html[data-theme="light"] .stats-grid {
  stroke: rgba(20, 34, 58, 0.12);
}

html[data-theme="light"] .stats-grid-base {
  stroke: rgba(20, 34, 58, 0.28);
}

html[data-theme="light"] .stats-point {
  fill: #ffffff;
}

html[data-theme="light"] .stats-summary,
html[data-theme="light"] .official-credentials > .eyebrow,
html[data-theme="light"] .install-note-panel p {
  color: #8a5d00;
}

html[data-theme="light"] .switch-slider {
  background: #cbd5e1;
  border-color: rgba(20, 34, 58, 0.14);
}

html[data-theme="light"] .switch input:checked + .switch-slider {
  background: #d99a00;
  border-color: #d99a00;
}

html[data-theme="light"] .settings-status {
  color: #16723f;
}

html[data-theme="light"] .settings-status.is-error {
  color: #c73049;
}

html[data-theme="light"] .button-danger {
  color: #b4233a;
  background: #fff1f3;
  border-color: rgba(180, 35, 58, 0.26);
}

html[data-theme="light"] .button-danger:hover {
  color: #8f1b2d;
  background: #ffe3e8;
  border-color: rgba(180, 35, 58, 0.42);
}

html[data-theme="light"] .source-drag-handle {
  color: #7b8492;
}

html[data-theme="light"] .group-divider {
  background: linear-gradient(90deg, transparent, rgba(20, 34, 58, 0.2), transparent);
}

html[data-theme="light"] .experience-heading-divider {
  background: linear-gradient(
    90deg,
    rgba(164, 104, 0, 0.72),
    rgba(20, 34, 58, 0.44) 45%,
    rgba(180, 35, 58, 0.56)
  );
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* HH-style TV experience. Scoped to the standalone TV video route. */
html:has(body[data-tv-app="true"].is-video-route) {
  scroll-padding-top: calc(64px + 16px);
}

body[data-tv-app="true"].is-video-route {
  --hh-primary: #ffd000;
  --hh-text: #393e41;
  --hh-text-dark: #333;
  --hh-text-muted: #666;
  --hh-text-soft: #999;
  --hh-light-text: #adb7be;
  --hh-bg: #ffffff;
  --hh-muted-bg: #f5f5f5;
  --hh-dark-bg: #262626;
  --hh-button: #393a43;
  --hh-separator: #ebebeb;
  color: var(--hh-text);
  background: var(--hh-bg);
}

body[data-tv-app="true"].is-video-route .hh-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 201px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 64px;
  padding: 0 1.75rem;
  background: var(--hh-bg);
  border-bottom: 0;
  box-shadow: none;
}

body[data-tv-app="true"].is-video-route .hh-search-form {
  display: block;
  flex: 1;
  max-width: 560px;
  min-width: 0;
}

body[data-tv-app="true"].is-video-route .hh-search-bar {
  display: flex;
  width: 100%;
  height: 40px;
  overflow: hidden;
  background: var(--hh-muted-bg);
  border-radius: 0.5rem;
}

body[data-tv-app="true"].is-video-route .hh-search-bar:hover {
  background: #ebebeb;
}

body[data-tv-app="true"].is-video-route #hh-quick-search-keyword {
  min-width: 0;
  flex: 1;
  padding: 0;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  outline: none;
  font: 400 0.875rem/1 inherit;
}

body[data-tv-app="true"].is-video-route #hh-quick-search-keyword::placeholder {
  color: var(--hh-text-soft);
}

body[data-tv-app="true"].is-video-route #hh-quick-search-source {
  width: 6.5rem;
  min-width: 6.5rem;
  height: 40px;
  padding: 0 0.5rem;
  overflow: hidden;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  border-right: 1px solid #e2e2e2;
  border-radius: 0;
  outline: none;
  font: 400 0.875rem/40px inherit;
  text-overflow: ellipsis;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-search-submit {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-search-submit svg {
  width: 18px;
  height: 18px;
}

body[data-tv-app="true"].is-video-route .hh-nav {
  display: none;
}

body[data-tv-app="true"].is-video-route .hh-history {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: 6rem;
  height: 2.25rem;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  font-size: 0.875rem;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-history svg {
  width: 18px;
  height: 18px;
}

body[data-tv-app="true"].is-video-route .tv-access-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  color: var(--hh-text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .tv-access-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  max-width: 96px;
  min-height: 36px;
  padding: 0 8px;
  overflow: hidden;
  color: var(--hh-text);
  background: var(--hh-muted-bg);
  border: 0;
  border-radius: 18px;
  font: 700 0.75rem/1 inherit;
  text-overflow: ellipsis;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .tv-access-countdown {
  color: var(--hh-text-muted);
  font-weight: 400;
}

body[data-tv-app="true"].is-video-route .tv-access-status {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-tv-app="true"].is-video-route .tv-access-status.is-error {
  color: #d92d20;
}

body[data-tv-app="true"].is-video-route .hh-side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 200px;
  background: var(--hh-bg);
  border-right: 1px solid var(--hh-separator);
}

body[data-tv-app="true"].is-video-route .hh-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 64px;
  padding: 0 1rem;
  color: var(--hh-text);
  text-decoration: none;
}

body[data-tv-app="true"].is-video-route .hh-logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 31px;
  color: #222;
  background: var(--hh-primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}

body[data-tv-app="true"].is-video-route .hh-logo-text {
  font-size: 18px;
  font-weight: 900;
}

body[data-tv-app="true"].is-video-route .hh-menu {
  display: grid;
  gap: 2px;
  padding: 0 0.75rem;
}

body[data-tv-app="true"].is-video-route .hh-menu button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 40px;
  padding: 0;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  font: 400 0.875rem/1 inherit;
  text-align: left;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-menu button:hover {
  background: rgba(255, 214, 119, 0.2);
}

body[data-tv-app="true"].is-video-route .hh-menu button.is-active {
  color: var(--hh-text);
  background: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .hh-menu-icon {
  display: grid;
  place-items: center;
  width: 1rem;
  flex: 0 0 1rem;
}

body[data-tv-app="true"].is-video-route .hh-menu-icon svg {
  width: 16px;
  height: 16px;
}

body[data-tv-app="true"].is-video-route .hh-menu-line {
  height: 1px;
  margin: 20px;
  background: var(--hh-separator);
}

body[data-tv-app="true"].is-video-route .page-shell,
body[data-tv-app="true"].is-video-route #video-view {
  width: 100%;
  min-height: 100dvh;
  margin: 0;
}

body[data-tv-app="true"].is-video-route .page-shell {
  box-sizing: border-box;
  padding: 50px 0 80px 200px;
}

body[data-tv-app="true"].is-video-route .source-section {
  display: block;
  width: auto;
  margin: 1.75rem;
}

body[data-tv-app="true"].is-video-route .source-tabs {
  display: none !important;
}

body[data-tv-app="true"].is-video-route .custom-vod-search,
body[data-tv-app="true"].is-video-route .mv-search,
body[data-tv-app="true"].is-video-route .bilibili-search {
  display: none;
}

body[data-tv-app="true"].is-video-route .custom-vod-status {
  min-height: 2rem;
  margin: 0;
  color: var(--hh-text-muted);
  font-size: 0.875rem;
  line-height: 2rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-status.is-error {
  color: #d92d20;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular,
body[data-tv-app="true"].is-video-route .mv-popular {
  gap: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-heading {
  align-items: center;
  gap: 0.5rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-heading h2 {
  color: var(--hh-text-dark);
  font-size: 1.5rem;
  line-height: 2rem;
}

body[data-tv-app="true"].is-video-route .mv-popular .custom-vod-popular-heading {
  align-items: center;
}

body[data-tv-app="true"].is-video-route .mv-popular .custom-vod-popular-heading p {
  margin: 0;
  color: var(--hh-text-soft);
  font-size: 0.875rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-tabs {
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  scrollbar-width: none;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-tabs::-webkit-scrollbar {
  display: none;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-tabs button {
  min-height: 2rem;
  padding: 0 0.625rem;
  color: var(--hh-text-muted);
  background: transparent;
  border-radius: 0;
  font: 400 0.875rem/1 inherit;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-tabs button:hover {
  color: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-tabs button.is-active {
  color: var(--hh-text-muted);
  background: transparent;
  font-weight: 700;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-list,
body[data-tv-app="true"].is-video-route .mv-popular-list,
body[data-tv-app="true"].is-video-route .mv-results,
body[data-tv-app="true"].is-video-route .bilibili-results {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-card {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-card img {
  border-radius: 0.25rem;
  background: #edf1f5;
  transition: transform 0.5s ease;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-card:hover img {
  transform: scale(1.1);
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-copy {
  position: static;
  display: grid;
  gap: 2px;
  min-height: 0;
  padding: 0.5rem 0 0;
  background: transparent;
  text-align: center;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-copy strong {
  display: block;
  color: var(--hh-text);
  font-size: 0.875rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-copy small {
  color: var(--hh-text-soft);
  font-size: 0.75rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body[data-tv-app="true"].is-video-route .custom-vod-results {
  display: block;
  gap: 0;
  margin-bottom: 1.75rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-result {
  color: var(--hh-text);
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  scroll-margin-top: calc(64px + 16px);
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result.is-playing {
  display: flex;
  grid-column: 1 / -1;
  align-items: stretch;
  min-height: 450px;
  overflow: hidden;
  border-radius: 0.5rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-main {
  overflow: hidden;
  border-radius: 0.25rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.25rem;
  transition: transform 0.5s ease;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result:hover .custom-vod-poster {
  transform: scale(1.1);
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-body {
  gap: 3px;
  padding: 0.5rem 0 0;
  background: transparent;
  text-align: center;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-body h3 {
  overflow: hidden;
  color: var(--hh-text);
  font-size: 0.875rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-meta {
  color: var(--hh-text-soft);
  font-size: 0.75rem;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-routes {
  display: none;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-actions {
  margin-top: 0;
}

body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-play {
  min-height: 32px;
  font-size: 0.75rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child {
  display: flex;
  align-items: stretch;
  min-height: 450px;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  scroll-margin-top: calc(64px + 16px);
}

body[data-tv-app="true"].is-video-route .custom-vod-main {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #000;
}

body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-poster,
body[data-tv-app="true"].is-video-route .custom-vod-result.is-playing .custom-vod-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
}

body[data-tv-app="true"].is-video-route .custom-vod-main:has(.custom-vod-player-wrap) .custom-vod-poster {
  display: none;
}

body[data-tv-app="true"].is-video-route .custom-vod-player-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  background: #000;
}

body[data-tv-app="true"].is-video-route .custom-vod-player-wrap .video-player-shell,
body[data-tv-app="true"].is-video-route .custom-vod-player-wrap .custom-vod-player {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

body[data-tv-app="true"].is-video-route .custom-vod-player-wrap .custom-vod-episode-select {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: min(180px, calc(100% - 16px));
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
}

body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-body,
body[data-tv-app="true"].is-video-route .custom-vod-result.is-playing .custom-vod-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 1rem;
  overflow-y: auto;
  background: var(--hh-dark-bg);
}

body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-body h3,
body[data-tv-app="true"].is-video-route .custom-vod-result.is-playing .custom-vod-body h3 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 150%;
}

body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-body .custom-vod-meta,
body[data-tv-app="true"].is-video-route .custom-vod-result.is-playing .custom-vod-body .custom-vod-meta {
  color: var(--hh-light-text);
  font-size: 0.875rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-routes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-route {
  min-height: 2.5rem;
  color: #ebebeb;
  background: var(--hh-button);
  border: 0;
  border-radius: 0.25rem;
  font: 400 0.75rem/1.2 inherit;
}

body[data-tv-app="true"].is-video-route .custom-vod-route:hover {
  color: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .custom-vod-route.is-active {
  color: var(--hh-text);
  background: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .custom-vod-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: auto;
}

body[data-tv-app="true"].is-video-route .custom-vod-actions .custom-vod-play {
  min-height: 2.5rem;
  color: var(--hh-text);
  background: var(--hh-primary);
  border: 0;
  border-radius: 0.25rem;
  font-weight: 700;
}

body[data-tv-app="true"].is-video-route .mv-card,
body[data-tv-app="true"].is-video-route .bilibili-card {
  align-content: start;
  gap: 0.5rem;
  padding: 0;
  overflow: visible;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-tv-app="true"].is-video-route .mv-card:hover .custom-vod-poster,
body[data-tv-app="true"].is-video-route .bilibili-card:hover .custom-vod-poster {
  transform: scale(1.1);
}

body[data-tv-app="true"].is-video-route .mv-card .custom-vod-poster,
body[data-tv-app="true"].is-video-route .bilibili-card .custom-vod-poster,
body[data-tv-app="true"].is-video-route .mv-results .custom-vod-poster,
body[data-tv-app="true"].is-video-route .bilibili-results .custom-vod-poster {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #edf1f5;
  border-radius: 0.25rem;
  transition: transform 0.5s ease;
}

body[data-tv-app="true"].is-video-route .mv-card-body,
body[data-tv-app="true"].is-video-route .bilibili-card .custom-vod-body {
  gap: 3px;
}

body[data-tv-app="true"].is-video-route .mv-card-body h3,
body[data-tv-app="true"].is-video-route .bilibili-card .custom-vod-body h3 {
  overflow: hidden;
  color: var(--hh-text);
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .mv-card-body .custom-vod-meta,
body[data-tv-app="true"].is-video-route .bilibili-card .custom-vod-meta {
  color: var(--hh-text-soft);
  font-size: 0.75rem;
  text-align: center;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .mv-actions,
body[data-tv-app="true"].is-video-route .bilibili-actions {
  justify-content: center;
}

body[data-tv-app="true"].is-video-route .mv-card .mv-play,
body[data-tv-app="true"].is-video-route .bilibili-card .bilibili-play {
  width: 100%;
  min-height: 32px;
  color: var(--hh-text);
  background: var(--hh-primary);
  border: 0;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
}

body[data-tv-app="true"].is-video-route .mv-card.is-active .mv-card-body,
body[data-tv-app="true"].is-video-route .bilibili-card.is-active .custom-vod-body {
  grid-column: 1 / -1;
}

body[data-tv-app="true"].is-video-route .mv-card.is-active,
body[data-tv-app="true"].is-video-route .bilibili-card.is-active {
  grid-column: 1 / -1;
}

body[data-tv-app="true"].is-video-route .mv-card.is-active .video-player-shell,
body[data-tv-app="true"].is-video-route .bilibili-card.is-active .video-player-shell {
  margin-top: 0.5rem;
}

body[data-tv-app="true"].is-video-route .playback-history-dialog {
  color: var(--hh-text);
  background: #fff;
  border-color: var(--hh-separator);
}

body[data-tv-app="true"].is-video-route .playback-history-dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}

@media screen and (min-width: 1550px) {
  body[data-tv-app="true"].is-video-route .custom-vod-popular-list,
  body[data-tv-app="true"].is-video-route .mv-popular-list,
  body[data-tv-app="true"].is-video-route .mv-results,
  body[data-tv-app="true"].is-video-route .bilibili-results {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media screen and (min-width: 1355px) {
  body[data-tv-app="true"].is-video-route #custom-vod-results .custom-vod-result:first-child:only-child,
  body[data-tv-app="true"].is-video-route #custom-vod-results.is-card-list .custom-vod-result.is-playing {
    height: 450px;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-body,
  body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result.is-playing .custom-vod-body {
    flex: 0 0 30rem;
    width: 30rem;
  }
}

@media screen and (min-width: 1790px) {
  body[data-tv-app="true"].is-video-route .custom-vod-popular-list,
  body[data-tv-app="true"].is-video-route .mv-popular-list,
  body[data-tv-app="true"].is-video-route .mv-results,
  body[data-tv-app="true"].is-video-route .bilibili-results {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

@media screen and (max-width: 1354px) {
  body[data-tv-app="true"].is-video-route #custom-vod-results .custom-vod-result:first-child:only-child,
  body[data-tv-app="true"].is-video-route #custom-vod-results.is-card-list .custom-vod-result.is-playing {
    flex-direction: column;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-main,
  body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result.is-playing .custom-vod-main {
    flex: 0 0 auto;
    height: calc((100vw - 148px) * 9 / 16);
    aspect-ratio: 16 / 9;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-body,
  body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result.is-playing .custom-vod-body {
    flex: 0 0 450px;
    height: 450px;
  }
}

@media screen and (max-width: 1024px) {
  body[data-tv-app="true"].is-video-route .hh-side {
    width: 100px;
  }

  body[data-tv-app="true"].is-video-route .hh-header {
    left: 101px;
    padding: 0 1.5rem;
  }

  body[data-tv-app="true"].is-video-route .hh-logo {
    justify-content: center;
    padding: 0;
  }

  body[data-tv-app="true"].is-video-route .hh-logo-mark {
    width: 40px;
    height: 40px;
  }

  body[data-tv-app="true"].is-video-route .hh-logo-text {
    display: none;
  }

  body[data-tv-app="true"].is-video-route .hh-menu {
    padding: 0 0.5rem;
  }

  body[data-tv-app="true"].is-video-route .hh-menu button {
    flex-direction: column;
    gap: 0.5rem;
    min-height: 60px;
  }

  body[data-tv-app="true"].is-video-route .hh-menu-line {
    margin: 12px 8px;
  }

  body[data-tv-app="true"].is-video-route .source-section {
    margin: 1.5rem;
  }

  body[data-tv-app="true"].is-video-route .page-shell {
    padding-left: 100px;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-popular-list,
  body[data-tv-app="true"].is-video-route #custom-vod-results.is-card-list,
  body[data-tv-app="true"].is-video-route .mv-popular-list,
  body[data-tv-app="true"].is-video-route .mv-results,
  body[data-tv-app="true"].is-video-route .bilibili-results {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  body[data-tv-app="true"].is-video-route .custom-vod-popular-list,
  body[data-tv-app="true"].is-video-route #custom-vod-results.is-card-list,
  body[data-tv-app="true"].is-video-route .mv-popular-list,
  body[data-tv-app="true"].is-video-route .mv-results,
  body[data-tv-app="true"].is-video-route .bilibili-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 560px) {
  body[data-tv-app="true"].is-video-route .hh-side {
    display: none;
  }

  body[data-tv-app="true"].is-video-route .hh-header {
    left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 88px;
    padding: 12px 1rem calc(12px + env(safe-area-inset-bottom, 0px));
  }

  body[data-tv-app="true"].is-video-route .hh-nav {
    display: flex;
    order: 0;
    flex: 0 1 212px;
    gap: 0.25rem;
    min-width: 0;
    height: 40px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  body[data-tv-app="true"].is-video-route .hh-nav::-webkit-scrollbar {
    display: none;
  }

  body[data-tv-app="true"].is-video-route .hh-nav button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 4px;
    min-height: 40px;
    color: var(--hh-text);
    background: transparent;
    border: 0;
    font-size: 0.75rem;
  }

  body[data-tv-app="true"].is-video-route .hh-nav button::after {
    display: block;
    width: 1rem;
    height: 0.25rem;
    content: "";
    background: transparent;
    border-radius: 0.25rem;
  }

  body[data-tv-app="true"].is-video-route .hh-nav button.is-active {
    color: var(--hh-text-muted);
    font-weight: 700;
  }

  body[data-tv-app="true"].is-video-route .hh-nav button.is-active::after {
    background: var(--hh-primary);
  }

  body[data-tv-app="true"].is-video-route .hh-history {
    order: 1;
    width: auto;
  }

  body[data-tv-app="true"].is-video-route .hh-history span {
    display: none;
  }

  body[data-tv-app="true"].is-video-route .tv-access-panel {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    max-width: 116px;
  }

  body[data-tv-app="true"].is-video-route .tv-access-status {
    display: none;
  }

  body[data-tv-app="true"].is-video-route .tv-access-countdown {
    display: none;
  }

  body[data-tv-app="true"].is-video-route .hh-search-form {
    order: 3;
    display: block;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    margin-top: 8px;
  }

  body[data-tv-app="true"].is-video-route .source-section {
    margin: 1rem;
  }

  body[data-tv-app="true"].is-video-route .page-shell {
    padding-top: 128px;
    padding-left: 0;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-popular-list,
  body[data-tv-app="true"].is-video-route #custom-vod-results.is-card-list,
  body[data-tv-app="true"].is-video-route .mv-popular-list,
  body[data-tv-app="true"].is-video-route .mv-results,
  body[data-tv-app="true"].is-video-route .bilibili-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-popular-heading {
    display: block;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-popular-tabs {
    margin-top: 0.5rem;
  }

  body[data-tv-app="true"].is-video-route .custom-vod-result:first-child:only-child .custom-vod-main,
  body[data-tv-app="true"].is-video-route .custom-vod-results.is-card-list .custom-vod-result.is-playing .custom-vod-main {
    height: calc((100vw - 2rem) * 9 / 16);
  }

  body[data-tv-app="true"].is-video-route .custom-vod-routes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* HH-compatible program home, search, and play layouts. */
body[data-tv-app="true"].is-video-route .hh-quick-search-results {
  margin-bottom: 2rem;
}

body[data-tv-app="true"].is-video-route .hh-quick-search-inner {
  display: grid;
  gap: 2rem;
}

body[data-tv-app="true"].is-video-route .hh-quick-search-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--hh-text-muted);
  background: var(--hh-muted-bg);
  border: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-quick-search-close:hover {
  color: var(--hh-text);
  background: #ebebeb;
}

body[data-tv-app="true"].is-video-route .hh-section {
  margin: 0 0 2rem;
  scroll-margin-top: calc(64px + 1rem);
}

body[data-tv-app="true"].is-video-route .hh-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2rem;
  margin-bottom: 0.75rem;
}

body[data-tv-app="true"].is-video-route .hh-section-header h2 {
  margin: 0;
  color: var(--hh-text-dark);
  font-size: 1.5rem;
  line-height: 2rem;
}

body[data-tv-app="true"].is-video-route .hh-section-count {
  color: var(--hh-text-soft);
  font-size: 0.875rem;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .hh-v-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

body[data-tv-app="true"].is-video-route .hh-v-grid.is-empty {
  display: block;
  min-height: 8rem;
  color: var(--hh-text-muted);
  background: var(--hh-muted-bg);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 8rem;
  text-align: center;
}

body[data-tv-app="true"].is-video-route .hh-v-item {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: visible;
  color: var(--hh-text);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-v-item-main {
  position: relative;
  display: block;
  overflow: hidden;
  background: #edf1f5;
  border-radius: 0.25rem;
}

body[data-tv-app="true"].is-video-route .hh-v-item-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

body[data-tv-app="true"].is-video-route .hh-v-item:hover .hh-v-item-poster {
  transform: scale(1.1);
}

body[data-tv-app="true"].is-video-route .hh-v-item-poster.is-loading {
  box-sizing: border-box;
  border: 2px solid rgba(255, 211, 72, 0.16);
  border-top-color: rgba(255, 211, 72, 0.86);
  border-right-color: rgba(255, 211, 72, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  animation: vod-poster-spin 0.8s linear infinite;
}

body[data-tv-app="true"].is-video-route .hh-v-item-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  height: 1.5rem;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(18, 18, 18, 0.5));
  font-size: 0.75rem;
  line-height: 1.5rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .hh-v-item-footer {
  display: grid;
  margin-top: 0.5rem;
}

body[data-tv-app="true"].is-video-route .hh-v-item-footer strong {
  overflow: hidden;
  color: var(--hh-text);
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular.is-category-loading {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular.is-empty {
  min-height: 8rem;
  color: var(--hh-text-muted);
  background: var(--hh-muted-bg);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  line-height: 8rem;
  text-align: center;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-skeleton {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #edf1f5;
  border-radius: 0.25rem;
}

body[data-tv-app="true"].is-video-route .custom-vod-popular-skeleton::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.9) 38%,
    rgba(255, 211, 72, 0.28) 52%,
    rgba(255, 255, 255, 0.55) 68%
  );
  background-size: 220% 100%;
  animation: custom-vod-skeleton-shimmer 1.15s ease-in-out infinite;
}

body[data-tv-app="true"].is-video-route .hh-play-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0.5rem;
}

body[data-tv-app="true"].is-video-route .hh-play-main {
  position: relative;
  flex: 1 1 calc(100% - 30rem);
  min-width: 0;
  min-height: 450px;
  overflow: hidden;
  background: #000;
}

body[data-tv-app="true"].is-video-route .hh-play-side {
  display: flex;
  flex-direction: column;
  width: 30rem;
  height: 450px;
  padding: 1rem;
  overflow: hidden;
  color: #fff;
  background: var(--hh-dark-bg);
}

body[data-tv-app="true"].is-video-route .hh-play-header h2 {
  overflow: hidden;
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.5rem;
  line-height: 150%;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-tv-app="true"].is-video-route .hh-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

body[data-tv-app="true"].is-video-route .hh-detail-tag {
  min-height: 2rem;
  padding: 0.3125rem 0.625rem;
  color: #ebebeb;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.375rem;
}

body[data-tv-app="true"].is-video-route .hh-play-side-main {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

body[data-tv-app="true"].is-video-route .hh-play-side-main::-webkit-scrollbar {
  width: 8px;
}

body[data-tv-app="true"].is-video-route .hh-play-side-main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
  border: 2px solid var(--hh-dark-bg);
  border-radius: 8px;
}

body[data-tv-app="true"].is-video-route .hh-media-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body[data-tv-app="true"].is-video-route .hh-media-actions .button {
  min-width: 0;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 0.625rem;
}

body[data-tv-app="true"].is-video-route .hh-media-actions .custom-vod-button-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .hh-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

body[data-tv-app="true"].is-video-route .hh-box-header strong {
  flex-shrink: 0;
  color: #fff;
}

body[data-tv-app="true"].is-video-route .hh-box-header span {
  overflow: hidden;
  color: var(--hh-light-text);
  font-size: 0.75rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .hh-source-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

body[data-tv-app="true"].is-video-route .hh-source-item {
  position: relative;
  min-width: 0;
  min-height: 3.25rem;
  padding: 0.5rem 0.625rem;
  overflow: hidden;
  color: #ebebeb;
  background: var(--hh-button);
  border: 0;
  border-radius: 0.5rem;
  text-align: left;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-source-item:hover {
  color: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .hh-source-item.is-active {
  color: var(--hh-text);
  background: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .hh-source-label,
body[data-tv-app="true"].is-video-route .hh-source-sublabel {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-tv-app="true"].is-video-route .hh-source-label {
  font-size: 0.875rem;
  font-weight: 700;
}

body[data-tv-app="true"].is-video-route .hh-source-sublabel {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.685rem;
}

body[data-tv-app="true"].is-video-route .hh-source-item.is-active .hh-source-sublabel {
  color: #9a1f1f;
}

body[data-tv-app="true"].is-video-route .hh-source-item i {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 0.625rem;
  max-width: 2.75rem;
  overflow: hidden;
  padding: 0.25rem 0.375rem;
  color: #fff;
  background: linear-gradient(to bottom, #f90, #f60);
  border-radius: 0 0.5rem 0 0.5rem;
  font: 700 0.625rem/0.625rem Arial, Helvetica, sans-serif;
  font-style: normal;
  text-align: center;
}

body[data-tv-app="true"].is-video-route .hh-episode-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body[data-tv-app="true"].is-video-route .hh-episode-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 2.5rem;
  overflow: hidden;
  color: #ebebeb;
  background: var(--hh-button);
  border: 0;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
}

body[data-tv-app="true"].is-video-route .hh-episode-item span {
  line-height: 0.75rem;
  word-break: break-all;
}

body[data-tv-app="true"].is-video-route .hh-episode-item:hover {
  color: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .hh-episode-item.is-active {
  color: var(--hh-text);
  background: var(--hh-primary);
}

body[data-tv-app="true"].is-video-route .player-back {
  display: none;
}

body[data-tv-app="true"].is-video-route .custom-vod-player-wrap .player-back {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 8;
  display: inline-flex;
  width: 40px;
  min-height: 40px;
}

body[data-tv-app="true"].is-video-route .custom-vod-player-wrap .player-lock {
  top: 4.25rem;
}

@media screen and (max-width: 1024px) {
  body[data-tv-app="true"].is-video-route .hh-v-grid,
  body[data-tv-app="true"].is-video-route .custom-vod-popular.is-category-loading {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body[data-tv-app="true"].is-video-route .hh-play-main {
    flex-basis: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  body[data-tv-app="true"].is-video-route .hh-play-side {
    width: 100%;
    height: auto;
    max-height: 32rem;
  }
}

@media screen and (max-width: 900px) {
  body[data-tv-app="true"].is-video-route .hh-v-grid,
  body[data-tv-app="true"].is-video-route .custom-vod-popular.is-category-loading {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media screen and (max-width: 560px) {
  body[data-tv-app="true"].is-video-route .hh-v-grid,
  body[data-tv-app="true"].is-video-route .custom-vod-popular.is-category-loading {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-tv-app="true"].is-video-route .hh-play-side {
    max-height: none;
    padding: 0.75rem;
  }

  body[data-tv-app="true"].is-video-route .hh-media-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-tv-app="true"].is-video-route .hh-play-header h2 {
    font-size: 1.25rem;
  }

  body[data-tv-app="true"].is-video-route .hh-source-list,
  body[data-tv-app="true"].is-video-route .hh-episode-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.375rem;
  }

  body[data-tv-app="true"].is-video-route .hh-source-item {
    min-height: 3rem;
    padding: 0.375rem 0.5rem;
  }

  body[data-tv-app="true"].is-video-route .hh-episode-item {
    height: 2.25rem;
    font-size: 0.6875rem;
  }
}

@media screen and (min-width: 1600px) {
  body[data-tv-app="true"].is-video-route .hh-v-grid,
  body[data-tv-app="true"].is-video-route .custom-vod-popular.is-category-loading {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 1.25rem;
  }

  body[data-tv-app="true"].is-video-route .hh-section-header h2 {
    font-size: 1.75rem;
  }

  body[data-tv-app="true"].is-video-route .hh-v-item-footer strong {
    font-size: 1rem;
  }

  body[data-tv-app="true"].is-video-route .hh-play-main,
  body[data-tv-app="true"].is-video-route .hh-play-side {
    height: 500px;
  }

  body[data-tv-app="true"].is-video-route .hh-play-side {
    width: 32rem;
  }

  body[data-tv-app="true"].is-video-route .hh-source-item,
  body[data-tv-app="true"].is-video-route .hh-episode-item {
    min-height: 2.75rem;
  }
}
