/* SPDX-License-Identifier: GPL-3.0-or-later */
@font-face {
  font-family: Roboto;
  src: url('./assets/Roboto.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url('./assets/Outfit-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: Roboto, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: #232724;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: transparent;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #91c6a4;
  outline-offset: 3px;
}
button:active {
  opacity: 0.75;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.demo {
  padding: 26px 32px 24px;
  background: #f2f2ef;
  border: 1px solid #e6e6e0;
  border-radius: 24px;
}
.demo-heading {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 26px;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d5ddce;
  border-radius: 30px;
  background: #e9ede3;
  padding: 5px 9px;
  color: #526147;
  font-size: 11px;
  font-weight: 600;
}
.demo-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #748862;
}
.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  gap: 56px;
  justify-content: center;
  align-items: center;
}
.device {
  min-width: 0;
}
.phone-shell {
  width: 100%;
  padding: 6px;
  border-radius: 39px;
  background: #292b2c;
  box-shadow:
    0 0 0 1px #a8a9a6,
    inset 0 0 0 2px #47494a,
    0 16px 28px -17px #24292066;
}
.phone-screen {
  position: relative;
  height: 712px;
  overflow: hidden;
  border-radius: 33px;
  background: #1d1e1e;
  color: #fafafa;
  color-scheme: dark;
  display: flex;
  flex-direction: column;
}
.android-status {
  height: 32px;
  min-height: 32px;
  padding: 9px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  position: relative;
  user-select: none;
}
.camera {
  position: absolute;
  left: calc(50% - 5px);
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #090909;
  box-shadow: inset 0 0 0 2px #111;
}
.status-icons {
  display: flex;
  align-items: center;
  gap: 3px;
}
.status-icons svg {
  width: 12px;
  height: 12px;
}
.home-indicator {
  min-height: 19px;
  position: relative;
  background: inherit;
}
.home-indicator::after {
  content: '';
  position: absolute;
  width: 92px;
  height: 3px;
  background: #d9dada;
  bottom: 7px;
  left: calc(50% - 46px);
  border-radius: 10px;
}
.blocker-app {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  background: linear-gradient(#202121, #1b1c1c);
}
.blocker-screen {
  container-type: inline-size;
}
/* HomeScreen.kt uses screen width / 400 as its unit and weighted vertical gaps. */
.home-page {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 195cqw;
  flex-direction: column;
  align-items: center;
  padding: 0 5cqw;
}
.home-space {
  flex: 60 0 0;
}
.home-space-top {
  flex-grow: 140;
}
.home-space-bottom {
  flex-grow: 50;
}
.blocker-toolbar {
  position: absolute;
  inset: 4px 4.5cqw auto;
  display: flex;
  justify-content: space-between;
}
.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  border-radius: 50%;
}
.icon-button:hover {
  background: #ffffff0a;
}
.blocker-toolbar button {
  color: #bcbfbf;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 2.5cqw;
  height: 14.5cqw;
  flex-shrink: 0;
}
.wordmark img {
  width: 12cqw;
  height: 12cqw;
  border-radius: 3cqw;
}
.wordmark h1 {
  font-family: Outfit, Roboto, sans-serif;
  font-size: 8.75cqw;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.3cqw;
  white-space: nowrap;
}
.youtube-toggle {
  width: 42.5cqw;
}
.graphite {
  background: linear-gradient(135deg, #282929, #252626);
  box-shadow: inset 0 1px 0 #ffffff13;
  border: 1px solid #ffffff03;
}
.brand {
  width: 18cqw;
  height: 18cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4.86cqw;
  overflow: hidden;
}
.brand img {
  width: 100%;
  height: 100%;
}
.brand.tiktok {
  background: #050505;
  padding: 2.52cqw;
}
.brand.instagram {
  padding: 2.52cqw;
  background:
    radial-gradient(circle at bottom left, #ffdd55, #ffa22e 20%, transparent 70%),
    linear-gradient(140deg, #5948e9, #d900c9 50%, #ff0069);
}
.brand.facebook {
  background: #0084ff;
}
.brand.snapchat {
  background: #fffc00;
  padding: 2.7cqw;
}
.switch-track {
  width: 13cqw;
  height: 8cqw;
  border-radius: 30px;
  background: #3a3b3b;
  box-shadow: inset 0 1px 1px #ffffff38;
  position: relative;
  flex-shrink: 0;
  transition: background 160ms ease-out;
}
.switch-track::after {
  content: '';
  position: absolute;
  width: 6.08cqw;
  height: 6.08cqw;
  top: 0.96cqw;
  left: 0.96cqw;
  border-radius: 50%;
  background: linear-gradient(#c4c5c5, #b4b5b5);
  box-shadow: 0 1px 2px #0003;
  transition: transform 160ms ease-out;
}
[aria-checked='true'] .switch-track {
  background: #4f956a;
}
[aria-checked='true'] .switch-track::after {
  transform: translateX(5cqw);
  background: linear-gradient(#fff, #e8ebe9);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7cqw 5cqw;
  width: 100%;
  margin-top: 7cqw;
  flex-shrink: 0;
}
.platform-toggle {
  height: 38.5cqw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5cqw 0 5cqw;
  border-radius: 8.5cqw;
}
.pause-button {
  width: calc(100% - 5cqw);
  height: 28cqw;
  flex-shrink: 0;
  border-radius: 15cqw;
  background: linear-gradient(135deg, #353636, #303131);
  box-shadow: inset 0 1px 0 #ffffff17;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.pause-button svg {
  width: 10cqw;
  height: 10cqw;
}
.pause-button small {
  font-size: 12px;
  color: #bcbfbf;
  font-variant-numeric: tabular-nums;
}
.settings-page {
  min-height: 100%;
  padding: 0 16px 24px;
}
.settings-header {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  min-height: 66px;
  padding: 10px 0 14px;
}
.settings-header > button {
  position: absolute;
  left: 0;
}
.settings-header h1 {
  font-size: 34px;
  letter-spacing: -1px;
}
.settings-section {
  margin: 23px 0 10px 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #bcbfbf;
}
.settings-footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  padding: 59px 0 20px;
  font-size: 12px;
  color: #bcbfbf;
}
.row-copy small {
  display: block;
  margin-top: 4px;
  color: #bcbfbf;
  font-size: 11px;
  line-height: 1.4;
}
.settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px;
  min-height: 72px;
  border-radius: 20px;
  background: #282929;
  margin-bottom: 5px;
}
.settings-row > .row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  border-radius: 13px;
  background: #343535;
  color: #bcbfbf;
  flex-shrink: 0;
}
.settings-row > .row-copy {
  flex: 1;
  font-size: 13px;
}
.settings-row > svg {
  width: 20px;
  height: 20px;
  color: #bcbfbf;
}
.notice {
  position: absolute;
  z-index: 4;
  bottom: 30px;
  left: 14px;
  right: 14px;
  border-radius: 16px;
  padding: 15px 18px;
  background: #e1e7e1;
  color: #1d2920;
  box-shadow: 0 4px 20px #0005;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}
.notice.visible {
  opacity: 1;
  transform: none;
}
.video-screen {
  background: #101010;
}
.video-app,
.video-view {
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.video-topbar {
  height: 54px;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 8px 0 15px;
  gap: 7px;
}
.video-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.simulation-label {
  font-size: 9px;
  padding: 3px 5px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: #b2b2b2;
  letter-spacing: 0.2px;
}
.video-topbar .spacer {
  flex: 1;
}
.video-topbar .icon-button {
  min-width: 40px;
  padding: 8px;
}
.video-search {
  min-width: 0;
  width: 100%;
  height: 38px;
  background: #272727;
  color: #f1f1f1;
  border: 1px solid #484848;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
}
.feed {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  flex: 1;
  min-height: 0;
  padding-bottom: 16px;
}
.filter-row {
  display: flex;
  gap: 7px;
  padding: 3px 14px 14px;
  overflow: auto;
  scrollbar-width: none;
}
.filter-row button {
  background: #282828;
  border-radius: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.filter-row [aria-pressed='true'] {
  background: #f1f1f1;
  color: #111;
}
.video-card {
  margin-bottom: 7px;
}
.thumbnail-button {
  display: block;
  width: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #262626;
}
.thumbnail-button img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.duration {
  position: absolute;
  bottom: 7px;
  right: 8px;
  border-radius: 4px;
  background: #000c;
  padding: 2px 4px;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.video-details {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px 15px;
  text-align: left;
  width: 100%;
}
.avatar {
  width: 31px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #647863;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}
.avatar.slate {
  background: #5a6f80;
}
.video-details h2 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.video-details p {
  color: #ababab;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 3px;
}
.shorts-shelf {
  padding: 8px 13px 17px;
}
.shorts-shelf h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 13px;
}
.shorts-shelf h2 svg {
  width: 21px;
  height: 21px;
  color: #ef5b53;
}
.shorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.short-card {
  border-radius: 11px;
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 9/14;
  background: #272727;
  text-align: left;
}
.short-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.short-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 42%, #000c);
  pointer-events: none;
}
.short-card .short-copy {
  position: absolute;
  bottom: 11px;
  left: 10px;
  right: 10px;
  z-index: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 1px 3px #0008;
}
.short-copy small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
  color: #ddd;
}
.bottom-nav {
  display: flex;
  justify-content: space-around;
  min-height: 57px;
  border-top: 1px solid #292929;
  padding-top: 3px;
  background: #101010;
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 51px;
  gap: 4px;
  color: #b1b1b1;
  font-size: 9px;
}
.bottom-nav button[aria-current='page'] {
  color: #fff;
}
.bottom-nav button[aria-current='page'] svg {
  stroke-width: 2.4;
}
.bottom-nav svg {
  width: 22px;
  height: 22px;
}
.video-notification,
.empty-state {
  margin: 12px 16px;
  color: #c5c5c5;
  font-size: 13px;
  line-height: 1.6;
}
.empty-state {
  padding: 32px 5px;
  text-align: center;
}
.empty-state h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fafafa;
}
.empty-state button {
  margin-top: 18px;
}
.watch-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.watch-header {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 6px;
  gap: 8px;
  color: #ccc;
  font-size: 12px;
}
.watch-header .spacer {
  flex: 1;
}
.film-player {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  background: #000;
}
.watch-copy {
  padding: 15px 14px 10px;
}
.watch-copy h2 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
.watch-meta {
  color: #a9a9a9;
  font-size: 11px;
  margin: 8px 0 17px;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 17px;
}
.channel-row > span:nth-child(2) {
  flex: 1;
}
.pill {
  border-radius: 30px;
  background: #2b2b2b;
  min-height: 38px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pill svg {
  width: 17px;
  height: 17px;
}
.pill.light {
  background: #f1f1f1;
  color: #111;
}
.pill[aria-pressed='true'] {
  background: #424d43;
}
.watch-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 15px;
}
.description {
  background: #242424;
  padding: 12px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.6;
  color: #c9c9c9;
}
.description button {
  text-decoration: underline;
  display: block;
  font-size: 11px;
  padding: 8px 0 0;
  min-height: 34px;
  color: #fff;
}
.up-next {
  font-size: 14px;
  font-weight: 600;
  margin: 12px 14px;
}
.short-player {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #000;
  touch-action: pan-x;
}
.short-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.short-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(#0007, transparent 22%, transparent 54%, #000c);
}
.short-top {
  position: absolute;
  top: 0;
  left: 3px;
  right: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0 1px 4px #000;
}
.short-top .icon-button {
  background: #0003;
  margin: 3px;
}
.short-top strong {
  margin-right: auto;
  font-size: 15px;
}
.short-controls {
  position: absolute;
  right: 4px;
  top: 42%;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.short-controls button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0005;
}
.short-controls button[aria-pressed='true'] {
  background: #4f956a;
}
.short-description {
  position: absolute;
  left: 14px;
  right: 52px;
  bottom: 19px;
  text-shadow: 0 1px 4px #000;
}
.short-description h2 {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 9px;
  font-weight: 500;
}
.short-description > p {
  font-size: 11px;
  line-height: 1.5;
}
.short-description button {
  color: #eee;
  padding: 8px 0;
  text-decoration: underline;
  font-size: 10px;
}
.short-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  accent-color: #e35550;
}
.overlay {
  position: absolute;
  z-index: 6;
  inset: 32px 0 19px;
  background: #0005;
  display: flex;
  align-items: flex-end;
}
.sheet {
  width: 100%;
  max-height: 95%;
  overflow: auto;
  padding: 0 22px 22px;
  border-radius: 28px 28px 0 0;
  background: #232424;
  box-shadow: 0 -8px 40px #0004;
  animation: sheet-in 190ms ease-out;
}
.sheet-handle {
  width: 30px;
  height: 4px;
  background: #d7dada;
  border-radius: 3px;
  margin: 15px auto 6px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 10px;
}
.sheet-header h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.sheet-header button {
  margin-right: -11px;
}
.sheet-content {
  font-size: 12px;
  line-height: 1.7;
  color: #c4c8c5;
}
.sheet-content p {
  margin-bottom: 13px;
}
.sheet-content h3 {
  color: #f5f5f5;
  font-size: 14px;
  margin: 20px 0 8px;
}
.sheet-content a {
  color: #bbdbc7;
  overflow-wrap: anywhere;
}
.presets {
  display: flex;
  gap: 8px;
  margin-bottom: 13px;
}
.presets button {
  min-height: 46px;
  border-radius: 16px;
  background: #303131;
  font-size: 17px;
  flex: 1;
}
.presets button[aria-checked='true'] {
  background: #4f956a;
  color: #fff;
}
.duration-input {
  position: relative;
}
.duration-input input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #626563;
  color: #f5f5f5;
  background: transparent;
  padding: 14px 52px 14px 16px;
  font-size: 18px;
  min-height: 56px;
}
.duration-input span {
  position: absolute;
  right: 17px;
  top: 20px;
  font-size: 14px;
  color: #c5c7c7;
}
.validation {
  font-size: 12px;
  color: #ffd1c9;
  margin-top: 8px;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f956a;
  color: white;
  min-height: 52px;
  border-radius: 16px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
}
.pause-confirm {
  width: 100%;
  margin-top: 18px;
}
.sheet-helper {
  font-size: 11px;
  text-align: center;
  color: #bcbfbf;
  margin-top: 14px;
  line-height: 1.5;
}
.demo-footer {
  text-align: center;
  margin-top: 27px;
  font-size: 12px;
  line-height: 1.7;
  color: #525a52;
}
.credits-link {
  color: #626e5f;
  font-size: 10px;
  min-height: 34px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.screen-picker {
  display: none;
}
.screen-picker img {
  border-radius: 6px;
}
@keyframes sheet-in {
  from {
    opacity: 0.4;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 780px) {
  .demo {
    padding: 22px 18px;
  }
  .devices {
    grid-template-columns: repeat(2, minmax(0, 326px));
    gap: 28px;
  }
}
@media (max-width: 640px) {
  .demo {
    border-radius: 18px;
    padding: 20px 12px 14px;
  }
  .demo-heading {
    margin-bottom: 18px;
  }
  .devices {
    display: block;
    max-width: 340px;
    margin: auto;
  }
  .screen-picker {
    display: flex;
    gap: 4px;
    background: #e4e6df;
    border-radius: 12px;
    padding: 4px;
    margin: 0 auto 14px;
    max-width: 340px;
  }
  .screen-picker button {
    flex: 1;
    min-height: 44px;
    border-radius: 9px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #6b7467;
  }
  .screen-picker [aria-selected='true'] {
    background: #fafbf8;
    color: #253323;
    box-shadow: 0 1px 3px #25332312;
  }
  .devices[data-active-screen='blocker'] #video-device,
  .devices[data-active-screen='video'] #blocker-device {
    display: none;
  }
  .phone-screen {
    height: 700px;
  }
  .demo-footer {
    margin-top: 23px;
  }
}
@media (max-width: 350px) {
  .demo {
    padding-inline: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
