/* WatchVIM homepage interaction corrections.
   Presentation only: authenticated header controls and floating poster-row arrows. */

/* Authenticated header controls */
body.wv-redesign .wv-authenticated-header-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
  position: relative;
  z-index: 2147483000;
  pointer-events: auto;
}

body.wv-redesign .wv-authenticated-profile,
body.wv-redesign .wv-authenticated-logout {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: #fff;
  background: rgba(255,255,255,.09);
  box-shadow: none;
  font: 750 14px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

body.wv-redesign .wv-authenticated-profile:hover,
body.wv-redesign .wv-authenticated-logout:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.22);
}

body.wv-redesign .wv-authenticated-profile-avatar,
body.wv-redesign .wv-authenticated-profile-initials {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(236,10,88,.62), rgba(212,175,55,.46));
}

body.wv-redesign .wv-authenticated-profile-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

body.wv-redesign .wv-authenticated-logout[aria-busy="true"] {
  opacity: .55;
  cursor: wait;
}

/* Homepage poster carousels */
body.wv-route-home .wv-home-row-viewport {
  position: relative !important;
  width: 100%;
  overflow: visible !important;
  isolation: isolate;
}

body.wv-route-home .wv-home-row-viewport > .wv-poster-rail,
body.wv-route-home .wv-home-row-viewport > .row-scroll {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

body.wv-route-home .wv-home-row-viewport > .wv-poster-rail::-webkit-scrollbar,
body.wv-route-home .wv-home-row-viewport > .row-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

body.wv-route-home .wv-home-row-arrow {
  appearance: none;
  position: absolute;
  top: 0;
  bottom: 22px;
  z-index: 18;
  width: clamp(54px, 4.8vw, 82px);
  min-width: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  color: rgba(255,255,255,.96);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: .78;
  visibility: visible;
  box-shadow: none !important;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.wv-route-home .wv-home-row-arrow--left {
  left: -2px;
  background: linear-gradient(90deg, rgba(2,2,3,.94) 0%, rgba(2,2,3,.62) 44%, rgba(2,2,3,0) 100%) !important;
}

body.wv-route-home .wv-home-row-arrow--right {
  right: -2px;
  background: linear-gradient(270deg, rgba(2,2,3,.94) 0%, rgba(2,2,3,.62) 44%, rgba(2,2,3,0) 100%) !important;
}

body.wv-route-home .wv-home-row-arrow svg {
  width: 38px;
  height: 38px;
  pointer-events: none;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.82));
}

body.wv-route-home .wv-home-row-arrow:hover,
body.wv-route-home .wv-home-row-arrow:focus-visible {
  opacity: 1;
}

body.wv-route-home .wv-home-row-arrow--left:hover {
  transform: translateX(-2px);
}

body.wv-route-home .wv-home-row-arrow--right:hover {
  transform: translateX(2px);
}

body.wv-route-home .wv-home-row-arrow[disabled],
body.wv-route-home .wv-home-row-arrow.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  body.wv-redesign .wv-authenticated-header-controls {
    gap: 7px;
  }

  body.wv-redesign .wv-authenticated-profile,
  body.wv-redesign .wv-authenticated-logout {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }

  body.wv-redesign .wv-authenticated-profile-avatar,
  body.wv-redesign .wv-authenticated-profile-initials {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  body.wv-route-home .wv-home-row-arrow {
    width: 48px;
    bottom: 20px;
    opacity: .72;
  }

  body.wv-route-home .wv-home-row-arrow svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 520px) {
  body.wv-redesign .wv-authenticated-profile,
  body.wv-redesign .wv-authenticated-logout {
    padding: 0 10px;
  }

  body.wv-redesign .wv-authenticated-profile-label {
    display: none;
  }
}
