@import url("https://cdn-uicons.flaticon.com/4.0.0/uicons-solid-rounded/css/uicons-solid-rounded.css");

/* KaiyoShop avatar/banner loadout media. The purchased media sits above the
   user's uploaded/default visual without changing the underlying profile. */
[data-shop-media-category="avatar"].has-shop-media {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  color: transparent !important;
}

/* Keep generated avatars identical everywhere when no image is selected. */
.auth-profile-avatar.is-default-avatar:not(.has-shop-media),
.auth-profile-menu-avatar.is-default-avatar:not(.has-shop-media),
.mobile-drawer-profile-avatar.is-default-avatar:not(.has-shop-media),
.watch-comment-avatar.is-default-avatar:not(.has-shop-media),
.watch-comment-form-avatar.is-default-avatar:not(.has-shop-media),
.anime-comment-avatar.is-default-avatar:not(.has-shop-media),
.anime-comment-form-avatar.is-default-avatar:not(.has-shop-media) {
  background-color: var(--kaiyo-avatar-to, #147875) !important;
  background-image: linear-gradient(
    135deg,
    var(--kaiyo-avatar-from, #38c6b3),
    var(--kaiyo-avatar-to, #147875)
  ) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

[data-shop-media-category="avatar"].has-shop-media > .auth-profile-avatar-img,
[data-shop-media-category="avatar"].has-shop-media > .mobile-drawer-profile-avatar-img,
[data-shop-media-category="avatar"].has-shop-media > .watch-comment-avatar-img,
[data-shop-media-category="avatar"].has-shop-media > .watch-comment-form-avatar-img,
[data-shop-media-category="avatar"].has-shop-media > .anime-comment-avatar-img {
  opacity: 0 !important;
}

.mobile-drawer-profile-banner.has-shop-media {
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

.mobile-drawer-profile-banner.has-shop-media > .mobile-drawer-profile-banner-img {
  opacity: 0 !important;
}

/* Desktop account dropdown shared by the main site headers. */
.auth-header-cluster {
  position: relative;
  overflow: visible;
}


.auth-notification-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.auth-header-bell {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255,255,255,0);
  color: #fff;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.24s cubic-bezier(0.2,0.8,0.2,1),
    background-color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.auth-header-bell:focus-visible {
  transform: none;
  border-color: transparent;
  background: rgba(255,255,255,0.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.28);
  filter: drop-shadow(0 0 7px rgba(255,255,255,0.14));
  outline: none;
}

.auth-header-bell:active {
  transform: translateY(0) scale(0.94);
}

button.auth-header-bell:focus-visible:not(:disabled) {
  transform: none !important;
}

button.auth-header-bell:active:not(:disabled) {
  transform: scale(0.94) !important;
}

.auth-header-bell .auth-header-icon-img {
  width: 19px;
  height: 19px;
  display: block;
  object-fit: contain;
  opacity: 0.94;
  transform-origin: 50% 12%;
}

.auth-notification-wrap.is-open .auth-header-bell {
  border-color: transparent;
  background: rgba(255,64,87,0.085);
  box-shadow: inset 0 1px 0 rgba(255,210,218,0.05), 0 9px 22px rgba(0,0,0,0.26);
  filter: drop-shadow(0 0 8px rgba(255,92,92,0.28));
}

@media (hover: hover) and (pointer: fine) {
  .auth-header-bell:hover {
    transform: none;
    border-color: transparent;
    background: rgba(255,255,255,0.075);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.28);
    filter: drop-shadow(0 0 7px rgba(255,255,255,0.14));
  }

  button.auth-header-bell:hover:not(:disabled) {
    transform: none !important;
  }

  .auth-header-bell:hover .auth-header-icon-img {
    animation: authBellRing 0.58s cubic-bezier(0.2,0.8,0.2,1) both;
  }

  button.auth-header-bell:active:not(:disabled) {
    transform: scale(0.94) !important;
  }
}

@keyframes authBellRing {
  0%, 100% { transform: rotate(0deg) scale(1); }
  28% { transform: rotate(-12deg) scale(1.06); }
  56% { transform: rotate(9deg) scale(1.06); }
  78% { transform: rotate(-4deg) scale(1.02); }
}

.auth-notification-badge {
  position: absolute;
  top: 5px;
  right: -1px;
  min-width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #0c0d11;
  border-radius: 999px;
  background: #ff4057;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 11px rgba(255,64,87,0.46);
}

.auth-notification-badge[hidden] {
  display: none;
}

.auth-notification-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -48px;
  z-index: 2410;
  width: min(356px, calc(100vw - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(114,39,38,0.18), transparent 34%),
    linear-gradient(155deg, rgba(31,22,24,0.985), rgba(14,14,18,0.99) 62%);
  box-shadow: 0 28px 75px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.035);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-9px) scale(0.975);
  transform-origin: top right;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.24s cubic-bezier(0.2,0.85,0.2,1);
}

.auth-notification-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.auth-notification-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 56px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(255,255,255,0.085);
  border-left: 1px solid rgba(255,255,255,0.085);
  background: #201719;
  transform: rotate(45deg);
}

.auth-notification-list {
  display: grid;
  max-height: min(336px, calc(100vh - 132px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.auth-notification-list::-webkit-scrollbar {
  width: 4px;
}

.auth-notification-list::-webkit-scrollbar-track {
  background: transparent;
}

.auth-notification-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
}

.auth-notification-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}

.auth-notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(235,231,233,0.7);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-notification-item:last-child {
  border-bottom: 0;
}

.auth-notification-item:hover,
.auth-notification-item:focus-visible {
  z-index: 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  transform: none;
  outline: none;
}

.auth-notification-item.is-unread::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff5368;
  box-shadow: 0 0 9px rgba(255,83,104,0.58);
}

.auth-notification-item-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 11px;
  background: rgba(255,255,255,0.04);
  color: rgba(230,225,227,0.62);
  font-size: 16px;
}

