@font-face {
  font-family: "V5 Rounded";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fredoka-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  background: #162033;
}

#deviceStage {
  --v5-wallpaper: url("assets/photos/v5-ocean-drive.webp");
  --v5-frame-radius: clamp(9px, 1.15vw, 17px);
  --v5-frame-controls-reserve: max(120px, calc(102px + 2 * env(safe-area-inset-bottom)));
  --v5-wallpaper-x: 50%;
  --v5-wallpaper-y: 54%;
  --v5-matte: #282e38;
  --v5-matte-selected: #414852;
  --v5-phone-bar-width: min(270px, calc(100% - 18px));
  --v5-phone-bar-radius: 14px;
  --v5-phone-bar-inset: 9px;
  --v5-phone-bar-padding: 4px 10px;
  --v5-phone-bar-gap: 8px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: clip;
  background: #151a32;
}

#deviceStage .device-backdrop {
  position: absolute;
  z-index: -2;
  inset: -8%;
  display: block;
  background: var(--v5-wallpaper) center / cover no-repeat;
  filter: blur(clamp(12px, 1.8vw, 28px)) brightness(.85) saturate(.91);
  pointer-events: none;
}

#deviceStage .device-backdrop-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#deviceStage .device-backdrop-photo[hidden],
#deviceStage .device-backdrop-wallpaper {
  display: none;
}

#deviceStage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 24%, #10142166 100%),
    linear-gradient(145deg, #b5b9d522, transparent 44%, #171c3480);
  pointer-events: none;
}

#deviceStage > #deviceFrame {
  position: relative;
  inset: auto;
  --v5-frame-width: min(85vw, calc(min(84dvh, 100dvh - var(--v5-frame-controls-reserve)) * 16 / 9), 1480px);
  width: var(--v5-frame-width);
  height: calc(var(--v5-frame-width) * 9 / 16);
  container-type: inline-size;
  border-radius: var(--v5-frame-radius);
  box-shadow: 0 27px 76px #080b1747, 0 7px 19px #080b1740;
}

#deviceStage > #deviceFrame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(145deg, #f5f5ffac, #dce2ff50 24%, #c4cde922 54%, #ffccb55c);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.v5-outside-controls {
  --v5-rail: #171b23;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 5;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 12px);
  gap: 6px;
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid #ffffff18;
  border-radius: 24px;
  background: var(--v5-rail);
  box-shadow: 0 6px 16px #080b174f;
}

.v5-outside-controls[hidden] {
  display: none;
}

.v5-outside-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 68px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f3f4f6;
  font: 600 12px/1 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}

.v5-outside-controls button svg {
  display: block;
  flex: none;
}

.v5-outside-controls button:hover {
  background: var(--v5-matte-selected);
}

.v5-outside-controls button:focus-visible {
  outline: 2px solid #c4c8ce;
  outline-offset: -2px;
}

@container (width <= calc(100vw - 98px)) {
  .v5-outside-controls {
    top: 50%;
    left: 100%;
    flex-direction: column;
    gap: 5px;
    width: 47px;
    padding: 7px 4px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0 23px 23px 0;
  }

  .v5-outside-controls::before,
  .v5-outside-controls::after {
    content: "";
    position: absolute;
    left: 0;
    width: 13px;
    height: 13px;
    pointer-events: none;
  }

  .v5-outside-controls::before {
    bottom: 100%;
    border-bottom-left-radius: 13px;
    box-shadow: -4px 4px 0 0 var(--v5-rail);
    clip-path: inset(0 0 0 0);
  }

  .v5-outside-controls::after {
    top: 100%;
    border-top-left-radius: 13px;
    box-shadow: -4px -4px 0 0 var(--v5-rail);
    clip-path: inset(0 0 0 0);
  }

  .v5-outside-controls button {
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    min-height: 44px;
    padding: 5px 1px;
    font-size: 9px;
  }
}

#tablet .app-window .app-top :is(#homeButton, #closeButton) {
  display: none;
}

#deviceFrame > #tablet {
  isolation: isolate;
  color: #fff;
  background: #162033 var(--v5-wallpaper) var(--v5-wallpaper-x) var(--v5-wallpaper-y) / cover no-repeat;
  border-radius: inherit;
  font-family: Inter, "Segoe UI", sans-serif;
}

#deviceStage .device-btn,
#tablet > #pad-fx,
#tablet > :is(.status, .dynamic-island, .shade, .ambient-drift, .home-indicator, .search-launch, #padPager),
#tablet > #lockScreen > :not(.v5-time, #unlockButton),
#tablet .ios-app-status,
body #padBoot {
  display: none !important;
}

#tablet:not([data-home-wallpaper]) .wallpaper,
#tablet[data-home-wallpaper="classic"] .wallpaper,
#tablet:not([data-lock-wallpaper]) .lock-wallpaper,
#tablet[data-lock-wallpaper="classic"] .lock-wallpaper {
  display: none;
}

#tablet::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #0c102b29, transparent 50%, #090d23a1);
  pointer-events: none;
}

#tablet.locked::after {
  background: linear-gradient(180deg, #171b3b31, transparent 61%, #080d255c);
}

#tablet #lockScreen {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  background: transparent;
  touch-action: none;
}

#tablet:not(.locked) #lockScreen,
#tablet.locked #v5Desktop {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

#tablet:not(.locked) #lockScreen {
  translate: 0 -16px;
}

#tablet.locked #v5Desktop {
  translate: 0 12px;
}

#v5Desktop {
  position: absolute;
  inset: 0;
  z-index: 2;
}

#tablet:has(.veil.show) #v5Desktop {
  pointer-events: none;
}

.v5-time {
  display: grid;
  gap: 5px;
  color: #fff;
  font-family: "V5 Rounded", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", Inter, sans-serif;
  text-shadow: 0 2px 8px #1016309c, 0 1px 2px #15172b8c;
}

.v5-time .v5-numerals {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: .97;
}

.v5-time .v5-date {
  font-size: clamp(14px, 1.8cqw, 21px);
  font-weight: 500;
  letter-spacing: .005em;
  line-height: 1.18;
}

.v5-lock-time {
  --v5-lock-number-size: clamp(44px, 10.8cqw, 133px);
  --v5-clock-shift: 0px;
  --v5-lock-number-top: calc(11% + var(--v5-clock-shift));
  position: absolute;
  inset: 0;
  text-align: center;
  pointer-events: none;
}

.v5-clock-depth {
  position: absolute;
  inset: 0;
}

.v5-lock-time .v5-numerals,
.v5-lock-time .v5-date {
  position: absolute;
  inset-inline: 10px;
}

.v5-lock-time .v5-numerals {
  top: var(--v5-lock-number-top);
  width: max-content;
  max-width: calc(100% - 20px);
  margin-inline: auto;
  font-size: var(--v5-lock-number-size);
}

.v5-lock-time .v5-date {
  top: calc(var(--v5-lock-number-top) + .97 * var(--v5-lock-number-size) + 5px);
}

/* Use the wallpaper's cloud silhouette, while keeping most of every digit visible. */
#tablet[data-lock-wallpaper="classic"]:not(:has(#lockWallpaperLayer.active)) .v5-clock-depth {
  --v5-depth-image: url("assets/ocean-drive-clock-mask.svg");
  --v5-depth-position: var(--v5-wallpaper-x) var(--v5-wallpaper-y);
}

.v5-lock-time[data-photo-depth="ready"] .v5-clock-depth {
  --v5-depth-image: var(--v5-custom-depth-mask);
  --v5-depth-position: center;
  --v5-depth-start: .65;
  --v5-depth-end: .79;
}

