/* The glass look on the rest of NoRepTV (Nov 16 2026, the owner: "What would the remainder of the platform look like if
   we did this?"). Training's own glass is static/training_glass.css; this is the same language for every other page:
   black with his crimson glowing low, bars and panels of dark glass, pill buttons, the Bold line icons. OFF for everyone:
   only the owner sees it, with ?siteglass=1 (training_look.site_glass()). Dark only, like Training's glass. Nothing
   moves on a card (his Nov 16 call on the diagonal light). */

[data-site-glass] {
  color-scheme: dark;
  --bg: #050506; --surface: rgba(255, 255, 255, 0.07); --surface-2: rgba(255, 255, 255, 0.10); --hover: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.11); --text: #F5F5F7; --text-2: rgba(235, 235, 245, 0.72); --text-3: rgba(235, 235, 245, 0.55);
  --sg-tint: rgba(22, 22, 26, 0.50); --sg-pop: #141418; --sg-edge: rgba(255, 255, 255, 0.30); --sg-edge-2: rgba(255, 255, 255, 0.09);
  --sg-r: 20px; --sg-blur: 22px;
}

/* ---------------------------------------------------------------- the stage */
[data-site-glass] body { background: #050506; color: var(--text); }
[data-site-glass] body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 34vmax at 78% 18%, rgba(204, 0, 34, 0.40), rgba(204, 0, 34, 0) 70%),
    radial-gradient(38vmax 30vmax at 12% 72%, rgba(140, 4, 26, 0.34), rgba(140, 4, 26, 0) 70%),
    radial-gradient(30vmax 26vmax at 60% 96%, rgba(225, 27, 34, 0.14), rgba(225, 27, 34, 0) 70%),
    #050506;
}
[data-site-glass] main { background: transparent; }

/* ---------------------------------------------------------------- the bars */
[data-site-glass] .topbar {
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.90), rgba(10, 10, 12, 0.76));
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 -1px 0 0 rgba(255, 255, 255, 0.08); border: 0;
}
@media (min-width: 720px) {
  [data-site-glass] .nav-column { background: linear-gradient(180deg, rgba(10, 10, 12, 0.55), rgba(10, 10, 12, 0.30)); border: 0;
    -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.06); }
}
[data-site-glass] .nav-item { border-radius: 14px; }
[data-site-glass] .nav-item[aria-current="page"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 0 var(--sg-edge), inset 0 0 0 1px var(--sg-edge-2);
}
@media (max-width: 767px) {
  [data-site-glass] .tabbar {
    left: 14px; right: 14px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); height: var(--tabbar-h); padding-bottom: 0; border-radius: 999px; border: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)), rgba(18, 18, 22, 0.82);
    -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.09), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  }
}

/* ---------------------------------------------------------------- pills: chips, buttons, the search box */
[data-site-glass] :is(.chip, .topic-tab, .btn, .icon-btn, .btn-create, .react-group, .btn-sub, .more-btn, .feed-tab) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  border-color: transparent; color: var(--text);
}
[data-site-glass] .icon-btn { background: none; box-shadow: none; }
[data-site-glass] :is(.chip, .topic-tab, .btn, .btn-create, .btn-sub, .more-btn):hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09)); }
[data-site-glass] :is(.chip, .topic-tab, .feed-tab)[aria-current="page"], [data-site-glass] :is(.chip, .topic-tab)[aria-pressed="true"] { background: #fff; color: #000; box-shadow: none; }
[data-site-glass] :is(.btn-primary, .btn-accent, .btn-sub[aria-pressed="false"], .btn-sub:not([aria-pressed])) {
  background: linear-gradient(180deg, rgba(255, 86, 104, 0.95), rgba(204, 0, 34, 0.92) 55%, rgba(170, 0, 28, 0.95)); color: #fff;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 26px -12px rgba(204, 0, 34, 0.9);
}
[data-site-glass] .btn-ghost { background: none; box-shadow: none; }
[data-site-glass] .search { background: rgba(255, 255, 255, 0.07); border-color: transparent; border-radius: 999px;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
[data-site-glass] .search :is(input, button) { background: transparent; border-color: transparent; }

/* ---------------------------------------------------------------- panels: boxes that sit on the page */
[data-site-glass] :is(.desc-box, .lb-panel, .you-links, .preview-card, .signin-prompt, .rights-box, .comments-card, .auth-card, .post-tile,
    .new-card, .panel, .settings-card, .plus-card, .card-featured .card-body) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035) 38%, rgba(255, 255, 255, 0.02)), var(--sg-tint);
  -webkit-backdrop-filter: blur(var(--sg-blur)) saturate(175%); backdrop-filter: blur(var(--sg-blur)) saturate(175%);
  border-color: transparent; border-radius: var(--sg-r);
  box-shadow: inset 0 1px 0 0 var(--sg-edge), inset 0 0 0 1px var(--sg-edge-2), 0 18px 44px -24px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------------------------------------- things that open over the page: readable, never see-through */
