/* ASHORE 靠岸之后，游戏公共影像档案。
   深色社区影像墙：全屏影像 Hero、统一筛选、圆角影像卡、瀑布流。
   媒体 20px 圆角，控件 pill，输入框 12px。 */

:root {
  --bg: #0b0b0d;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --surface-3: #202024;
  --text: #f5f2ea;
  --muted: #a09a90;
  --faint: #7e786e;
  --amber: #f2b544;
  --amber-hover: #ffc65c;
  --ink: #181104;
  --line: rgba(245, 242, 234, 0.08);
  --line-strong: rgba(245, 242, 234, 0.16);
  --red: #e06b57;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;
  --topbar: 72px;
  --pad: 48px;
  --max: 1400px;
  --sans: "Avenir Next", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "Menlo", "Roboto Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scrollbar-color: #2d2d32 var(--bg);
}

body {
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(242, 181, 68, 0.08), transparent 62%),
    radial-gradient(900px 600px at 8% 8%, rgba(92, 120, 160, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2d2d32;
  border: 3px solid var(--bg);
  border-radius: 999px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 14px;
  border-radius: var(--pill);
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  transform: translateY(-180%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-image: url("assets/media/noise.png");
  background-size: 160px 160px;
  opacity: 0.36;
  mix-blend-mode: soft-light;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  max-width: var(--max);
  height: var(--topbar);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--amber);
  line-height: 1;
}

.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-latin {
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.22em;
}

.brand-cn {
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topnav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 26px 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s;
}

.topnav-link:hover,
.topnav-link.is-active {
  color: var(--text);
}

.topnav-link.is-active::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--pill);
  transition: background 0.2s;
}

.user-chip:hover {
  background: var(--surface);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--amber);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.user-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-name {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1;
}

.user-status i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  border-color: var(--amber-hover);
  background: var(--amber-hover);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

.publish-top {
  height: 40px;
  padding: 0 17px;
}

.btn-plus {
  margin-top: -1px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

.publish-label-short {
  display: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px var(--pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(242, 181, 68, 0.5);
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.1vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-sub {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  height: 54px;
  margin-top: 28px;
  padding: 0 6px 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.08);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
}

.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  color: var(--text);
}

.search-submit {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.search-submit:hover {
  background: var(--amber-hover);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 31px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  margin-top: 24px;
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 0 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.hero-stats span:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats b {
  color: var(--text);
  font-size: 11px;
  font-weight: 500;
}

.hero-auth {
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 8%;
  right: 4%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: rgba(242, 181, 68, 0.1);
  filter: blur(90px);
  pointer-events: none;
}

.hero-visual-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.14em;
}

.hero-visual-count {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.hero-mosaic {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 420px;
}

.mosaic-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.mosaic-card-tall {
  grid-row: 1 / span 2;
}

.mosaic-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.001);
  transition: transform 0.8s var(--ease), filter 0.4s;
}

.mosaic-card:hover img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.03);
}

.mosaic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 7, 0.48), transparent 38%);
  opacity: 0;
  transition: opacity 0.3s;
}

.mosaic-card:hover::after {
  opacity: 1;
}

.mosaic-cta {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.66);
  color: var(--text);
  font-size: 9px;
  opacity: 0;
  transform: translateY(5px);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.mosaic-card:hover .mosaic-cta {
  opacity: 1;
  transform: none;
}

/* Gallery */

.gallery-section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 80px;
  scroll-margin-top: calc(var(--topbar) + 16px);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0 14px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
}

.gallery-title {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.gallery-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 9.5px;
}

.gallery-count b {
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}

.filter-shell {
  position: sticky;
  top: calc(var(--topbar) + 8px);
  z-index: 55;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 20, 22, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.filter-search-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 1px 1px 9px;
  border-bottom: 1px solid var(--line);
}

.filter-search-row .search {
  max-width: none;
  height: 44px;
  margin: 0;
}

.filter-search-row .search-submit {
  height: 34px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
}

.segmented {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: #0c0c0e;
}