#tablet[data-lock-wallpaper="classic"]:not(:has(#lockWallpaperLayer.active)) .v5-clock-depth,
.v5-lock-time[data-photo-depth="ready"] .v5-clock-depth {
  mask-image: linear-gradient(
    #fff calc(var(--v5-lock-number-top) + var(--v5-depth-start, .73) * var(--v5-lock-number-size)),
    #fff0 calc(var(--v5-lock-number-top) + var(--v5-depth-end, .82) * var(--v5-lock-number-size))
  ), var(--v5-depth-image);
  mask-mode: alpha, luminance;
  mask-size: 100% 100%, cover;
  mask-position: center, var(--v5-depth-position);
  mask-repeat: no-repeat;
  mask-composite: add;
}

.v5-desktop-time {
  position: absolute;
  inset-inline: 10%;
  bottom: max(24%, 66px);
  justify-items: start;
}

.v5-desktop-time .v5-numerals {
  font-size: clamp(35px, 5.7cqw, 79px);
}

#tablet #unlockButton {
  position: absolute;
  inset: auto auto clamp(6px, 1.7cqw, 20px) 50%;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 6px;
  width: max-content;
  min-width: 146px;
  min-height: 48px;
  padding: 8px 16px;
  transform: translateX(-50%);
  border: 0;
  background: none;
  color: #fff;
  font: 500 13px/1.2 Inter, "Segoe UI", sans-serif;
  text-shadow: 0 2px 6px #090d23;
}

#tablet #unlockButton .v5-unlock-line {
  width: 88px;
  height: 3px;
  margin-top: 4px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 5px #090d2350;
}

.v5-lock-button,
.v5-frame-toggle {
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
}

.v5-lock-button,
.v5-frame-toggle {
  position: absolute;
  top: max(17px, env(safe-area-inset-top));
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff35;
  border-radius: 50%;
  background: #1318305c;
  backdrop-filter: blur(15px);
}

.v5-lock-button {
  right: clamp(9px, 1.8cqw, 19px);
}

.v5-frame-toggle {
  left: clamp(9px, 1.8cqw, 19px);
  z-index: 4;
}

#tablet:has(.veil.show, #padSpotlight.show) .v5-frame-toggle {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.v5-frame-toggle .v5-landscape-icon,
.v5-frame-toggle[aria-pressed="true"] .v5-phone-icon {
  display: none;
}

.v5-frame-toggle[aria-pressed="true"] .v5-landscape-icon {
  display: block;
}

.v5-dock {
  position: absolute;
  bottom: clamp(6px, 1.3cqw, 15px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.7cqw, 14px);
  max-width: calc(100% - 18px);
  padding: 6px 13px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: var(--v5-matte);
  box-shadow: 0 4px 12px #0004;
  isolation: isolate;
}

[data-v5-layout="phone"] .v5-dock {
  bottom: var(--v5-phone-bar-inset);
  gap: var(--v5-phone-bar-gap);
  width: var(--v5-phone-bar-width);
  padding: var(--v5-phone-bar-padding);
  border-radius: var(--v5-phone-bar-radius);
}

[data-v5-layout="phone"] .v5-dock .v5-app {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
}

.v5-dock:not(:has(.v5-app:not(.admin-hidden):not([hidden]))) {
  display: none;
}

.v5-app {
  flex: 0 1 46px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .16s ease;
}

.v5-matte-icon,
.v5-youtube-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
}

.v5-matte-icon {
  /* Show the original glyph pixels from the matte reference board. */
  background: url("assets/v5-matte-icon-reference.png") no-repeat;
  background-size: 1672px 941px;
  mask-image: radial-gradient(ellipse closest-side, #000 86%, #0000 100%);
  mix-blend-mode: lighten;
}

.v5-music-icon {
  background-position: -1277px -600px;
}

.v5-settings-icon {
  background-position: -1408px -600px;
}

.v5-app[hidden] { display: none; }

.v5-app:hover {
  background: var(--v5-matte-selected);
}

.v5-lock-button:hover,
.v5-frame-toggle:hover {
  background-color: #ffffff2a;
}

#tablet .veil.show .app-window.wk-shell::after,
#tablet .wk-app .wk-header::after,
#tablet .wk-app .wk-side::after {
  display: none !important;
}

#tablet .wk-app .wk-brand-mark,
#tablet .wk-app .wk-splash-mark {
  box-shadow: none;
}

#tablet .wk-app .wk-side .wk-nav-item.is-active svg {
  stroke: currentColor !important;
}

#tablet #v5Desktop:focus {
  outline: none;
}

#tablet .v5-app:focus-visible {
  outline: 2px solid #c4c8ce;
  outline-offset: -2px;
}

.v5-lock-button:focus-visible,
.v5-frame-toggle:focus-visible,
#tablet #unlockButton:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

#tablet .veil.show {
  background: #11162775;
  backdrop-filter: blur(13px);
  animation: none;
}

#tablet .veil.show .app-window {
  transform-origin: var(--launch-x, 50%) var(--launch-y, 85%);
  width: min(1060px, calc(100% - 46px));
  height: min(780px, calc(100% - 46px));
  max-width: none;
  max-height: none;
  border: 1px solid #ffffff5c;
  border-radius: 23px;
  box-shadow: 0 24px 85px #080b1b8c;
  color-scheme: light;
}

#deviceStage > #deviceFrame[data-v5-layout="phone"] {
  --v5-frame-radius: 16px;
  --v5-frame-width: min(88vw, calc(min(86dvh, 100dvh - var(--v5-frame-controls-reserve)) * 10 / 21), 380px);
  height: calc(var(--v5-frame-width) * 21 / 10);
}

#deviceFrame[data-v5-layout="phone"] > #tablet {
  --v5-wallpaper-x: 66%;
  --v5-wallpaper-y: 50%;
}

[data-v5-layout="phone"] .v5-lock-time {
  --v5-lock-number-size: clamp(44px, 23cqw, 96px);
  --v5-lock-number-top: calc(13% + 1.18 * var(--v5-phone-date-size) + 7px + var(--v5-clock-shift));
  --v5-phone-date-size: clamp(14px, 4.9cqw, 18px);
}

[data-v5-layout="phone"] .v5-time .v5-date {
  font-size: clamp(14px, 4.9cqw, 18px);
}

[data-v5-layout="phone"] .v5-lock-time .v5-date {
  top: calc(13% + var(--v5-clock-shift));
}

[data-v5-layout="phone"] .v5-desktop-time {
  inset-inline: 8%;
  bottom: max(21%, 78px);
}

[data-v5-layout="phone"] .v5-desktop-time .v5-numerals {
  font-size: clamp(37px, 14.5cqw, 62px);
}

/* Wallpaper glass for the video app */
#tablet {
  --v5-video-hue: 222deg;
  --v5-video-saturation: 32%;
  --v5-video-surface: #302c37b3;
  --v5-video-card: #322f39e8;
  --v5-video-footer: #ddc9cc14;
  --v5-video-line: #fbecf02e;
  --v5-video-text: #fcf7f7;
  --v5-video-muted: #ddd2d8;
  --v5-video-button: hsl(var(--v5-video-hue) var(--v5-video-saturation) 24%);
}

#tablet:has(.veil.show:not(.closing)) #v5Desktop {
  opacity: 0;
  scale: .985;
}

#tablet .veil.show:has(.wk-shell) {
  padding: 0;
  place-items: center;
  background: #1717224a !important;
  backdrop-filter: blur(25px) saturate(.82) !important;
}

