/* gab.ae watch page (/clip/<name>/), 2026-10-14 -- same look as the homepage (Roboto, YouTube-like layout) */
:root {
  --bg: #ffffff; --raised: #f2f2f2; --hover: #e5e5e5; --text: #0f0f0f; --text2: #606060; --line: #e5e5e5;
  --search-border: #c6c6c6; --search-btn: #f8f8f8; --red: #ff0033; --link: #065fd4; --on: #0f0f0f; --on-text: #fff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f; --raised: #272727; --hover: #3f3f3f; --text: #f1f1f1; --text2: #aaaaaa; --line: #3f3f3f;
    --search-border: #303030; --search-btn: #222222; --link: #3ea6ff; --on: #f1f1f1; --on-text: #0f0f0f;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 400 14px/1.4 Roboto, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; width: 24px; height: 24px; fill: currentColor; }

/* masthead */
.top { position: sticky; top: 0; z-index: 10; height: 56px; background: var(--bg); display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.top::after { content: ""; width: 104px; flex: none; }
.logo { display: flex; align-items: center; gap: 4px; height: 56px; padding: 0 14px 0 16px; flex: none; }
.logo .mark { width: 30px; height: 21px; border-radius: 6px; background: var(--red); display: grid; place-items: center; }
.logo .mark i { width: 9px; height: 9px; border-radius: 50%; background: #fff; display: block; }
.logo b { font: 700 20px/1 Roboto, Arial, sans-serif; letter-spacing: -.8px; }
.logo sup { font-size: 10px; color: var(--text2); margin: -12px 0 0 2px; }
.search { flex: 0 1 600px; margin: 0 auto; display: flex; height: 40px; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--search-border); border-right: 0; border-radius: 40px 0 0 40px;
                padding: 0 4px 0 16px; font: 400 16px Roboto, Arial, sans-serif; background: var(--bg); color: var(--text); outline: none; }
.search input:focus { border-color: #1c62b9; }
.search button { width: 64px; height: 40px; border: 1px solid var(--search-border); border-radius: 0 40px 40px 0; background: var(--search-btn); display: grid; place-items: center; }

/* layout: player column + Up next */
.watch { display: flex; gap: 24px; max-width: 1754px; margin: 0 auto; padding: 24px 24px 48px; }
.primary { flex: 1; min-width: 0; }
.secondary { width: 402px; flex: none; }
.player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.vtitle { margin: 12px 0 0; font: 700 20px/28px Roboto, Arial, sans-serif; overflow-wrap: anywhere; }

.owner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ch { display: flex; align-items: center; gap: 12px; }
.av { width: 40px; height: 40px; border-radius: 50%; background: #c2185b; color: #fff; display: grid; place-items: center; font: 500 18px Roboto, sans-serif; flex: none; }
.ch b { display: block; font: 500 16px/22px Roboto, sans-serif; }
.ch em { display: block; font-style: normal; font-size: 12px; color: var(--text2); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { height: 36px; border-radius: 18px; background: var(--raised); display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; font-weight: 500; white-space: nowrap; }
.pill:hover { background: var(--hover); }
.pill svg { width: 22px; height: 22px; }
.seg { display: inline-flex; border-radius: 18px; background: var(--raised); overflow: hidden; }
.seg .pill { border-radius: 0; background: none; }
.seg .pill:hover { background: var(--hover); }
.seg .pill + .pill { border-left: 1px solid var(--line); }
.pill[aria-pressed="true"] svg { fill: var(--text); }
.pill[aria-pressed="true"] { color: var(--text); }
.pill .fill { display: none; }
.pill[aria-pressed="true"] .fill { display: block; }
.pill[aria-pressed="true"] .line { display: none; }

.desc { margin-top: 12px; background: var(--raised); border-radius: 12px; padding: 12px; }
.desc p { margin: 0; line-height: 20px; }
.desc .dmeta { font-weight: 500; margin-bottom: 4px; }

/* make me something (requests to the machines) */
.make { margin-top: 24px; }
.make h2 { margin: 0 0 4px; font: 700 18px/26px Roboto, sans-serif; }
.make .sub { margin: 0 0 12px; color: var(--text2); }
.make .sub a { color: var(--link); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--raised); font-weight: 500; }
.chip:hover { background: var(--hover); }
.chip[aria-expanded="true"] { background: var(--on); color: var(--on-text); }
.askbox { margin-top: 12px; display: grid; gap: 10px; max-width: 640px; }
.askbox textarea { font: 14px/1.4 Roboto, sans-serif; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--line);
                   padding: 6px 0; resize: vertical; outline: none; }
.askbox textarea:focus { border-bottom: 2px solid var(--text); }
.askbox .row { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.askbox .status { margin-right: auto; color: var(--text2); }
.btn { height: 36px; padding: 0 16px; border-radius: 18px; font-weight: 500; }
.btn:hover { background: var(--raised); }
.btn.go { background: #065fd4; color: #fff; }
.btn.go:hover { background: #0556bf; }
.btn:disabled { opacity: .5; cursor: default; }
.done { color: var(--text2); margin-top: 12px; }
.done a { color: var(--link); font-weight: 500; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Up next */
.nexth { margin: 0 0 12px; font: 500 16px/22px Roboto, sans-serif; }
.nexth .auto { float: right; font-size: 13px; color: var(--text2); font-weight: 400; }
.nx { display: flex; gap: 8px; margin-bottom: 8px; border-radius: 8px; }
.nx .th { position: relative; width: 168px; flex: none; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.nx .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx .dur { position: absolute; right: 4px; bottom: 4px; background: rgba(0,0,0,.8); color: #fff; font: 500 12px/1 Roboto, sans-serif; padding: 3px 4px; border-radius: 4px; }
.nx .mt { min-width: 0; padding-right: 8px; }
.nx h3 { margin: 0 0 4px; font: 500 14px/20px Roboto, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx p { margin: 0; font-size: 12px; line-height: 18px; color: var(--text2); }
.nx:hover h3 { color: var(--text); }
.toast { position: fixed; left: 24px; bottom: 24px; background: var(--on); color: var(--on-text); padding: 12px 16px; border-radius: 8px; opacity: 0;
         transform: translateY(8px); transition: .2s; pointer-events: none; z-index: 20; }
.toast.on { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .watch { flex-direction: column; }
  .secondary { width: 100%; }
}
@media (max-width: 656px) {
  .top { padding: 0 8px; gap: 4px; }
  .top::after, .logo sup { display: none; }
  .logo { padding: 0 8px 0 4px; }
  .search button { width: 48px; }
  .watch { padding: 0 0 40px; gap: 16px; }
  .player { border-radius: 0; }
  .vtitle, .owner, .desc, .make, .secondary { margin-left: 12px; margin-right: 12px; }
  .secondary { width: auto; }
  .vtitle { font-size: 18px; line-height: 26px; }
  .nx .th { width: 40%; }
}
