/* ============================================================
   pan.234578.top — "Quiet Void" file index skin
   Re-skins OneManager's classic theme. No PHP changes.
   ============================================================ */


:root {
  --p-bg: #05070d;
  --p-ink: #f2f6fd;
  --p-ink-2: rgba(242, 246, 253, 0.68);
  --p-ink-3: rgba(242, 246, 253, 0.42);
  --p-line: rgba(255, 255, 255, 0.09);
  --p-line-2: rgba(255, 255, 255, 0.16);
  --p-accent: #7dd3fc;
  --p-accent-2: #a78bfa;
  --p-bg-image: none;
  --p-bg-opacity: 0.6;
  --p-dock: 96px;
  --p-font: "Segoe UI", system-ui, -apple-system, "PingFang SC",
    "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --p-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "SF Mono", Menlo, Consolas,
    monospace;
  --p-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
html,
body {
  margin: 0;
  padding: 0;
}
body.pan-ui {
  min-height: 100vh;
  background: var(--p-bg) !important;
  color: var(--p-ink);
  font-family: var(--p-font) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.pan-ui a {
  color: inherit;
}
body.pan-ui ::selection {
  background: rgba(125, 211, 252, 0.28);
  color: #fff;
}
body.pan-ui :focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
  border-radius: 6px;
}
body.pan-ui::-webkit-scrollbar {
  width: 10px;
}
body.pan-ui::-webkit-scrollbar-track {
  background: #05070d;
}
body.pan-ui::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  border: 3px solid #05070d;
}
body.pan-ui::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- background ---------- */
.p-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--p-bg);
}
.p-bg__image {
  position: absolute;
  inset: 0;
  background-image: var(--p-bg-image);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  opacity: var(--p-bg-opacity);
  transform: scale(1.02);
  filter: saturate(0.95) brightness(0.9);
  transition: opacity 0.45s var(--p-ease);
}
.p-bg__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(5, 7, 13, 0.76) 0%,
      rgba(5, 7, 13, 0.56) 28%,
      rgba(5, 7, 13, 0.72) 62%,
      rgba(3, 5, 10, 0.96) 100%
    ),
    radial-gradient(130% 100% at 50% 0%, rgba(5, 7, 13, 0.34) 0%, rgba(3, 5, 10, 0.78) 100%);
}
.p-bg__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  mix-blend-mode: screen;
}
.p-bg__aurora--a {
  width: 56vw;
  height: 56vw;
  left: -18vw;
  top: -22vw;
  background: radial-gradient(circle at 40% 40%, rgba(56, 189, 248, 0.45), transparent 62%);
}
.p-bg__aurora--b {
  width: 44vw;
  height: 44vw;
  right: -14vw;
  top: -12vw;
  background: radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.32), transparent 62%);
}
.p-bg__aurora--c {
  width: 56vw;
  height: 40vw;
  left: 24vw;
  bottom: -26vw;
  background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.24), transparent 64%);
}
.p-bg__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.2;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 78%);
}
.p-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}
.p-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 95% at 50% 0%, rgba(5, 7, 13, 0.1) 30%, rgba(1, 2, 5, 0.82) 100%);
}
html[data-pbg="plain"] .p-bg__image {
  display: none;
}

.p-pointer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.1) 0%,
    rgba(125, 211, 252, 0.045) 38%,
    transparent 66%
  );
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.5s var(--p-ease);
}
body.pan-ui.has-pointer .p-pointer {
  opacity: 1;
}

/* ---------- page frame ---------- */
.p-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 22px) clamp(14px, 3vw, 34px) calc(var(--p-dock) + 20px);
}