#tablet .veil.show .app-window.wk-shell {
  --v5-video-header: clamp(53px, 7.5cqw, 78px);
  --v5-video-gutter: clamp(10px, 2.05cqw, 23px);
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  color: var(--v5-video-text);
  color-scheme: dark;
  background-color: var(--v5-video-surface) !important;
  background-image: linear-gradient(136deg, #aa717625, #6689af13 39%, #0e101b28 69%, #b56c9229) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

#tablet .wk-shell .app-top,
#tablet .wk-app .wk-tools {
  display: none;
}

#tablet .wk-shell .app-content {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0 !important;
}

#tablet .ios-app.wk-app {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
}

#tablet .wk-app .wk-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 68%);
  align-items: center;
  gap: clamp(12px, 6cqw, 72px);
  min-height: var(--v5-video-header);
  margin: 0;
  padding: 0 var(--v5-video-gutter) !important;
  background: transparent !important;
}

#tablet .wk-app .wk-brand {
  font: 550 clamp(24px, 4cqw, 44px)/1 "V5 Rounded", Inter, sans-serif;
  letter-spacing: -.015em;
  color: var(--v5-video-text) !important;
}

#tablet .wk-app .wk-topsearch {
  flex: 1 1 0;
  flex-direction: row;
  width: 100%;
  max-width: 650px;
  min-width: 0;
  justify-self: start;
  gap: 2px;
  margin: 0;
  padding: 0 10px 0 4px !important;
  border: 1px solid var(--v5-video-line) !important;
  border-radius: 999px;
  background: #f4dce31d !important;
  visibility: visible !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

#tablet .wk-topsearch input {
  padding: 0 5px !important;
  color: var(--v5-video-text) !important;
  caret-color: var(--v5-video-text) !important;
  font-size: clamp(12px, 1.45cqw, 15px) !important;
}

#tablet .wk-topsearch input::placeholder {
  color: var(--v5-video-muted) !important;
}

#tablet .wk-topsearch .wk-watch {
  order: -1;
  width: 42px;
  height: 38px;
  border-radius: 999px;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faf5ee' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.25'/%3E%3Cpath d='m15 15 4 4'/%3E%3C/svg%3E") !important;
  background-size: 19px !important;
  box-shadow: none !important;
  transform: none !important;
}

#tablet .wk-topsearch .wk-watch:hover {
  background-color: #f4dce32b !important;
}

#tablet .wk-app .wk-layout {
  flex: 1 1 0;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  align-items: stretch !important;
}

#tablet .wk-app .wk-main {
  grid-area: 1 / 1 !important;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 var(--v5-video-gutter) 18px !important;
}

#tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-main {
  overflow: hidden;
}

#tablet .wk-app .wk-side,
#tablet .wk-app:has(#wkWatchView:not([hidden])) .wk-side,
#tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-side {
  grid-area: 2 / 1;
  position: static !important;
  display: flex !important;
  flex-direction: row !important;
  align-self: end;
  justify-content: center !important;
  justify-self: center;
  gap: clamp(12px, 5.5cqw, 70px) !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-top: 1px solid var(--v5-video-line) !important;
  background: var(--v5-video-footer) !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

#tablet .wk-app.wk-is-focused:has(#wkWatchView:not([hidden])) .wk-layout .wk-side {
  display: none !important;
}

#tablet .wk-app .wk-side .wk-nav-item {
  flex: 0 1 clamp(104px, 18cqw, 165px);
  flex-direction: row !important;
  width: auto !important;
  height: 46px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  gap: 7px !important;
  transform: none !important;
}

#tablet .wk-app .wk-side .wk-nav-item:hover,
#tablet .wk-app .wk-side .wk-nav-item.is-active {
  border-color: var(--v5-video-line) !important;
  background: #dce4fa26 !important;
  box-shadow: none !important;
}

#tablet .wk-app .wk-side .wk-nav-item svg {
  width: 19px !important;
  height: 19px !important;
  color: var(--v5-video-text) !important;
  stroke: currentColor !important;
  filter: none !important;
}

#tablet .wk-app .wk-side .wk-nav-item span {
  position: static;
  opacity: 1;
  transform: none;
  padding: 0;
  background: none;
  box-shadow: none;
  color: var(--v5-video-text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-size: 13px !important;
}

#tablet #wkError:empty {
  display: none;
}

#tablet .wk-results,
#tablet .wk-watch-view {
  margin-top: 0;
}

#tablet .wk-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(10px, 1.65cqw, 20px) !important;
}

#tablet .wk-result {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start;
  align-items: start;
  gap: 10px;
  padding: clamp(6px, 1cqw, 10px);
  border: 1px solid var(--v5-video-line);
  border-radius: 15px;
  background: var(--v5-video-card) !important;
  box-shadow: none !important;
  text-align: start;
  contain-intrinsic-size: auto 280px;
}

#tablet .wk-result:hover {
  transform: none;
  box-shadow: 0 5px 12px #19131e27 !important;
}

#tablet .wk-app :is(.wk-result, .wk-nav-item, .wk-watch):focus-visible {
  outline: 2px solid var(--v5-video-text) !important;
  outline-offset: -2px;
}

#tablet .wk-result-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  border-radius: 10px !important;
  background: var(--v5-video-footer) !important;
  outline: none;
  box-shadow: none !important;
}

#tablet .wk-result-cover {
  object-fit: cover !important;
  transform: none !important;
}

#tablet .wk-result-thumb::before,
#tablet .wk-result-thumb::after {
  content: none;
}

#tablet .wk-result-duration {
  bottom: 6px;
  right: 6px;
  padding: 3px 5px;
  border-radius: 4px;
  background: #142024e8;
  backdrop-filter: none;
  box-shadow: none;
}

#tablet .wk-result-copy {
  grid-template-columns: clamp(26px, 4.55cqw, 48px) minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 0 5px 8px;
}

#tablet .wk-result-avatar {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--v5-video-button);
  color: #fff;
  font-size: clamp(12px, 1.65cqw, 17px);
  box-shadow: none;
}

#tablet .wk-result-avatar img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tablet .wk-result-avatar img[hidden] {
  opacity: 0;
}

#tablet .wk-result-title {
  color: var(--v5-video-text) !important;
  font-size: clamp(14px, 2.05cqw, 23px);
  line-height: 1.13;
  letter-spacing: -.026em;
}

#tablet .wk-result-meta {
  color: var(--v5-video-muted) !important;
  font-size: clamp(11px, 1.46cqw, 16px);
}

[data-v5-layout="landscape"] #tablet .wk-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(6px, 1.06cqw, 14px) !important;
}

[data-v5-layout="landscape"] #tablet .wk-result {
  gap: 7px;
  padding: clamp(4px, .75cqw, 8px);
  border-radius: clamp(8px, 1.25cqw, 14px);
  contain-intrinsic-size: auto 165px;
}

[data-v5-layout="landscape"] #tablet .wk-result-thumb {
  aspect-ratio: 16 / 9;
  border-radius: clamp(5px, .8cqw, 9px) !important;
}

[data-v5-layout="landscape"] #tablet .wk-result-copy {
  grid-template-columns: clamp(18px, 2.8cqw, 30px) minmax(0, 1fr) !important;
  gap: 6px !important;
  padding: 0 2px 4px;
}

[data-v5-layout="landscape"] #tablet .wk-result-title {
  font-size: clamp(11px, 1.3cqw, 16px);
}

