﻿:root {
  --pathe-bg: #10131a;
  --pathe-surface: #171c25;
  --pathe-text: #f7f7f2;
  --pathe-muted: #aeb4bf;
  --pathe-line: rgba(255, 255, 255, 0.12);
  --pathe-yellow: #f4bf2d;
  --pathe-yellow-strong: #ffc426;
  --pathe-nav-height: 72px;
}

html,
body.pathe-app-page,
body.pathe-app-page #app {
  min-height: 100%;
  background: var(--pathe-bg);
}

body.pathe-app-page {
  color: var(--pathe-text);
  color-scheme: dark;
}

body.pathe-app-page main {
  min-height: 100dvh;
  padding-bottom: calc(var(--pathe-nav-height) + env(safe-area-inset-bottom, 0px));
  background: var(--pathe-bg);
}

body.pathe-app-page footer > .van-tabbar,
body.pathe-app-page footer > .van-tabbar__placeholder {
  display: none !important;
}

.pathe-bottom-nav[hidden],
body.pathe-public-page .pathe-bottom-nav {
  display: none !important;
}

.pathe-brand-image {
  content: normal !important;
  display: block;
  max-width: min(42vw, 180px);
  max-height: 56px;
  height: auto;
  object-fit: contain;
}

.pathe-bottom-nav {
  position: fixed;
  z-index: 9998;
  box-sizing: border-box;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 1000px);
  min-height: var(--pathe-nav-height);
  margin: 0 auto;
  padding: 4px 8px max(4px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pathe-line);
  background: rgba(12, 15, 21, 0.97);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.pathe-bottom-nav__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: #c4c8d0;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.pathe-bottom-nav__item::before {
  position: absolute;
  top: -5px;
  width: 30px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: transparent;
  content: "";
  transition: background-color 180ms ease;
}

.pathe-bottom-nav__item:active {
  background: rgba(255, 255, 255, 0.05);
}

.pathe-bottom-nav__item:focus-visible {
  outline: 2px solid var(--pathe-yellow);
  outline-offset: -4px;
}

.pathe-bottom-nav__item.is-active,
.pathe-bottom-nav__item[aria-current="page"] {
  color: var(--pathe-yellow-strong);
}

.pathe-bottom-nav__item.is-active::before,
.pathe-bottom-nav__item[aria-current="page"]::before {
  background: var(--pathe-yellow-strong);
}

.pathe-bottom-nav__icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  line-height: 24px;
}

.pathe-bottom-nav__label {
  overflow: hidden;
  max-width: 100%;
  font-size: 12px;
  font-weight: 650;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pathe-inline-logo {
  display: inline-flex;
  width: 58px;
  height: 174px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--pathe-yellow-strong);
  vertical-align: middle;
}

.pathe-inline-logo svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.pathe-legacy-logo-source {
  display: none !important;
}

body.pathe-app-page .van-nav-bar,
body.pathe-app-page .site-page-header,
body.pathe-app-page [class*="bg-[var(--header-bg)]"] {
  border-color: var(--pathe-line) !important;
  background: #151922 !important;
  color: var(--pathe-text) !important;
}

body.pathe-app-page .van-nav-bar::after,
body.pathe-app-page .van-hairline--bottom::after {
  border-color: var(--pathe-line) !important;
}

body.pathe-app-page .van-nav-bar__title,
body.pathe-app-page .van-nav-bar__text,
body.pathe-app-page .van-nav-bar .van-icon,
body.pathe-app-page .site-page-header h1 {
  color: var(--pathe-text) !important;
}

body.pathe-app-page .van-nav-bar__arrow,
body.pathe-app-page .site-page-header .van-icon {
  color: var(--pathe-yellow-strong) !important;
}

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 .bg-white {
  background: var(--pathe-surface) !important;
  color: var(--pathe-text) !important;
}