/* ---------- header ---------- */
.p-header {
  position: sticky;
  top: 10px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--p-line);
  background: rgba(10, 14, 22, 0.52);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.35s var(--p-ease), box-shadow 0.35s var(--p-ease);
}
body.is-scrolled .p-header {
  background: rgba(10, 14, 22, 0.82);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.p-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--p-ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.p-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(140deg, rgba(125, 211, 252, 0.24), rgba(167, 139, 250, 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 26px -14px rgba(125, 211, 252, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #e0f2fe;
}
.p-brand__name {
  font-size: 14px;
  font-weight: 700;
}
.p-brand__name span {
  color: var(--p-ink-3);
  font-weight: 400;
}
.p-brand__line {
  width: 1px;
  height: 16px;
  background: var(--p-line-2);
}
.p-brand__site {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--p-ink-2);
  letter-spacing: 0.02em;
}
.p-header__tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.p-header__hint {
  font-family: var(--p-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
}
.p-icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--p-ink-2);
  cursor: pointer;
  transition: color 0.3s var(--p-ease), border-color 0.3s var(--p-ease),
    background 0.3s var(--p-ease), box-shadow 0.3s var(--p-ease);
  -webkit-tap-highlight-color: transparent;
}
.p-icon-btn svg {
  width: 16px;
  height: 16px;
}
.p-icon-btn:hover,
.p-icon-btn.is-active {
  color: var(--p-ink);
  border-color: rgba(125, 211, 252, 0.42);
  background: rgba(125, 211, 252, 0.1);
  box-shadow: 0 0 26px -12px rgba(125, 211, 252, 0.75);
}
.p-login {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 8px 14px !important;
  border-radius: 999px;
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--p-ink-2) !important;
  font-size: 11.5px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.3s var(--p-ease), border-color 0.3s var(--p-ease),
    background 0.3s var(--p-ease);
}
.p-login:hover {
  color: var(--p-ink) !important;
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(125, 211, 252, 0.09);
}
.p-login .p-ico {
  width: 15px;
  height: 15px;
  border: 0;
  background: transparent;
  color: var(--p-accent);
}

/* ---------- hero ---------- */
.p-hero {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 4px 0;
}
.p-eyebrow {
  margin: 0;
  font-family: var(--p-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--p-ink-3);
  text-transform: uppercase;
}
.p-title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  background: linear-gradient(105deg, #ffffff 8%, #dbeafe 46%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.p-sub {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--p-ink-2);
}
.p-hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.p-crumb {
  min-width: 0;
}
.p-crumb .table-header {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--p-ink-3);
  line-height: 1.5;
  word-break: break-all;
}
.p-crumb .table-header a {
  color: var(--p-ink-2);
  text-decoration: none;
  transition: color 0.25s var(--p-ease);
}
.p-crumb .table-header a:hover {
  color: var(--p-accent);
}
.p-stats {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-stats li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 84px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.p-stats span {
  font-family: var(--p-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: var(--p-ink-3);
  text-transform: uppercase;
}
.p-stats strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--p-ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- list panel ---------- */
.p-main {
  min-width: 0;
}
.p-panel {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--p-line);
  background: linear-gradient(160deg, rgba(18, 24, 38, 0.74), rgba(9, 13, 22, 0.64));
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 40px 90px -52px rgba(0, 0, 0, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
  isolation: isolate;
}
#list-div.p-list {
  width: auto;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}
.p-list .list-container {
  background: transparent;
  border-radius: 0;
}
.p-list .list-body-container {
  background: transparent;
}
body.pan-ui .list-table,
body.pan-ui .list-table tbody,
body.pan-ui .list-table thead {
  display: block;
  width: 100%;
}
body.pan-ui .list-table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* OneManager's classic theme caps every cell at 80px; release it */
body.pan-ui .list-table td,
body.pan-ui .list-table th {
  max-width: none !important;
  white-space: normal !important;
  overflow: visible !important;
}

/* toolbar row */
#tr0.p-toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  height: auto !important;
  padding: 11px 14px;
  border-bottom: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.022);
}
#tr0.p-toolbar th {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  height: auto !important;
  padding: 0;
  border: 0;
  font-size: 11px;
  font-weight: 400;
  color: var(--p-ink-3);
  text-align: left;
}
#tr0.p-toolbar th.file {
  flex: 1 1 480px;
}
#tr0.p-toolbar th.updated_at,
#tr0.p-toolbar th.size {
  display: none;
}
.p-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 150px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid var(--p-line);
  background: rgba(0, 0, 0, 0.26);
  color: var(--p-ink-3);
  transition: border-color 0.25s var(--p-ease), background 0.25s var(--p-ease);
}
.p-search:focus-within {
  border-color: rgba(125, 211, 252, 0.4);
  background: rgba(0, 0, 0, 0.36);
}
.p-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.7;
}
.p-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--p-ink);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.p-search input::placeholder {
  color: var(--p-ink-3);
}
.p-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, transparent 45%, var(--p-ink-3) 45% 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--p-ink-3) 45% 55%, transparent 55%);
  cursor: pointer;
}
.p-sort {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--p-line);
  background: rgba(0, 0, 0, 0.26);
}
.p-sortlink {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--p-ink-3);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s var(--p-ease), background 0.25s var(--p-ease);
}
.p-sortlink:hover {
  color: var(--p-ink-2);
}
.p-sortlink.is-active {
  color: var(--p-accent);
  background: rgba(125, 211, 252, 0.13);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
}
.p-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--p-line);
  background: rgba(0, 0, 0, 0.2);
  color: var(--p-ink-3);
  font-size: 10.5px;
  cursor: pointer;
}
.p-check input {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid var(--p-line-2);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s var(--p-ease), background 0.2s var(--p-ease);
}
.p-check input:checked {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(125, 211, 252, 0.85);
}
.p-check input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid #06202b;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.p-chip {
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px solid var(--p-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--p-ink-2);
  font: inherit;
  font-size: 10.5px;
  cursor: pointer;
  transition: color 0.25s var(--p-ease), border-color 0.25s var(--p-ease),
    background 0.25s var(--p-ease);
}
.p-chip:hover {
  color: var(--p-ink);
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(125, 211, 252, 0.09);
}