[data-v5-layout="landscape"] #tablet .wk-result-meta {
  overflow: hidden;
  font-size: clamp(10px, 1.1cqw, 13px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container (max-width: 560px) {
  [data-v5-layout="landscape"] #tablet .wk-result-copy {
    grid-template-columns: minmax(0, 1fr) !important;
    padding: 0 1px 2px;
  }

  [data-v5-layout="landscape"] #tablet .wk-result-avatar {
    display: none;
  }

  [data-v5-layout="landscape"] #tablet .wk-result-duration {
    right: 3px;
    bottom: 3px;
    padding: 2px 3px;
    font-size: 9px;
  }
}

#tablet .wk-app :is(.wk-no-results, .wk-more) {
  color: var(--v5-video-text) !important;
}

#tablet .wk-app .wk-saved :is(.wk-section-title h3, .wk-section-title span, .wk-empty) {
  color: var(--v5-video-text) !important;
}

#tablet #padSpotlight[data-mode="youtube"] #padSpot {
  border: 1px solid var(--v5-video-line);
  background: var(--v5-video-card);
  color: var(--v5-video-text);
  backdrop-filter: none;
}

#tablet #padSpotlight[data-mode="youtube"] :is(.ps-glass, #psInput),
#tablet #padSpotlight[data-mode="youtube"] #psInput::placeholder {
  color: var(--v5-video-muted);
}

#tablet #padSpotlight[data-mode="youtube"] #psCancel {
  background: var(--v5-video-button);
  color: #f5f6f2;
}

#tablet .wk-watch-view :is(h2, h3, .wk-channel-meta strong, .wk-rel-copy strong) {
  color: var(--v5-video-text) !important;
}

#tablet .wk-watch-view {
  padding: clamp(8px, 1.1cqw, 14px);
  border: 1px solid var(--v5-video-line);
  border-radius: 12px;
  background: hsl(var(--v5-video-hue) var(--v5-video-saturation) 12% / .48);
}

#tablet .wk-watch-view :is(.wk-focus-tag, .wk-video-info p, .wk-channel-meta small, .wk-rel-copy small, .wk-comments-head span) {
  color: var(--v5-video-muted) !important;
}

#tablet .wk-watch-view :is(.wk-action, .wk-focus-toggle, .wk-subscribe, .wk-transcript, .wk-rel, .wk-comment-form input, .wk-comment-cancel) {
  border-color: var(--v5-video-line) !important;
  background: var(--v5-video-card) !important;
  color: var(--v5-video-text) !important;
  box-shadow: none !important;
}

#tablet .wk-watch-view :is(.wk-action, .wk-focus-toggle, .wk-rel):hover {
  border-color: var(--v5-video-button) !important;
  transform: none;
}

#tablet .wk-watch-view :is(.wk-action[aria-pressed="true"], .wk-subscribe, .wk-comment-send, .wk-avatar) {
  border-color: transparent !important;
  background: var(--v5-video-button) !important;
  color: #fafafa !important;
  box-shadow: none !important;
}

#tablet .wk-watch-view :is(.wk-actions-row, .wk-comments, .wk-video-info, .wk-channel) {
  border-color: var(--v5-video-line) !important;
}

#tablet .wk-watch-view .wk-comment-form input::placeholder,
#tablet .wk-watch-view .wk-transcript a {
  color: var(--v5-video-muted) !important;
}

#tablet .wk-watch-view .wk-player {
  background: var(--v5-video-button) !important;
  box-shadow: none !important;
}

#tablet .wk-app:has(#wkWatchView:not([hidden])) :is(.wk-header, .wk-layout .wk-side) {
  display: none !important;
}

#tablet .wk-app:has(#wkWatchView:not([hidden])) .wk-layout {
  grid-template-rows: minmax(0, 1fr) !important;
}

#tablet .wk-app:has(#wkWatchView:not([hidden])) .wk-main {
  padding-top: clamp(12px, 2cqw, 26px) !important;
}

#tablet .wk-watch-view .wk-watch-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 1.8cqw, 25px);
}

#tablet .wk-watch-view .wk-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--v5-video-line);
  border-radius: clamp(9px, 1.4cqw, 16px);
}

#tablet .wk-watch-view .wk-unavailable {
  background: linear-gradient(#151824b8, #151824ed), var(--v5-watch-poster, none) center / cover, #151824;
}

#tablet .wk-watch-view .wk-unavailable a {
  border: 1px solid var(--v5-video-line);
  background: #dce4fa24;
}

#tablet .wk-watch-view .wk-video-info {
  display: block;
  margin: 0;
  padding: clamp(10px, 1.5cqw, 20px) 0 0;
}

#tablet .wk-watch-view .wk-video-info h2 {
  font-size: clamp(18px, 2.7cqw, 32px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#tablet .wk-watch-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin: 10px 0;
}

#tablet .wk-watch-details .wk-channel {
  min-width: 0;
  flex: 1 1 130px;
  margin: 0;
}

#tablet .wk-watch-details .wk-avatar {
  position: relative;
  overflow: hidden;
}

#tablet .wk-watch-details .wk-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#tablet .wk-watch-details .wk-avatar img[hidden] {
  opacity: 0;
}

#tablet .wk-watch-details .wk-actions-row {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

#tablet .wk-watch-details .wk-action {
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  background: #dce4fa21 !important;
  white-space: nowrap;
}

#tablet .wk-watch-details .wk-action[aria-pressed="true"],
#tablet .wk-watch-details .wk-action[aria-expanded="true"] {
  background: #dce4fa42 !important;
}

#tablet .wk-watch-view .wk-related {
  position: static;
  min-width: 0;
  padding: clamp(8px, 1.2cqw, 15px);
  border: 1px solid var(--v5-video-line);
  border-radius: 13px;
  background: #1619256b;
}

#tablet .wk-watch-view .wk-related h3 {
  margin-bottom: 9px;
  font-size: clamp(14px, 1.7cqw, 19px);
}

#tablet .wk-watch-view .wk-rel {
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid transparent;
  background: transparent !important;
}

#tablet .wk-watch-view .wk-rel:is(:hover, :focus-visible) {
  border-color: var(--v5-video-line) !important;
  background: #dce4fa21 !important;
}

#tablet .wk-watch-view .wk-rel-thumb img {
  transform: none;
}

#tablet .wk-watch-more {
  margin-top: 12px;
  color: var(--v5-video-muted);
  font-size: 12px;
}

#tablet .wk-watch-more summary {
  width: fit-content;
  padding-block: 6px;
  color: var(--v5-video-muted);
  cursor: pointer;
}

#tablet .wk-watch-more .wk-player-bar {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}

@container (min-width: 680px) {
  #tablet .wk-app:not(.wk-is-focused) .wk-watch-grid:has(.wk-related:not([hidden])) {
    grid-template-columns: minmax(0, 2.2fr) minmax(185px, 1fr);
  }

  #tablet .wk-watch-view .wk-related {
    max-height: min(48cqw, 430px);
    overflow: auto;
    scrollbar-width: thin;
  }
}

@container (max-width: 560px) {
  #tablet .wk-watch-details .wk-actions-row {
    display: grid;
    flex-basis: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #tablet .wk-watch-details .wk-action {
    padding-inline: 5px !important;
  }
}

#tablet .wk-app.wk-is-focused .wk-related {
  display: none;
}

#tablet .wk-results-grid .wk-result {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(11px, 1.65cqw, 18px);
  background: #e5d5db22 !important;
}

#tablet .wk-results-grid .wk-result-thumb {
  border-radius: 0 !important;
}

#tablet .wk-results-grid .wk-result-copy {
  align-items: center;
  padding: 9px clamp(7px, 1cqw, 12px) 10px;
}

#tablet .wk-result-avatar {
  border: 1px solid #fff3;
}

