:root {
  --bg: #0b0d12;
  --panel: #141821;
  --card: #1a1f2b;
  --line: #2a3142;
  --text: #eef1f7;
  --muted: #9aa3b8;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --danger: #fb7185;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "Space Grotesk", system-ui, sans-serif;
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: -20% auto auto -10%;
  width: 60vw;
  height: 40vh;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.14), transparent 65%);
  filter: blur(8px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: rgba(11, 13, 18, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.logo-img {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: contain;
  background: var(--panel);
  border: 1px solid var(--line);
}

.site-motto {
  margin-top: 6px;
}

.site-motto p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 400;
}

.site-updated {
  margin: 6px 0 0;
  color: #9aa3b8;
  font-size: 12px;
}

.blurb {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.series-intro {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 760px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
}

.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  filter: brightness(1.08);
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
}

.nav a.nav-home,
.nav a.nav-home.active {
  color: #ff4d6d;
}
.nav a.nav-wish,
.nav a.nav-wish.active {
  color: #ffd60a;
}
.nav a.nav-series,
.nav a.nav-series.active {
  color: #7c5cff;
}
.nav a.nav-activity,
.nav a.nav-activity.active {
  color: #ff8a3d;
}
.nav a.nav-contact,
.nav a.nav-contact.active {
  color: #3dff9a;
}

.filter-toggle {
  height: 36px;
  margin-left: 4px;
}

h1 {
  margin: 0;
  font-size: 22px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sub code, .empty code {
  color: var(--accent);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 10px 28px 14px;
  background: rgba(11, 13, 18, 0.92);
  border-bottom: 1px solid var(--line);
}

.toolbar.collapsed {
  display: none;
}

.search-wrap input,
select,
button {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.search-wrap input {
  width: min(320px, 70vw);
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

button:hover { border-color: var(--accent); }

main { padding: 22px 28px 60px; }

.meta-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.slogan {
  text-align: left;
  margin: 8px 0 28px;
  max-width: 720px;
  padding: 4px 0;
}

.slogan p {
  margin: 0 0 6px;
  color: #d7dee8;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.slogan p:last-child {
  margin-bottom: 0;
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.series-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.series-title {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.series-title small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.grid {
  columns: 2;
  column-gap: 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 255, 0.45);
}

a.series-card {
  color: inherit;
  text-decoration: none;
}

.thumb-wrap {
  position: relative;
  background: #0a0c11;
  overflow: hidden;
}

.thumb, .placeholder {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.hover-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb.custom {
  object-fit: contain;
  object-position: center;
  background: #0a0c11;
}

.album-feed .thumb {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  background: #0a0c11;
}

.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.hover-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .hover-preview.is-ready {
    opacity: 1;
  }
}

.badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 6px;
}

.badge.ready {
  right: auto;
  left: 10px;
  bottom: auto;
  top: 10px;
  background: rgba(52, 211, 153, 0.9);
  color: #042f1b;
}

.play-fab {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  opacity: 0;
  background: rgba(110, 231, 255, 0.92);
  color: #041016;
  font-size: 18px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.card:hover .play-fab {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body { padding: 12px 14px 14px; }

.title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.folder {
  color: var(--accent-2);
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.hidden { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 96vw);
  background: #10141c;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.lb-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.hd-btn {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: rgba(110, 231, 255, 0.12);
  color: var(--accent);
}

.hd-btn.active {
  background: var(--accent);
  color: #041016;
}

.lightbox-bar h3 {
  margin: 0;
  font-size: 16px;
}

#lb-close {
  width: 36px;
  padding: 0;
}

.player-wrap {
  position: relative;
  background: #000;
}

#lb-video {
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.lb-status {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #eef1f7;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
}

.lb-react {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.lb-react button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  border-radius: 999px;
  padding: 0 12px;
}

.lb-react button:hover {
  border-color: var(--accent);
}

#lb-like.on {
  color: #fb7185;
  border-color: #fb7185;
}

#lb-fav.on {
  color: #fbbf24;
  border-color: #fbbf24;
}

.lb-desc {
  margin: 0;
  padding: 12px 16px 8px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.lb-foot {
  padding: 0 16px 14px;
}

#lb-cmt-btn {
  height: 36px;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
}

.cmt-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 18%;
  background: #161b24;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 8;
}

.cmt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.cmt-list {
  flex: 1;
  overflow: auto;
  padding: 8px 16px 16px;
}

.cmt-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 12px;
}

.cmt-item {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cmt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #081018;
  flex: none;
}

.cmt-main {
  min-width: 0;
  flex: 1;
}

.cmt-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.cmt-name {
  font-size: 13px;
  color: #c9d4e5;
}

.cmt-time {
  font-size: 12px;
  color: var(--muted);
}

.cmt-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.cmt-form {
  border-top: 1px solid var(--line);
  padding: 10px 12px 12px;
  background: #12171f;
}

#cmt-name {
  width: 140px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 10px;
}

