:root {
  --pathe-bg: #10131a;
  --pathe-surface: #171c25;
  --pathe-raised: #202632;
  --pathe-text: #f7f7f2;
  --pathe-muted: #aeb4bf;
  --pathe-line: rgba(255,255,255,.12);
  --pathe-yellow: #f4bf2d;
  --pathe-yellow-strong: #ffc426;
  --van-primary-color: #f4bf2d;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.pathe-public-page,
body.pathe-public-page #app,
body.pathe-app-page,
body.pathe-app-page #app { background: var(--pathe-bg) !important; color: var(--pathe-text); }

body.pathe-public-page #app > div,
body.pathe-app-page #app > div { min-height: 100dvh; }

body.pathe-app-page .van-cell,
body.pathe-app-page .van-cell-group,
body.pathe-app-page .van-collapse-item__content,
body.pathe-app-page .van-tabs__nav,
body.pathe-app-page .van-dropdown-menu__bar,
body.pathe-app-page .van-popup,
body.pathe-app-page .van-card,
body.pathe-app-page .bg-white,
body.pathe-public-page .van-cell,
body.pathe-public-page .van-field__control { background: var(--pathe-surface) !important; color: var(--pathe-text) !important; }

body.pathe-app-page .van-nav-bar,
body.pathe-public-page .van-nav-bar,
body.pathe-app-page .site-page-header { background: #151922 !important; border-color: var(--pathe-line) !important; color: var(--pathe-text) !important; }

body.pathe-app-page .van-cell__title,
body.pathe-app-page .van-cell__value,
body.pathe-app-page .van-field__control,
body.pathe-app-page .van-field__label,
body.pathe-app-page .van-tab,
body.pathe-public-page .van-cell__title,
body.pathe-public-page .van-field__control { color: var(--pathe-text) !important; }

body.pathe-app-page .van-cell__label,
body.pathe-app-page .text-gray-400,
body.pathe-app-page .text-gray-500,
body.pathe-app-page [class*="text-black/"] { color: var(--pathe-muted) !important; }

body.pathe-app-page .van-button--primary,
body.pathe-public-page .van-button--primary,
body.pathe-app-page .bg-main,
body.pathe-public-page .bg-main {
  border-color: var(--pathe-yellow-strong) !important;
  border-radius: 4px !important;
  background: var(--pathe-yellow-strong) !important;
  color: #11151b !important;
  box-shadow: none !important;
}

body.pathe-app-page .van-tabs__line { background: var(--pathe-yellow-strong) !important; }
body.pathe-app-page .van-nav-bar__arrow { color: var(--pathe-yellow-strong) !important; }
body.pathe-app-page .van-field__control::placeholder { color: #89909c !important; }
body.pathe-app-page .van-cell::after,
body.pathe-app-page .van-cell-group::after { border-color: var(--pathe-line) !important; }

body.pathe-public-page .van-field,
body.pathe-public-page .van-cell { border-color: var(--pathe-line) !important; }
body.pathe-public-page input,
body.pathe-public-page textarea { color: var(--pathe-text) !important; }

/* The film editor keeps its real upload, save, refresh and receipt controls. */
body:has(.admin-music) { margin: 0; min-height: 100vh; background: #10131a; color: #f7f7f2; font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
.admin-music { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 64px; color: #f7f7f2; }
.admin-music > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 0 0 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.admin-music h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.25; }
.admin-music h2 { margin: 0 0 12px; font-size: 20px; }
.admin-music p { color: #b9bfca; line-height: 1.7; }
.admin-music > section { margin-top: 28px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); }
.admin-music fieldset { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; margin: 16px 0; padding: 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 4px; }
.admin-music legend { padding: 0 8px; color: #ffc426; font-weight: 700; }
.admin-music label { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #d8dbe1; }
.admin-music input:not([type="checkbox"]):not([type="file"]) { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #424957; border-radius: 3px; background: #171c25; color: #f7f7f2; }
.admin-music input[type="checkbox"] { accent-color: #ffc426; }
.admin-music button,
.admin-music header a { min-height: 40px; padding: 9px 14px; border: 1px solid #4a5260; border-radius: 3px; background: #202632; color: #f7f7f2; cursor: pointer; text-decoration: none; }
.admin-music button:hover,
.admin-music header a:hover { border-color: #ffc426; }
.admin-music button:disabled { opacity: .52; cursor: not-allowed; }
.admin-music #save { border-color: #ffc426; background: #ffc426; color: #11151b; font-weight: 700; }
.admin-music footer { display: flex; justify-content: flex-end; gap: 10px; }
.admin-music #status { position: sticky; top: 0; z-index: 5; padding: 10px 12px; border: 1px solid rgba(244,191,45,.28); background: #171c25; color: #f4bf2d; }
.movie-upload__status { color: #c5cad3 !important; }
.movie-upload progress { accent-color: #ffc426; }
.admin-music #receipt-list { margin: 12px 0; }
.admin-music #receipt-list > p { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .admin-music { width: calc(100% - 28px); padding-top: 20px; }
  .admin-music > header { flex-direction: column; }
  .admin-music h1 { font-size: 23px; }
  .admin-music fieldset { grid-template-columns: minmax(0,1fr); padding: 14px; }
  .admin-music footer { justify-content: stretch; }
  .admin-music footer button { flex: 1; }
}

body.pathe-public-page,
body.pathe-public-page #app,
body.pathe-public-page #app > div,
body.pathe-public-page .van-config-provider {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  background: var(--pathe-bg) !important;
}

body.pathe-public-page .login {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  padding: 24px clamp(18px, 3vw, 40px) 32px !important;
  background-color: var(--pathe-bg) !important;
  background-image: none !important;
}

body.pathe-public-page .login [class~="w-11/12"] {
  width: min(100%, 520px) !important;
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

body.pathe-public-page .van-field__control {
  color: var(--pathe-text) !important;
  caret-color: var(--pathe-yellow-strong);
}

body.pathe-public-page .van-field__control::placeholder {
  color: var(--pathe-muted) !important;
  opacity: 1;
}

body.pathe-public-page .text-main {
  color: var(--pathe-yellow-strong) !important;
}

body.pathe-public-page input:focus-visible {
  outline: 2px solid var(--pathe-yellow-strong);
  outline-offset: 2px;
}

body.pathe-public-page,
body:has(.admin-music) { color-scheme: dark; }
body.pathe-public-page .van-field__right-icon .van-icon__image { filter: invert(1); opacity: .8; }
.pathe-support-control { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--pathe-line); border-radius: 50%; color: var(--pathe-yellow-strong); cursor: pointer; }
.pathe-support-control > img { display: none; }
.pathe-support-control svg { width: 23px; height: 23px; }
.pathe-support-control:hover { background: var(--pathe-raised); }
.pathe-support-control:focus-visible,
.admin-music :focus-visible { outline: 2px solid var(--pathe-yellow-strong); outline-offset: 3px; }
::selection { background: #f4bf2d; color: #10131a; }
.admin-music { scrollbar-color: #606877 #10131a; }
body.pathe-public-page [class*="bg-[url("] { background-image: none !important; background-color: var(--pathe-bg) !important; }
body.pathe-public-page .register { box-sizing: border-box; width: 100%; min-height: 100dvh; padding-inline: clamp(18px, 3vw, 40px); background: var(--pathe-bg) !important; }
body.pathe-public-page .register .van-cell,
body.pathe-public-page .vue-tel-input,
body.pathe-public-page .vti__dropdown { border-color: var(--pathe-line) !important; background: var(--pathe-surface); color: var(--pathe-text); }
body.pathe-public-page .vti__dropdown-list { background: var(--pathe-surface); color: var(--pathe-text); }

/* Match the movie module and the remaining legacy panels to the cinema palette. */
.video-catalog { background: var(--pathe-surface); color: var(--pathe-text); border-radius: 4px; }
.video-help, .video-copy p, .video-empty { color: var(--pathe-muted); }
.video-list li { border-color: var(--pathe-line); }
.video-copy .movie-reward { color: var(--pathe-yellow-strong); }
.video-poster, .video-placeholder { background: var(--pathe-raised); border-radius: 4px; }
.video-action { background: var(--pathe-yellow-strong); color: #11151b; border-radius: 4px; }
.video-action:hover { background: #ffd363; }
.video-action:disabled { background: #414958; color: #d8dbe1; }
.video-viewer video { background: #080a0e; border-radius: 4px; }
.video-progress progress { accent-color: var(--pathe-yellow-strong); }
.video-catalog button:focus-visible { outline-color: var(--pathe-yellow-strong); }
body.pathe-app-page [class~="bg-[#FFFFFF]"],
body.pathe-app-page [class~="bg-[#fff]"],
body.pathe-app-page [class~="bg-[#F7F7F7]"],
body.pathe-app-page .van-dropdown-menu__title { background: var(--pathe-surface) !important; color: var(--pathe-text) !important; }
.cinema-home .music-support img { filter: brightness(0) saturate(100%) invert(83%) sepia(85%) saturate(1534%) hue-rotate(338deg) brightness(103%) contrast(91%); }
.cinema-home .music-secondary-content > .w-11\/12 [class~="bg-[#FFFFFF]"] { background: var(--pathe-surface) !important; color: var(--pathe-text) !important; }