[data-v5-layout="landscape"] #tablet .wk-result-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tablet .wk-app .wk-side {
  width: calc(100% - 2 * var(--v5-video-gutter)) !important;
  margin: 0 0 8px !important;
  padding: 3px !important;
  gap: 4px !important;
  border: 1px solid var(--v5-video-line) !important;
  border-radius: 12px !important;
}

#tablet .wk-app .wk-side .wk-nav-item {
  flex: 1 1 0;
  border-radius: 9px !important;
}

#tablet .wk-app .wk-side .wk-nav-item.is-active {
  background: #f4dce314 !important;
}

#tablet .wk-watch-view {
  border-color: transparent;
  background: transparent;
}

#tablet .wk-watch-view .wk-related {
  border: 0;
  background: #24222e73;
}

@container (min-width: 680px) {
  #tablet .veil.show:has(.wk-shell) {
    justify-content: flex-start;
  }

  #tablet .veil.show .app-window.wk-shell {
    width: calc(100% - clamp(52px, 6.8cqw, 72px));
  }

  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls {
    top: clamp(47px, 8.2cqw, 92px);
    left: auto;
    right: 0;
    width: clamp(52px, 6.8cqw, 72px);
    flex-direction: column;
    gap: 6px;
    padding: 0 clamp(5px, .85cqw, 9px);
    transform: none;
    background: transparent;
    box-shadow: none;
  }

  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls::before,
  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls::after {
    content: none;
  }

  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls button {
    flex-direction: column;
    min-width: 0;
    gap: 5px;
    min-height: clamp(50px, 7.3cqw, 77px);
    border: 1px solid #f2e6f04a;
    border-radius: 16px;
    background: #25242e94;
    font-size: 11px;
  }

  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls button:hover {
    background: #65606a9e;
  }
}

#deviceStage > #deviceFrame:has(.veil.show .wk-shell)::after {
  z-index: 4;
  background: linear-gradient(145deg, #fff8f6e6, #e8eef185 34%, #b3bdd053 65%, #e792bdbd);
}

@media (prefers-reduced-motion: no-preference) {
  #tablet #wkWatchView:not([hidden]) .wk-watch-grid {
    animation: none;
  }

  #tablet #wkWatchView:not([hidden]) .wk-player {
    animation: v5-watch-in 390ms var(--v5-ease-out) both;
  }

  #tablet #wkWatchView:not([hidden]) :is(.wk-watch-details, .wk-related) {
    animation: v5-section-in 320ms var(--v5-ease-out) 55ms both;
  }

  #tablet .wk-results-grid .wk-result {
    transition: border-color 160ms ease, translate 220ms var(--v5-ease-out);
  }

  @media (hover: hover) {
    #tablet .wk-results-grid .wk-result:hover {
      translate: 0 -2px;
    }
  }
}

@keyframes v5-watch-in {
  from { opacity: .35; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@container (max-width: 560px) {
  #tablet .veil.show {
    padding: 0;
    place-items: center;
    justify-content: center;
  }

  #tablet .veil.show .app-window {
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  #tablet .app-window .app-top {
    min-height: 44px;
    padding-inline: 10px;
  }

  #tablet .app-window .app-top > button {
    min-height: 36px;
  }

  #tablet .app-window .app-content {
    min-width: 0;
    min-height: 0;
    overscroll-behavior: contain;
  }

  #tablet .ios-split,
  #tablet .ios-settings,
  #tablet .ios-mail {
    grid-template-columns: minmax(0, 1fr);
  }

  #tablet .ios-sidebar,
  #tablet .mailbox-list,
  #tablet .mail-preview,
  #tablet .ios-settings-list .ios-page-heading {
    display: none;
  }

  #tablet .ios-settings {
    align-content: start;
  }

  #tablet .ios-settings-list {
    display: flex;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
  }

  #tablet .ios-setting-row {
    flex: 0 0 auto;
    min-height: 42px;
    gap: 8px;
    padding-inline: 10px;
  }

  #tablet .ios-main,
  #tablet .ios-setting-detail,
  #tablet .notes-editor {
    min-width: 0;
    padding-inline: clamp(12px, 4cqw, 22px);
  }

  #tablet .ios-calendar-grid {
    padding-inline: 6px;
  }

  #tablet .ios-calendar-grid span {
    min-height: 44px;
    padding-inline: 2px;
  }

  #tablet .ios-calendar-grid .weekday {
    min-height: 28px;
  }

  #tablet .photo-grid,
  #tablet .safari-favorites {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 10px;
  }

  #tablet .safari-favorite {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #tablet .ios-tabbar {
    padding-inline: 6px;
  }

  #tablet .store-seg {
    gap: 2px;
    padding-inline: 8px;
    overflow-x: auto;
  }

  #tablet .store-seg button {
    flex: 1 0 auto;
    padding-inline: 8px;
  }

  #tablet .store-scroll {
    padding-inline: 12px !important;
  }

  #tablet .store-hero {
    min-height: 174px;
    padding: 16px;
  }

  #tablet .store-hero-copy {
    max-width: 80%;
  }

  #tablet .store-hero-copy h2 {
    font-size: clamp(23px, 8cqw, 31px);
  }

  #tablet .store-hero-art {
    font-size: 105px;
    opacity: .7;
  }

  #tablet .mz-head {
    padding: 10px 12px 0;
  }

  #tablet .mz-wordmark,
  #tablet .mz-speaker,
  #tablet .mz-vol {
    display: none;
  }

  #tablet .mz-search {
    width: 100%;
  }

  #tablet .mz-card {
    width: min(57cqw, 260px);
  }

  #tablet .mz-card[data-pos="-1"] {
    transform: translate(-50%, -50%) translateX(-38cqw) translateZ(-110px) rotateY(22deg);
  }

  #tablet .mz-card[data-pos="1"] {
    transform: translate(-50%, -50%) translateX(38cqw) translateZ(-110px) rotateY(-22deg);
  }

  #tablet .mz-transport {
    gap: 12px;
    padding: 0 10px 12px;
  }

  #tablet .mz-big {
    width: 52px;
    height: 52px;
  }

  #tablet .mz-play {
    width: 64px;
    height: 64px;
  }

  #tablet .mz-progress {
    gap: 8px;
    padding-inline: 8px;
  }

  #tablet .veil.show .app-window.wk-shell {
    --v5-video-header: 56px;
    --v5-video-gutter: 11px;
  }

  #tablet .wk-app .wk-header {
    display: flex;
    gap: 4px;
  }

  #tablet .wk-app .wk-brand {
    margin-inline-end: auto;
    font-size: clamp(19px, 7cqw, 28px);
  }

  #tablet .wk-app .wk-topsearch {
    flex: 0 1 52%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
  }

  #tablet .wk-topsearch input {
    width: 0;
    font-size: 12px !important;
  }

  #tablet .wk-topsearch .wk-watch {
    width: 36px;
  }

  [data-v5-layout="phone"] #tablet .wk-app .wk-side {
    gap: 12px !important;
    padding: 6px 10px !important;
  }

  [data-v5-layout="phone"] #tablet .wk-app .wk-side .wk-nav-item {
    flex: 0 1 108px;
    flex-direction: column !important;
    border-radius: 12px !important;
    gap: 2px !important;
  }

  [data-v5-layout="phone"] #tablet .wk-app .wk-side .wk-nav-item span {
    font-size: 11px !important;
  }

  [data-v5-layout="phone"] #tablet .wk-results-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  [data-v5-layout="phone"] #tablet .wk-result {
    gap: 7px;
    border-radius: 11px;
    contain-intrinsic-size: auto 200px;
  }

  [data-v5-layout="phone"] #tablet .wk-result-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 7px !important;
  }

  [data-v5-layout="phone"] #tablet .wk-result-copy {
    gap: 8px !important;
    padding: 0 3px 4px;
  }

  [data-v5-layout="landscape"] #tablet .veil.show .app-window.wk-shell {
    --v5-video-header: 44px;
  }

  [data-v5-layout="landscape"] #tablet .wk-app .wk-side,
  [data-v5-layout="landscape"] #tablet .wk-app:has(#wkWatchView:not([hidden])) .wk-side,
  [data-v5-layout="landscape"] #tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-side {
    padding-block: 3px !important;
  }

  [data-v5-layout="landscape"] #tablet .wk-app .wk-side .wk-nav-item {
    height: 36px !important;
  }

  #tablet .wk-watch-grid,
  #tablet .wk-related-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  #tablet .wk-related {
    position: static;
  }

  #tablet .wk-rel {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  }

  #tablet .wk-watch-main .wk-player {
    width: 100%;
    border-radius: 9px;
  }

  [data-v5-layout="phone"] #tablet .wk-watch-view .wk-actions-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  [data-v5-layout="phone"] #tablet .wk-watch-view .wk-action {
    justify-content: center;
    gap: 4px;
    padding-inline: 5px !important;
  }

  #tablet .wk-video-info {
    display: block;
    padding-inline: 0;
  }

  #tablet .wk-watch-main .wk-video-info h2 {
    font-size: 16px;
  }

  #tablet .wk-actions-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  #tablet .wk-actions-row .wk-action {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #tablet .wk-comment-form {
    flex-wrap: wrap;
  }

  #tablet .wk-comment-form input {
    flex: 1 1 62%;
  }

  #tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-main {
    overflow: hidden;
    padding: 0 !important;
  }

  #tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-shorts {
    container-type: size;
    padding: 6px 46px 6px 5px;
  }

  #tablet .wk-shorts-frame {
    height: auto;
    width: min(100cqw, calc(100cqh * 9 / 16), 270px);
    max-height: 100%;
    border-radius: 13px;
  }

  #tablet .wk-shorts-rail {
    inset: auto 3px 10px auto !important;
    gap: 4px;
    transform: none;
  }

  #tablet .wk-shorts-act {
    width: 42px;
    min-height: 48px;
    gap: 2px;
    font-size: 8px;
    letter-spacing: 0;
  }

  #tablet .wk-shorts-act svg {
    width: 15px;
    height: 15px;
    padding: 8px;
  }

  #tablet .wk-shorts-side {
    inset: 8px 6px auto auto;
    gap: 4px;
    transform: none;
  }

  #tablet .wk-shorts-arrow {
    width: 36px;
    height: 36px;
  }

  [data-v5-layout="landscape"] #tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-shorts {
    padding: 4px 48px 44px 6px;
  }

  [data-v5-layout="landscape"] #tablet .wk-shorts-rail {
    inset: auto 6px 2px !important;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }

  [data-v5-layout="landscape"] #tablet .wk-shorts-act {
    width: 48px;
    min-height: 38px;
  }

  [data-v5-layout="landscape"] #tablet .wk-shorts-act svg {
    width: 13px;
    height: 13px;
    padding: 6px;
  }

  [data-v5-layout="landscape"] #tablet .wk-shorts-arrow {
    width: 30px;
    height: 30px;
  }

}

