/* TV browsers span several generations. Keep the layout independent of Grid,
   flex gap, aspect-ratio, clamp(), inset and safe-area environment variables. */
.c24-tv { font-family: Arial, sans-serif; }
.c24-tv body { font-size: 20px; }
.c24-tv main, .c24-tv .site-header { width: 90%; max-width: 1600px; margin: 0 auto; }
.c24-tv main { padding: 32px 0 100px; }
.c24-tv .site-header { padding: 16px 0; flex-wrap: wrap; }
.c24-tv .brand { font-size: 30px; }
.c24-tv .site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0; }
.c24-tv .site-header nav > * { margin: 3px 0 3px 10px; }
.c24-tv .site-header nav a { width: auto; min-height: 48px; padding: 4px 12px; font-size: 20px; }
.c24-tv .nav-label { position: static; width: auto; height: auto; clip: auto; }
.c24-tv .nav-link svg { display: none; }
.c24-tv .hero { padding: 30px 0; }
.c24-tv h1 { font-size: 42px; }
.c24-tv .hero h1 { font-size: 56px; margin-bottom: 18px; }
.c24-tv h2 { font-size: 30px; }
.c24-tv .hero-copy { font-size: 22px; }
.c24-tv .tags { gap: 0; }
.c24-tv .tags a { margin: 0 8px 8px 0; font-size: 16px; }
.c24-tv .search button { margin-left: 10px; }
.c24-tv .clip-grid, .c24-tv .license-grid, .c24-tv .feature-grid, .c24-tv .asset-license-grid {
    display: flex; flex-flow: row wrap; align-items: stretch; gap: 0; margin: 0 -1%;
}
.c24-tv .clip-grid > *, .c24-tv .license-grid > *, .c24-tv .asset-license-grid > * {
    width: 31.333%; flex: 0 0 31.333%; margin: 0 1% 24px;
}
.c24-tv .feature-grid > * { width: 48%; flex: 0 0 48%; margin: 0 1% 24px; }
.c24-tv .thumb, .c24-tv .slideshow-frame, .c24-tv .tv-clip-frame {
    position: relative; width: 100%; height: 0; padding-top: 56.25%; aspect-ratio: auto; overflow: hidden;
}
.c24-tv .thumb > a, .c24-tv .slideshow-frame img, .tv-clip-frame video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.c24-tv .card-copy h2 { font-size: 21px; }
.c24-tv .card-description { font-size: 16px; }
.c24-tv .site-footer a { margin: 4px 10px; }
.c24-tv dialog:not([open]) { display: none; }
.c24-tv a:focus, .c24-tv button:focus, .c24-tv input:focus, .c24-tv video:focus {
    outline: 4px solid #15895d; outline-offset: 2px; box-shadow: 0 0 0 2px #fff;
}
.c24-tv .thumb > a:focus { outline-offset: -5px; z-index: 2; }
.c24-tv #scenery-launch {
    right: 3%; bottom: 4%; width: auto; height: 56px; padding: 0 20px; border-radius: 28px;
    background: #172620; color: white; border: 1px solid #99b6a5; font-size: 20px;
}
.c24-tv #scenery-launch span { margin-left: 8px; }
.c24-tv #scenery-player, .c24-tv .scenery-stage, .c24-tv .scenery-stage video { top: 0; right: 0; bottom: 0; left: 0; margin: 0; }
.c24-tv .scenery-footer { padding: 70px 4% 3%; align-items: flex-end; }
.c24-tv .scenery-location { align-self: flex-end; font-size: 28px; }
.c24-tv .scenery-location svg { margin-right: 10px; }
.c24-tv .scenery-tools, .c24-tv #scenery-player .scenery-close { background: rgba(14, 22, 19, .88); }
.c24-tv #scenery-player .scenery-close { top: 4%; right: 3%; }
.c24-tv #scenery-player button { min-width: 52px; min-height: 52px; }
.c24-tv #scenery-player button:focus { outline: 3px solid white; background: #275942; }
.c24-tv #scenery-player [data-save-label] { margin-left: 7px; }
.c24-tv .video-test-app.clip-page { max-width: 1360px; display: block; }
.tv-clip-frame { background: #070909; }
.tv-clip-frame video { display: block; object-fit: contain; }
.tv-clip-tools { margin: 12px 0 24px; }
.tv-clip-tools button { min-height: 50px; margin: 4px 10px 4px 0; font-size: 20px; }
.tv-clip-tools [role=status] { font-size: 18px; }
.tv-clip.tv-expanded { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9000; background: #000; }
.c24-tv .tv-expanded .tv-clip-frame { height: 100%; padding: 0; }
.tv-expanded .tv-clip-tools { position: absolute; top: 3%; left: 3%; color: white; }
.tv-expanded .tv-clip-tools .secondary { background: #28362d; color: white; }
@media (max-width: 1000px) {
    .c24-tv .clip-grid > *, .c24-tv .asset-license-grid > *, .c24-tv .license-grid > * { width: 48%; flex-basis: 48%; }
    .c24-tv .hero h1 { font-size: 44px; }
    .c24-tv .site-header nav > * { margin-left: 4px; }
}
@media (max-width: 650px) {
    .c24-tv .clip-grid > *, .c24-tv .feature-grid > *, .c24-tv .license-grid > *, .c24-tv .asset-license-grid > * { width: 98%; flex-basis: 98%; }
}