/* rows */
body.pan-ui .list-table tr[data-to] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px 92px;
  align-items: center;
  height: auto !important;
  gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  transition: background 0.25s var(--p-ease);
}
body.pan-ui .list-table tr[data-to]:first-child {
  border-top: 0;
}
body.pan-ui .list-table tr[data-to]:hover {
  background: rgba(125, 211, 252, 0.05);
}
body.pan-ui .list-table tr[data-to].is-folder {
  cursor: pointer;
}
body.pan-ui .list-table tr[data-to] td {
  padding: 0;
  border: 0;
  vertical-align: middle;
}
body.pan-ui td.file {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
body.pan-ui td.file > a[name="folderlist"],
body.pan-ui td.file > a[name="filelist"] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--p-ink);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s var(--p-ease);
}
body.pan-ui .list-table tr[data-to]:hover td.file > a[name="folderlist"],
body.pan-ui .list-table tr[data-to]:hover td.file > a[name="filelist"] {
  color: #ffffff;
}
body.pan-ui td.file > a[name="folderlist"]:hover,
body.pan-ui td.file > a[name="filelist"]:hover {
  color: var(--p-accent);
}
body.pan-ui td.file a.download {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid transparent;
  color: var(--p-ink-3);
  opacity: 0.35;
  text-decoration: none;
  transition: opacity 0.25s var(--p-ease), color 0.25s var(--p-ease),
    border-color 0.25s var(--p-ease), background 0.25s var(--p-ease);
}
body.pan-ui .list-table tr[data-to]:hover td.file a.download {
  opacity: 1;
  border-color: var(--p-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--p-ink);
}
body.pan-ui td.file a.download:hover {
  color: var(--p-accent) !important;
  border-color: rgba(125, 211, 252, 0.42) !important;
  background: rgba(125, 211, 252, 0.12) !important;
}
body.pan-ui td.updated_at,
body.pan-ui td.size {
  font-family: var(--p-mono);
  font-size: 10px;
  color: var(--p-ink-3);
  text-align: right;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
body.pan-ui td.size {
  color: var(--p-ink-2);
}
body.pan-ui .list-table tr[data-to] td[colspan] {
  display: block;
  grid-column: 1 / -1;
  padding: 4px 0;
}
body.pan-ui .list-table tr[data-to] td[colspan] img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4px auto;
  border-radius: 10px;
}
.p-empty {
  margin: 0;
  padding: 46px 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--p-ink-3);
}

