/* Gallery + watch page styles (loaded alongside styles.css) */

.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 30px; margin: 26px 0 2px; }
.page-head .sub { color: var(--muted); font-size: 14px; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 18px; }
.chip {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* justified rows */
#gallery { display: block; }
.jrow { display: flex; gap: 14px; margin-bottom: 14px; }
.jitem {
  position: relative; display: block; min-width: 0; height: 100%;
  border-radius: 10px; overflow: hidden; background: var(--surface);
}
.jitem img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .15s; }
.jitem:hover img { filter: brightness(1.12); }
.jitem .tag {
  position: absolute; top: 8px; left: 8px;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: var(--ink); padding: 3px 8px; border-radius: 6px;
}

/* watch page */
.crumbs { margin: 26px 0 12px; font-size: 14px; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.watch h1 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 16px 0 8px; text-wrap: pretty; }
.watch .meta { margin: 4px 0 30px; }
.player { border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player video { display: block; width: 100%; height: auto; max-height: 78vh; margin: 0 auto; }
.player.portrait { max-width: min(460px, 100%); margin: 0 auto; }

/* screenshots strip (story frames under the player) */
.watch .shots-title {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  margin: 0 0 12px; color: var(--ink);
}
.watch .shots {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px; margin: 0 0 34px;
}
.watch .shots figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.watch .shots img { width: 100%; display: block; }
.watch .shots figcaption {
  padding: 9px 12px 11px; font-size: 13px; line-height: 1.4;
  color: var(--muted); text-align: center;
}
.watch .shots .shot:hover img { filter: brightness(1.08); }