.cmt-send {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

#cmt-text {
  flex: 1;
  min-height: 44px;
  resize: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.cmt-send button {
  height: 44px;
  border-radius: 12px;
  background: #fb7185;
  color: #fff;
  border: 0;
  padding: 0 16px;
}

.page {
  padding: 28px;
  display: grid;
  place-items: start center;
}

.msg-card {
  width: min(720px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.msg-card h2 {
  margin: 0 0 8px;
}

.msg-lead {
  color: var(--muted);
  margin: 0 0 16px;
}

.msg-card textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 12px;
  font: inherit;
  margin-bottom: 14px;
}

.notice {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.notice.ok {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
}

.notice.error {
  background: rgba(251, 113, 133, 0.15);
  color: var(--danger);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-card {
  margin-top: 0;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.qr-item {
  margin: 0;
  text-align: center;
}

.qr-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.qr-item figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.like-flag.on,
#lb-like.on {
  color: #fb7185;
}

.cmt-item.reply {
  margin-left: 46px;
}

.cmt-reply-btn {
  margin-top: 6px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
}

.cmt-reply-hint {
  color: var(--accent);
  font-size: 13px;
  margin: 0 0 8px;
  cursor: pointer;
}

.cmt-form.onpage {
  padding: 0 0 16px;
  border-top: 0;
  background: transparent;
}

.cmt-list.onpage {
  max-height: none;
  padding: 0;
}

.watch-page {
  padding: 22px 28px 60px;
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.cardish {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.watch-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
}

.watch-bar h2 {
  margin: 0;
  font-size: 18px;
}

.watch-meta {
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 13px;
}

#wish-title,
.msg-card input[type="text"],
#wish-form input {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
  margin-bottom: 12px;
}

.wish-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wish-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.wish-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.wish-item p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.wish-time {
  color: var(--muted);
  font-size: 12px;
}

.wish-vote.on {
  color: #fb7185;
  border-color: #fb7185;
}

.series-entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 36px auto 10px;
  max-width: 720px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
}

.series-entry strong {
  color: #7c5cff;
  font-size: 16px;
}

.home-series {
  margin-top: 36px;
}

.activity-hero {
  padding: 22px 20px;
}

.activity-kicker {
  margin: 0 0 8px;
  color: #ff8a3d;
  font-size: 13px;
}

.activity-hero h2 {
  margin: 0 0 8px;
}

.activity-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.activity-note {
  margin-top: 10px !important;
  font-size: 13px;
}

.text-btn {
  display: inline-grid;
  place-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.daily-quote {
  margin: 0 0 22px;
  color: lime;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.starter { margin: 0 0 28px; }

.up-next {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 16px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

.up-next span,
.up-next em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.wish-status {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 720px) {
  .topbar, main { padding-left: 14px; padding-right: 14px; }
  .hint { display: none; }
  .cmt-item.reply { margin-left: 24px; }
}

.menu-toggle {
  display: none;
}

@media (max-width: 860px) {
  .topbar {
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
  }

  .logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand {
    align-items: center;
    min-width: 0;
  }

  h1 { font-size: 18px; }

  .site-motto,
  .site-updated {
    display: none;
  }

  .topbar.nav-open .site-motto,
  .topbar.nav-open .site-updated {
    display: block;
  }

  .nav {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .topbar.nav-open .nav {
    display: flex;
  }

  .nav a,
  .filter-toggle {
    min-height: 36px;
    display: inline-grid;
    place-items: center;
    font-size: 13px;
    padding: 6px 10px;
    font-weight: 500;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    min-width: 64px;
    min-height: 44px;
  }

  .home .worlds {
    display: none;
  }

  .masonry {
    columns: 1;
  }

  .toolbar {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.site-footer {
  padding: 28px 20px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0 0 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: center;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal-meta { color: var(--muted); font-size: 13px; }
.legal-body h3 { margin: 22px 0 8px; font-size: 16px; }
.legal-body p, .legal-body li { line-height: 1.8; color: #d7dee8; }
.legal-card { width: min(860px, 100%); }

.nav a.nav-photos,
.nav a.nav-photos.active { color: #e8c39e; }

h1, .series-title, .page-kicker {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
}

.page-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  color: #e8c39e;
  font-size: 13px;
}

.page-kicker a { color: inherit; text-decoration: none; }

.home-photos { margin: 8px 0 36px; }

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.photo-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  min-height: 160px;
  color: #fff;
  text-decoration: none;
}

.photo-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92);
  transition: transform 0.4s ease;
}

.photo-tile:hover img { transform: scale(1.04); }

.photo-tile span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  text-shadow: 0 8px 20px #000;
  font-size: 13px;
}

.more-link { margin: 10px 0 0; }
.more-link a { color: #e8c39e; text-decoration: none; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.album-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.album-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  background: #0a0c11;
  display: block;
}

.album-card div { padding: 14px 16px 16px; }
.album-card h2 { margin: 0 0 6px; font-family: "Noto Serif SC", serif; font-size: 20px; }
.album-card p { margin: 0; color: var(--muted); font-size: 13px; }

.masonry {
  columns: 3 220px;
  column-gap: 16px;
}

.still {
  break-inside: avoid;
  margin: 0 0 16px;
  cursor: zoom-in;
}

.still img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.still figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.still-box {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.92);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 40px 20px;
}

.still-box.hidden { display: none; }

.still-box img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  object-fit: contain;
}

.still-box p { color: #d7dee8; margin-top: 10px; }

#still-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.worlds { margin: 42px 0 10px; }
.worlds-lead { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.world-list { display: grid; gap: 12px; }
.world-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(232,195,158,0.08), rgba(20,24,33,0.9));
  color: inherit;
  text-decoration: none;
}
.world-tag { color: #e8c39e; font-size: 12px; letter-spacing: 0.12em; }
.world-card strong { font-family: "Noto Serif SC", serif; font-size: 22px; }
.world-card em { color: var(--muted); font-style: normal; }
.world-go { color: #9aa3b8; font-size: 12px; }

.today-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 22px;
  color: inherit;
  text-decoration: none;
}
.today-pick span {
  color: #e8c39e;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.today-pick strong {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}
.insight-trend {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.swipe-wrap { background: #05060a; }
.swipe {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.swipe::-webkit-scrollbar { display: none; }
.swipe-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 58vh;
  display: grid;
  place-items: center;
}
.swipe-slide img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}
.swipe-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  color: var(--muted);
}
.unmute-btn {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 3;
}
.player-wrap { position: relative; }
.all-works-link { margin: 0 0 18px; }
.all-works-link a { color: #e8c39e; text-decoration: none; }

.swipe-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 0;
}
.swipe-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  display: block;
}
.swipe-dots i.on { background: #fff; }

.watch-bar {
  flex-wrap: wrap;
}
.watch-bar h2 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-actions button,
#share-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  height: 34px;
  padding: 0 10px;
}

.photo-row,
.album-grid {
  grid-template-columns: repeat(2, 1fr);
}

.placeholder { min-height: 140px; }

@media (min-width: 1100px) {
  .grid { columns: 3; }
}
.quality-flag {
  display: inline-grid;
  place-items: center;
  height: 34px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.quality-flag.hd { color: var(--accent); }

.starter .series-title { color: #ff5aa5; }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(52px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 13, 18, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.tabbar a {
  display: grid;
  place-items: center;
  color: #9aa3b8;
  text-decoration: none;
  font-size: 13px;
}
.tabbar a.on { color: #ff5aa5; }
body:has(.tabbar) {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

.tabbar { grid-template-columns: repeat(5, 1fr); }
.tab-plus {
  width: 46px;
  height: 46px;
  margin: 3px auto 0;
  border: 0;
  border-radius: 50%;
  background: #22c55e;
  color: #052e16;
  font-size: 28px;
  line-height: 1;
}
.compose-sheet {
  position: fixed;
  left: 50%;
  bottom: calc(70px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.compose-sheet.hidden,
.compose-modal.hidden { display: none; }
.compose-sheet button,
.compose-modal button {
  min-height: 40px;
}
.compose-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(5,6,10,0.72);
  padding: 20px;
}
.compose-modal form {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.compose-modal textarea,
.compose-modal input[type="text"] {
  width: 100%;
  margin: 8px 0;
}
.compose-actions { display: flex; justify-content: flex-end; gap: 8px; }
.compose-tip { color: var(--muted); font-size: 12px; }
.framed {
  border: 1px solid rgba(232, 195, 158, 0.45);
  border-radius: 18px;
  padding: 14px;
  background: rgba(20, 24, 33, 0.55);
}
.admin-row { display: block; margin: 6px 0; }
