/* Original Together Watch chrome, inspired by content-first video catalogs. */
.media-app {
    color-scheme: light; --text-color: #232b3b; --muted-color: #687487; --primary-color: #0785b3;
    background: #f5f7fa; color: #232b3b; font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.media-app a:focus-visible, .media-app button:focus-visible, .media-app input:focus-visible { outline: 3px solid #0785b3; outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 50; padding: 12px; background: #fff; color: #067ca8; border-radius: 8px; }
.skip-link:focus { top: 10px; }
.site-nav { height: 72px; display: flex; align-items: center; gap: 48px; padding: 0 max(24px, calc((100vw - 1400px) / 2)); background: #fff; border-bottom: 1px solid #e5e9f0; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-brand strong { font-size: 22px; line-height: 1.15; font-weight: 800; }
.site-brand strong span { display: block; font-size: 8px; letter-spacing: .13em; color: #8692a4; margin-top: 5px; }
.site-nav nav { display: flex; height: 100%; align-items: stretch; gap: 32px; }
.site-nav nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; font-size: 14px; color: #657184; padding-top: 3px; white-space: nowrap; }
.site-nav nav a:hover, .site-nav nav a[aria-current] { color: #0785b3; }
.site-nav nav a[aria-current] { border-bottom-color: #079cd2; font-weight: 600; }
.nav-room-link { margin-left: auto; background: #fff0f5; color: #b84170; font-size: 13px; padding: 11px 16px; border-radius: 8px; white-space: nowrap; }
.nav-room-link:hover { background: #fce3ed; }
.nav-room-link span { margin-left: 12px; }
.home-layout { max-width: 1400px; margin: 32px auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.home-intro { grid-column: 1; padding: 8px 0 6px; }
.section-kicker { display: block; color: #768398; font-size: 11px; letter-spacing: .1em; font-weight: 600; }
.home-intro h1 { font-size: clamp(27px, 3vw, 38px); font-weight: 750; letter-spacing: -.03em; line-height: 1.35; margin: 14px 0 12px; }
.home-intro h1 span { color: #0785b3; }
.home-intro p { font-size: 14px; color: #687487; line-height: 1.8; }
.intro-tags { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 20px; color: #647386; font-size: 12px; }
.intro-tags span::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; margin-bottom: 2px; border-radius: 50%; background: #6eafc8; }
.room-entry { grid-column: 2; grid-row: 1 / 3; background: #fff; border: 1px solid #e5e9f0; border-radius: 12px; padding: 24px; position: sticky; top: 24px; scroll-margin-top: 24px; }
.entry-heading { display: flex; align-items: center; gap: 12px; }
.entry-icon { display: grid; place-items: center; width: 44px; height: 44px; background: #eaf8fe; color: #0785b3; border-radius: 12px; font-size: 20px; }
.entry-heading .section-kicker { font-size: 9px; }
.entry-heading h2 { font-size: 19px; margin-top: 5px; }
.entry-description { font-size: 12px; color: #778397; line-height: 1.8; margin: 16px 0 24px; }
.room-entry .field-label { color: #39465b; margin-left: 0; font-size: 13px; }
.room-entry input[type="text"] { border: 1px solid #dfe5ed; color: #232b3b; background: #f8fafc; border-radius: 8px; min-height: 44px; padding: 11px; font-size: 14px; }
.room-entry input::placeholder { color: #8b97a8; font-size: 12px; }
.room-entry input[type="text"]:focus { border-color: #0785b3; background: #fff; }
.room-entry .compliance-consent { background: none; border: 0; padding: 0; gap: 8px; color: #687487; font-size: 11px; line-height: 1.8; }
.room-entry .compliance-consent a { color: #067ca8; }
.room-entry .compliance-consent input { accent-color: #0785b3; margin-top: 4px; }
.room-entry .form-error { min-height: 20px; margin: 6px 0; font-size: 12px; color: #b3314e; }
.room-entry .landing-actions { grid-template-columns: 1fr; gap: 8px; }
.room-entry .btn { border-radius: 8px; min-height: 44px; box-shadow: none; font-size: 14px; background: #0799cd; }
.room-entry .btn:hover { background: #0784b0; }
.room-entry .btn-secondary { background: #fff; border: 1px solid #dfe5ed; color: #536176; }
.room-entry .btn-secondary:hover { background: #f2f7fa; }
.entry-tip { color: #8994a5; text-align: center; font-size: 11px; line-height: 1.7; margin: 16px 0 0; }
.home-discovery { grid-column: 1; grid-row: 2; min-width: 0; }
.home-discovery > .source-discovery, .discovery-page > .source-discovery { margin: 0; }
.home-discovery .source-discovery > summary, .discovery-page .source-discovery > summary { display: none; }
.home-footer { grid-column: 1 / -1; text-align: center; color: #7d899b; font-size: 12px; line-height: 1.8; padding: 20px 0 12px; }
.media-app .legal-links { margin: 12px 0 0; color: #687487; font-size: 12px; }
.media-app .legal-links a { color: #687487; }
.media-app .site-records { color: #7d899b; font-size: 11px; padding: 16px 0; }
.media-app .site-records a { color: #7d899b; }
.discovery-page { max-width: 1400px; margin: 0 auto; padding: 32px 24px; }
.discovery-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 6px 0 28px; }
.discovery-page-heading h1 { font-size: clamp(26px, 3vw, 34px); margin: 10px 0; }
.discovery-page-heading p { color: #687487; font-size: 13px; line-height: 1.8; }
.catalog-label { color: #637489; font-size: 12px; padding: 10px 16px; border: 1px solid #e0e6ed; border-radius: 20px; white-space: nowrap; }
.media-app .deployment-warning { border-color: #e8bf79; background: #fff9ec; color: #8c651e; font-size: 12px; }
/* Keep video dark. Tighten the frame and keep the chat in view, without changing player geometry. */
.watch-page { --bg-gradient: #11151d; --glass-bg: #1a202b; --glass-strong: #222a37; --glass-border: #303b4b; --primary-color: #6ccdf5; --accent-color: #80cbed; --panel-radius: 12px; --muted-color: #adb8c9; background: #11151d; }
.watch-page .glass-panel { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.watch-page .room-container { width: min(calc(100% - 48px), 1540px); grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto; min-height: 0; gap: 20px; margin: 20px auto; align-items: start; }
.watch-page .room-toolbar { background: #1a202b; padding: 12px 16px; }
.watch-page .video-panel { padding: 0; overflow: hidden; border-color: #273140; }
.watch-page .controls-section { margin-top: 16px; }
.watch-page .btn { border-radius: 8px; box-shadow: none; background: #148cbd; }
.watch-page .btn-secondary { background: #2c384a; border: 1px solid #41506a; }
.watch-page .btn-danger { background: #ac3f56; }
.watch-page .chat-section { position: sticky; top: 20px; height: min(680px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 20px 16px; }
.watch-page .chat-header { font-size: 15px; color: #eef4fc; }
.watch-page .message.system { color: #aab8cc; font-style: normal; }
.watch-page .message.me { background: #173f56; }
.watch-page .source-control-heading { padding-top: 8px; }
.watch-page .compliance-banner { background: #172d30; border-color: #315458; }
.watch-page .source-route, .watch-page .bookmarklet-setup { background: #202a39; border-color: #354359; }
@media (max-width: 1100px) {
    .site-nav { gap: 24px; padding-inline: 24px; }
    .home-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
    .room-entry { padding: 20px; }
    .home-intro h1 { font-size: 29px; }
    .watch-page .room-container { width: calc(100% - 24px); grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; }
    .watch-page .toolbar-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 960px) {
    .watch-page .room-container { grid-template-columns: 1fr; }
    .watch-page .chat-section { position: static; height: 440px; max-height: none; }
}
@media (max-width: 850px) {
    .home-layout { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
    .home-intro { grid-row: 1; }
    .room-entry { grid-column: 1; grid-row: 3; position: static; }
    .home-discovery { grid-row: 2; }
    .room-entry .landing-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .site-nav { height: 64px; gap: 12px; padding-inline: 12px; }
    .site-brand strong { font-size: 19px; }
    .site-brand img { width: 28px; height: 28px; }
    .site-brand strong span { display: none; }
    .site-nav nav { gap: 0; margin-left: auto; }
    .site-nav nav a:first-child { display: none; }
    .site-nav nav a { font-size: 13px; }
    .nav-room-link { margin-left: 0; display: block; padding: 8px; font-size: 11px; }
    .nav-room-link span { display: none; }
    .home-layout { margin: 22px auto; padding-inline: 12px; gap: 20px; }
    .home-intro { padding: 0 4px; }
    .home-intro h1 { font-size: 28px; }
    .home-intro p { font-size: 12px; }
    .intro-tags { gap: 10px; margin-top: 14px; font-size: 11px; }
    .room-entry { padding: 20px; }
    .discovery-page { padding: 24px 12px; }
    .discovery-page-heading { margin: 0 4px 20px; }
    .catalog-label { display: none; }
    .watch-page .room-container { margin: 10px auto; }
    .watch-page .room-toolbar { grid-template-columns: auto 1fr; gap: 8px; }
    .watch-page .toolbar-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .watch-page .room-summary strong { max-width: 48vw; }
}
@media (prefers-reduced-motion: reduce) { .media-app *, .watch-page * { animation: none !important; } }
