/* Shared by both extension sites. Keep the two copies of this file identical. */
:root {
  --bg: #0f1117;
  --card: #181b24;
  --line: #262a36;
  --text: #e8eaf0;
  --muted: #8b90a0;
  --ok: #30a46c;
  --warn: #f5a524;
  --hot: #ff4d6d;
  --a1: #7c5cff;
  --a2: #22d3ee;
  --glow1: rgba(124, 92, 255, .22);
  --glow2: rgba(34, 211, 238, .10);
}
html[data-theme="yt"] {
  --a1: #ff4d6d;
  --a2: #ff9f45;
  --glow1: rgba(255, 77, 109, .18);
  --glow2: rgba(255, 159, 69, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 12% -5%, var(--glow1), transparent 70%),
    radial-gradient(800px 600px at 100% 100%, var(--glow2), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.grad {
  background: linear-gradient(90deg, var(--a1), var(--a2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-weight: 600; text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); border-color: #3a3f50; }
.btn.primary { border: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); color: #0b0c10; }
.btn.coffee { border: 0; background: #ffdd00; color: #111; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.btn.soon { background: var(--card); border: 1px dashed #3a3f50; color: var(--muted); cursor: default; }
.btn.soon:hover { transform: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; margin: 0 0 18px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); color: #b5b9c7; margin: 0 0 26px; max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pills li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: rgba(24, 27, 36, .7); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } }

/* Popup replica */
.popup {
  width: 100%; max-width: 380px; margin: 0 auto; padding: 16px;
  background: #101219; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font-size: 14px; line-height: 1.4;
}
.popup-head { display: flex; align-items: center; justify-content: space-between; }
.popup-head .brand { font-size: 16px; }
.popup-head .brand img { width: 24px; height: 24px; border-radius: 6px; }
.power {
  width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--line); color: var(--muted);
}
.power.on { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; box-shadow: 0 0 22px var(--glow1); }
.power svg { width: 18px; height: 18px; }
.status { margin: 6px 0 10px; font-size: 13px; color: var(--muted); }
.status.on { color: var(--ok); }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plabel { color: var(--muted); font-weight: 600; }
.readout { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.readout.mid { color: var(--a2); }
.readout.hot { color: var(--hot); }
.readout.sm { font-size: 16px; }
.ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
.presets button { padding: 8px 0; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; }
.presets button.sel { border-color: var(--a1); color: var(--text); background: rgba(124, 92, 255, .14); }
.pwarn { margin: 10px 0 0; font-size: 12px; color: var(--warn); }
.psub { font-size: 12px; color: var(--muted); }
.pfoot { margin: 4px 2px 0; font-size: 12px; color: var(--muted); text-align: center; }

input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; margin: 12px 0 0;
  border-radius: 99px; outline-offset: 6px; cursor: pointer;
  background:
    linear-gradient(var(--line), var(--line)) right / calc(100% - var(--fill, 0%)) 100% no-repeat,
    linear-gradient(90deg, #7c5cff, #22d3ee 40%, #f5a524 75%, #ff4d6d);
}
input[type=range].bass {
  background:
    linear-gradient(var(--line), var(--line)) right / calc(100% - var(--fill, 0%)) 100% no-repeat,
    linear-gradient(90deg, #22d3ee, #7c5cff);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid #7c5cff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 4px solid #7c5cff; box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.switch {
  flex: none; width: 46px; height: 26px; border-radius: 99px; border: 0; padding: 0;
  background: #2a2e3b; position: relative; transition: background .15s;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .15s;
}
.switch[aria-checked="true"] { background: var(--a1); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* Level meter (Volume Booster demo) */
.meter { position: relative; height: 84px; display: flex; align-items: flex-end; gap: 3px; margin-top: 4px; }
.meter i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--a2), var(--a1)); transition: height .09s linear; }
.meter i.clip { background: var(--hot); }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed #3a3f50; }
.meter-cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.meter-cap b { font-weight: 600; color: var(--ok); }
.meter-cap b.bad { color: var(--hot); }

/* Sections */
section { padding: 64px 0; border-top: 1px solid rgba(38, 42, 54, .7); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; font-weight: 900; letter-spacing: -.015em; margin: 0 0 12px; }
.sub { color: #b5b9c7; max-width: 60ch; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feat { background: rgba(24, 27, 36, .8); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feat h3 { margin: 12px 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
.ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #0b0c10; }
.ico svg { width: 21px; height: 21px; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: rgba(24, 27, 36, .8); border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: #c9ccd8; font-size: 15.5px; }
.steps li::before { content: counter(s); display: block; font-size: 30px; font-weight: 900; line-height: 1; margin-bottom: 10px; background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

details { border: 1px solid var(--line); border-radius: 14px; background: rgba(24, 27, 36, .8); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 16px; color: #b5b9c7; font-size: 15.5px; }

.band { text-align: center; }
.band .sub { margin-left: auto; margin-right: auto; }
.band .cta { justify-content: center; }

footer { border-top: 1px solid rgba(38, 42, 54, .7); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* Privacy page */
.doc { max-width: 720px; padding: 24px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 900; line-height: 1.1; margin: 0 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 19px; font-weight: 700; letter-spacing: 0; margin: 26px 0 4px; }
.doc p { margin: 0 0 12px; color: #c9ccd8; }

/* Try-it demo (Distraction Blocker) */
.demo { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 12px; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tabs button[aria-selected="true"] { background: #2a2e3b; color: var(--text); }
.mock { border: 1px solid var(--line); border-radius: 16px; background: #0c0d12; overflow: hidden; font-size: 11px; color: var(--muted); min-height: 440px; }
.m-top { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.m-logo { width: 54px; height: 14px; border-radius: 4px; background: #2a2e3b; }
.m-search { flex: 1; max-width: 300px; height: 22px; margin: 0 auto; border-radius: 99px; border: 1px solid var(--line); }
.m-bell { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #2a2e3b; }
.m-bell::after { content: ""; position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); }
.m-avatar { width: 20px; height: 20px; border-radius: 50%; background: #3a3f50; }
.m-body { display: grid; grid-template-columns: 92px 1fr; }
.m-side { padding: 10px 8px; border-right: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.m-side span { padding: 5px 8px; border-radius: 7px; background: #15171f; }
.m-main { padding: 12px; min-width: 0; }
.m-chips { display: flex; gap: 6px; margin-bottom: 12px; overflow: hidden; }
.m-chips span { padding: 4px 12px; border-radius: 7px; background: #1c1f29; white-space: nowrap; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-vid .th { aspect-ratio: 16 / 9; border-radius: 8px; background: #1c1f29; }
.m-vid .ln { height: 6px; border-radius: 3px; background: #1c1f29; margin-top: 6px; }
.m-vid .ln.s { width: 60%; }
.m-tag { display: inline-block; margin-top: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(245, 165, 36, .16); color: var(--warn); font-weight: 600; }
.m-shelf { margin-top: 14px; }
.m-shelf-h, .m-h { font-weight: 700; color: #c9ccd8; margin-bottom: 8px; font-size: 12px; }
.m-shelf-h { color: var(--hot); }
.m-shorts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.m-shorts i { aspect-ratio: 9 / 16; border-radius: 8px; background: linear-gradient(180deg, rgba(255, 77, 109, .28), rgba(255, 159, 69, .14)); border: 1px solid rgba(255, 77, 109, .3); }
.m-calm { display: none; padding: 46px 12px; text-align: center; font-size: 14px; color: #c9ccd8; }
.m-watch { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; padding: 12px; }
.m-player { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; background: #1c1f29; display: grid; place-items: center; }
.m-player::before { content: ""; border-left: 22px solid #3a3f50; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.m-end { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 6px; }
.m-end i { width: 62px; aspect-ratio: 16 / 9; border-radius: 5px; background: #3a3f50; border: 1px solid #555b70; }
.m-auto { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.m-auto i { width: 22px; height: 12px; border-radius: 99px; background: var(--hot); }
.m-box { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.m-line { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.m-line::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #2a2e3b; }
.m-line::after { content: ""; flex: 1; height: 6px; border-radius: 3px; background: #1c1f29; }
.m-rel { display: grid; grid-template-columns: 70px 1fr; gap: 8px; margin-bottom: 8px; }
.m-rel .th { aspect-ratio: 16 / 9; border-radius: 6px; background: #1c1f29; }
.m-rel .ln { height: 6px; border-radius: 3px; background: #1c1f29; margin-top: 4px; }
.m-watch .m-shorts { grid-template-columns: repeat(3, 1fr); }
[hidden] { display: none !important; }
/* What each switch hides */
.mock[data-shorts] .x-shorts, .mock[data-feed] .x-feed, .mock[data-related] .x-related,
.mock[data-comments] .x-comments, .mock[data-endcards] .x-endcards, .mock[data-chips] .x-chips,
.mock[data-explore] .x-explore, .mock[data-bell] .x-bell, .mock[data-chat] .x-chat,
.mock[data-promo] .x-promo { display: none; }
.mock[data-feed] .m-calm { display: block; }
.mock[data-autoplay] .m-auto i { background: #2a2e3b; }
.sw-list { display: grid; gap: 12px; }
.sw-list b { display: block; font-weight: 600; }
.count { margin: 0 0 12px; font-size: 13px; color: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Stats + chart (Distraction Blocker popup preview) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 4px; text-align: center; }
.stats b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 12px; }
.chart div { height: 96px; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.chart i { height: calc(var(--h) * .74); border-radius: 7px; background: linear-gradient(180deg, var(--a2), var(--a1)); }
.chart span { font-size: 11px; color: var(--muted); margin-top: 6px; }
code { font: 0.92em ui-monospace, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
