/* A quieter frame for browsing, with a dedicated, scrollable watch page. */
.main-menu { border-radius: 14px; background: rgba(18, 12, 16, .9); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); }
.menu-button { border-radius: 9px; }
.video-card, .category-card { border-radius: 14px; }
.video-title-link { color: inherit; text-decoration: none; }
.video-title-link:hover { color: var(--accent-strong); }
.video-title-link:focus-visible, .watch-page a:focus-visible, .watch-page summary:focus-visible {
  outline: 2px solid var(--accent-strong); outline-offset: 4px; border-radius: 4px;
}
body.player-open { background: radial-gradient(ellipse at 80% 0%, #29141d, transparent 50%), #0c090d; }
body.player-open::before { opacity: .25; }
body.player-open .topbar, body.player-open .main-menu { position: relative; top: auto; }
.watch-page { transform: none; transition: none; padding-bottom: 32px; }
.watch-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0; }
.watch-navigation a { margin-left: auto; text-decoration: none; font-size: .82rem; }
.watch-eyebrow { color: var(--accent-strong); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.watch-navigation > .watch-eyebrow { color: var(--muted); }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 26px; }
.watch-main, .watch-sidebar { display: grid; min-width: 0; gap: 22px; }
.watch-stage {
  width: 100%; aspect-ratio: 16 / 9; max-height: 75vh; min-height: 160px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.watch-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.watch-stage video:fullscreen { width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: contain; }
.watch-summary { padding: 0 2px; min-width: 0; }
.watch-folder { margin-bottom: 8px; color: var(--accent-strong); font-size: .78rem; overflow-wrap: anywhere; }
.watch-summary h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.watch-stats { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: .8rem; }
.watch-stats span + span::before { content: "·"; margin-right: 20px; color: var(--accent); }
.watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding: 18px 0; border-block: 1px solid var(--line); }
.watch-actions > :last-child { margin-left: auto; }
.watch-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.watch-rating > span { color: var(--muted); font-size: .75rem; }
.watch-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, rgba(38, 25, 32, .8), rgba(20, 15, 20, .94)); }
.watch-card h3 { font-size: 1rem; line-height: 1.4; }
.watch-card > .watch-eyebrow { margin-bottom: 8px; }
.watch-tags { margin: 16px 0; }
.watch-tags .video-tags { max-height: none; }
.watch-tags .tag-chip { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.watch-file-details, .watch-editor { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 14px; }
.watch-page summary { cursor: pointer; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.watch-page summary:hover { color: var(--ink); }
.watch-file-details p { margin-top: 12px; font-size: .78rem; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.watch-editor .meta-editor { grid-template-columns: minmax(0, 1fr); padding: 16px 0 0; border: 0; }
.watch-editor label { display: grid; padding: 10px; min-width: 0; gap: 6px; border-radius: 8px; }
.watch-editor label > span { font-size: .75rem; color: var(--muted); }
.watch-editor input { width: 100%; min-width: 0; padding: 6px 0; }
.watch-queue-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.watch-queue-head .icon-button { width: 34px; min-height: 36px; }
.watch-queue-meta { margin: 8px 0 18px; color: var(--muted); font-size: .75rem; }
.watch-queue { display: grid; gap: 14px; }
.watch-queue-item { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.watch-queue-item img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: #090709; }
.watch-queue-item strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.45; font-weight: 600; }
.watch-queue-item small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.watch-queue-item:hover strong { color: var(--accent-strong); }
.watch-muted { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.watch-page .player-gallery { gap: 18px; }
.watch-page .gallery-strip { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); overflow: visible; }
.watch-page .gallery-item { min-width: 0; padding: 0; }
.watch-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .85rem; line-height: 1.6; }
.watch-notice > span { flex: 1 1 240px; }
.watch-unavailable { min-height: 380px; }
@media (max-width: 1100px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
  .watch-card { padding: 16px; }
  .watch-rating { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
  .watch-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .watch-stage { max-height: 70vh; }
  .watch-navigation > .watch-eyebrow { display: none; }
}
@media (max-width: 600px) {
  .watch-navigation { gap: 8px; margin-block: 18px; }
  .watch-navigation .ghost-button { min-height: 40px; padding-inline: 10px; font-size: .75rem; }
  .watch-sidebar { grid-template-columns: minmax(0, 1fr); }
  .watch-stage { border-radius: 10px; }
  .watch-actions { gap: 12px; }
  .watch-actions > :last-child { margin-left: 0; }
  .watch-rating { margin-left: auto; }
  .watch-stats { gap: 8px 12px; }
  .watch-stats span + span::before { margin-right: 12px; }
  .watch-page .gallery-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .watch-queue-item { grid-template-columns: 120px minmax(0, 1fr); }
}
