@charset "UTF-8";

/* Load after styles.css. All decoration is local; no fonts or images are fetched. */
:root {
  --sky-height: 78px;
  --dock-clearance: 24px;
  --bg: #faeee2;
  --paper: #fffaf3;
  --ink: #493a35;
  --muted: #7c6258;
  --line: #e6cec0;
  --green: #81523e;
  --green-soft: #f3e0d2;
  --warm-shadow: 0 7px 24px #8257440b;
}

html { scroll-padding-top: calc(var(--sky-height) + 16px); }
body {
  padding-top: var(--sky-height);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 95% 12%, #f3d9d7a6, transparent 48%),
    radial-gradient(ellipse at 8% 55%, #f7dfbea6, transparent 54%),
    linear-gradient(135deg, #fff5e7, #faeae0 56%, #f9e8e5);
}
/* A soft field of tiny star-flowers behind the content, tiled from a local SVG. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23c79a86' stroke-width='1' stroke-linecap='round' opacity='.5'%3E%3Cpath d='M26 18v14M19 25h14M21 20l10 10M31 20L21 30'/%3E%3Cpath d='M118 44v10M113 49h10M115 46l6 6M121 46l-6 6'/%3E%3Cpath d='M74 96v12M68 102h12M70 98l8 8M78 98l-8 8'/%3E%3Cpath d='M139 118v9M134.5 122.5h9M136 119.5l5.5 5.5M141.5 119.5l-5.5 5.5'/%3E%3Cpath d='M46 134v9M41.5 138.5h9M43 135.5l5.5 5.5M48.5 135.5L43 141'/%3E%3Cpath d='M96 14v8M92 18h8M93.5 15.5 100 22M100 15.5 93.5 22'/%3E%3C/g%3E%3Cg fill='%23d8b39c' opacity='.55'%3E%3Ccircle cx='26' cy='39' r='1.3'/%3E%3Ccircle cx='118' cy='61' r='1.1'/%3E%3Ccircle cx='74' cy='115' r='1.3'/%3E%3Ccircle cx='139' cy='133' r='1'/%3E%3Ccircle cx='46' cy='150' r='1'/%3E%3Ccircle cx='96' cy='30' r='1'/%3E%3Ccircle cx='150' cy='80' r='1.2'/%3E%3Ccircle cx='8' cy='96' r='1.2'/%3E%3Ccircle cx='62' cy='70' r='1'/%3E%3Ccircle cx='104' cy='140' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 160px 160px;
}
/* The flower field is a fixed layer behind everything; do not change the sidebar's own positioning. */
.app-shell { position: relative; z-index: 1; }
.app-shell {
  min-height: calc(100vh - var(--sky-height));
  min-height: calc(100svh - var(--sky-height));
}
.workspace {
  /* Only a little breathing room: the player now lives inside the header. */
  padding-bottom: calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px));
  min-width: 0;
}
.sidebar {
  top: var(--sky-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(165deg, #fff7eb, #f9e9dd 72%, #f6e3dc);
  border-right-color: var(--line);
}
.topbar {
  background: #fff8eee8;
  border-bottom-color: var(--line);
  overflow-x: clip;
}
/* Everything in the header may shrink; the player pill keeps its intrinsic width. */
.topbar > * { min-width: 0; }
.topbar .breadcrumb { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
.topbar .search-box { flex-shrink: 1; min-width: 0; }
.topbar .search-box input { min-width: 60px; width: 100%; }
@media (max-width: 900px) {
  .topbar .search-box kbd, .topbar .avatar { display: none; }
}
@media (max-width: 820px) {
  .topbar .search-box { display: none; }
}
.skip-link:focus { top: calc(var(--sky-height) + 12px); }

/* Cream paper, peach light, and rose-tinted details keep the album light. */
.hero {
  background:
    radial-gradient(ellipse at 88% 23%, #f7cfcbb3, transparent 53%),
    linear-gradient(115deg, #f8e6ce, #f6dfd3 65%, #f0d3cb);
  border-color: #e6c7b5;
  box-shadow: var(--warm-shadow);
}
.orbit { border-color: #d7b3a77a; }
.art-stamp, .art-spark { color: #946d5f; }
.eyebrow, .hero-copy > p, .hero-footnote { color: #705044; }
.eyebrow > span { background: #ad795d; }
.polaroid { background: #fffaf0; box-shadow: 0 10px 28px #7043381c; }
.polaroid::after { color: #80675a; }
.album-card, .busy-card {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: var(--warm-shadow);
}
.album-card:hover { box-shadow: 0 10px 24px #82574416; }
.album-card.selected { box-shadow: 0 0 0 2px #a47057; }
.album-cover, .photo-card { background: #f0dfd2; }
.album-placeholder { color: #946c58; background: linear-gradient(135deg, #f5e6d1, #ebd4c6); }
.album-badge { background: #fff6e8ed; color: #775842; }
.pill, .filter-tab span {
  background: #f4e0ce;
  border-color: #e7cbb7;
  color: #77533f;
}
.demo-banner { background: #f7e7d7; border-color: #e9d0bd; }
.banner-symbol { color: #a47657; }
.empty-state { background: #fff4e7b3; border-color: #d7b7a2; }
.empty-state > .icon { color: #a7795e; }

.nav-item, .nav-count, .sidebar-label,
.local-note, .local-note strong, .local-note p, .sidebar-signature,
.breadcrumb, .breadcrumb strong, .search-box, .search-box input::placeholder,
.view-heading p, .demo-banner strong, .demo-banner div > span,
.section-title h3, .text-button, .album-info p, .album-info > .icon,
.filter-tab, .muted, .sort-label, .sort-label select,
.empty-state p, .page-footer, .modal-description,
.field > span, .settings-section p, .lightbox-info, .lightbox-counter,
.source-link, .busy-card p {
  color: var(--muted);
}
.breadcrumb span { color: #ae8e7e; }
.nav-item:hover { background: #f4e4d5; }
.nav-item.active { background: #efd8c7; color: #714733; }
.nav-item.active .nav-count { color: #714733; }
.demo-dot, .sidebar-signature span { color: #956847; }
.demo-dot { background: #b28361; }
.icon-button, .secondary { background: #fffaf2; color: #795a49; border-color: #dfc6b5; }
.icon-button:hover, .secondary:hover { background: #f3e0d2; }
.help-button { background: transparent; }
.primary:hover { background: #684232; }
.text-button:hover { color: #70412f; }
.avatar { background: #f0d9c7; color: #795c45; border-color: #fff8ec; box-shadow: 0 0 0 1px #dfc3ae; }
.favorite-button { color: #815944; }
.favorite-button.is-favorite { color: #a45f56; }
.modal, .lightbox { background: var(--paper); border-color: var(--line); }
.modal::backdrop, .lightbox::backdrop { background: #342331cf; }
.field input, .field textarea, .field select { background: #fffcf7; border-color: #d8bdad; }
.lightbox-stage { background: #f0e2d7; }
.settings-warning { background: #f5e4c9; color: #775d3c; }
.storage-meter { background: #eed9c7; }
.storage-meter span { background: #aa7958; }
.toast { bottom: calc(var(--dock-clearance) + env(safe-area-inset-bottom, 0px)); background: #704b3bed; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible { outline-color: #a57357; }

/* A separate fixed ribbon, never an overlay on navigation or album content. */
.sky-ribbon {
  position: fixed;
  inset: 0 0 auto;
  height: var(--sky-height);
  z-index: 35;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 51% -30%, #866576a6, transparent 62%),
    radial-gradient(ellipse at 93% 100%, #8d655c5e, transparent 48%),
    linear-gradient(110deg, #2c2536, #3d2e40 53%, #46323a);
  border-bottom: 1px solid #d7b38a;
  box-shadow: 0 4px 18px #5f3b4214;
  contain: layout paint;
}
.sky-ribbon::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f5d6acb3, transparent);
}
.sky-ribbon *, .sky-ribbon *::before, .sky-ribbon *::after { pointer-events: none; }
.sky-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #f5e2c4;
  opacity: .65;
}
.sky-constellation {
  position: absolute;
  top: -22%;
  left: 63%;
  width: 560px;
  max-width: 38vw;
  height: 144%;
  transform: translateX(-50%);
  overflow: visible;
  opacity: .82;
}
.sky-constellation-lines {
  fill: none;
  stroke: #f2d2a0;
  stroke-width: .85;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .48;
}
.sky-constellation-halo { fill: #edc18c; opacity: .13; }
.sky-constellation-stars { fill: #ffe8bc; }
.sky-meteor {
  position: absolute;
  display: block;
  width: 380px;
  height: 3px;
  opacity: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fffdf5, #fff0cd 28%, #ffd79b 62%, #eec78e00);
  transform: rotate(-26deg);
  transform-origin: right center;
  filter: drop-shadow(0 0 6px #ffe2b4aa) drop-shadow(0 0 14px #f6c88666);
  animation: sky-meteor-drift 7s linear infinite;
}
.sky-meteor::before {
  content: "";
  position: absolute;
  top: -2.5px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fffdf2;
  box-shadow: 0 0 14px 5px #fff0c8b0, 0 0 34px 12px #f3c47e55;
}
/* 九颗流星：错开起点与周期，让头顶始终有东西划过 */
.sky-meteor-one   { right: 8%;  top: 4px;  width: 400px; animation-duration: 6.2s; animation-delay: -0.4s; }
.sky-meteor-two   { right: 26%; top: 1px;  width: 330px; animation-duration: 7.4s; animation-delay: -2.6s; }
.sky-meteor-three { right: 42%; top: 8px;  width: 360px; animation-duration: 6.8s; animation-delay: -4.1s; }
.sky-meteor-four  { right: 58%; top: 3px;  width: 300px; animation-duration: 8.1s; animation-delay: -1.3s; }
.sky-meteor-five  { right: 72%; top: 10px; width: 340px; animation-duration: 7.1s; animation-delay: -5.4s; }
.sky-meteor-six   { right: 88%; top: 2px;  width: 280px; animation-duration: 8.6s; animation-delay: -3.2s; }
.sky-meteor-seven { right: 16%; top: 22px; width: 260px; animation-duration: 9.3s; animation-delay: -6.8s; }
.sky-meteor-eight { right: 50%; top: 26px; width: 240px; animation-duration: 10.2s; animation-delay: -7.9s; }
.sky-meteor-nine  { right: 80%; top: 18px; width: 220px; animation-duration: 9.8s; animation-delay: -2.1s; }
@keyframes sky-meteor-drift {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-26deg); }
  4% { opacity: 1; }
  22% { opacity: .85; }
  34%, 100% { opacity: 0; transform: translate3d(-460px, 224px, 0) rotate(-26deg); }
}


/* 天空条里的斗鱼：星座左侧一条、右侧一条，缓慢游动 */
.sky-betta{position:absolute;width:96px;height:66px;color:#e8c9a4;opacity:0;pointer-events:none}
.sky-betta svg{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 0 6px #f3c47e33)}
.sky-betta .sky-fin{transform-origin:58% 50%;animation:sky-fin-wave 4.6s ease-in-out infinite}
.sky-betta .sky-fin2{animation-delay:-1.5s}
.sky-betta .sky-fin3{animation-delay:-2.9s}
@keyframes sky-fin-wave{0%,100%{transform:scale(1,1)}50%{transform:scale(.9,1.09)}}
.sky-betta-left{left:5%;top:22px;animation:sky-swim-right 44s linear infinite}
.sky-betta-right{right:3%;top:34px;width:82px;height:56px;animation:sky-swim-left 56s linear infinite -18s}
@keyframes sky-swim-right{
  0%{opacity:0;transform:translate3d(0,0,0) rotate(3deg)}
  10%{opacity:.55}
  45%{transform:translate3d(16vw,10px,0) rotate(-4deg)}
  70%{transform:translate3d(9vw,-6px,0) rotate(2deg)}
  90%{opacity:.55}
  100%{opacity:0;transform:translate3d(-4vw,4px,0) rotate(-2deg)}
}
@keyframes sky-swim-left{
  0%{opacity:0;transform:translate3d(0,0,0) rotate(-3deg) scaleX(-1)}
  12%{opacity:.5}
  50%{transform:translate3d(-14vw,8px,0) rotate(4deg) scaleX(-1)}
  78%{transform:translate3d(-7vw,-6px,0) rotate(-2deg) scaleX(-1)}
  92%{opacity:.5}
  100%{opacity:0;transform:translate3d(3vw,2px,0) rotate(2deg) scaleX(-1)}
}

@media (max-width: 760px) {
  :root { --sky-height: 76px; }
  .sidebar { top: var(--sky-height); z-index: 40; }
  .mobile-scrim:not([hidden]) { top: var(--sky-height); z-index: 39; }
  .sky-constellation { width: 268px; }
  .sky-meteor { width: 150px; }
  .sky-meteor-one { right: 10%; }
  .sky-meteor-two { right: 38%; }
  .sky-meteor-three { right: 60%; width: 120px; }
  .sky-meteor-four { display: none; }
}

@media (prefers-reduced-motion: reduce) {  html { scroll-behavior: auto; }
  .sky-ribbon *, .sky-ribbon *::before, .sky-ribbon *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Still gold trails, not hidden content and not a paused animation frame. */
  .sky-meteor { opacity: .5; transform: rotate(-28deg); }
  .sky-meteor-one { top: 18%; }
  .sky-meteor-two { top: 42%; }
  .sky-meteor-three { top: 62%; }
  .sky-meteor-four { top: 28%; }
}