.auth-notification-item.is-unread .auth-notification-item-icon {
  border-color: rgba(255,101,91,0.17);
  background: rgba(255,79,66,0.065);
  color: #ff8d78;
}

.auth-notification-item-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding-right: 10px;
  text-align: left;
}

.auth-notification-item-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.auth-notification-item-copy time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(210,205,208,0.38);
  font-size: 9px;
  font-weight: 650;
}

.auth-notification-item-copy time i {
  display: inline-flex;
  font-size: 9px;
  line-height: 1;
}

.auth-notification-empty {
  min-height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  color: rgba(226,228,235,0.48);
  text-align: center;
}

.auth-notification-empty > i {
  margin-bottom: 4px;
  color: rgba(255,255,255,0.25);
  font-size: 27px;
}

.auth-notification-empty strong {
  color: rgba(245,246,249,0.74);
  font-size: 13px;
}

.auth-notification-empty span {
  font-size: 10px;
}

@media (max-width: 900px) {
  .auth-notification-panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-notification-panel,
  .auth-header-bell {
    transition: none;
  }

  .auth-header-bell .auth-header-icon-img {
    animation: none !important;
  }
}


.auth-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.auth-profile-pill {
  cursor: pointer;
}

.auth-profile-arrow {
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
}

.auth-profile-wrap.is-open .auth-profile-arrow {
  transform: rotate(225deg) translate(-1px, -1px);
  opacity: 1;
}

.auth-profile-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  z-index: 2400;
  width: min(292px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(23,20,25,0.98), rgba(10,11,15,0.985) 54%),
    #0c0d11;
  box-shadow: 0 26px 70px rgba(0,0,0,0.58), inset 0 1px 0 rgba(255,255,255,0.045);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-9px) scale(0.975);
  transform-origin: top right;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.24s cubic-bezier(0.2,0.85,0.2,1);
}

.auth-profile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.auth-profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
  background: #151318;
  transform: rotate(45deg);
}

.auth-profile-menu-account {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 7px 6px 10px;
}

.auth-profile-menu-avatar {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 9px 20px rgba(0,0,0,0.28);
}

.auth-profile-menu-avatar.has-image {
  background: #17181e;
  color: transparent;
}

.auth-profile-menu-avatar .auth-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-profile-menu-identity {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.auth-profile-menu-identity strong,
.auth-profile-menu-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-profile-menu-identity strong {
  color: #f8f8fb;
  font-size: 14px;
  font-weight: 850;
}

.auth-profile-menu-identity small {
  color: rgba(222,224,233,0.54);
  font-size: 10px;
  font-weight: 650;
}

.auth-profile-menu-level {
  align-self: center;
  padding: 4px 6px;
  border: 1px solid rgba(94,225,142,0.25);
  border-radius: 6px;
  background: rgba(47,151,89,0.12);
  color: #69e796;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.auth-profile-menu-level.is-premium {
  border-color: rgba(255,139,35,0.34);
  background: rgba(221,62,7,0.13);
  color: #ffad3f;
}

.auth-profile-menu-promo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  margin: 2px 0 10px;
  padding: 12px 84px 12px 13px;
  overflow: hidden;
  border: 1px solid rgba(255,95,28,0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255,170,20,0.3), transparent 34%),
    radial-gradient(circle at 16% 90%, rgba(232,31,7,0.22), transparent 42%),
    linear-gradient(120deg, rgba(45,15,10,0.98), rgba(20,14,15,0.98) 62%, rgba(36,24,13,0.98));
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.auth-profile-menu-promo:hover {
  transform: translateY(-1px);
  border-color: rgba(255,125,42,0.58);
  box-shadow: 0 10px 25px rgba(197,43,7,0.16);
  filter: brightness(1.06);
}

.auth-profile-menu-promo > span {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 3px;
  text-align: left;
}

.auth-profile-menu-promo small {
  color: #ff8736;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.auth-profile-menu-promo strong {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.auth-profile-menu-promo img {
  position: absolute;
  right: 8px;
  bottom: -16px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.36));
  transform: rotate(-6deg);
}

.auth-profile-menu-links {
  display: grid;
  gap: 3px;
  padding: 2px 0 9px;
}