.seg {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seg:hover {
  color: var(--text);
}

.seg.is-active {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}

.game-chips {
  display: flex;
  flex: 1;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.game-chips::-webkit-scrollbar {
  display: none;
}

.game-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.game-chip:hover {
  background: var(--surface-2);
  color: var(--text);
}

.game-chip.is-active {
  border-color: rgba(242, 181, 68, 0.28);
  background: rgba(242, 181, 68, 0.1);
  color: var(--amber);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.select-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.select-pill:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.select-prefix {
  color: var(--faint);
  font-size: 9px;
}

.select-pill-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.select-pill select {
  max-width: 104px;
  padding: 0 13px 0 0;
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: var(--text);
  font-size: 10.5px;
  cursor: pointer;
}

.select-pill select option {
  background: var(--surface-2);
  color: var(--text);
}

.select-chevron {
  position: absolute;
  right: 0;
  color: var(--faint);
  font-size: 9px;
  pointer-events: none;
}

.sort-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--muted);
  font-size: 9.5px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.sort-pill:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.sort-pill b {
  color: var(--text);
  font-weight: 500;
}

.sort-chevron {
  margin-top: -2px;
  color: var(--faint);
  font-size: 9px;
}

.grid {
  position: relative;
  min-height: 300px;
  margin-top: 24px;
}

.work {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  opacity: 0;
  text-align: left;
  transition: transform 0.55s var(--ease), opacity 0.4s ease;
  will-change: transform;
}

.work.is-in {
  opacity: 1;
}

.work-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.work-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.001);
  transition: transform 0.8s var(--ease), filter 0.4s;
}

.work:hover .work-media img,
.work:focus-visible .work-media img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.03);
}

.work-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color 0.25s;
}

.work:hover .work-media::after {
  border-color: rgba(242, 181, 68, 0.32);
}

.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 1px solid rgba(245, 242, 234, 0.35);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.5);
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.work-play i {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--text);
  transition: border-color 0.25s;
}

.work:hover .work-play {
  transform: scale(1.06);
  border-color: var(--amber);
  background: var(--amber);
}

.work:hover .work-play i {
  border-left-color: var(--ink);
}

.work-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(245, 242, 234, 0.14);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.62);
  color: var(--text);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.work-body {
  padding: 12px 2px 0;
}

.work-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.work-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.work:hover .work-title {
  color: var(--amber);
}

.work-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(245, 242, 234, 0.04);
  color: var(--muted);
  font-size: 9.5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.work:hover .work-view {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.work-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.work-author .avatar {
  width: 20px;
  height: 20px;
  font-size: 7px;
}

.work-author .sep {
  color: var(--faint);
}

.work-date {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(245, 242, 234, 0.03);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.tag-game {
  border-color: var(--line-strong);
  background: rgba(245, 242, 234, 0.06);
  color: var(--text);
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 380px;
  margin-top: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.empty h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.empty p:not(.kicker) {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.empty-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.work.is-new .work-media::after {
  animation: new-pulse 2.4s var(--ease);
}

@keyframes new-pulse {
  0%,
  100% {
    border-color: transparent;
  }
  12%,
  68% {
    border-color: var(--amber);
  }
}

/* Footer */

.site-foot {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 32px;
  align-items: start;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--pad) 40px;
  border-top: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.foot-brand .brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 9px;
}

.foot-brand b {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.foot-brand small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
}

.foot-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--faint);
  font-size: 9px;
}

.foot-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 9.5px;
}

.foot-links button {
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.foot-links a:hover,
.foot-links button:hover {
  color: var(--text);
}

.foot-copy {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lb-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  width: min(1180px, 100%);
  height: min(82vh, 780px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.98);
  transition: transform 0.35s var(--ease);
}

.lightbox.is-open .lb-card {
  transform: none;
}

.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 28px 64px;
  background: #08090a;
}

.lb-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.lb-media > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(82vh - 80px);
  border-radius: var(--r-sm);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.motion-frame {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.motion-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(82vh - 80px);
  object-fit: cover;
  transform: scale(1.001);
}

.motion-frame.is-playing img {
  animation: kenburns var(--duration, 42s) linear forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.001);
  }
  to {
    transform: scale(1.08);
  }
}

.lb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border: 1px solid rgba(245, 242, 234, 0.45);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.48);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}

.lb-play i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--text);
}

.lb-play:hover {
  border-color: var(--amber);
  background: var(--amber);
}

.lb-play:hover i {
  border-left-color: var(--ink);
}

.motion-frame.is-playing .lb-play {
  opacity: 0;
  pointer-events: none;
}

.motion-type {
  position: absolute;
  top: 12px;
  left: 12px;
  color: rgba(245, 242, 234, 0.7);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.lb-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.55);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lb-arrow:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.lb-prev {
  left: 14px;
}