@container (max-width: 440px) {
  [data-v5-layout="landscape"] .v5-dock {
    padding-block: 3px;
  }

  [data-v5-layout="landscape"] .v5-app {
    width: 37px;
    height: 37px;
  }

  [data-v5-layout="landscape"] :is(.v5-matte-icon, .v5-youtube-icon) {
    transform: scale(.8);
  }

  [data-v5-layout="landscape"] .v5-desktop-time .v5-numerals {
    font-size: clamp(26px, 8.3cqw, 38px);
  }

  [data-v5-layout="landscape"] .v5-desktop-time {
    bottom: max(25%, 48px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  #deviceStage {
    --v5-ease-out: cubic-bezier(.2, .75, .22, 1);
    --v5-ease-in: cubic-bezier(.48, 0, .72, .34);
    --v5-fade-time: 220ms;
  }

  #deviceStage > #deviceFrame.v5-frame-changing {
    transition: width 560ms var(--v5-ease-out), height 620ms var(--v5-ease-out),
      border-radius 560ms var(--v5-ease-out);
  }

  #deviceStage > #deviceFrame.v5-frame-changing::after {
    animation: v5-frame-edge-in 620ms var(--v5-ease-out) both;
  }

  #deviceFrame.v5-frame-changing > #tablet {
    transition: background-position 620ms var(--v5-ease-out), border-radius 560ms var(--v5-ease-out);
  }

  .v5-frame-changing .v5-time,
  .v5-frame-changing .v5-dock {
    animation: v5-frame-content-in 620ms var(--v5-ease-out) both;
  }

  #tablet :is(#lockScreen, #v5Desktop, .v5-frame-toggle) {
    transition: opacity var(--v5-fade-time) var(--v5-ease-out),
      translate 320ms var(--v5-ease-out), scale 320ms var(--v5-ease-out),
      visibility 0s, background-color 160ms ease;
  }

  #tablet:not(.locked) #lockScreen,
  #tablet.locked #v5Desktop,
  #tablet:has(.veil.show, #padSpotlight.show) .v5-frame-toggle {
    transition-delay: 0s, 0s, 0s, var(--v5-fade-time), 0s;
  }

  #tablet .veil.show:not(.closing) {
    animation: v5-fade-in 250ms ease-out both;
  }

  #tablet .veil.show:not(.closing) .app-window {
    animation: v5-app-open 380ms var(--v5-ease-out) both;
  }

  #tablet .veil.show.closing {
    animation: v5-fade-out 200ms ease-in both;
  }

  #tablet .veil.show.closing .app-window {
    animation: v5-app-close 200ms var(--v5-ease-in) both;
  }

  .v5-outside-controls:not([hidden]) {
    animation: v5-controls-in 280ms var(--v5-ease-out) both;
  }

  #deviceFrame:has(.veil.closing) .v5-outside-controls:not([hidden]) {
    pointer-events: none;
    animation: v5-controls-out 180ms ease-in both;
  }

  #tablet #padSpotlight {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    animation: none;
    transition: opacity 170ms ease, visibility 0s 170ms;
  }

  #tablet #padSpotlight.show {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transition-delay: 0s;
  }

  #tablet #padSpotlight #padSpot {
    animation: none;
    translate: 0 -10px;
    scale: .985;
    transition: translate 260ms var(--v5-ease-out), scale 260ms var(--v5-ease-out);
  }

  #tablet #padSpotlight.show #padSpot {
    translate: none;
    scale: none;
  }

  #tablet :is(#wkResults, #wkWatchView, #wkShortsView):not([hidden]),
  #tablet .v5-settings-panel > * {
    animation: v5-section-in 240ms var(--v5-ease-out) both;
  }

  #tablet .v5-app {
    transition: background-color 160ms ease, translate 200ms var(--v5-ease-out), scale 200ms var(--v5-ease-out);
  }

  @media (hover: hover) {
    #tablet .v5-app:hover {
      translate: 0 -2px;
    }
  }

  #deviceFrame :is(.v5-app, .v5-lock-button, .v5-frame-toggle, #unlockButton,
      .v5-outside-controls button, .v5-settings button, .wk-app button, .mz button):not(:disabled):active {
    scale: .95;
  }
}

@keyframes v5-frame-edge-in {
  from { scale: .38 .22; opacity: .3; }
  48% { opacity: 1; }
  to { scale: 1; opacity: 1; }
}