/* ---------- file / folder icons ---------- */
.p-ico {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.66);
  transition: transform 0.25s var(--p-ease), border-color 0.25s var(--p-ease);
}
.p-ico svg {
  width: 15px;
  height: 15px;
}
.list-table tr[data-to]:hover .p-ico {
  transform: translateY(-1px);
}
.p-ico--folder {
  color: #7dd3fc;
  background: rgba(125, 211, 252, 0.13);
  border-color: rgba(125, 211, 252, 0.26);
  box-shadow: 0 8px 20px -12px rgba(125, 211, 252, 0.85);
}
.p-ico--music {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.22);
}
.p-ico--video {
  color: #fda4af;
  background: rgba(253, 164, 175, 0.1);
  border-color: rgba(253, 164, 175, 0.22);
}
.p-ico--image {
  color: #fcd34d;
  background: rgba(252, 211, 77, 0.1);
  border-color: rgba(252, 211, 77, 0.22);
}
.p-ico--zip {
  color: #c4b5fd;
  background: rgba(196, 181, 253, 0.1);
  border-color: rgba(196, 181, 253, 0.22);
}
.p-ico--disc {
  color: #e2e8f0;
  background: rgba(226, 232, 240, 0.09);
  border-color: rgba(226, 232, 240, 0.2);
}
.p-ico--apk {
  color: #86efac;
  background: rgba(134, 239, 172, 0.1);
  border-color: rgba(134, 239, 172, 0.22);
}
.p-ico--exe {
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.1);
  border-color: rgba(147, 197, 253, 0.22);
}
.p-ico--doc {
  color: #cbd5e1;
  background: rgba(203, 213, 225, 0.08);
  border-color: rgba(203, 213, 225, 0.2);
}
.p-ico.p-ico--inline {
  width: 15px;
  height: 15px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
.p-ico.p-ico--inline svg {
  width: 15px;
  height: 15px;
}

/* ---------- footer ---------- */
.p-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 4px 4px 0;
  font-size: 10.5px;
  color: var(--p-ink-3);
}
.p-footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.p-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--p-ink-2);
  text-decoration: none;
  font-weight: 600;
}
.p-footer__brand .p-brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  font-size: 8.5px;
}
.p-footer__links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.p-footer__links a {
  color: var(--p-ink-3);
  text-decoration: none;
  transition: color 0.25s var(--p-ease);
}
.p-footer__links a:hover {
  color: var(--p-accent);
}

/* ---------- background panel ---------- */
.p-panel-bg {
  position: fixed;
  top: 100px;
  right: clamp(14px, 3vw, 40px);
  z-index: 130;
  width: min(356px, calc(100vw - 28px));
  padding: 15px;
  border-radius: 18px;
  border: 1px solid var(--p-line-2);
  background: rgba(10, 14, 22, 0.9);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: p-panel-in 0.32s var(--p-ease) both;
}
.p-panel-bg[hidden] {
  display: none !important;
}
@keyframes p-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.p-panel-bg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.p-panel-bg__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.p-panel-bg__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--p-ink-3);
  cursor: pointer;
  transition: color 0.25s var(--p-ease), background 0.25s var(--p-ease);
}
.p-panel-bg__close svg {
  width: 14px;
  height: 14px;
}
.p-panel-bg__close:hover {
  color: var(--p-ink);
  background: rgba(255, 255, 255, 0.08);
}
.p-panel-bg__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.p-bgchip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--p-ink-3);
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.p-bgchip__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.82);
  transition: filter 0.3s var(--p-ease), border-color 0.3s var(--p-ease),
    box-shadow 0.3s var(--p-ease), transform 0.3s var(--p-ease);
}
.p-bgchip__img--plain {
  background: linear-gradient(140deg, #0a0e17, #131a28);
}
.p-bgchip__name {
  font-family: var(--p-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.p-bgchip:hover .p-bgchip__img {
  filter: none;
  transform: translateY(-1px);
}
.p-bgchip.is-active .p-bgchip__img {
  border-color: var(--p-accent);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.55), 0 8px 22px -12px rgba(125, 211, 252, 0.85);
  filter: none;
}
.p-bgchip.is-active .p-bgchip__name {
  color: var(--p-accent);
}
.p-bgchip:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 3px;
  border-radius: 10px;
}
.p-range {
  display: block;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--p-line);
}
.p-range__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 11px;
  color: var(--p-ink-2);
}
.p-range output {
  font-family: var(--p-mono);
  font-size: 10.5px;
  color: var(--p-accent);
}
.p-range input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(125, 211, 252, 0.9), rgba(167, 139, 250, 0.9));
  outline: none;
  cursor: pointer;
}
.p-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.9);
}
.p-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.9);
}
.p-panel-bg__hint {
  margin: 9px 0 0;
  font-size: 9.5px;
  color: var(--p-ink-3);
}