.lb-next {
  right: 14px;
}

.lb-index {
  position: absolute;
  bottom: 14px;
  left: 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.lb-progress {
  position: absolute;
  right: 64px;
  bottom: 16px;
  left: 64px;
  height: 2px;
  border-radius: var(--pill);
  background: rgba(245, 242, 234, 0.16);
}

.lb-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.lb-progress.is-playing span {
  animation: progress var(--duration, 42s) linear forwards;
}

.lb-progress.is-paused span {
  animation-play-state: paused;
}

@keyframes progress {
  to {
    width: 100%;
  }
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.64);
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.lb-close:hover {
  color: var(--text);
}

.lb-close span {
  font-size: 14px;
  line-height: 1;
}

.lb-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 34px 30px 24px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

.lb-kicker {
  margin: 0 0 8px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.lb-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.lb-caption {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.lb-author-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.lb-author-row .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 0;
}

.lb-meta {
  margin: 0;
  border-top: 1px solid var(--line);
}

.lb-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.lb-meta dt {
  color: var(--faint);
  font-size: 9px;
}

.lb-meta dd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-size: 10px;
  text-align: right;
}

.lb-meta .cover {
  width: 30px;
  height: 14px;
  border-radius: 3px;
  object-fit: cover;
}

.lb-side-foot {
  margin: auto 0 0;
  padding-top: 20px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.7;
}

/* Drawer */

.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 130;
  visibility: hidden;
}

.drawer-layer.is-open {
  visibility: visible;
}

.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.drawer-layer.is-open .drawer-scrim {
  opacity: 1;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(620px, 100%);
  border-left: 1px solid var(--line-strong);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  background: var(--surface);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.drawer-layer.is-open .drawer {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
}

.drawer-kicker {
  margin: 0 0 6px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.drawer-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.drawer-close:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.drawer-body {
  flex: 1;
  padding: 22px 26px 26px;
  overflow-y: auto;
}

.media-field {
  margin-bottom: 22px;
}

.media-preview {
  position: relative;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.68);
  color: var(--text);
  font-size: 9px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.media-remove:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.media-file {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 12px 10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  color: rgba(245, 242, 234, 0.66);
  font-family: var(--mono);
  font-size: 8px;
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 240px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: #0e0f12;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--amber);
  background: rgba(242, 181, 68, 0.04);
}

.drop-plus {
  color: var(--amber);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.drop-title {
  font-size: 11.5px;
}

.drop-hint {
  color: var(--faint);
  font-size: 8.5px;
}

.field {
  margin-bottom: 19px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.field label span {
  color: var(--faint);
  letter-spacing: 0.02em;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  background: #0e0f12;
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input[type="text"] {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  padding: 11px 12px;
  line-height: 1.7;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.07);
}

.field-count {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
}

.field-error {
  margin: 6px 0 0;
  color: var(--red);
  font-size: 9.5px;
}

.select-wrap {
  position: relative;
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #0e0f12;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s;
}

.select-trigger:hover,
.select-trigger[aria-expanded="true"] {
  border-color: var(--line-strong);
}

.select-current {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 11px;
}

.select-current img {
  width: 32px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

.select-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--amber);
  font-size: 8px;
}

.select-note {
  margin-left: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.select-caret {
  color: var(--faint);
  font-size: 10px;
}

.select-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 10;
  max-height: 230px;
  padding: 4px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.select-popover.is-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.select-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: left;
  cursor: pointer;
}

.select-option:hover,
.select-option[aria-selected="true"] {
  background: rgba(245, 242, 234, 0.05);
  color: var(--text);
}

.select-option img {
  width: 32px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
}

.select-option .select-avatar {
  width: 22px;
  height: 22px;
}

.select-option-note {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
}

.select-check {
  margin-left: auto;
  color: var(--amber);
  font-size: 10px;
}

.drawer-note {
  padding-top: 4px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.8;
}

.drawer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.drawer-foot p {
  margin: 0;
  color: var(--faint);
  font-size: 8.5px;
}

.drawer-foot b {
  color: var(--text);
  font-weight: 500;
}

.drawer-actions {
  display: flex;
  gap: 7px;
}

.drawer .btn {
  height: 38px;
}

/* About */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
}

.modal-layer.is-open {
  visibility: visible;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s;
}

.modal-layer.is-open .modal-scrim {
  opacity: 1;
}

.about-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 90vh;
  padding: 38px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(420px 260px at 92% 8%, rgba(242, 181, 68, .08), transparent 72%),
    var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.about-modal::before {
  content: "“";
  position: absolute;
  top: 32px;
  right: 42px;
  color: rgba(245, 242, 234, .055);
  font-family: Georgia, serif;
  font-size: 118px;
  line-height: 1;
  pointer-events: none;
}

.modal-layer.is-open .about-modal {
  opacity: 1;
  transform: none;
}

.about-close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}

.about-close:hover {
  color: var(--text);
}

.about-modal h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.about-poem {
  margin: 30px 0 26px;
  padding-left: 26px;
  border-left: 1px solid rgba(242, 181, 68, .55);
}

.about-poem p {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: -.02em;
}

.about-lead {
  max-width: 40ch;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.about-marks {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid h3 {
  margin: 0 0 7px;
  color: var(--amber);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.about-credit {
  margin: 16px 0 22px;
  color: var(--faint);
  font-size: 8px;
  line-height: 1.8;
}

.about-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 220;
  max-width: calc(100vw - 40px);
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--amber);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 10.5px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.3s, transform 0.3s;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Auth */

.auth-page {
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(242, 181, 68, 0.06), transparent 60%),
    var(--bg);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1180px;
  height: 80px;
  margin: 0 auto;
  padding: 0 24px;
}

.auth-back {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.auth-back:hover {
  color: var(--text);
}

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 80px);
  padding: 16px 24px 56px;
}

.auth-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  width: min(1020px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.auth-visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
}

.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: grayscale(0.45) sepia(0.12) brightness(0.6) contrast(1.03);
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 9, 10, 0.9) 0%, rgba(8, 9, 10, 0) 52%),
    linear-gradient(90deg, rgba(8, 9, 10, 0.2), transparent 60%);
}

