/* =====================================================================================
   ROOVET WATCH 2026 — design system (2026-11-22)
   Replaces watch-polish.css. Loaded last on every Watch page (chrome_start, hub,
   collections, adopted tool pages). Cinema-black surfaces, Roovet red, one type scale.
   Sections: 1 tokens · 2 chrome (header/sidebar/mobile) · 3 controls · 4 discovery
   (hub, cards, chips) · 5 watch page · 6 channel · 7 search · 8 collections/legacy
   pages · 9 responsive · 10 motion
   ===================================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/media-hub/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* 1 · Tokens ------------------------------------------------------------------------ */
body.media-hub {
  --mh-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --mh-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mh-bg: #0a0a0c;
  --mh-surface: #141418;
  --mh-raised: #1d1d22;
  --mh-hover: #27272e;
  --mh-panel: var(--mh-surface);
  --mh-border: #ffffff14;
  --mh-border-strong: #ffffff24;
  --mh-text: #f5f5f7;
  --mh-muted: #a6a6b0;
  --mh-faint: #75757f;
  --mh-red: #ff2d46;
  --mh-accent: #ff5268;
  --mh-action: #e5172f;
  --mh-action-hover: #ff2d46;
  --mh-radius-control: 999px;
  --mh-radius-card: 14px;
  --mh-radius-panel: 18px;
  --mh-shadow: 0 18px 48px #000a;
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: var(--mh-body);
  -webkit-font-smoothing: antialiased;
}
body.media-hub ::selection { background: #ff2d4655; }
.media-hub :focus-visible { outline: 2px solid #ff8a99; outline-offset: 3px; }
.mh-search:focus-within, .md-filter:focus-within { outline: 2px solid #ff8a99; outline-offset: 2px; }
.mh-search input:focus-visible, .md-filter input:focus-visible { outline: none; }

/* 2 · Chrome ------------------------------------------------------------------------- */
.mh-topbar {
  background: #0a0a0ce6;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--mh-border);
}
.mh-brand { font-family: var(--mh-display); font-weight: 800; letter-spacing: -.03em; }
.mh-brand-mark {
  background: url('/assets/watch/brand/watch-mark.svg') center / contain no-repeat;
  width: 32px; height: 32px; flex-shrink: 0; color: transparent;
}
.mh-brand-mark > span { display: none; }
.mh-brand b { color: var(--mh-red); }
.mh-search {
  height: 44px;
  background: #ffffff0d;
  border: 1px solid var(--mh-border-strong);
  transition: background-color .15s ease, border-color .15s ease;
}
.mh-search:hover { background: #ffffff12; }
.mh-search:focus-within { background: #0a0a0c; border-color: #ffffff40; }
.mh-search input { font-size: 15px; padding-left: 20px; }
.mh-search input::placeholder { color: var(--mh-muted); }
.mh-search button[type=submit] { width: 64px; background: #ffffff10; border-left: 1px solid var(--mh-border-strong); color: var(--mh-text); }
.mh-search button[type=submit]:hover { background: #ffffff1c; }
.wx-voice { width: 44px; color: var(--mh-text); }
.wx-voice:hover { background: #ffffff10; }
.mh-create {
  background: var(--mh-text); color: #0a0a0c; font-weight: 700; padding: 9px 16px;
}
.mh-create:hover { background: #fff; }
.mh-create svg { stroke: #0a0a0c; }
.mh-account { background: linear-gradient(135deg, #ff2d46, #ff7a45); color: #fff; box-shadow: 0 0 0 2px #0a0a0c, 0 0 0 3px #ffffff24; }
.mh-signin {
  color: var(--mh-text); border: 1px solid var(--mh-border-strong); border-radius: 999px; padding: 8px 16px; font-weight: 650;
}
.mh-signin:hover { background: #ffffff10; }

.mh-sidebar { background: var(--mh-bg); border-right: 0; padding-top: 14px; }
.mh-nav-link {
  min-height: 42px; border-radius: 12px; color: var(--mh-text); font-weight: 520; font-size: 14px; gap: 18px;
  transition: background-color .15s ease, color .15s ease;
}
.mh-nav-link svg { width: 22px; height: 22px; stroke-width: 1.7; opacity: .92; }
.mh-nav-link:hover { background: #ffffff0f; }
.mh-nav-link.is-active { background: #ffffff14; color: #fff; font-weight: 680; box-shadow: none; }
.mh-nav-link.is-active svg { color: var(--mh-red); stroke: var(--mh-red); opacity: 1; }
.mh-nav-divider { border-color: var(--mh-border); margin: 12px 6px; }
.mh-nav-label { color: var(--mh-text); font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 4px 14px 6px; }
.mh-sidebar footer { color: var(--mh-faint); font-size: 12px; }
.mh-live-dot { background: var(--mh-red); box-shadow: 0 0 0 3px #ff2d4626; }

.mh-mobile-nav { background: #0a0a0cf2; backdrop-filter: blur(18px); border-top: 1px solid var(--mh-border); }

/* 3 · Controls ----------------------------------------------------------------------- */
.mh-chips { gap: 10px; padding: 6px 0; border: 0; background: none; border-radius: 0; }
.mh-chip, .wx-subnav a {
  min-height: 34px; padding: 7px 14px; border-radius: 10px; border: 0;
  background: #ffffff14; color: var(--mh-text); font-size: 14px; font-weight: 600;
}
.mh-chip:hover, .wx-subnav a:hover { background: #ffffff24; }
.mh-chip.is-active, .wx-subnav a.is-active, .wx-subnav a[aria-current="page"] { background: var(--mh-text); color: #0a0a0c; }
.wx-subnav { gap: 10px; }
.wx-button, .mh-secondary, .mh-load-more {
  min-height: 38px; border: 0; border-radius: 999px; background: #ffffff14; color: var(--mh-text); font-weight: 650;
}
.wx-button:hover, .mh-secondary:hover:not(:disabled), .mh-load-more:hover:not(:disabled) { background: #ffffff24; }
.wx-primary-button, .wx-subscribe:not([aria-pressed=true]) { background: var(--mh-text); color: #0a0a0c; }
.wx-primary-button:hover, .wx-subscribe:not([aria-pressed=true]):hover { background: #fff; }
.wx-subscribe[aria-pressed=true] { background: #ffffff14; color: var(--mh-text); }
.mh-verified { background: none !important; color: var(--mh-muted) !important; font-size: 12px; }
.mh-error { background: #3a0f17; color: #ffd9de; border-radius: var(--mh-radius-panel); }
.mh-empty { background: var(--mh-surface); border: 1px dashed var(--mh-border-strong); border-radius: var(--mh-radius-panel); padding: clamp(24px, 5vw, 48px) 18px; }
.mh-empty a { color: var(--mh-accent); }
.mh-toast, .wx-toast { background: #f5f5f7; color: #0a0a0c; border-radius: 12px; font-weight: 600; box-shadow: var(--mh-shadow); }

/* 4 · Discovery: hub, chips, cards ---------------------------------------------------- */
.md-feed-header { align-items: center; padding-top: 18px; }
.md-feed-heading h1 { font-family: var(--mh-display); font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.04em; font-weight: 800; }
.md-feed-heading p { color: var(--mh-muted); }
.md-spotlight { border-radius: 24px; border: 1px solid var(--mh-border); overflow: hidden; box-shadow: var(--mh-shadow); }
.md-spotlight h2 { font-family: var(--mh-display); letter-spacing: -.035em; }
.md-controls { background: none; border: 0; padding: 0; }
.md-tools { gap: 10px; }
.md-filter, .md-queue-toggle, .md-filter-toggle, .md-refresh { border-radius: 999px; background: #ffffff0d; border: 1px solid var(--mh-border); }
.mh-section { margin-top: 36px; }
.mh-section-heading { gap: 12px; margin-bottom: 16px; }
.mh-section-heading h2 { font-family: var(--mh-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.mh-section-heading a { color: var(--mh-text); font-weight: 650; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: #ffffff0f; }
.mh-section-heading a:hover { background: #ffffff1f; }
.mh-video-grid { gap: 34px 18px; }
.mh-card-media, .wx-video-thumb, .watch-discovery-video-poster {
  border-radius: var(--mh-radius-card); background: #18181c; box-shadow: none;
  transition: border-radius .2s ease, transform .2s ease;
}
.mh-card:hover .mh-card-media, .wx-video-card:hover .wx-video-thumb { border-radius: 8px; }
.mh-card-media img, .wx-video-thumb img { transition: transform .35s ease; }
.mh-card:hover .mh-card-media img { transform: scale(1.03); }
.mh-card-duration, .wx-video-thumb > span, .watch-discovery-video-poster small {
  background: #000c; color: #fff; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 2px 6px;
}
.mh-card-type { background: var(--mh-red); color: #fff; border-radius: 6px; font-weight: 800; letter-spacing: .04em; }
.mh-card-details { margin-top: 12px; gap: 12px; }
.mh-card-title, .wx-video-card h3 { font-size: 15.5px; line-height: 1.35; font-weight: 650; letter-spacing: -.005em; }
.mh-card-title a, .wx-video-title { overflow-wrap: anywhere; }
.mh-card-author, .wx-card-creator { color: var(--mh-muted); font-size: 14px; }
.mh-card-author:hover, .wx-card-creator:hover { color: var(--mh-text); }
.mh-card-stats, .wx-video-card small { color: var(--mh-muted); font-size: 13px; }
.mh-card { scroll-margin-top: calc(var(--mh-header) + 80px); }
.md-card-tools button { border-radius: 999px; background: #ffffff0f; }
.wx-hover-preview { border-radius: 8px; }

/* 5 · Watch page --------------------------------------------------------------------- */
.wx-main { padding-top: calc(var(--mh-header) + 22px); }
.wx-watch-layout { grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 420px); gap: 28px; }
.wx-stage { border-radius: 16px; border: 0; box-shadow: none; background: #000; }
.wxp-ambient.is-on { opacity: .45; }
.wx-owner { border-radius: 14px; background: #ffffff0a; border: 1px solid var(--mh-border); }
.wx-player-tools { padding: 10px 0 0; min-height: 0; gap: 8px; }
.wx-player-tools > div { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wx-player-tools button, .wx-player-tools .wx-speed, .wxp-gear {
  min-height: 32px; padding: 6px 12px; border: 0; border-radius: 999px; background: #ffffff10; color: var(--mh-text); font-size: 12.5px; font-weight: 650;
}
.wx-player-tools button:hover, .wxp-gear:hover { background: #ffffff20; }
.wx-player-tools .wx-speed select { color: var(--mh-text); font-weight: 650; }
.wx-player-tools button[aria-pressed=true] { background: #ff2d4626; color: #ff8a99; }
#wx-playback-status { color: var(--mh-muted); font-size: 12px; }
.wxp-menu { background: #1d1d22; border-color: var(--mh-border-strong); border-radius: 16px; }
.wxp-strip__track { background: #ffffff0a; }
.wxp-strip__heat path { fill: #ffffff33; }
.wxp-strip__progress { background: var(--mh-red); }

.wx-video-title {
  margin: 14px 0 10px; font-family: var(--mh-display); font-size: clamp(1.25rem, 1.65vw, 1.6rem);
  font-weight: 750; line-height: 1.22; letter-spacing: -.02em;
}
.wx-byline { gap: 12px 16px; padding: 0; align-items: center; }
.wx-creator strong { font-size: 16px; font-weight: 700; }
.wx-creator small { color: var(--mh-muted); font-size: 12.5px; }
.wx-avatar { width: 42px; height: 42px; }
.wx-subscribe { min-height: 38px; padding: 0 18px; font-weight: 700; }
.wx-actions { gap: 8px; }
.wx-actions .wx-button { padding: 0 16px; }
.wx-actions button[aria-pressed=true] { background: #ff2d4626; color: #ff8a99; }
.wxp-ask { background: linear-gradient(135deg, #ff2d46 0%, #ff7a45 100%) !important; color: #fff !important; border: 0 !important; }
.wxp-ask:hover { filter: brightness(1.08); }
.wx-more > nav { background: #1d1d22; border: 1px solid var(--mh-border-strong); border-radius: 14px; box-shadow: var(--mh-shadow); }
.wx-more:not([open]) > nav { display: none; }
.wx-more > nav { min-width: min(200px, calc(100vw - 24px)); max-width: calc(100vw - 24px); transform: translateX(var(--wx-menu-offset, 0px)); }

.wx-description { margin-top: 16px; background: #ffffff0d; border: 0; border-radius: 14px; padding: 14px 16px; }
.wx-description:hover { background: #ffffff14; }
.wx-description summary { font-size: 14px; font-weight: 700; color: var(--mh-text); }
.wx-description summary span span { color: var(--mh-muted); }
.wx-description-prompt { color: var(--mh-text); font-weight: 700; }
.wx-description p { font-size: 14px; line-height: 1.6; color: #dcdce2; }
.wx-chapters { margin-top: 16px; }
.wx-chapters button { border-radius: 12px; background: #ffffff0a; }
.wx-comments { margin-top: 28px; }
.wx-comments h2, .wx-aside-title h2, .wx-pulse-discovery h2, .wx-channel-tools h2 {
  font-family: var(--mh-display); letter-spacing: -.025em; font-weight: 800;
}
.wx-comments h2 { font-size: 1.25rem; }
.wx-composer textarea { background: transparent; border: 0; border-bottom: 1px solid var(--mh-border-strong); border-radius: 0; padding: 8px 2px; }
.wx-composer textarea:focus { border-bottom-color: var(--mh-text); outline: none; }

.wx-recommendations { background: none; border: 0; padding: 0; }
.wx-aside-title h2 { font-size: 1.15rem; }
.wx-video-card.is-compact { grid-template-columns: 168px minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.wx-video-card.is-compact h3 { font-size: 14px; }
.wx-pulse-discovery { border-top: 1px solid var(--mh-border); padding-top: 18px; }
.wx-discover-link, .wx-text-link { color: var(--mh-accent); font-weight: 650; }
.rv-watch-ad { background: #ffffff08; border-color: var(--mh-border); border-radius: 16px; }
.rv-watch-ad__label { color: var(--mh-faint); }

/* 6 · Channel ------------------------------------------------------------------------ */
.wx-channel-banner { border: 0; border-radius: 22px; background: radial-gradient(ellipse at 80% 20%, #ff2d4640 0, transparent 55%), radial-gradient(ellipse at 10% 90%, #ff7a4526 0, transparent 50%), #141418; }
.wx-channel-banner strong, .wx-channel-identity h1 { font-family: var(--mh-display); letter-spacing: -.04em; }
.wx-channel-identity h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.wx-channel-identity p { color: var(--mh-muted); }
.wx-channel-avatar { box-shadow: 0 0 0 4px var(--mh-bg); }
.wx-channel-tabs { background: transparent; border-bottom: 1px solid var(--mh-border); border-top: 0; }
.wx-channel-tabs a { color: var(--mh-muted); font-weight: 650; font-size: 15px; }
.wx-channel-tabs a[aria-current=page] { color: var(--mh-text); border-color: var(--mh-text); }
.wx-channel-search input { min-height: 38px; border-radius: 999px; border: 1px solid var(--mh-border-strong); background: #ffffff0a; color: var(--mh-text); padding: 0 16px; font: inherit; min-width: min(260px, 60vw); }
.wx-channel-tools form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* 7 · Search (Search, Trending, For you) --------------------------------------------- */
body.wx-search-page { background: var(--mh-bg); }
.wx-search-page .watch-search-heading span, .wx-search-page .watch-search-results-heading > div > span { color: var(--mh-accent); }
.wx-search-page .watch-search-heading h1 { font-family: var(--mh-display); font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.04em; }
.wx-search-page .watch-search-heading p { color: var(--mh-muted); max-width: 60ch; }
.wx-search-page .watch-search-form { background: #ffffff08; border: 1px solid var(--mh-border); border-radius: 18px; }
.wx-search-page .watch-search-form input, .wx-search-page .watch-search-form select {
  background: #0a0a0c; border: 1px solid var(--mh-border-strong); border-radius: 12px; color: var(--mh-text);
}
.wx-search-page .watch-search-form button[type=submit] { background: var(--mh-text); color: #0a0a0c; border-radius: 999px; font-weight: 750; }
.wx-search-page .watch-search-results-heading h2 { font-family: var(--mh-display); letter-spacing: -.03em; }
/* Results read as a list, like a search engine: thumbnail left, details right. */
.wx-search-page .watch-search-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.wx-search-page .watch-discovery-video-card {
  display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 18px; align-items: start;
  background: none; border: 0; padding: 0;
}
.wx-search-page .watch-discovery-video-poster { aspect-ratio: 16/9; overflow: hidden; position: relative; display: block; }
.wx-search-page .watch-discovery-video-poster img { width: 100%; height: 100%; object-fit: cover; }
.wx-search-page .watch-discovery-video-poster > span { display: none; }
.wx-search-page .watch-discovery-video-poster small { position: absolute; right: 8px; bottom: 8px; }
.wx-search-page .watch-discovery-video-copy h2 { font-size: 18px; line-height: 1.3; font-weight: 650; margin: 2px 0 8px; font-family: var(--mh-body); letter-spacing: 0; }
.wx-search-page .watch-discovery-video-meta { color: var(--mh-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.wx-search-page .watch-discovery-video-copy p { color: var(--mh-muted); font-size: 13px; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-search-channel { background: #ffffff08; border-color: var(--mh-border); }
.wx-search-channel b { background: var(--mh-text); color: #0a0a0c; }
.wx-suggest { background: #1d1d22; border-color: var(--mh-border-strong); }

/* 8 · Collections + standalone tool pages adopt the same surfaces ----------------------- */
body.wx-chrome-adopted, body.wx-legacy-page { background: var(--mh-bg); font-family: var(--mh-body); }
body.wx-chrome-adopted main#watch-main h1, body.wx-legacy-page main.watch-content h1 {
  font-family: var(--mh-display); letter-spacing: -.04em;
}
body.wx-chrome-adopted main#watch-main h2, body.wx-legacy-page main.watch-content h2 { font-family: var(--mh-display); letter-spacing: -.025em; }

/* 9 · Responsive (sidebar behaviour carried over from the previous layer) -------------- */
@media (min-width: 761px) {
  body.media-hub { --mh-header: 64px; }
  .mh-compact .mh-nav-link span:not(.mh-live-dot) {
    display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media (min-width: 1191px) { body.media-hub:not(.mh-compact) { --mh-sidebar: 232px; } }
@media (min-width: 761px) and (max-width: 980px) {
  body.mh-tablet-expanded { --mh-sidebar: 196px; }
  .mh-tablet-expanded .mh-sidebar { padding-inline: 12px; }
  .mh-tablet-expanded .mh-nav-link { justify-content: flex-start; padding: 10px; }
  .mh-tablet-expanded .mh-nav-link span:not(.mh-live-dot) { display: inline; }
  .mh-tablet-expanded .mh-nav-link .mh-live-dot { display: inline-block; }
  .mh-tablet-expanded .mh-nav-label, .mh-tablet-expanded .mh-sidebar footer { display: block; }
}
@media (max-width: 1100px) {
  .wx-watch-layout { grid-template-columns: minmax(0, 1fr); }
  .wx-video-card.is-compact { grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .mh-topbar { grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; z-index: 120; }
  .mh-brand-group, .mh-brand, .mh-search { min-width: 0; }
  .mh-search input { min-width: 0; }
  .mh-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
  .mh-sidebar { visibility: hidden; z-index: 110; }
  .mh-backdrop { z-index: 105; }
  .mh-menu-open .mh-sidebar { visibility: visible; }
  .mh-create { padding: 8px 10px; }
  .mh-mobile-nav { min-height: calc(62px + env(safe-area-inset-bottom)); gap: 2px; padding-inline: 5px; }
  .mh-mobile-nav a { flex: 1 1 0; min-width: 0; min-height: 44px; padding-inline: 3px; justify-content: center; border-radius: 10px; color: var(--mh-muted); font-size: .625rem; }
  .mh-mobile-nav a[aria-current=page] { color: var(--mh-text); background: none; }
  .mh-mobile-nav a[aria-current=page] svg { stroke: var(--mh-red); }
  .mh-mobile-nav a svg { height: 22px; width: 22px; }
  .mh-section-heading h2 { font-size: 1.2rem; }
  .mh-toast, .wx-toast { width: calc(100vw - 32px); max-width: 480px; bottom: calc(78px + env(safe-area-inset-bottom)); }
  .wx-main { padding-top: calc(var(--mh-header) + 10px); padding-bottom: 92px; }
  .wx-stage { border-radius: 12px; margin-inline: -4px; }
  .wx-video-title { font-size: 1.2rem; }
  .wx-actions { margin-left: 0; width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .wx-actions::-webkit-scrollbar { display: none; }
  .wx-actions > * { flex: 0 0 auto; }
  .wx-video-card.is-compact { grid-template-columns: 42% minmax(0, 1fr); }
  .wx-search-page .watch-discovery-video-card { grid-template-columns: 1fr; gap: 10px; }
  .wx-chip-row, .mh-chips { scrollbar-width: none; }
}
@media (max-width: 380px) {
  .mh-topbar { padding-inline: 7px; }
  .mh-brand-group, .mh-account-group { gap: 4px; }
  .mh-brand { gap: 5px; font-size: .9375rem; }
  .mh-brand-mark { width: 26px; height: 26px; }
  .mh-topbar .mh-icon-button, .mh-topbar .mh-create { width: 34px; height: 44px; }
  .mh-topbar .mh-create { justify-content: center; padding: 0; }
  .mh-chips { gap: 6px; }
  .mh-chip { padding-inline: 10px; }
}

/* 10 · Motion ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .media-hub * { scroll-behavior: auto; }
  .mh-card-media, .mh-card-media img, .wx-video-thumb, .wx-video-thumb img { transition: none; }
}

/* 11 · Discover topic bar: sticky under the header, scrolls sideways ------------------- */
.mh-feed .md-feed-header { display: block; padding-top: 22px; }
.wx-topic-bar {
  position: sticky; top: var(--mh-header); z-index: 60; margin: 14px -32px 6px; padding: 10px 32px;
  background: #0a0a0ce8; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap;
}
.wx-topic-bar::-webkit-scrollbar { display: none; }
.wx-topic-bar .mh-chip { flex: 0 0 auto; }
.wx-topic-bar__divider { flex: 0 0 1px; align-self: stretch; margin: 4px 2px; background: var(--mh-border-strong); }
@media (max-width: 1100px) { .wx-topic-bar { margin-inline: -24px; padding-inline: 24px; } }
@media (max-width: 760px) { .wx-topic-bar { margin-inline: -16px; padding-inline: 16px; } }

/* 12 · Studio "Automatic features" panel -------------------------------------------- */
.wx-auto-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.wx-auto-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.wx-auto-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #ff2d461f; color: #ff8a99; font: 800 12px/1 var(--mh-body); }
.wx-auto-list strong { display: block; font-size: 14px; }
.wx-auto-list small { display: block; margin-top: 3px; color: var(--mh-muted); font-size: 12.5px; line-height: 1.5; }
.wx-auto-list small a { color: var(--mh-accent); }
.wx-auto-note { margin: 16px 0 0; padding: 10px 12px; border-radius: 12px; background: #ffffff0a; color: var(--mh-muted); font-size: 12.5px; }
.wx-auto-cta { display: inline-flex; margin-top: 18px; padding: 10px 18px; border-radius: 999px; background: var(--mh-text); color: #0a0a0c !important; font-weight: 750; font-size: 13px; text-decoration: none; }
.rv-watch-ad--inline { max-width: 780px; margin-inline: auto; }
@media (max-width: 760px) {
  #wx-theater { display: none; }
  .wx-player-tools > div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; width: 100%; }
  .wx-player-tools > div > * { flex: 0 0 auto; }
  body.wx-legacy-page .studio-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.wx-legacy-page .studio-metrics > * { padding: 14px; min-height: 0; }
}

/* =====================================================================================
   13 · CALM LAYOUT (2026-11-22, round 2)
   Every page body now follows the side menu: plain text, modest sizes, flat surfaces,
   no oversized headlines, kicker labels, glowing hero panels or gradient text.
   Applies to all Watch mains: chrome pages, standalone tool pages and older shell pages.
   ===================================================================================== */
body.media-hub main { --calm-surface: #ffffff0a; --calm-surface-hover: #ffffff12; }

/* Headings: one scale for the whole site. */
body.media-hub main h1 {
  font-family: var(--mh-body) !important; font-size: 24px !important; line-height: 1.25 !important;
  font-weight: 700 !important; letter-spacing: -.01em !important; margin: 0 0 6px !important; max-width: none !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--mh-text) !important;
}
body.media-hub main h1 * { background: none !important; -webkit-text-fill-color: currentColor !important; }
body.media-hub main h2 {
  font-family: var(--mh-body) !important; font-size: 18px !important; line-height: 1.3 !important;
  font-weight: 700 !important; letter-spacing: -.005em !important;
}
body.media-hub main h1 + p, body.media-hub main h1 ~ p:first-of-type { font-size: 14px !important; color: var(--mh-muted) !important; max-width: 70ch; margin-top: 2px !important; }
.wx-video-title { font-size: 20px !important; line-height: 1.3 !important; margin: 12px 0 8px !important; }
.wx-channel-identity h1 { font-size: 32px !important; }

/* Kicker labels sitting right above a heading ("CREATOR CONTROL ROOM", "YOUR COLLECTIONS", …). */
body.media-hub main :is(span, p, small, div, strong, b):has(+ h1):not(:has(img, svg, a, button, input, select, video)),
body.media-hub main :is(span, small):has(+ h2):not(:has(img, svg, a, button, input, select, video)),
body.media-hub main .mh-eyebrow, body.media-hub main .wc-kicker { display: none !important; }

/* Hero / intro / heading blocks become plain page headers. */
body.media-hub main :is([class*="-hero"], [class*="-intro"], [class$="-heading"], .mh-page-heading, .md-feed-header):not(.wx-channel-banner) {
  background: none !important; border: 0 !important; box-shadow: none !important; min-height: 0 !important;
  padding-left: 0 !important; padding-right: 0 !important;
}
body.media-hub main :is([class*="-hero"], [class*="-intro"])::before,
body.media-hub main :is([class*="-hero"], [class*="-intro"])::after { display: none !important; }
body.media-hub main :is([class*="-hero"], [class*="-intro"]) { padding-top: 8px !important; padding-bottom: 8px !important; margin-bottom: 16px !important; }

/* Panels and cards: flat, quiet surfaces like the menu's hover state. */
body.media-hub main :is(.panel, [class*="-panel"], [class*="-empty"], [class*="metric"] > *, .channel-card, [class*="-section"]:not(section.mh-section):not(.wx-comments)) {
  background: var(--calm-surface) !important; border: 0 !important; border-radius: 12px !important; box-shadow: none !important;
}
body.media-hub main :is([class*="-empty"]) { text-align: center; }
body.media-hub main :not(video, iframe, input, textarea, select, button:focus-visible) { box-shadow: none !important; text-shadow: none !important; }

/* Buttons inside pages: neutral pills; red only for the main action. */
body.media-hub main :is(button, .button, a[class*="-button"], a[class*="button"]):not(.mh-chip):not(.wx-subscribe):not(.wxp-ask):not([class*="danger"]):not([class*="dropzone"]):not([class*="card"]):not([class*="thumb"]):not([class*="poster"]) { border-radius: 999px; }
body.media-hub main :is(button, a, input[type=submit])[class*="primary"]:not(.wx-subscribe):not(.wxp-ask),
body.media-hub main button[type=submit]:not([class*="danger"]):not(.wx-subscribe) {
  background: var(--mh-text) !important; color: #0a0a0c !important; border: 0 !important;
}

/* Form fields: one calm style. */
body.media-hub main :is(input[type=text], input[type=search], input[type=number], input:not([type]), textarea, select) {
  background: #ffffff0a !important; border: 1px solid var(--mh-border-strong) !important; border-radius: 10px !important; color: var(--mh-text) !important;
}
body.media-hub main label { color: var(--mh-muted); font-size: 13px; text-transform: none !important; letter-spacing: 0 !important; }

/* Stat tiles: small label, big number, no capitals. */
body.media-hub main [class*="metric"] > * { padding: 16px !important; }
body.media-hub main [class*="metric"] :is(span, small, p) { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; color: var(--mh-muted) !important; }

/* Ads sit in the page without a frame. */
.rv-watch-ad { background: none !important; border: 0 !important; padding: 0 !important; margin: 18px 0 !important; }
.rv-watch-ad__label { font-size: 11px !important; letter-spacing: .02em !important; text-transform: none !important; color: var(--mh-faint); margin-bottom: 6px; }
.rv-watch-ad--inline { max-width: none !important; }
.rv-watch-ad ins.roovet-ad { min-height: 0 !important; }

/* Discover: like a home feed — topic bar, then videos. No title block or giant featured banner. */
.mh-feed .md-feed-heading, .mh-feed #mh-spotlight { display: none !important; }
.mh-feed .md-feed-header { padding-top: 6px !important; }
.mh-feed .wx-topic-bar { margin-top: 0; }
.mh-feed .md-controls { margin-top: 8px; }
.mh-feed .md-tools { justify-content: flex-end; }
.mh-feed .md-filter { max-width: 360px; }
.mh-feed .md-results { color: var(--mh-faint); font-size: 12px; }
.mh-section-heading h2 { font-size: 20px !important; }
.mh-section-heading a { background: none; padding: 6px 10px; color: var(--mh-muted); }
.mh-section-heading a:hover { background: #ffffff10; color: var(--mh-text); }

/* Search: results first. The page title and long description give way to a compact filter row. */
.wx-search-page .watch-search-heading { display: none !important; }
.wx-search-page .watch-search-form {
  display: flex !important; flex-wrap: wrap; align-items: end; gap: 10px !important; padding: 0 !important; background: none !important; border: 0 !important; margin-top: 4px;
}
.wx-search-page .watch-search-form > label { flex: 0 1 auto; display: grid; gap: 4px; font-size: 12px; min-width: 0; }
.wx-search-page .watch-search-form > label:first-child { flex: 1 1 260px; }
.wx-search-page .watch-search-form :is(input, select) { min-height: 38px; padding: 0 12px; font-size: 14px; }
.wx-search-page .watch-search-form button[type=submit] { min-height: 38px; padding: 0 20px; }
.wx-search-page .watch-search-check { padding-bottom: 9px; }
.wx-search-page .watch-search-results { margin-top: 22px; }
.wx-search-page .watch-search-results-heading h2 { font-size: 16px !important; color: var(--mh-muted); font-weight: 600 !important; }

/* Channel and profile banners: calm gradient, no glow. */
.wx-channel-banner { background: linear-gradient(120deg, #1d1d22, #141418 60%, #2a1418) !important; min-height: 160px; }
.wx-channel-banner > div > span { display: none; }

@media (max-width: 760px) {
  body.media-hub main h1 { font-size: 20px !important; }
  .wx-channel-identity h1 { font-size: 24px !important; }
  .wx-search-page .watch-search-form > label { flex: 1 1 45%; }
}

.wx-search-page .watch-search-results-heading > :not(div) { display: none !important; }
body.media-hub main [class*="dropzone"] { border-radius: 16px !important; }
/* No shouty capitals anywhere in page bodies (badges excepted). */
body.media-hub main :is(span, small, p, dt, th, label, strong, b, div, h3, h4, a):not(.mh-card-type):not(.wxp-badge) {
  text-transform: none !important; letter-spacing: normal !important;
}
/* Profile page: drop the red glows behind its cards. */
body.wx-page-profile main :is(section, article, aside, header, div):not([class*="progress"]):not([class*="bar"]):not([class*="avatar"]) { background-image: none !important; }
body.wx-page-profile main [class*="hero"] { background-color: transparent !important; }
/* Search filters fold away on phones (opened automatically on wider screens). */
.wx-search-filters > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: #ffffff14; font-weight: 650; font-size: 14px; cursor: pointer; list-style: none; }
.wx-search-filters > summary::-webkit-details-marker { display: none; }
.wx-search-filters > summary::before { content: "☰"; font-size: 12px; opacity: .8; }
.wx-search-filters[open] > summary { margin-bottom: 12px; }
@media (min-width: 761px) { .wx-search-filters > summary { display: none; } }
.wx-search-page .watch-search-results-heading > div + * { display: none !important; }
body.wx-page-profile main :is(section, article, aside, div)::before, body.wx-page-profile main :is(section, article, aside, div)::after { background: none !important; box-shadow: none !important; }
body.media-hub main main { background: none !important; padding-left: 0 !important; padding-right: 0 !important; }
