/* Watch: player column + up-next rail. */
#watchView {
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 1080px) {
  #watchView { grid-template-columns: minmax(0, 1fr); }
}

.watch-main { min-width: 0; }

/* Empty sized box. ExpVideo positions the real <video> over this rect. */
.watch-player-slot {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  background: #000 center / cover no-repeat;
  overflow: hidden;
}

/* Room either side of the player for Angel and Demon to stand in.
   140px of character plus 12px of breathing room, so a bubble never touches
   the frame. Kept as a variable because it is really one number — the
   character width in npc.css — expressed in two places. */
:root { --npc-gutter: 152px; }

/* Only where it is affordable. Below this the main column is narrow enough
   that surrendering 304px would leave a postage stamp, so npc-scene-layer.js
   measures the room, finds none, and tucks the characters into the frame's
   corners instead. Both behaviours are intended; this is the good one. */
@media (min-width: 1360px) {
  .watch-player-slot {
    width: calc(100% - 2 * var(--npc-gutter));
    margin-inline: auto;
  }
  /* The title, meta bar, wall and comments keep the full column width. Only
     the player is inset — pulling the whole page in to make space for two
     cartoons would be the tail wagging the dog. */
}
.watch-player-slot--portrait {
  aspect-ratio: 9 / 16;
  width: min(420px, 100%);
  margin-inline: auto;
}

.watch-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 16px 0 6px;
}
.watch-meta { color: var(--app-dim); font-size: 13.5px; margin-bottom: 4px; }

.watch-rail h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.up-next { display: flex; flex-direction: column; gap: 14px; }
/* The rail uses the same card, laid out horizontally. The grid is on the watch
   link — thumbnail beside title — and the creator row is indented underneath so
   it lines up with the title rather than sitting under the thumbnail. */
.up-next .video-card__main {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.up-next .video-card__title { margin-top: 0; font-size: 13.5px; }
.up-next .video-card__meta { margin-top: 2px; padding-left: 178px; }
.up-next .video-card__avatar { width: 22px; height: 22px; font-size: 11px; }
@media (max-width: 460px) {
  .up-next .video-card__main { grid-template-columns: 128px minmax(0, 1fr); }
  .up-next .video-card__meta { padding-left: 138px; }
}

/* ---- Topic Hubs -------------------------------------------------------------
   Topic chips under the title, and a "More from this topic" rail above Up next.
   Both are additive: a video with no topics renders exactly as it did before. */
.watch-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 8px 0 4px;
}
.watch-topics[hidden] { display: none; }
.watch-topics__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--app-dim);
}
.watch-topics__chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #0a6a72;
  background: rgba(22, 200, 210, .12);
  border: 1px solid rgba(22, 200, 210, .3);
  border-radius: 999px;
  transition: background .14s ease;
}
.watch-topics__chip:hover {
  background: rgba(22, 200, 210, .22);
  border-color: rgba(22, 200, 210, .5);
}

.watch-topic-rail { margin-bottom: 26px; }
.watch-topic-rail[hidden] { display: none; }
.watch-topic-rail__more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0a6a72;
  text-decoration: none;
}
.watch-topic-rail__more:hover { text-decoration: underline; }

@media (hover: none) {
  .watch-topics__chip { height: 38px; padding: 0 16px; }
}