.auth-quote {
  position: absolute;
  right: 30px;
  bottom: 32px;
  left: 30px;
  z-index: 1;
}

.auth-quote p {
  max-width: 14ch;
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.04em;
}

.auth-quote small {
  color: rgba(245, 242, 234, 0.5);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 54px;
  background: var(--surface);
}

.auth-content {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.auth-kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.auth h1 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.auth-lead {
  max-width: 34ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.auth-app {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #0e0f12;
}

.auth-app-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--amber);
}

.auth-app-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-app-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.auth-app-sub {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
}

.auth-app-badge {
  margin-left: auto;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.auth-account {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #0e0f12;
}

.auth-account .avatar {
  width: 34px;
  height: 34px;
}

.auth-account-name {
  display: block;
  font-size: 11px;
  font-weight: 600;
}

.auth-account-sub {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.auth-switch {
  margin-left: auto;
  padding: 0;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.auth-switch:hover {
  color: var(--text);
}

.auth-scopes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0 18px;
}

.auth-scope {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(245, 242, 234, 0.02);
}

.scope-check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
}

.scope-text b {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 500;
}

.scope-text span {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.7;
}

.auth-consent input {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  accent-color: var(--amber);
}

.auth-consent a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border-radius: var(--pill);
  background: var(--text);
  color: var(--bg);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.auth-submit:hover {
  background: #fff;
}

.auth-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.auth-submit-arrow {
  font-size: 16px;
  font-weight: 400;
}

.auth-cancel {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  color: var(--faint);
  font-size: 9px;
  text-align: center;
  cursor: pointer;
}

.auth-cancel:hover {
  color: var(--text);
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 9px;
  line-height: 1.7;
}

.auth-note::before {
  content: "";
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.auth-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

/* Responsive */

@media (max-width: 1180px) {
  :root {
    --pad: 32px;
  }

  .topbar-inner {
    gap: 32px;
  }

  .hero {
    gap: 40px;
  }

  .hero-mosaic {
    height: 390px;
  }

  .filter-bar {
    gap: 10px;
  }

  .select-prefix {
    display: none;
  }

  .auth-panel {
    padding: 44px 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --topbar: 64px;
    --pad: 24px;
  }

  .topnav {
    display: none;
  }

  .user-text {
    display: none;
  }

  .user-chip {
    padding: 2px;
  }

  .publish-label-full {
    display: none;
  }

  .publish-label-short {
    display: inline;
  }

  .publish-top {
    height: 36px;
    padding: 0 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 34px;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(44px, 8.4vw, 60px);
  }

  .hero-sub {
    max-width: 36ch;
    font-size: 13.5px;
  }

  .search {
    max-width: none;
    height: 52px;
    margin-top: 22px;
  }

  .hero-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hero-chips::-webkit-scrollbar {
    display: none;
  }

  .hero-visual {
    min-width: 0;
  }

  .hero-mosaic {
    display: flex;
    gap: 10px;
    height: 190px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .hero-mosaic::-webkit-scrollbar {
    display: none;
  }

  .mosaic-card,
  .mosaic-card-tall {
    flex: 0 0 62%;
    height: 100%;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .gallery-head {
    padding-top: 12px;
  }

  .filter-shell {
    top: calc(var(--topbar) + 6px);
    padding: 8px 9px;
    border-radius: 16px;
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 7px;
    min-height: 0;
  }

  .segmented {
    order: 1;
  }

  .filter-actions {
    order: 2;
    margin-left: auto;
  }

  .game-chips {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    padding-top: 1px;
  }

  .game-chip {
    height: 28px;
  }

  .select-pill,
  .sort-pill {
    height: 32px;
  }

  .select-pill select {
    max-width: 84px;
  }

  .gallery-title {
    font-size: 22px;
  }

  .grid {
    margin-top: 20px;
  }

  .site-foot {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 28px;
  }

  .foot-copy {
    margin-top: 0;
  }

  .lightbox {
    padding: 0;
  }

  .lb-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 52vh) auto;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .lb-stage {
    padding: 16px 12px 24px;
  }

  .lb-media > img,
  .motion-frame img {
    max-height: calc(52vh - 56px);
  }

  .lb-close {
    top: 10px;
    right: 10px;
  }

  .lb-arrow {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .lb-prev {
    left: 6px;
  }

  .lb-next {
    right: 6px;
  }

  .lb-index {
    bottom: 10px;
    left: 12px;
  }

  .lb-progress {
    right: 12px;
    bottom: 12px;
    left: 56px;
  }

  .lb-side {
    max-height: 48vh;
    padding: 20px 20px 24px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .lb-title {
    font-size: 22px;
  }

  .lb-caption {
    margin: 8px 0 14px;
  }

  .lb-author-row {
    padding: 10px 0;
  }

  .lb-tags {
    padding: 10px 0;
  }

  .lb-meta-row {
    padding: 9px 0;
  }

  .drawer {
    width: 100%;
    border-left: 0;
    border-radius: 0;
  }

  .drawer-head {
    min-height: 74px;
    padding: 0 20px;
  }

  .drawer-body {
    padding: 18px 20px 22px;
  }

  .media-preview,
  .dropzone {
    height: 220px;
  }

  .drawer-foot {
    padding: 14px 20px;
  }

  .drawer-foot p {
    display: none;
  }

  .drawer-actions {
    width: 100%;
  }

  .drawer-actions .btn {
    flex: 1;
    height: 42px;
  }

  .about-modal {
    padding: 30px 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .auth-topbar {
    height: 68px;
    padding: 0 18px;
  }

  .auth-wrap {
    min-height: calc(100dvh - 68px);
    padding: 10px 16px 40px;
  }

  .auth-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .auth-visual {
    min-height: 0;
    height: 220px;
  }

  .auth-quote {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .auth-quote p {
    max-width: 14ch;
    font-size: 19px;
  }

  .auth-panel {
    padding: 30px 22px 34px;
  }

  .auth-content {
    max-width: none;
  }

  .auth h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  :root {
    --pad: 18px;
  }

  .hero {
    padding-top: 26px;
    gap: 28px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-sub {
    max-width: 30ch;
    font-size: 12.5px;
  }

  .hero-auth {
    font-size: 8.5px;
  }

  .hero-stats span {
    padding: 0 9px;
    font-size: 8px;
  }

  .hero-stats b {
    font-size: 10px;
  }

  .hero-mosaic {
    height: 166px;
  }

  .mosaic-card,
  .mosaic-card-tall {
    flex-basis: 68%;
  }

  .gallery-count span {
    display: none;
  }

  .gallery-count b {
    font-size: 12px;
  }

  .filter-shell {
    margin: 0 -2px;
  }

  .seg {
    padding: 0 10px;
    font-size: 10px;
  }

  .select-pill select {
    max-width: 68px;
  }

  .sort-pill span:first-child {
    display: none;
  }

  .work-title {
    font-size: 14px;
  }

  .work-view {
    height: 26px;
    padding: 0 10px;
    font-size: 8.5px;
  }

  .empty h2 {
    font-size: 28px;
  }

  .auth-visual {
    height: 180px;
  }

  .auth-quote p {
    font-size: 17px;
  }

  .auth-panel {
    padding: 26px 18px 30px;
  }

  .auth h1 {
    font-size: 24px;
  }
}

/* Image-first showcase: the opening viewport is a single piece of media. */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
}

.hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: 100svh;
  min-height: 620px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #080809;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  --hero-pointer-x: 0px;
  --hero-pointer-y: 0px;
  --hero-scroll-y: 0px;
  --hero-progress: 0;
}

.hero-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 70;
  border-bottom-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-topbar .topbar-inner {
  max-width: none;
}

.hero-topbar .brand-cn,
.hero-topbar .topnav-link,
.hero-topbar .topnav-link.is-active,
.hero-topbar .brand-latin {
  color: rgba(245, 242, 234, .78);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .45);
}

.hero-topbar .topnav-link:hover,
.hero-topbar .topnav-link.is-active {
  color: var(--text);
}

.hero-topbar .top-actions {
  display: none;
}

.hero-stage,
.hero-media-link,
.hero-stage img,
.hero-stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 32%, rgba(242, 181, 68, .13), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(102, 145, 172, .12), transparent 30%);
  animation: heroAtmosphere 14s ease-in-out infinite alternate;
}

.hero-media-link {
  overflow: hidden;
  animation: heroMediaEnter 1.4s var(--ease) both;
}

.hero-stage img,
.hero-stage video {
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.04);
  transform:
    translate3d(var(--hero-pointer-x), calc(var(--hero-pointer-y) + var(--hero-scroll-y)), 0)
    scale(1.035);
  transition: transform 1.6s var(--ease), filter .7s ease;
  will-change: transform;
}

.hero-media-link:hover img,
.hero-media-link:hover video {
  filter: saturate(1) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, .24) 0%, transparent 36%, rgba(5, 5, 7, .72) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(5, 5, 7, .18) 100%);
  animation: heroVeil 2.2s ease both;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 112px);
  bottom: clamp(42px, 9vh, 94px);
  left: clamp(24px, 7vw, 112px);
  max-width: 720px;
  pointer-events: none;
  transform: translate3d(0, calc(var(--hero-progress) * 44px), 0);
  will-change: transform;
}