body.pathe-app-page .van-cell::after,
body.pathe-app-page .van-cell-group::after,
body.pathe-app-page .van-cell-group::before {
  border-color: var(--pathe-line) !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-app-page .van-dropdown-menu__title,
body.pathe-app-page [class~="text-black"] {
  color: var(--pathe-text) !important;
}

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

body.pathe-app-page .van-field__control::placeholder,
body.pathe-app-page .van-cell__label,
body.pathe-app-page .text-gray-400,
body.pathe-app-page .text-gray-500 {
  color: var(--pathe-muted) !important;
}

body.pathe-app-page .van-tabs__line {
  background: var(--pathe-yellow-strong) !important;
}

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

body.pathe-app-page .van-button--primary:active,
body.pathe-app-page .bg-main:active {
  filter: brightness(0.9);
}

body.pathe-app-page .van-switch--on,
body.pathe-app-page .van-radio__icon--checked .van-icon,
body.pathe-app-page .van-checkbox__icon--checked .van-icon {
  border-color: var(--pathe-yellow-strong) !important;
  background: var(--pathe-yellow-strong) !important;
  color: #11151b !important;
}

body.pathe-app-page .music-home {
  padding-bottom: calc(var(--pathe-nav-height) + 42px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .pathe-bottom-nav {
    padding-inline: 72px;
  }

  .pathe-bottom-nav__item {
    min-height: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pathe-bottom-nav__item,
  .pathe-bottom-nav__item::before {
    transition: none;
  }
}


/* Uploaded branding overrides legacy CSS image replacements. */
img.pathe-custom-logo, img.pathe-brand-image {
  content: normal !important;
  object-fit: contain !important;
}
img.pathe-custom-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cinema-home-brand > img.pathe-custom-logo {
  width: min(230px, 42vw);
  height: 190px;
}
.pathe-inline-logo:has(> img.pathe-custom-logo) {
  width: min(230px, 42vw);
  height: 190px;
}
.pathe-inline-logo > img.pathe-custom-logo {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .cinema-home-brand > img.pathe-custom-logo {
    width: min(210px, 46vw);
    height: 174px;
  }
  .pathe-inline-logo:has(> img.pathe-custom-logo) {
    width: min(210px, 46vw);
    height: 174px;
  }
}

/* Center navigation entry and supplied information artwork. */
.pathe-guide-entry { border: 0; padding: 0; background: transparent; font: inherit; cursor: pointer; }
.pathe-guide-entry .pathe-guide-mark { display: block; width: 40px; height: 32px; max-width: 40px; max-height: 32px; object-fit: contain; }
body.pathe-guide-open { overflow: hidden; }
.pathe-guide { box-sizing: border-box; width: min(100% - 24px, 900px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--pathe-line); border-radius: 12px; color: var(--pathe-text); background: var(--pathe-bg); color-scheme: dark; }
.pathe-guide::backdrop { background: rgba(0, 0, 0, .75); }
.pathe-guide[open] { display: flex; flex-direction: column; }
.pathe-guide-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--pathe-line); }
.pathe-guide-header h2 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 700; }
.pathe-guide-close { min-height: 44px; border: 1px solid var(--pathe-yellow); border-radius: 6px; padding: 8px 12px; background: transparent; color: var(--pathe-yellow-strong); font: inherit; font-size: 14px; cursor: pointer; }
.pathe-guide-close { flex-shrink: 0; }
.pathe-guide button:focus-visible { outline: 2px solid var(--pathe-yellow); outline-offset: 3px; }
.pathe-guide button:hover { background: rgba(244, 191, 45, .1); }
.pathe-guide-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 16px; }
.pathe-guide-body section + section { margin-top: 28px; }
.pathe-guide-body h3 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.pathe-guide-scroll { overflow: auto; }
.pathe-guide-scroll img { display: block; width: 100%; max-width: none; height: auto; cursor: zoom-in; }
.pathe-guide-scroll img:focus-visible { outline: 2px solid var(--pathe-yellow); outline-offset: -3px; }
.pathe-image-preview { position: fixed; inset: 0; box-sizing: border-box; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: var(--pathe-text); background: var(--pathe-bg); color-scheme: dark; overflow: hidden; }
.pathe-image-preview::backdrop { background: rgba(0, 0, 0, .9); }
.pathe-image-preview[open] { display: flex; flex-direction: column; }
.pathe-image-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: max(10px, env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--pathe-line); }
.pathe-image-tools { display: flex; align-items: center; gap: 8px; }
.pathe-image-toolbar button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--pathe-yellow); border-radius: 6px; padding: 8px; color: var(--pathe-yellow-strong); background: transparent; font: inherit; cursor: pointer; }
.pathe-image-toolbar .pathe-image-close { padding-inline: 14px; }
.pathe-image-toolbar button:hover:enabled { background: rgba(244, 191, 45, .1); }
.pathe-image-toolbar button:disabled { opacity: .4; cursor: default; }
.pathe-image-toolbar button:focus-visible, .pathe-image-viewport:focus-visible { outline: 2px solid var(--pathe-yellow); outline-offset: -3px; }
.pathe-image-scale { min-width: 48px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.pathe-image-viewport { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; cursor: grab; padding-bottom: env(safe-area-inset-bottom); }
.pathe-image-viewport.is-dragging { cursor: grabbing; }
.pathe-image-canvas { display: grid; place-items: center; position: relative; min-width: 100%; min-height: 100%; }
.pathe-image-canvas .pathe-image-art { display: block; max-width: none; height: auto; margin: 0; flex: none; user-select: none; -webkit-user-select: none; }
@media (max-width: 480px) {
  .pathe-guide { width: 100%; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .pathe-guide-header { padding-top: max(16px, env(safe-area-inset-top)); }
  .pathe-guide-body { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
