/* BeamCue demo gallery — v2. Loads after v2-core.css. */
.v2-gal { padding: 64px 56px 0; }
.v2-gal-head { max-width: 860px; margin-bottom: 40px; }
.v2-gal-head h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.05em; margin: 16px 0 18px; }
.v2-gal-head p { color: var(--fg-2); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.62; }

.v2-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.v2-toolbar .search { flex: 1 1 300px; max-width: 420px; }
.v2-toolbar .sort { flex: 0 0 210px; }
.v2-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; color: var(--fg-3); }

.v2-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.v2-cat { display: inline-flex; align-items: center; min-height: var(--control-height); padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-round); color: var(--fg-2); font-size: 13px; font-weight: 600; }
.v2-cat:hover { background: var(--bg-2); color: var(--fg); }
.v2-cat[aria-current="page"] { background: var(--sig); border-color: var(--sig); color: var(--bg); font-weight: 700; }

.v2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.v2-card { border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--bg-2); overflow: hidden; display: grid; align-content: start; }
.v2-card-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg-3); border-bottom: 1px solid var(--line); overflow: hidden; }
.v2-card-media img, .v2-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--duration-medium) var(--ease-out); }
.v2-card:hover .v2-card-media img, .v2-card:hover .v2-card-media video { transform: scale(1.02); }
.v2-card-open {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: oklch(8% 0.02 265 / 0.58);
  opacity: 0; transition: opacity var(--duration-short) var(--ease-out);
}
.v2-card-open > span {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: var(--control-height); padding: 0 18px;
  border-radius: var(--radius-control); background: var(--sig); color: var(--bg);
  font-size: 14px; font-weight: 700;
}
.v2-card:hover .v2-card-open, .v2-card:focus-within .v2-card-open { opacity: 1; }
/* The card opens the story page, so the media well advertises what is inside
   the story — scenes and conversation — instead of a play button that used to
   promise the player itself. */
.v2-card-badge {
  position: absolute; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px; border-radius: var(--radius-round);
  background: oklch(15.5% 0.022 265 / 0.86);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.07em; color: var(--fg);
}
.v2-card-badge.left { left: 12px; }
.v2-card-badge.right { right: 12px; }
.v2-card-body { display: grid; gap: 11px; padding: 16px; }
.v2-card-title { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.v2-card-title h3 { font-size: 19px; letter-spacing: -0.03em; line-height: 1.22; }
/* A long title must not squeeze the category chip into a two-line stack:
   the title wraps, the chip keeps its own width. */
.v2-card-title .v2-chip { flex: none; }
.v2-card-summary { color: var(--fg-2); font-size: 13px; line-height: 1.55; min-height: 40px; }
.v2-card-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-3); }
.v2-card-meta strong { color: var(--fg-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.v2-pager { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 44px 0 64px; }
.v2-pager span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--fg-3); }

.v2-gal-empty { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr); align-items: center; gap: 40px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--bg-2); margin-bottom: 64px; }
.v2-gal-empty img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.v2-gal-empty h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.04em; margin-bottom: 12px; }
.v2-gal-empty p { color: var(--fg-2); margin-bottom: 22px; }

@media (max-width: 1180px) { .v2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .v2-gal { padding: 36px 18px 0; }
  .v2-grid { grid-template-columns: 1fr; }
  .v2-toolbar .search, .v2-toolbar .sort { flex: 1 1 100%; max-width: none; }
  .v2-count { margin-left: 0; }
  .v2-gal-empty { grid-template-columns: 1fr; }
}