.hero-caption .eyebrow {
  margin-bottom: 14px;
  color: var(--text);
  opacity: .8;
}

.hero-caption > * {
  animation: heroCaptionEnter 1s var(--ease) both;
}

.hero-caption > :nth-child(1) {
  animation-delay: .35s;
}

.hero-caption > :nth-child(2) {
  animation-delay: .48s;
}

.hero-caption > :nth-child(3) {
  animation-delay: .62s;
}

.hero-caption h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(42px, 7vw, 104px);
  line-height: .98;
  letter-spacing: -.065em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .32);
}

.hero-caption-meta {
  max-width: 42ch;
  margin: 16px 0 0;
  color: rgba(245, 242, 234, .78);
  font-size: 14px;
  line-height: 1.65;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: rgba(245, 242, 234, .62);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  opacity: var(--hero-opacity, 1);
  transform: translateX(-50%);
  transition: opacity .3s ease;
}

.hero-scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: rgba(245, 242, 234, .2);
}

.hero-scroll i::after {
  content: "";
  position: absolute;
  top: -45%;
  left: 0;
  width: 1px;
  height: 45%;
  background: rgba(245, 242, 234, .92);
  animation: heroScrollLine 2.1s cubic-bezier(.55, 0, .2, 1) infinite;
}

