.wb-share-button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.wb-share-button:focus-visible,
.wb-share-manual button:focus-visible,
.wb-share-manual__url:focus-visible {
  outline: 3px solid rgba(162, 139, 255, .72);
  outline-offset: 2px;
}

.wb-share-button[data-wb-share-busy="1"] {
  opacity: .68;
}

.wb-share-icon {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: currentColor;
}

.wb-home-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 13px;
  background: #303033;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .28);
  flex: 0 0 44px;
}

@media (hover: hover) {
  .wb-home-share-button:hover {
    background: #3a3a3e;
    border-color: rgba(255, 255, 255, .28);
  }

  .wb-detail-share-button:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .22);
  }
}

.wb-home-share-button:active,
.wb-detail-share-button:active {
  transform: scale(.95);
}

.wb-home-share-button__label {
  display: none;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.search-row .search-form {
  width: auto;
  min-width: 0;
  flex: 1 1 0;
}

.search-row .search-input {
  min-width: 0;
  width: 100%;
}

.wb-detail-secondary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.wb-detail-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 13px 16px;
  border-color: rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 22px rgba(0, 0, 0, .22);
}

.wb-detail-share-button .wb-share-icon {
  width: 22px;
  height: 22px;
}

.wb-share-toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 12020;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(35, 35, 38, .96);
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease;
}

.wb-share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.wb-share-copy-probe {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
}

.wb-share-manual-layer {
  position: fixed;
  inset: 0;
  z-index: 12010;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, .66);
}

.wb-share-manual {
  width: min(440px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: #171719;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .52);
}

.wb-share-manual h2 {
  margin: 0 0 13px;
  font-size: 17px;
  line-height: 1.4;
}

.wb-share-manual__url {
  display: block;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: #0d0d0e;
  color: #fff;
  font-size: 16px;
}

.wb-share-manual__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.wb-share-manual__actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.wb-share-manual__copy {
  background: #6d5cff;
}

.wb-share-manual__close {
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 340px) {
  .search-row {
    gap: 7px;
  }

  .search-row .search {
    padding-right: 10px;
    padding-left: 10px;
  }

  .wb-home-share-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex-basis: 42px;
  }

  .wb-detail-secondary-row {
    gap: 8px;
  }

  .wb-detail-share-button,
  .wb-detail-secondary-row .favorite-btn {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (min-width: 700px) {
  .wb-home-share-button {
    width: auto;
    min-width: 82px;
    padding: 0 15px;
    gap: 8px;
    flex-basis: auto;
  }

  .wb-home-share-button__label {
    display: inline;
  }

  .wb-share-manual-layer {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-share-button,
  .wb-share-toast {
    transition: none;
  }
}

body.watch-dev-swipe-body .wb-watch-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  border-color: rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(25, 22, 22, .42);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  flex: 0 0 44px;
  touch-action: manipulation;
}

body.watch-dev-swipe-body .wb-watch-share-button .wb-share-icon {
  width: 22px;
  height: 22px;
}

body.watch-dev-swipe-body .wb-watch-share-button:active {
  transform: scale(.94);
  background: rgba(36, 32, 32, .54);
}

body.watch-dev-swipe-body .wb-share-toast {
  bottom: calc(132px + env(safe-area-inset-bottom));
}

@media (hover: hover) {
  body.watch-dev-swipe-body .wb-watch-share-button:hover {
    background: rgba(44, 40, 40, .58);
    border-color: rgba(255, 255, 255, .24);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  body.watch-dev-swipe-body .wb-watch-share-button {
    margin-right: env(safe-area-inset-right);
  }

  body.watch-dev-swipe-body .wb-share-toast {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

body.watch-dev-swipe-body .watch-topbar-right-actions {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 121;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

body.watch-dev-swipe-body .watch-topbar-right-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: static;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(22, 18, 18, .42);
  color: #fff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .16), 0 10px 26px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  line-height: 1 !important;
  pointer-events: auto;
  transition: opacity .22s ease, transform .14s ease, background-color .14s ease, border-color .14s ease, box-shadow .14s ease !important;
}

body.watch-dev-swipe-body .watch-topbar-right-actions .swipe-sound-toggle {
  font-size: 18px !important;
}

body.watch-dev-swipe-body .watch-topbar-right-actions .wb-watch-share-button .wb-share-icon {
  width: 23px;
  height: 23px;
}

body.watch-dev-swipe-body .watch-topbar-right-actions > button:active {
  transform: scale(.94) !important;
  background: rgba(36, 32, 32, .54) !important;
}

body.watch-dev-swipe-body .swipe-page:not(.watch-dev-ui-visible) .watch-topbar-right-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

@media (hover: hover) {
  body.watch-dev-swipe-body .watch-topbar-right-actions > button:hover {
    background: rgba(44, 40, 40, .58) !important;
    border-color: rgba(255, 255, 255, .24) !important;
  }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  body.watch-dev-swipe-body .watch-topbar-right-actions {
    right: calc(114px + env(safe-area-inset-right));
  }

  body.watch-dev-swipe-body.swipe-nav-restored-body .swipe-page.is-desktop-swipe .watch-topbar-right-actions > .swipe-sound-toggle {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    z-index: auto !important;
  }

  body.watch-dev-swipe-body.swipe-nav-restored-body .swipe-page.is-desktop-swipe .watch-topbar-right-actions > .wb-watch-share-button {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(10, 10, 18, .52);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .05);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  body.watch-dev-swipe-body.swipe-nav-restored-body .swipe-page.is-desktop-swipe .watch-topbar-right-actions > button:hover {
    background: rgba(255, 255, 255, .16) !important;
    border-color: rgba(255, 255, 255, .34) !important;
    transform: scale(1.06) !important;
    -webkit-transform: scale(1.06) !important;
  }

  body.watch-dev-swipe-body.swipe-nav-restored-body .swipe-page.is-desktop-swipe .watch-topbar-right-actions > button:active {
    transform: scale(.96) !important;
    -webkit-transform: scale(.96) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.watch-dev-swipe-body .watch-topbar-right-actions,
  body.watch-dev-swipe-body .watch-topbar-right-actions > button {
    transition: none !important;
  }
}
