.watch-layout { margin-top: 1.6rem; }
.show-intro { margin: 0 0 1.1rem; }
.show-intro h1 { font-size: clamp(1.42rem, 3.1vw, 2.15rem); font-weight: 760; letter-spacing: -.046em; line-height: 1.25; }
.watch-meta { display: flex; flex-wrap: wrap; gap: .42rem .75rem; align-items: center; margin-top: .65rem; font-size: .91rem; color: var(--muted); }
.current-label { display: inline-flex; min-height: 1.6rem; align-items: center; padding: .12rem .53rem; background: var(--soft-blue); color: var(--blue-dark); border-radius: .29rem; font-weight: 680; font-size: .85rem; }
.watch-columns { display: grid; grid-template-columns: minmax(0, 1fr) clamp(16rem, 25.9vw, 21rem); align-items: start; gap: 1.25rem; grid-template-areas: "player rail" "comments rail"; }
.watch-player { grid-area: player; min-width: 0; }
.player { position: relative; border-radius: .83rem .83rem 0 0; background: #141b2c; overflow: hidden; }
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 72dvh; object-fit: contain; background: #111827; }
.danmaku-layer { position: absolute; inset: .4rem 0 3.55rem; overflow: hidden; pointer-events: none; z-index: 1; }
.danmaku-fly {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  font-size: clamp(.96rem, 1.75vw, 1.2rem); font-weight: 730; color: white;
  text-shadow: 0 1px 1px #101220, 1px 0 #101220, -1px 0 #101220, 0 -1px #101220, 0 2px 5px #141823;
  will-change: transform; pointer-events: none;
}
.play-cover { position: absolute; inset: 0 0 2.85rem; display: grid; place-items: center; pointer-events: none; z-index: 2; background: linear-gradient(0deg, rgb(10 20 43 / .37), rgb(10 20 43 / .08) 72%); }
.center-play { pointer-events: auto; display: grid; place-items: center; width: clamp(3.2rem, 6.7vw, 4.95rem); aspect-ratio: 1; padding: 0; border: 1px solid rgb(255 255 255 / .84); border-radius: 50%; color: white; background: rgb(36 88 198 / .95); box-shadow: 0 10px 38px rgb(10 27 70 / .44); }
.center-play:hover { background: #1849ad; }
.center-play .play-icon { margin-left: .19rem; border-width: .58rem 0 .58rem .88rem; }
.player-demo-label { position: absolute; top: .9rem; left: .9rem; padding: .25rem .55rem; background: rgb(15 25 49 / .78); border: 1px solid rgb(255 255 255 / .44); color: white; border-radius: .34rem; font-size: .81rem; }
.play-error { position: absolute; z-index: 3; inset: auto .75rem 3.2rem; border-radius: .48rem; background: rgb(13 26 52 / .9); color: #fff; padding: .5rem .65rem; font-size: .91rem; }
.play-error:empty, .inline-status:empty { display: none; }
.player-tools { display: flex; gap: .8rem; align-items: center; padding: .55rem .65rem; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 .83rem .83rem; background: white; }
.danmaku-toggle { display: inline-flex; align-items: center; gap: .43rem; min-height: 2.4rem; border: 1px solid #dbe5f3; border-radius: .49rem; padding: .35rem .53rem; white-space: nowrap; background: #f2f6ff; color: var(--blue-dark); font-weight: 650; font-size: .86rem; }
.toggle-led { width: 1.44rem; height: .84rem; border-radius: 1rem; background: var(--blue); position: relative; }
.toggle-led::after { content: ""; background: white; border-radius: 50%; width: .58rem; height: .58rem; position: absolute; top: .13rem; right: .14rem; }
.danmaku-toggle[aria-pressed="false"] { background: #f6f7fa; color: var(--muted); }
.danmaku-toggle[aria-pressed="false"] .toggle-led { background: #8390a7; }
.danmaku-toggle[aria-pressed="false"] .toggle-led::after { right: .72rem; }
.danmaku-composer { display: flex; flex: 1; min-width: 0; gap: .46rem; }
.danmaku-composer input, .comment-composer textarea, .pick-search input { border: 1px solid #dce4f0; border-radius: .46rem; background: #f8faff; padding: .48rem .68rem; min-width: 0; width: 100%; font-size: .93rem; }
.danmaku-composer input { flex: 1; }
.sign-in-compose { color: var(--blue); font-size: .9rem; }
.demo-detail { color: var(--muted); font-size: .88rem; margin-top: .58rem; }
.inline-status { margin-top: .45rem; font-size: .86rem; color: var(--blue-dark); }

.watch-rail { grid-area: rail; display: flex; flex-direction: column; gap: .88rem; min-width: 0; }
.rail-panel { border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; background: white; box-shadow: 0 5px 20px rgb(33 60 116 / .035); }
.rail-title { display: flex; min-height: 3.16rem; padding: .72rem .87rem; gap: .5rem; align-items: center; justify-content: space-between; border-bottom: 1px solid #e9edf4; }
.rail-title h2 { font-size: 1rem; font-weight: 740; }
.rail-title > span { color: var(--muted); font-size: .84rem; }
.picks { margin: 0; padding: .58rem; list-style: none; max-height: 17.5rem; overflow: auto; }
.picks > li + li { margin-top: .32rem; }
.pick { display: flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: .39rem .46rem; border: 1px solid transparent; border-radius: .53rem; }
.pick:hover { background: #f5f8ff; }
.pick.active { border-color: #d7e6ff; background: #edf4ff; }
.pick-number { flex-shrink: 0; min-width: 2.03rem; height: 2.03rem; display: grid; place-items: center; border-radius: .39rem; background: #e9edf5; color: #55657c; font-weight: 670; font-variant-numeric: tabular-nums; padding-inline: .12rem; font-size: .8rem; }
.pick.active .pick-number { background: var(--blue); color: white; }
.pick strong { display: block; font-weight: 660; font-size: .91rem; }
.pick small { display: block; color: var(--muted); font-size: .81rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-copy { min-width: 0; flex: 1; }
.pick-length { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.pick-search { padding: .58rem .59rem 0; }
.pick-search input { font-size: .88rem; }
.danmaku-table { display: grid; grid-template-columns: 3.05rem minmax(0,1fr); gap: .3rem; padding: .39rem .85rem; background: #f6f8fc; color: #516076; font-size: .84rem; }
.danmaku-list { list-style: none; max-height: 15rem; overflow: auto; padding: 0 .7rem; margin: 0; }
.danmaku-list li { min-width: 0; display: grid; align-items: start; grid-template-columns: 3rem minmax(0,1fr) auto; gap: .25rem; border-bottom: 1px solid #eff2f6; padding: .42rem .12rem; font-size: .86rem; }
.danmaku-list li:last-child { border-bottom: 0; }
.danmaku-list span { min-width: 0; overflow-wrap: anywhere; }
.jump-time, .post-remove { border: 0; padding: .05rem .12rem; background: transparent; color: var(--blue); text-align: left; font-size: .81rem; }
.jump-time { font-variant-numeric: tabular-nums; }
.jump-time:hover, .post-remove:hover { text-decoration: underline; }
.empty-list { color: var(--muted); padding: .77rem .8rem; font-size: .89rem; }

.comments-area { grid-area: comments; min-width: 0; border-top: 1px solid var(--line); padding-top: .95rem; margin-top: .1rem; }
.comments-heading { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .65rem; }
.comments-heading h2 { font-size: 1.22rem; letter-spacing: -.018em; }
.comments-heading > span { color: var(--muted); font-size: .9rem; }
.comment-composer { display: flex; align-items: flex-end; gap: .65rem; }
.comment-composer textarea { flex: 1; min-height: 3.45rem; resize: vertical; }
.comment-list { list-style: none; padding: 0; margin: .55rem 0 0; }
.comment-list li { display: flex; align-items: flex-start; gap: .66rem; padding: .65rem 0; border-bottom: 1px solid #edf0f5; }
.comment-avatar { background: #e9f0ff; color: #2d58ad; border-radius: 50%; width: 2rem; height: 2rem; display: grid; place-items: center; font-size: .78rem; font-weight: 700; flex-shrink: 0; }
.comment-body { flex: 1; min-width: 0; }
.comment-byline { display: flex; align-items: center; color: var(--muted); gap: .68rem; font-size: .83rem; }
.comment-byline strong { color: var(--ink); }
.comment-text { font-size: .93rem; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: .2rem; }
.comments-area .empty-list { padding-left: 0; }

@media (max-width: 900px) {
  .watch-columns { grid-template-columns: minmax(0,1fr); grid-template-areas: "player" "rail" "comments"; gap: .9rem; }
  .watch-rail { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
}
@media (max-width: 615px) {
  .watch-layout { margin-top: 1.05rem; }
  .show-intro { margin-bottom: .8rem; }
  .watch-rail { display: flex; gap: .66rem; }
  .player.is-portrait video { aspect-ratio: 4 / 5; max-height: 65dvh; }
  .player-tools { gap: .39rem; padding: .43rem; }
  .danmaku-toggle { gap: .31rem; padding-inline: .38rem; }
  .danmaku-composer { gap: .34rem; }
  .danmaku-composer input { font-size: .83rem; padding-inline: .44rem; }
  .danmaku-composer .button, .comment-composer .button { padding-inline: .58rem; }
  .player-demo-label { top: .53rem; left: .52rem; }
  .danmaku-layer { inset: .16rem 0 2.65rem; }
  .comment-composer { gap: .42rem; }
}
@media (max-width: 372px) {
  .toggle-led { display: none; }
  .watch-meta { font-size: .84rem; }
}

@media (max-width: 625px) {
  html:has(.watch-layout) {
    color-scheme: dark;
    --paper: #111622;
    --ink: #f4f1ee;
    --muted: #aeb9ca;
    --panel: #1b2432;
    --line: #344052;
    --blue: #ffaf99;
    --blue-dark: #ffc4b4;
    --soft-blue: #382a31;
    --watch-accent-ink: #281922;
  }

  :where(body:has(.watch-layout)) .masthead,
  :where(body:has(.watch-layout)) .skip:focus {
    background: var(--panel);
  }

  :where(body:has(.watch-layout)) .masthead .nav a,
  :where(body:has(.watch-layout)) .language,
  :where(body:has(.watch-layout)) .home-follow-link {
    color: var(--muted);
  }

  :where(body:has(.watch-layout)) .masthead .nav a[aria-current],
  :where(body:has(.watch-layout)) .masthead .nav a:hover,
  :where(body:has(.watch-layout)) .masthead-actions a:not(.pill-link):hover {
    color: var(--blue);
  }

  :where(body:has(.watch-layout)) .pill-link,
  .watch-layout .button.primary,
  .watch-layout .center-play,
  .watch-layout .pick.active .pick-number {
    background: var(--blue);
    color: var(--watch-accent-ink);
  }

  .watch-layout .center-play { border-color: var(--blue); }
  .watch-layout .center-play:hover { background: var(--blue-dark); }
  .watch-layout .button.primary:hover:not(:disabled) { background: var(--blue-dark); }

  .watch-layout .player-tools,
  .watch-layout .rail-panel,
  .watch-layout .comments-area,
  .watch-layout .follow,
  .watch-layout .button.secondary {
    background: var(--panel);
    border-color: var(--line);
  }

  .watch-layout .comments-area {
    border: 1px solid var(--line);
    border-radius: .8rem;
    padding: .85rem;
  }

  .watch-layout .rail-title,
  .watch-layout .danmaku-list li,
  .watch-layout .comment-list li {
    border-color: var(--line);
  }

  .watch-layout .danmaku-composer input,
  .watch-layout .comment-composer textarea,
  .watch-layout .pick-search input,
  .watch-layout .feed-address input {
    background: var(--paper);
    border-color: var(--line);
  }

  .watch-layout :is(input, textarea)::placeholder { color: var(--muted); }
  .watch-layout .follow-status { color: var(--muted); }

  .watch-layout .danmaku-toggle,
  .watch-layout .pick.active,
  .watch-layout .button.secondary:hover:not(:disabled) {
    background: var(--soft-blue);
    border-color: #70534f;
  }

  .watch-layout .danmaku-toggle[aria-pressed="false"],
  .watch-layout .pick:hover:not(.active),
  .watch-layout .pick-number,
  .watch-layout .danmaku-table {
    background: var(--paper);
    color: var(--muted);
    border-color: var(--line);
  }

  .watch-layout .toggle-led::after { background: var(--paper); }
  .watch-layout .comment-avatar { background: var(--soft-blue); color: var(--blue-dark); }

  :where(body:has(.watch-layout)) .foot-inner {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}