.gallery-section {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  background:
    radial-gradient(1100px 540px at 84% 0%, rgba(242, 181, 68, .045), transparent 68%),
    var(--bg);
  padding: clamp(30px, 4vw, 52px) max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) 80px;
  scroll-margin-top: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.gallery-head {
  padding-top: 0;
}

.gallery-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-actions .user-chip {
  padding: 4px 10px 4px 4px;
}

.gallery-actions .publish-top {
  height: 40px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 540px;
  }

  .hero-caption {
    right: var(--pad);
    bottom: 68px;
    left: var(--pad);
  }

  .gallery-head {
    align-items: flex-start;
  }

  .gallery-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
  }

  .filter-search-row {
    display: block;
    padding-bottom: 8px;
  }

  .filter-search-row .filter-actions {
    margin-top: 8px;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 520px;
  }

  .hero-caption h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .hero-caption-meta {
    margin-top: 11px;
    font-size: 12px;
  }

  .hero-scroll {
    bottom: 20px;
  }

  .gallery-head {
    flex-wrap: wrap;
  }

  .gallery-meta {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .gallery-actions .user-text {
    display: none;
  }

  .gallery-actions .user-chip {
    padding: 2px;
  }

  .filter-search-row .filter-actions {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-search-row .filter-actions::-webkit-scrollbar {
    display: none;
  }

  .about-modal::before {
    top: 24px;
    right: 25px;
    font-size: 88px;
  }

  .about-poem {
    margin-top: 24px;
    padding-left: 18px;
  }

  .about-poem p {
    font-size: 17px;
  }

  .about-marks {
    flex-direction: column;
    gap: 7px;
  }
}

@keyframes heroMediaEnter {
  from {
    opacity: 0;
    filter: brightness(.5);
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes heroCaptionEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes heroVeil {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroAtmosphere {
  from {
    opacity: .45;
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    opacity: .8;
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes heroScrollLine {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(320%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .motion-frame.is-playing img {
    animation: none;
  }

  html {
    scroll-behavior: auto;
    scroll-snap-type: y proximity;
  }
}

/* V2 runtime additions */

.lb-author-label {
  margin-left: auto;
  color: var(--faint);
  font-size: 8.5px;
}

.lb-media video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(82vh - 80px);
  border-radius: var(--r-sm);
  background: #000;
  object-fit: contain;
}

.work-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 901px) {
  .lb-side {
    padding-top: 54px;
  }
}

/* Fullscreen viewer */

.lb-full {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.64);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lb-full:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.lb-cover {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.lb-cover > img,
.lb-cover > video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(82vh - 80px);
  object-fit: contain;
}

.lb-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 46%);
  pointer-events: none;
}

.lb-cover-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  cursor: pointer;
}

.lb-cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lb-cover-play i {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(245, 242, 234, 0.4);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.48);
  backdrop-filter: blur(12px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.lb-cover-play i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -8px 0 0 -4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--text);
}

.lb-cover:hover .lb-cover-play i {
  background: var(--amber);
  border-color: var(--amber);
  transform: scale(1.05);
}

.lb-cover:hover .lb-cover-play i::after {
  border-left-color: var(--ink);
}

.lb-cover-play span {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 11px;
  border: 1px solid rgba(245, 242, 234, 0.18);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.6);
  color: var(--text);
  font-size: 9px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050506;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.viewer.is-open {
  opacity: 1;
  visibility: visible;
}

.viewer:focus {
  outline: none;
}

.viewer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #0b0b0d 0%, #050506 70%);
  pointer-events: none;
}