.auth-profile-menu-links a,
.auth-profile-menu-logout {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(241,242,247,0.8);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.auth-profile-menu-links a:hover,
.auth-profile-menu-links a:focus-visible,
.auth-profile-menu-logout:hover,
.auth-profile-menu-logout:focus-visible {
  transform: translateX(2px);
  background: rgba(255,255,255,0.065);
  color: #fff;
  outline: none;
}

button.auth-profile-menu-logout:hover:not(:disabled),
button.auth-profile-menu-logout:focus-visible:not(:disabled) {
  transform: translateX(2px);
}

button.auth-profile-menu-logout:active:not(:disabled) {
  transform: translateX(1px) scale(0.985);
}

.auth-profile-menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.auth-profile-menu-icon::before {
  display: block;
  line-height: 1;
}

.auth-profile-menu-links .is-shop-link {
  color: #ff923d;
}

.auth-profile-menu-logout {
  border-top: 1px solid rgba(255,255,255,0.075);
  border-radius: 0 0 11px 11px;
  color: #ff686f;
  padding-top: 8px;
  margin-top: 1px;
}

@media (max-width: 900px) {
  .auth-profile-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-profile-menu,
  .auth-profile-arrow {
    transition: none;
  }
}

/* KaiyoShop avatar decorations: header, menus, mobile navigation and comments. */
.sakura-avatar-decoration {
  position: absolute !important;
  z-index: 5 !important;
  top: 50% !important;
  left: 50% !important;
  width: 140% !important;
  height: 140% !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: 0;
  object-fit: contain !important;
  object-position: center !important;
  pointer-events: none !important;
  transform: translate(-50%, -50%) scale(.94) rotate(-.3deg);
  transform-origin: center;
  filter: drop-shadow(0 5px 11px rgba(0,0,0,.34));
  transition: opacity .22s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}

.sakura-avatar-decoration.is-visible {
  opacity: 1;
  animation: sakura-avatar-decoration-alive 4.8s ease-in-out infinite;
}

.sakura-avatar-decoration.is-visible.has-native-motion {
  animation: none;
  transform: translate(-50%, -50%) scale(1);
  filter: drop-shadow(0 5px 11px rgba(0,0,0,.34));
}

@keyframes sakura-avatar-decoration-alive {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1) rotate(-.35deg);
    filter: drop-shadow(0 5px 11px rgba(0,0,0,.34)) brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.025) rotate(.55deg);
    filter: drop-shadow(0 6px 13px rgba(239,51,79,.2)) brightness(1.06);
  }
}

.auth-profile-avatar-shell {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  transition: transform .2s ease;
}

.auth-profile-avatar-shell > .auth-profile-avatar,
.auth-profile-avatar-shell > .auth-profile-menu-avatar {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.auth-profile-avatar-shell .auth-profile-avatar-img,
.auth-profile-menu-avatar .auth-profile-avatar-img,
.mobile-drawer-profile-avatar-img,
.mobile-bottom-avatar,
.watch-comment-avatar-img,
.watch-comment-form-avatar-img,
.anime-comment-avatar-img {
  position: relative;
  z-index: 2;
  border-radius: inherit;
}

.auth-profile-pill:hover .auth-profile-avatar-shell {
  transform: translateY(-2px);
}

.auth-profile-pill:hover .auth-profile-avatar-shell .auth-profile-avatar,
.auth-profile-pill:focus-visible .auth-profile-avatar-shell .auth-profile-avatar,
.auth-profile-pill:active .auth-profile-avatar-shell .auth-profile-avatar {
  transform: none !important;
}

.mobile-drawer-profile-avatar,
.mobile-bottom-icon,
.watch-comment-avatar,
.watch-comment-form-avatar,
.anime-comment-avatar,
.anime-comment-form-avatar {
  position: relative !important;
}

.mobile-drawer-profile-avatar,
.watch-comment-avatar,
.watch-comment-form-avatar,
.anime-comment-avatar,
.anime-comment-form-avatar {
  overflow: visible !important;
}

.mobile-drawer-profile-avatar > .mobile-drawer-profile-avatar-img,
.watch-comment-avatar > .watch-comment-avatar-img,
.watch-comment-form-avatar > .watch-comment-form-avatar-img,
.anime-comment-avatar > .anime-comment-avatar-img,
.anime-comment-form-avatar > .anime-comment-avatar-img {
  overflow: hidden;
  border-radius: 50% !important;
}

.mobile-drawer-profile-decoration {
  width: 125% !important;
  height: 125% !important;
}

.mobile-bottom-avatar-decoration {
  width: 148% !important;
  height: 148% !important;
}

.watch-comment-avatar-decoration,
.anime-comment-avatar-decoration {
  width: 152% !important;
  height: 152% !important;
}

.watch-comment-form-decoration {
  width: 145% !important;
  height: 145% !important;
}

.watch-comment-form-avatar-fallback {
  position: relative;
  z-index: 2;
}

.mobile-bottom-avatar-fallback {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .sakura-avatar-decoration.is-visible {
    animation: none;
    transform: translate(-50%, -50%) scale(1);
  }
}