/* ---------- toast / back to top ---------- */
.p-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--p-dock) + 16px);
  z-index: 150;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--p-line-2);
  background: rgba(12, 17, 27, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.95);
  font-size: 12px;
  color: var(--p-ink);
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.35s var(--p-ease), transform 0.35s var(--p-ease);
  pointer-events: none;
}
.p-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.p-top {
  position: fixed;
  right: 18px;
  bottom: calc(var(--p-dock) + 14px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--p-line-2);
  background: rgba(12, 17, 27, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--p-ink-2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--p-ease), transform 0.3s var(--p-ease), color 0.3s;
}
.p-top svg {
  width: 16px;
  height: 16px;
}
.p-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.p-top:hover {
  color: var(--p-accent);
}

/* ---------- login modal (original OneManager dialog) ---------- */
body.pan-ui .mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 5, 10, 0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
body.pan-ui .operatediv {
  position: fixed;
  z-index: 201;
  top: 50% !important;
  left: 50% !important;
  width: min(360px, calc(100vw - 32px));
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--p-line-2);
  background: rgba(12, 17, 27, 0.96);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.98);
  transform: translate(-50%, -50%);
  color: var(--p-ink);
}
body.pan-ui .operatediv > div {
  margin: 0 !important;
  padding: 22px !important;
}
body.pan-ui .operatediv_close {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--p-ink-3);
  text-decoration: none;
  cursor: pointer;
}
body.pan-ui .operatediv_close:hover {
  color: var(--p-ink);
}
body.pan-ui #login_div form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.pan-ui .p-login-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p-ink);
  text-align: center;
}
body.pan-ui #login_div input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--p-line-2);
  background: rgba(0, 0, 0, 0.32);
  color: var(--p-ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}
body.pan-ui #login_div input[type="password"]:focus {
  border-color: rgba(125, 211, 252, 0.45);
}
body.pan-ui #login_div input[type="submit"] {
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.36);
  background: rgba(125, 211, 252, 0.16);
  color: #eaf6ff;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.25s var(--p-ease);
}
body.pan-ui #login_div input[type="submit"]:hover {
  background: rgba(125, 211, 252, 0.26);
}