.viewer-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 0 32px;
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.82), transparent);
  transition: opacity 0.25s;
}

.viewer-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.viewer-brand {
  color: var(--text);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.viewer-title {
  max-width: 44vw;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-counter {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.viewer-close {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: var(--pill);
  background: rgba(11, 11, 13, 0.5);
  color: var(--text);
  font-size: 9.5px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s;
}

.viewer-close:hover {
  background: var(--text);
  color: var(--bg);
}

.viewer-close span {
  font-size: 15px;
  line-height: 1;
}

.viewer-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 84px;
}

.viewer-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.viewer-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  border-radius: 4px;
  object-fit: contain;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border: 1px solid rgba(245, 242, 234, 0.2);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.45);
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.viewer-nav:hover {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
}

.viewer-prev {
  left: 24px;
}

.viewer-next {
  right: 24px;
}

.viewer-foot {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 32px;
  background: linear-gradient(0deg, rgba(5, 5, 6, 0.82), transparent);
  transition: opacity 0.25s;
}

.viewer-caption {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-hint {
  color: rgba(245, 242, 234, 0.42);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.viewer.is-video .viewer-stage {
  padding: 0;
}

.viewer.is-video .viewer-foot {
  display: none;
}

.viewer.is-video .viewer-head {
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.72), transparent);
}

.viewer.is-idle {
  cursor: none;
}

.viewer.is-idle .viewer-head,
.viewer.is-idle .viewer-nav,
.viewer.is-idle .player-controls {
  opacity: 0;
  pointer-events: none;
}

.player {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.player-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: -39px 0 0 -39px;
  border: 1px solid rgba(245, 242, 234, 0.35);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.45);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: opacity 0.25s, background 0.2s, border-color 0.2s;
}

