:root {
  --bg: #09090c;
  --bg-elevated: #121217;
  --bg-card: #16161c;
  --bg-glass: rgba(11, 11, 15, 0.76);
  --text: #f3efe6;
  --text-muted: #9d988d;
  --text-subtle: #68645c;
  --accent: #d7b785;
  --accent-strong: #e6ca9c;
  --accent-soft: rgba(215, 183, 133, 0.14);
  --border: rgba(243, 239, 230, 0.09);
  --border-strong: rgba(243, 239, 230, 0.2);
  --danger: #e47670;
  --danger-soft: rgba(228, 118, 112, 0.14);
  --success: #6ec292;
  --success-soft: rgba(110, 194, 146, 0.14);
  --font-serif:
    "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia,
    serif;
  --font-sans:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(
      1200px 560px at 50% -140px,
      rgba(215, 183, 133, 0.07),
      transparent 70%
    ),
    var(--bg);
  line-height: 1.5;
}
body.is-modal-open {
  overflow: hidden;
}
button,
input {
  font: inherit;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #14120e;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 16px;
}
.gallery-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.header-inner,
.admin-header-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3.2vw, 44px);
  display: flex;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.admin-header-inner {
  max-width: 940px;
  justify-content: space-between;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    145deg,
    rgba(215, 183, 133, 0.18),
    rgba(215, 183, 133, 0.04)
  );
  border: 1px solid rgba(215, 183, 133, 0.28);
  color: var(--accent);
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid rgba(215, 183, 133, 0.3);
  letter-spacing: 0.04em;
}
.demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.filter-nav {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.filter-list {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-list::-webkit-scrollbar {
  display: none;
}
.filter-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(215, 183, 133, 0.24),
    rgba(215, 183, 133, 0.11)
  );
  border: 1px solid rgba(215, 183, 133, 0.36);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.42s var(--ease-out),
    width 0.42s var(--ease-out),
    opacity 0.2s ease;
}
.filter-indicator.is-ready {
  opacity: 1;
}
.filter-tab {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease;
}
.filter-tab:hover {
  color: var(--text);
}
.filter-tab[aria-selected="true"] {
  color: var(--accent-strong);
  font-weight: 500;
}
.header-meta {
  margin-left: auto;
  flex-shrink: 0;
}
.photo-count {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.gallery-main {
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px) clamp(16px, 3.2vw, 44px)
    clamp(64px, 8vw, 96px);
}
.gallery-status {
  min-height: 0;
  text-align: center;
  color: var(--text-muted);
}
.status-box {
  margin: clamp(48px, 10vh, 110px) auto;
  max-width: 420px;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.status-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
}
.status-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.gallery-grid {
  position: relative;
  width: 100%;
  transition:
    opacity 0.16s ease,
    transform 0.18s ease;
}
.gallery-grid.is-leaving {
  opacity: 0;
  transform: translateY(6px);
}
.photo-card {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
  touch-action: manipulation;
  border-radius: var(--radius-md);
}
.photo-card-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.65s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.photo-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 25%,
    rgba(255, 255, 255, 0.045) 45%,
    transparent 65%
  );
  background-size: 200% 100%;
  animation: shimmer 1.7s linear infinite;
  pointer-events: none;
}
.photo-card.is-loaded .photo-card-inner::before {
  display: none;
}
@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
.photo-card.is-entered .photo-card-inner {
  opacity: 1;
  transform: none;
}
.photo-card:hover .photo-card-inner,
.photo-card:focus-visible .photo-card-inner {
  border-color: rgba(215, 183, 133, 0.36);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.62);
  transition-delay: 0ms;
}
.photo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.5s ease,
    transform 0.85s var(--ease-out);
}
.photo-card.is-loaded .photo-thumb {
  opacity: 1;
  transform: scale(1);
}
.photo-card:hover .photo-thumb,
.photo-card:focus-visible .photo-thumb {
  transform: scale(1.04);
}
.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(
    to top,
    rgba(8, 8, 11, 0.84) 0%,
    rgba(8, 8, 11, 0.25) 42%,
    transparent 72%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.photo-card:hover .photo-overlay,
.photo-card:focus-visible .photo-overlay {
  opacity: 1;
}
.photo-overlay-meta {
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}
.photo-card:hover .photo-overlay-meta,
.photo-card:focus-visible .photo-overlay-meta {
  transform: translateY(0);
}
.photo-overlay-cat {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-strong);
}
.photo-overlay-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.back-to-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 35;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s var(--ease-out),
    border-color 0.25s ease,
    opacity 0.25s ease;
}
.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 36px) clamp(14px, 5vw, 76px)
    clamp(80px, 11vh, 104px);
  animation: fadeIn 0.25s var(--ease-out);
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.lightbox-stage {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
}
.lightbox-img {
  max-width: min(90vw, 1360px);
  max-height: calc(100dvh - 148px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.38s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img.is-zoomed {
  transform: scale(1.85);
  cursor: zoom-out;
}
.lightbox-btn {
  position: relative;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(18, 18, 24, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s var(--ease-out),
    color 0.2s ease;
}
.lightbox-btn:hover:not(:disabled) {
  background: rgba(215, 183, 133, 0.16);
  border-color: var(--accent);
  color: var(--accent-strong);
}
.lightbox-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
}
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: max(16px, env(safe-area-inset-left));
}
.lightbox-next {
  right: max(16px, env(safe-area-inset-right));
}
.lightbox-hud {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5;
  width: min(740px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.82);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox-info {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.lightbox-cat {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
}
.lightbox-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.lightbox-zoom {
  width: 36px;
  height: 36px;
}
.lightbox-zoom[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.admin-back-link {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.admin-back-link:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.admin-main {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 3.2vw, 32px) 64px;
  display: grid;
  gap: 24px;
}
.admin-panel {
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.panel-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.panel-hint {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.admin-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.cat-chip {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cat-chip:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(243, 239, 230, 0.36);
}
.cat-chip[aria-checked="true"] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-strong);
  font-weight: 500;
}
.cat-chip:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cat-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.text-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.2s ease;
}
.text-input::placeholder {
  color: var(--text-subtle);
}
.text-input:focus {
  border-color: var(--accent);
  outline: none;
}
.btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.18s var(--ease-out),
    opacity 0.2s ease;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: #15120c;
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-strong);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(228, 118, 112, 0.4);
  color: var(--danger);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-strong);
}
.feedback-msg {
  margin: 10px 0 0;
  min-height: 1.3em;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.feedback-msg.is-success {
  color: var(--success);
}
.feedback-msg.is-error {
  color: var(--danger);
}
.dropzone {
  padding: clamp(26px, 5vw, 44px) 20px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease;
}
.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon {
  color: var(--accent);
  margin-bottom: 8px;
  display: inline-flex;
}
.dropzone-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 500;
}
.dropzone-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.upload-toolbar {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.upload-stats {
  flex: 1 1 240px;
  display: grid;
  gap: 8px;
}
.queue-summary {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 6px;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.28s var(--ease-out);
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.upload-queue {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.queue-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease;
}
.queue-item.is-uploading {
  border-color: var(--accent);
}
.queue-item.is-success {
  border-color: rgba(110, 194, 146, 0.35);
}
.queue-item.is-error,
.queue-item.is-invalid {
  border-color: rgba(228, 118, 112, 0.38);
}
.queue-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-card);
}
.queue-thumb-fallback {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: var(--text-subtle);
}
.queue-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.queue-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.queue-name {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-size {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.queue-title-input {
  width: 100%;
  max-width: 340px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 0.82rem;
}
.queue-title-input:focus {
  border-color: var(--accent);
  outline: none;
}
.queue-title-input:disabled {
  opacity: 0.55;
}
.queue-side {
  display: flex;
  align-items: center;
  gap: 10px;
}
.queue-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}
.queue-badge.is-uploading {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.queue-badge.is-success {
  background: var(--success-soft);
  color: var(--success);
}
.queue-badge.is-error,
.queue-badge.is-invalid {
  background: var(--danger-soft);
  color: var(--danger);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.queue-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.queue-remove:hover:not(:disabled) {
  color: var(--danger);
  border-color: var(--danger);
}
.queue-remove:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .header-inner {
    gap: 10px 14px;
  }
  .filter-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .header-meta {
    margin-left: auto;
  }
  .lightbox-nav {
    top: auto;
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 64px));
    transform: none;
  }
  .lightbox-hud {
    border-radius: var(--radius-md);
    padding: 10px 12px;
  }
  .queue-item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }
  .queue-thumb,
  .queue-thumb-fallback {
    width: 52px;
    height: 52px;
  }
  .queue-side {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}
@media (hover: none) {
  .photo-overlay {
    opacity: 0.92;
    padding: 12px 14px;
    background: linear-gradient(
      to top,
      rgba(8, 8, 11, 0.72) 0%,
      transparent 48%
    );
  }
  .photo-overlay-meta {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .photo-card-inner,
  .photo-thumb,
  .photo-overlay-meta {
    transform: none !important;
  }
  .photo-card:hover .photo-thumb,
  .photo-card:focus-visible .photo-thumb {
    transform: none !important;
  }
}