/* ---------- APlayer skin (same language as 234578.top) ---------- */
.aplayer {
  font-family: var(--p-font) !important;
}
.aplayer.aplayer-fixed {
  left: clamp(12px, 1.8vw, 26px);
  right: auto;
  bottom: clamp(12px, 1.8vw, 20px);
  max-width: min(420px, calc(100vw - 24px));
  background: transparent !important;
  box-shadow: none !important;
  z-index: 90;
}
.aplayer.aplayer-fixed .aplayer-body {
  left: clamp(12px, 1.8vw, 26px);
  right: auto;
  bottom: clamp(12px, 1.8vw, 20px);
  box-sizing: border-box !important;
  width: min(420px, calc(100vw - 24px)) !important;
  max-width: min(420px, calc(100vw - 24px));
  height: 66px;
  padding-right: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 23, 36, 0.86), rgba(7, 10, 17, 0.95));
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.aplayer.aplayer-fixed .aplayer-pic {
  height: 66px;
  width: 66px;
  background-size: cover;
  background-position: center;
  background-color: #0b1220 !important;
}
.aplayer.aplayer-fixed .aplayer-info {
  display: block !important;
  margin-left: 66px;
  height: 66px;
  padding: 10px 0 0 13px;
  border-top: none;
  background: transparent;
}
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-info {
  display: none !important;
}
.aplayer.aplayer-fixed.aplayer-narrow .aplayer-body {
  width: 66px !important;
}
.aplayer .aplayer-title {
  color: var(--p-ink);
  font-size: 12.5px;
  font-weight: 600;
}
.aplayer .aplayer-author {
  color: var(--p-ink-3);
  font-size: 11px;
}
.aplayer .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
}
.aplayer .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}
.aplayer .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #67e8f9, #818cf8) !important;
  box-shadow: 0 0 14px rgba(103, 232, 249, 0.55);
}
.aplayer .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
  height: 9px;
  width: 9px;
  margin-top: -3px;
  background: #fff !important;
  box-shadow: 0 0 12px rgba(103, 232, 249, 0.9);
}
.aplayer .aplayer-time {
  color: var(--p-ink-3);
  font-family: var(--p-mono);
  font-size: 9.5px;
}
.aplayer .aplayer-icon {
  color: var(--p-ink-2);
}
.aplayer .aplayer-icon svg path {
  fill: currentColor;
}
.aplayer .aplayer-icon:hover {
  color: var(--p-ink);
}
.aplayer .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar {
  background: rgba(255, 255, 255, 0.13);
}
.aplayer .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume {
  background: linear-gradient(90deg, #67e8f9, #818cf8);
}
.aplayer.aplayer-fixed .aplayer-list {
  left: clamp(12px, 1.8vw, 26px);
  right: auto;
  bottom: clamp(12px, 1.8vw, 20px);
  width: min(420px, calc(100vw - 24px));
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(48vh, 380px);
  margin: 0 0 78px;
  padding: 6px 0;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(12, 17, 27, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.98);
}
.aplayer.aplayer-fixed .aplayer-list.aplayer-list-hide {
  display: none !important;
}
.aplayer .aplayer-list ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.aplayer .aplayer-list ol li {
  height: 36px;
  line-height: 36px;
  padding: 0 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: background 0.25s var(--p-ease);
}
.aplayer .aplayer-list ol li:hover {
  background: rgba(255, 255, 255, 0.06);
}
.aplayer .aplayer-list ol li.aplayer-list-light {
  background: rgba(125, 211, 252, 0.1);
}
.aplayer .aplayer-list ol li .aplayer-list-index {
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--p-mono);
  font-size: 9.5px;
}
.aplayer .aplayer-list ol li .aplayer-list-author {
  color: rgba(255, 255, 255, 0.36);
  font-size: 10.5px;
}
.aplayer .aplayer-list ol li .aplayer-list-cur {
  background: #67e8f9 !important;
  box-shadow: 0 0 10px rgba(103, 232, 249, 0.9);
}
.aplayer .aplayer-miniswitcher {
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  border-radius: 10px 0 14px 0;
}
.aplayer.aplayer-fixed .aplayer-lrc {
  display: block;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: auto;
  max-width: min(560px, 44vw);
  height: 34px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 14, 22, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-shadow: none;
  overflow: hidden;
  z-index: 80;
  pointer-events: none;
  margin: 0;
}
.aplayer.aplayer-fixed .aplayer-lrc:before,
.aplayer.aplayer-fixed .aplayer-lrc:after {
  display: none;
}
.aplayer.aplayer-fixed .aplayer-lrc .aplayer-lrc-contents {
  transform: none !important;
}
.aplayer.aplayer-fixed .aplayer-lrc p {
  display: none;
  height: 32px;
  line-height: 32px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.66);
}
.aplayer.aplayer-fixed .aplayer-lrc p.aplayer-lrc-current {
  display: block;
}
.aplayer .aplayer-notice {
  top: auto;
  left: clamp(12px, 1.8vw, 26px);
  right: auto;
  bottom: calc(clamp(12px, 1.8vw, 20px) + 76px);
  transform: none;
  width: auto;
  max-width: min(420px, calc(100vw - 24px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(12, 17, 27, 0.94);
  color: rgba(242, 246, 253, 0.82);
  font-family: var(--p-font);
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  z-index: 95;
  pointer-events: none;
}

/* ---------- reveal ---------- */
@keyframes p-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.pan-ui.pan-ready .p-header {
  animation: p-rise 0.8s var(--p-ease) 0.02s both;
}
body.pan-ui.pan-ready .p-hero {
  animation: p-rise 0.9s var(--p-ease) 0.08s both;
}
body.pan-ui.pan-ready .p-main {
  animation: p-rise 0.95s var(--p-ease) 0.16s both;
}
body.pan-ui.pan-ready .p-footer {
  animation: p-rise 0.9s var(--p-ease) 0.26s both;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .body.pan-ui .list-table tr[data-to] {
    grid-template-columns: minmax(0, 1fr) 118px 82px;
    gap: 10px;
  }
  .p-header__hint {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --p-dock: calc(90px + env(safe-area-inset-bottom, 0px));
  }
  .p-page {
    padding: 10px 12px calc(var(--p-dock) + 16px);
    gap: 14px;
  }
  .p-header {
    top: 8px;
    padding: 8px 10px;
    border-radius: 14px;
  }
  .p-brand__line,
  .p-brand__site {
    display: none;
  }
  .p-login {
    padding: 7px 12px !important;
    font-size: 11px !important;
  }
  .p-hero {
    padding: 10px 2px 0;
  }
  .p-title {
    font-size: clamp(2.25rem, 12vw, 3.05rem);
  }
  .p-sub {
    font-size: 11.5px;
  }
  .p-hero__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .p-stats {
    width: 100%;
  }
  .p-stats li {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 10px;
  }
  .p-panel {
    border-radius: 18px;
  }
  #tr0.p-toolbar {
    padding: 10px 12px;
    gap: 8px;
  }
  #tr0.p-toolbar th.file {
    flex: 1 1 100%;
  }
  .p-search {
    flex: 1 1 100%;
  }
  .p-sort {
    order: 3;
  }
  .p-check,
  .p-chip {
    order: 4;
    padding: 5px 8px;
    font-size: 9.5px;
  }
  #tr0.p-toolbar {
    gap: 7px;
  }
  .p-sortlink {
    padding: 4px 8px;
    font-size: 10px;
  }
  body.pan-ui .list-table tr[data-to] {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "file file"
      "time size";
    gap: 3px 10px;
    padding: 10px 12px;
  }
  body.pan-ui td.file {
    grid-area: file;
  }
  body.pan-ui td.updated_at,
  body.pan-ui td.size {
    display: block !important;
  }
  body.pan-ui td.updated_at {
    grid-area: time;
    text-align: left;
    font-size: 9.5px;
    opacity: 0.8;
  }
  body.pan-ui td.size {
    grid-area: size;
    font-size: 9.5px;
  }
  body.pan-ui .list-table tr[data-to] td.file a.download {
    opacity: 0.8;
  }
  .p-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .p-panel-bg {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: min(72dvh, 600px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 16px;
  }
  .aplayer.aplayer-fixed,
  .aplayer.aplayer-fixed .aplayer-body {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .aplayer.aplayer-fixed .aplayer-list {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin-bottom: 76px;
  }
  .aplayer.aplayer-fixed .aplayer-lrc {
    display: none;
  }
  .p-toast {
    bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  }
  .p-top {
    right: 14px;
    bottom: calc(var(--p-dock) + 10px);
  }
  body.pan-ui .operatediv {
    top: 40% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .p-pointer {
    display: none;
  }
}