@keyframes v5-frame-content-in {
  0% { opacity: .9; scale: 1; }
  30% { opacity: .45; scale: .975; }
  100% { opacity: 1; scale: 1; }
}

@keyframes v5-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes v5-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes v5-app-open {
  from { opacity: 0; transform: translateY(12px) scale(.89); }
  to { opacity: 1; transform: none; }
}

@keyframes v5-app-close {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(9px) scale(.9); }
}

@keyframes v5-controls-in {
  from { opacity: 0; translate: 0 -7px; }
  to { opacity: 1; translate: none; }
}

@keyframes v5-controls-out {
  from { opacity: 1; translate: none; }
  to { opacity: 0; translate: 0 -5px; }
}

@keyframes v5-section-in {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  #deviceFrame :is(.veil, .app-window, #padSpotlight, #padSpot, .pad-launching, .v5-outside-controls) {
    animation: none !important;
    transition: none !important;
  }

  #tablet :is(#lockScreen, #v5Desktop) {
    translate: none;
    scale: none;
  }
}


#tablet .veil.show:has(.v5-settings) {
  background: #10142128;
  backdrop-filter: none;
}

#tablet .veil.show .app-window:has(.v5-settings) {
  --settings-ink: #f4f6ff;
  --settings-muted: #d0d7e5;
  --settings-line: #e8eeff35;
  --settings-card: #10172584;
  --settings-control: #c9d8f01e;
  --settings-selected: #c9d8f044;
  border-color: #e8eeff4a;
  background: linear-gradient(145deg, #28354c99, #172233b3 54%, #332539b3) !important;
  backdrop-filter: blur(18px) saturate(.88);
  color: var(--settings-ink);
  color-scheme: dark;
}

#tablet .app-window:has(.v5-settings) .app-top {
  min-height: 46px;
  padding-inline: clamp(14px, 2.7cqw, 28px);
  justify-content: flex-start;
  background: #131b2c40;
  border-bottom: 1px solid var(--settings-line);
  box-shadow: none;
}

#tablet .app-window:has(.v5-settings) #appTitle {
  color: var(--settings-ink);
  font-size: 16px;
  letter-spacing: -.03em;
}

#tablet .app-content:has(.v5-settings) {
  padding: 0 !important;
  overflow: auto;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #d7e2f254 transparent;
}

.v5-settings {
  min-height: 100%;
  padding: clamp(12px, 2.5cqw, 27px);
  color: var(--settings-ink);
  font-family: Inter, "Segoe UI", sans-serif;
}

.v5-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 400px);
  margin: 0 auto clamp(12px, 2.2cqw, 22px);
  padding: 4px;
  border: 1px solid var(--settings-line);
  border-radius: 15px;
  background: var(--settings-card);
}

.v5-settings button,
.v5-settings-upload {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.v5-settings-tabs button {
  min-width: 0;
  min-height: 38px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--settings-muted);
  font-size: clamp(11px, 3.5cqw, 14px);
  font-weight: 650;
}

.v5-settings-tabs button[aria-pressed="true"] {
  border-color: var(--settings-line);
  background: var(--settings-selected);
  color: var(--settings-ink);
}

.v5-settings-tabs button:hover {
  color: var(--settings-ink);
}

.v5-settings-panel {
  max-width: 880px;
  margin: 0 auto;
}

.v5-settings h2 {
  margin: 0 0 12px;
  font-size: clamp(19px, 3.4cqw, 30px);
  font-weight: 700;
  letter-spacing: -.045em;
}

.v5-settings h3 {
  margin: 0 0 11px;
  font-size: clamp(13px, 1.65cqw, 16px);
  font-weight: 680;
}

.v5-settings-wallpaper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, .9fr);
  align-items: start;
  gap: clamp(12px, 2.4cqw, 25px);
}

.v5-settings-wallpaper-photo,
.v5-settings-swatch {
  background: #253550 var(--v5-wallpaper) center / cover no-repeat;
}

.v5-settings-wallpaper {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #e8eeff61;
  border-radius: 14px;
  background: #182338;
}

.v5-settings-wallpaper-photo {
  position: absolute;
  inset: 0;
}

.v5-settings-preview-time {
  position: absolute;
  inset: 10% 0 auto;
  color: #fff;
  font: 600 clamp(27px, 6cqw, 64px)/1 "V5 Rounded", sans-serif;
  text-align: center;
  text-shadow: 0 2px 10px #101728b3;
}

.v5-settings-note {
  margin: 8px 1px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--settings-muted);
}