.player-center i {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 13px solid var(--text);
}

.player-center:hover {
  border-color: var(--amber);
  background: var(--amber);
}

.player-center:hover i {
  border-left-color: var(--ink);
}

.player.is-playing .player-center {
  opacity: 0;
  pointer-events: none;
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.22) 62%, transparent);
  transition: opacity 0.25s;
}

.player-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(245, 242, 234, 0.24);
  border-radius: 50%;
  background: rgba(11, 11, 13, 0.4);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.player-toggle:hover {
  border-color: var(--amber);
  background: rgba(242, 181, 68, 0.14);
}

.player-toggle i {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--text);
}

.player.is-playing .player-toggle i {
  width: 8px;
  height: 12px;
  margin: 0;
  border: 0;
  border-right: 3px solid var(--text);
  border-left: 3px solid var(--text);
}

.player-time {
  flex: 0 0 auto;
  min-width: 82px;
  color: rgba(245, 242, 234, 0.7);
  font-family: var(--mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player-track {
  position: relative;
  flex: 1;
  height: 18px;
  border-radius: var(--pill);
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.player-track::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--pill);
  background: rgba(245, 242, 234, 0.18);
}

.player-buffered {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--pill);
  background: rgba(245, 242, 234, 0.2);
}

.player-played {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  width: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--pill);
  background: var(--amber);
}

.player-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.16);
  transform: scale(0);
  transition: transform 0.15s;
}

.player-track:hover .player-thumb,
.player-track.is-seeking .player-thumb {
  transform: scale(1);
}

.player-mute,
.player-exit {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(245, 242, 234, 0.16);
  border-radius: var(--pill);
  color: rgba(245, 242, 234, 0.68);
  font-size: 8.5px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.player-mute:hover,
.player-exit:hover {
  border-color: var(--amber);
  color: var(--amber);
}

@media (max-width: 900px) {
  .viewer-head {
    min-height: 60px;
    padding: 0 14px;
  }

  .viewer-title {
    max-width: 38vw;
    font-size: 10px;
  }

  .viewer-counter {
    display: none;
  }

  .viewer-close {
    height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .viewer-stage {
    padding: 64px 14px 54px;
  }

  .viewer-img {
    max-height: calc(100dvh - 120px);
  }

  .viewer-prev {
    left: 6px;
  }

  .viewer-next {
    right: 6px;
  }

  .viewer-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
  }

  .viewer-foot {
    min-height: 48px;
    padding: 0 14px;
    gap: 10px;
  }

  .viewer-caption {
    font-size: 9.5px;
  }

  .viewer-hint {
    display: none;
  }

  .viewer.is-video .viewer-stage {
    padding: 0;
  }

  .player-controls {
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 14px 18px;
  }

  .player-time {
    min-width: 70px;
    font-size: 8.5px;
  }

  .player-track {
    flex: 1 0 100%;
    order: 5;
    height: 20px;
  }

  .player-track::before,
  .player-buffered,
  .player-played {
    height: 3px;
    margin-top: -1.5px;
  }

  .player-mute,
  .player-exit {
    height: 28px;
    padding: 0 8px;
    font-size: 8px;
  }

  .player-center {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
  }

  .lb-full {
    top: 10px;
    left: 10px;
  }

  .lb-cover > img,
  .lb-cover > video {
    max-height: calc(52vh - 56px);
  }

  .lb-cover-play i {
    width: 58px;
    height: 58px;
  }
}

.viewer.is-video .viewer-media {
  width: 100%;
  height: 100%;
}

.viewer-error {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.player-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: rgba(245, 242, 234, 0.5);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  animation: loading-pulse 1.4s ease-in-out infinite;
}

.player.is-loading .player-center {
  opacity: 0;
  pointer-events: none;
}

.player:not(.is-loading) .player-loading {
  display: none;
}

@keyframes loading-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}
