/* Channel library: reuse the site's reading scale, margins, colors and fonts. */
.video-channel { padding-top: 36px; }
.video-channel-heading { display: flex; align-items: flex-start; gap: 24px; margin-block: 32px; }
.video-channel-heading > div { min-width: 0; }
.video-channel-avatar { width: 100px; height: 100px; flex-shrink: 0; border-radius: 50%; }
.video-channel h1 { font-size: clamp(1.5rem, 2.7vw, 2.25rem); line-height: 1.2; margin-top: 10px; }
.video-channel-handle { font-size: var(--text-label); color: var(--muted); margin-top: 10px; }
.video-channel-description { margin-block: 12px; color: var(--muted); }
.video-sections { display: flex; gap: 32px; border-bottom: 1px solid var(--line); }
.video-sections a { font-size: var(--text-ui); font-weight: 600; padding-block: 12px; border-bottom: 2px solid var(--blue); }
.video-sections a:hover { color: var(--blue); }
.video-library { padding-block: 36px; scroll-margin-top: 110px; }
.video-library > h2 { font-size: 1.5rem; margin-bottom: 24px; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--body-column-gap); }
.video-entry { min-width: 0; }
.video-card { display: block; border-radius: 8px; }
.video-card:hover .video-entry-title { color: var(--blue); }
.video-thumbnail { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pale); border-radius: 8px; }
.video-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 3px; background: #000c; color: #fff; font-size: var(--text-label); font-weight: 600; }
.video-entry-title { font-size: var(--text-body); line-height: 1.4; margin-top: 12px; overflow-wrap: anywhere; }
.video-library-note { margin-top: 32px; color: var(--muted); }
.video-library-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.video-player { width: min(1100px, calc(100% - 40px)); max-height: calc(100dvh - 40px); padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); overflow: auto; }
.video-player::backdrop { background: #112c40bb; }
.video-player-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.video-player-heading h2 { min-width: 0; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.3; overflow-wrap: anywhere; }
.video-player-heading .button { flex-shrink: 0; }
.video-player-frame { aspect-ratio: 16 / 9; background: #000; }
.video-player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-player-source { margin-top: 16px; }
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .video-channel { padding-top: 24px; }
  .video-channel-heading { gap: 16px; }
  .video-channel-avatar { width: 60px; height: 60px; }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .video-player { width: calc(100% - 20px); padding: 12px; }
  .video-player-heading { gap: 12px; }
}