/* (Nov 20 2026, the glass sweep found more that open over the page at the top bar's see-through --surface, 7% white: the
   ⋯ menus on Home's videos, on channels, posts and comments, the live chat's menus (Chat settings, a message's ⋯,
   React), a story's ⋯, the "Get the app" and notifications cards, and the drop-down lists of a few boxes. They're solid
   like the bell now.) */
[data-site-glass] :is(.menu-pop, .create-pop, .create-sheet, .tools-pop, .save-pop, .bell-panel, .sg, dialog, .toast, #toast,
    .more-menu, .feed-menu, .chat-menu, .chat-react-menu, .st-menu, .app-prompt, .app-push, .same-as-results, .uv-city-list) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 40%), var(--sg-pop);
  -webkit-backdrop-filter: none; backdrop-filter: none;   /* (solid: an iPhone doesn't blur a panel inside the blurred top bar, and the page ghosted through) */
  border-color: transparent; box-shadow: inset 0 1px 0 0 var(--sg-edge), inset 0 0 0 1px var(--sg-edge-2), 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}
/* (Nov 20 2026, the glass sweep: the toast is drawn inverted, --text on --bg, so on this dark panel its words were
   --bg: black on black, "Saved to Watch later." unreadable on every page. Its words are light here, and its button's red
   is the red made for dark panels (--toast-action is the dark red made for the light toast: 3.1:1 here).) */
[data-site-glass] :is(.toast, #toast) { color: var(--text); --toast-action: var(--accent-text); }
/* (Nov 20 2026, the glass sweep: two bars over moving pictures kept the 7% --surface too: a featured comment over the live
   video, and the MiniPlayer's bar over the page under it. Their own background is solid here; their edges stay theirs.) */
[data-site-glass] :is(.feat-banner, .mp-info), [data-site-glass] .mp::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 40%), var(--sg-pop);
}
@media (max-width: 719px) { [data-site-glass] .mp-info { background: transparent; } }   /* (a phone's bar is .mp::before) */
@media (max-width: 719px) { [data-site-glass] .nav-column { background: rgba(14, 14, 17, 0.92); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); } }

/* ---------------------------------------------------------------- boxes you type in */
[data-site-glass] main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), textarea, select) {
  background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); color: var(--text);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.10);
}
/* (Nov 20 2026, the glass sweep: the rule above outweighs every focus style, so a box you typed in showed no sign of focus at
   all: neither the site's own ring on a form's fields (.field) nor this look's brighter edge. Both win again.) */
[data-site-glass] main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), textarea, select):focus-visible {
  border-color: rgba(255, 255, 255, 0.45);
}
[data-site-glass] main .field :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), textarea, select):focus {
  border-color: var(--focus); box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.10), 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent);
}

/* ---------------------------------------------------------------- pictures: a softer corner, a hairline of light */
[data-site-glass] :is(.thumb, .top10-thumb, .post-tile-photo) { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-site-glass] :is(.desc-box, .lb-panel, .you-links, .preview-card, .menu-pop, .create-pop, .tools-pop, .save-pop, dialog) { background: #17171A; }
}
@media (forced-colors: active) {
  [data-site-glass] body::before { display: none; }
}

/* the like and dislike pair is one pill, not two */
[data-site-glass] .react-group .btn { background: none; box-shadow: none; }
/* phones: Home's big sport tabs stay words with the red line under the picked one (the owner's Nov 10 pick), never boxes */
@media (max-width: 719px) {
  [data-site-glass] .topic-tabs .topic-tab, [data-site-glass] .topic-tabs .topic-tab:hover { background: none; box-shadow: none; }
  [data-site-glass] .topic-tabs .topic-tab:is([aria-current="page"], [aria-current="true"]) { background: none; color: var(--text); }
}
[data-site-glass] .react-group { border-radius: 999px; overflow: hidden; }
/* phones: the line of views and date under a video's title stays a plain line (it's a row to tap, not a box) */
@media (max-width: 719px) {
  [data-site-glass] .video-page .desc-box:not([open]):not(.is-open) { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
}