.v5-settings-swatch[data-wallpaper="lavender"] { background-image: linear-gradient(145deg, #584486, #cdc4e9); }
.v5-settings-swatch[data-wallpaper="sunset"] { background-image: linear-gradient(145deg, #ae544f, #efb47b); }
.v5-settings-swatch[data-wallpaper="rose"] { background-image: linear-gradient(145deg, #87466b, #e8a7be); }
.v5-settings-swatch[data-wallpaper="forest"] { background-image: linear-gradient(145deg, #244a43, #99a881); }
.v5-settings-swatch[data-wallpaper="midnight"] { background-image: linear-gradient(145deg, #151e32, #526383); }

.v5-settings-card,
.v5-settings-preview {
  min-width: 0;
  padding: clamp(12px, 2.3cqw, 20px);
  border: 1px solid var(--settings-line);
  border-radius: 18px;
  background: var(--settings-card);
}

.v5-settings-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.v5-settings-presets button {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 5px 4px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 11px;
  font-weight: 570;
  white-space: nowrap;
}

.v5-settings-presets button:hover,
.v5-settings-presets button[aria-pressed="true"] {
  background: var(--settings-control);
}

.v5-settings-presets button[aria-pressed="true"] {
  border-color: #dfebff8a;
  background: var(--settings-selected);
}

.v5-settings-swatch {
  display: block;
  min-height: 23px;
  aspect-ratio: 2 / 1;
  border-radius: 6px;
}

.v5-settings-upload {
  position: relative;
  display: grid;
  min-height: 42px;
  place-items: center;
  margin-top: 13px;
  padding: 5px 10px;
  border: 1px solid var(--settings-line);
  border-radius: 10px;
  background: var(--settings-selected);
  color: var(--settings-ink);
  font-size: 13px;
  font-weight: 650;
}

.v5-settings-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.v5-settings-link {
  margin-top: 12px;
  color: var(--settings-muted);
  font-size: 12px;
}

.v5-settings-link summary {
  width: fit-content;
  padding-block: 3px;
  cursor: pointer;
}

.v5-settings-link form {
  display: flex;
  gap: 6px;
  margin-top: 7px;
}

.v5-settings-link input,
.v5-settings-link button {
  min-height: 39px;
  padding: 5px 9px;
  border: 1px solid var(--settings-line);
  border-radius: 8px;
}

.v5-settings-link input {
  flex: 1 1 0;
  min-width: 0;
  color: var(--settings-ink);
  background: #0f1524a8;
  font-size: 16px;
}

.v5-settings-link button {
  background: var(--settings-selected);
  color: var(--settings-ink);
  font-weight: 620;
}

.v5-settings-dock {
  max-width: 580px;
  padding-block: 1px;
}

.v5-settings-app-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 66px;
  align-items: center;
  gap: 8px;
  min-height: 60px;
}

.v5-settings-app-row + .v5-settings-app-row {
  border-top: 1px solid var(--settings-line);
}

.v5-settings-app-row strong {
  font-size: 13px;
  font-weight: 650;
}

.v5-settings-app-icon {
  display: grid;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  isolation: isolate;
  background: var(--v5-matte);
}

.v5-settings-app-icon > * {
  transform: scale(.72);
}

.v5-settings-order {
  display: flex;
  gap: 4px;
}

.v5-settings-order button {
  width: 33px;
  min-height: 35px;
  border: 0;
  border-radius: 7px;
  background: var(--settings-control);
  font-size: 16px;
}

.v5-settings-order button:disabled {
  color: #8c93a0;
  opacity: .55;
  cursor: default;
}

.v5-settings-toggle,
.v5-settings-pinned {
  justify-self: end;
}

.v5-settings-toggle {
  appearance: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--settings-line);
  border-radius: 999px;
  background: #0e1524bd;
  cursor: pointer;
}

.v5-settings-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e7edf7;
}

.v5-settings-toggle:checked {
  background: #5a79a3;
}

.v5-settings-toggle:checked::after {
  translate: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .v5-settings-toggle,
  .v5-settings-toggle::after {
    transition: background-color 160ms ease, translate 160ms ease;
  }
}

.v5-settings-pinned {
  color: var(--settings-muted);
  font-size: 10px;
  white-space: nowrap;
}

#tablet .v5-settings :focus-visible,
#tablet .v5-settings-upload:has(input:focus-visible) {
  outline: 2px solid #d7e5ff;
  outline-offset: 2px;
}

@container (max-width: 560px) {
  .v5-settings-wallpaper-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .v5-settings-wallpaper {
    aspect-ratio: 2 / 1;
  }

  .v5-settings-app-row {
    grid-template-columns: 36px minmax(0, 1fr) auto 60px;
    gap: 5px;
  }
}

/* Rose Smoke */
@container (min-width: 680px) {
  [data-v5-layout="landscape"] #tablet .wk-app .wk-layout .wk-main:has(#wkResults:not([hidden]) .wk-result):not(:has(#wkShortsView:not([hidden]))) {
    padding-top: clamp(20px, 3.5cqw, 40px) !important;
  }

  [data-v5-layout="landscape"] #tablet .wk-app .wk-results-grid {
    row-gap: clamp(42px, 8cqw, 110px) !important;
    column-gap: clamp(12px, 1.75cqw, 22px) !important;
  }
}

[data-v5-layout="phone"] #tablet .wk-app .wk-results-grid {
  gap: 11px !important;
}

#tablet .veil.show:has(.wk-shell) {
  background: #49233355 !important;
  backdrop-filter: blur(28px) saturate(.9) !important;
}

#tablet .veil.show .app-window.wk-shell {
  --v5-video-text: #fff0dc;
  --v5-video-muted: #e5c9cb;
  --v5-video-card: #42252eda;
  --v5-video-line: #e9abb75c;
  border-radius: var(--v5-frame-radius);
  background-color: #623c4bd9 !important;
  background-image: linear-gradient(150deg, #b5869a46, #4b292a47 46%, #d7796f36 82%, #7844574a) !important;
}

#tablet .veil.show .app-window.wk-shell::after {
  display: block !important;
  z-index: 10;
  padding: 2px;
  background: linear-gradient(135deg, #ffdaaf, #ce79a1 43%, #f38b95 73%, #ffc18f);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  box-shadow: none;
  animation: none;
}

#tablet .wk-app .wk-topsearch {
  background: #42252e80 !important;
  border-color: #dfafbd69 !important;
}

#tablet .wk-app .wk-layout {
  grid-template-rows: auto minmax(0, 1fr) !important;
}

#tablet .wk-app .wk-layout .wk-main {
  grid-area: 2 / 1 !important;
}

#tablet .wk-app:has(#wkWatchView:not([hidden])) .wk-layout .wk-main {
  grid-area: 1 / 1 !important;
}

#tablet .wk-app .wk-layout .wk-side {
  grid-area: 1 / 1;
  width: min(320px, 72%) !important;
  gap: 0 !important;
  margin: 6px 0 clamp(14px, 3.6cqw, 42px) !important;
  padding: 2px !important;
  border-color: #dea7b35c !important;
  border-radius: 999px !important;
  background: #43252e91 !important;
}

#tablet .wk-app:has(#wkShortsView:not([hidden])) .wk-layout .wk-side {
  grid-area: 1 / 1;
  max-height: none !important;
  margin-bottom: 8px !important;
}

#tablet .wk-app .wk-layout .wk-side .wk-nav-item {
  flex: 1 1 0;
  height: clamp(32px, 4.7cqw, 52px) !important;
  border: 0 !important;
  border-radius: 999px !important;
}

#tablet .wk-app .wk-layout .wk-side .wk-nav-item svg {
  display: none;
}

#tablet .wk-app .wk-layout .wk-side .wk-nav-item span {
  font-size: clamp(13px, 2.05cqw, 22px) !important;
  font-weight: 620 !important;
}

#tablet .wk-app .wk-layout .wk-side .wk-nav-item.is-active {
  background: #a66b77 !important;
}

#tablet .wk-app .wk-results-grid .wk-result {
  border-radius: clamp(11px, 1.55cqw, 17px);
  background: #2e2028 !important;
  box-shadow: 0 8px 18px #2f101c37 !important;
}

#tablet .wk-app .wk-results-grid .wk-result-thumb {
  aspect-ratio: 4 / 3;
}

#tablet .wk-app .wk-results-grid .wk-result-copy {
  display: flex;
  justify-content: space-between;
  min-height: clamp(33px, 4.1cqw, 48px);
  gap: 8px !important;
  padding: 6px clamp(8px, 1.45cqw, 16px);
  background: linear-gradient(110deg, #35252d, #291f26);
}

#tablet .wk-app .wk-result-copy .wk-result-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(11px, 1.6cqw, 18px);
}

#tablet .wk-app .wk-result-copy .wk-result-duration {
  position: static;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--v5-video-text);
  font-size: clamp(11px, 1.45cqw, 16px);
}

@container (min-width: 680px) {
  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls {
    top: 4%;
    bottom: 4%;
    justify-content: flex-start;
    padding-top: 12px;
    border: 1px solid #e2aab96b;
    border-radius: 0 26px 26px 0;
    background: #6e444fbd;
  }

  #deviceFrame:has(.veil.show .wk-shell) .v5-outside-controls button {
    border-color: transparent;
    background: transparent;
    color: #fff0dc;
  }
}

[data-v5-layout="phone"] #tablet .wk-app .wk-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-block: 12px 4px !important;
}

[data-v5-layout="phone"] #tablet .wk-app .wk-brand {
  font-size: clamp(23px, 10cqw, 35px);
}

[data-v5-layout="phone"] #tablet .wk-app .wk-results-grid .wk-result-thumb {
  aspect-ratio: 3 / 1;
}

#deviceFrame[data-v5-layout="phone"]:has(.veil.show .wk-shell) .v5-outside-controls {
  top: calc(100% + 7px);
  bottom: auto;
  left: 50%;
  right: auto;
  width: 100%;
  flex-direction: row;
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid #e2aab96b;
  border-radius: 999px;
  background: #6e444fed;
}

#deviceFrame[data-v5-layout="phone"]:has(.veil.show .wk-shell) .v5-outside-controls::before,
#deviceFrame[data-v5-layout="phone"]:has(.veil.show .wk-shell) .v5-outside-controls::after {
  content: none;
}

#deviceFrame[data-v5-layout="phone"]:has(.veil.show .wk-shell) .v5-outside-controls button {
  flex: 1 1 0;
  flex-direction: row;
  min-height: 34px;
  border: 1px solid #e2aab94e;
  border-radius: 999px;
  color: #fff0dc;
}
