/* ===== app/pages/anime/[id]/index.vue ===== */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  will-change: transform, opacity;
}

.genre-tag {
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  border: transparent;
  color: var(--primary);
}
.genre-tag:hover {
  background: color-mix(in oklch, var(--primary) 20%, transparent);
  color: var(--primary);
}
.carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

@keyframes bounce-down {
  0% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(10px) scale(0.95);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.animate-bounce-down {
  display: inline-block;
  animation: bounce-down 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.description-clamped.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== app/pages/continue-watching.vue ===== */
/* Scrollbar cleanup */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Zoom Transition from Top of Element */
.zoom-top-enter-active,
.zoom-top-leave-active {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.zoom-top-enter-from,
.zoom-top-leave-to {
  opacity: 0;
  transform: scaleY(0.85) scaleX(0.95) translateY(-6px);
}

.zoom-top-enter-to,
.zoom-top-leave-from {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Custom Animation Utility Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Background Blur Layer Adjustments */
.hero-blur-layer {
  filter: blur(20px);
  transform: scale(1.1);
}

/* ===== app/pages/index.vue ===== */
/* Vue panel translation classes executing the box animations */
.search-panel-enter-active,
.search-panel-leave-active {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-panel-enter-from,
.search-panel-leave-to {
  opacity: 0;
  transform: translateY(-8px) scale(0.995);
}

/* ===== app/pages/search.vue ===== */
/* Marquee scroll for anime titles that overflow their box on card hover.
   .anime-title (native ellipsis truncation) and .anime-title-marquee (the
   scrolling overlay) sit stacked in the same spot; JS just fades between
   them. --marquee-distance is set inline (in px) by startTitleMarquee() to
   the exact overflow amount, so the scroll distance always matches the text. */
.anime-title,
.anime-title-marquee {
  transition: opacity 150ms ease;
}

.anime-title-text {
  display: inline-block;
}

.anime-title-text.title-marquee {
  animation: title-marquee-scroll 4s ease-in-out infinite;
}

@keyframes title-marquee-scroll {
  0%, 10% { transform: translateX(0); }               /* hold at the start */
  40%, 52% { transform: translateX(calc(-1 * var(--marquee-distance, 0px))); } /* hold at the end (~0.5s) */
  85%, 100% { transform: translateX(0); }              /* back at the start, brief hold before looping */
}

/* ===== app/pages/settings.vue ===== */
.toggle-switch {
  display: inline-flex;
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  align-items: center;
  padding: 2px;
  transition: background-color 0.2s ease;
}
.toggle-switch.active {
  background: var(--primary, #3b82f6);
}
.toggle-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.toggle-thumb.active {
  transform: translateX(16px);
}
.capitalize {
  text-transform: capitalize;
}
.h1,h2,h3,h4,h5,h6 {
  color: #ffffff !important;
}
.h1 {
  color: #ffffff !important;
}
.opacity-20 {
  opacity: 0.2;
  pointer-events: none;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: 4px;
}
.text-green {
  color: #10b981 !important;
}
.sync-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.sync-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sync-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 122 207 0) / 0.25);
  transition: box-shadow 0.15s ease;
}
.sync-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
}
.sync-value {
  min-width: 38px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.toggle-label {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}
.scroll-indicators {
  position: fixed;
  right: 14px;
  top: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}
.scroll-dot {
  width: 3px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transition: transform .2s, background .2s, height .2s;
}
.scroll-dot.active { background: var(--primary); height: 20px; transform: scaleX(1.3); }

.settings-pages {
  position: relative;
  overflow: hidden;
  transition: height 0.55s cubic-bezier(0.65, 0, 0.35, 1);
}
.settings-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.settings-section.is-active {
  pointer-events: auto;
}

/* ===== app/pages/watchlist.vue ===== */
/* Scrollbar cleanup */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Zoom Transition from Top of Element */
.zoom-top-enter-active,
.zoom-top-leave-active {
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

.zoom-top-enter-from,
.zoom-top-leave-to {
  opacity: 0;
  transform: scaleY(0.85) scaleX(0.95) translateY(-6px);
}

.zoom-top-enter-to,
.zoom-top-leave-from {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ===== app/components/AuthModal.vue ===== */
/* Overlay Fade Transition */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Permanent centering — survives after transition classes are stripped */
.auth-panel {
  transform: translate(-50%, -50%);
}

/* Modal Grow & Fade Transition */
.modal-grow-enter-active,
.modal-grow-leave-active {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-grow-enter-from,
.modal-grow-leave-to {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
}

.modal-grow-enter-to,
.modal-grow-leave-from {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===== app/components/MediaCard.vue ===== */
.flip-inner {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.flip-front,
.flip-back {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  z-index: 2;
}
.flip-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* required for the marquee transform to actually take effect */
.anime-title-text {
  display: inline-block;
  will-change: transform;
}

/* ===== app/components/quicksearch.vue ===== */
.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== app/components/sidebar.vue ===== */
/* Main dynamic entry/exit slide animations */
.dock-slide-enter-active {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}
.dock-slide-leave-active {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s ease;
}
.dock-slide-enter-from,
.dock-slide-leave-to {
  opacity: 1;
  transform: translate(var(--slide-offset-x, -120px), 0) rotate(var(--dock-rotation, 0deg)) !important;
}

/* Stable transitions for the mini sidebar (Pure Horizontal Alignment Only) */
.mini-sidebar-slide-enter-active {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}
.mini-sidebar-slide-leave-active {
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.7s ease;
}
.mini-sidebar-slide-enter-from,
.mini-sidebar-slide-leave-to {
  opacity: 1;
  transform: translateX(-100%) !important;
}
.mini-sidebar-slide-enter-to,
.mini-sidebar-slide-leave-from {
  opacity: 1;
  transform: translateX(0) !important;
}

/* ===== Re:Anime Characters section — premium duo cards (character + voice actor) ===== */
.reanime-char-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 2px 8px;
}
@media (max-width: 640px) {
  .reanime-char-row { grid-template-columns: minmax(0, 1fr); }
}
.reanime-char-duo {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 56px;
  align-items: center;
  gap: 10px;
  background: linear-gradient(160deg, #17171d 0%, #101014 100%);
  border: 1px solid #26262f;
  border-radius: 14px;
  padding: 10px 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.reanime-char-duo.no-va {
  grid-template-columns: 56px minmax(0, 1fr);
}
.reanime-char-duo:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--primary) 55%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 0 1px color-mix(in oklch, var(--primary) 35%, transparent);
}
.rcd-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #1c1c24;
  border: 1px solid #2e2e38;
}
.rcd-ph { background: linear-gradient(135deg, #1c1c24, #141419); }
.rcd-meta { min-width: 0; }
.rcd-va-meta { text-align: right; }
.rcd-name {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rcd-sub {
  color: #8b8b98;
  font-size: 0.72rem;
  line-height: 1.2;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================================
 * HOVER FPS FIX (2026-09-25)
 * Zero visual change — promotes hover-animated elements to their
 * own GPU compositor layers so hover animations (transform /
 * opacity / filter) run on the GPU at 30-60fps instead of forcing
 * a repaint on every frame.
 * Safe: Tailwind v4 implements translate/scale via the native CSS
 * `translate` / `scale` properties, so `transform: translateZ(0)`
 * composes with them and overrides nothing.
 * ============================================================ */

/* Top Trending rows (home): the 800ms hover animates the
   full-bleed banner image (scale + opacity + grayscale filter) and the
   big rank numerals. An animating grayscale() filter repaints the whole
   image every frame unless the element owns a compositor layer. */
[data-trend-id] > img,
[data-mslug] > img {
  will-change: transform, opacity, filter;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
[data-trend-id] > span,
[data-mslug] > span {
  will-change: transform, opacity;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
[data-trend-id],
[data-mslug] {
  will-change: transform;
}

/* Character duo cards: hover lifts the card (translateY). Promote it so
   the lift composites; the small glow repaint stays cheap. */
.reanime-char-duo {
  will-change: transform;
}

/* Media cards: hover lift already transform-only; promote the root so it
   never falls back to main-thread painting mid-hover. */
[data-mc="root"] {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ===== EN/JP title language toggle (header) — DETAILS-button style (Khawar 2026-09-30) =====
 * Small boxes; the SELECTED option gets a slanted parallelogram box behind it:
 * green low-transparency fill + lime outline with a thin inner line, like the
 * reference DETAILS button. Inactive option = plain dim white text, no box. */
/* Watch2Gether header chip — same plate as the active EN/JP option:
   skewed dark glass, lime border, 10px/800 header type. */
.re-w2g-link.c-ow202j {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 10px;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease, transform 0.15s ease;
}
.re-w2g-link.c-ow202j::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-12deg);
  background: linear-gradient(180deg, rgba(203, 254, 10, 0.10), rgba(203, 254, 10, 0.03)), rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(203, 254, 10, 0.55);
  box-shadow: inset 0 0 0 3px rgba(8, 8, 8, 0.55), inset 0 0 0 4px rgba(203, 254, 10, 0.22);
}
.re-w2g-link.c-ow202j svg { color: var(--primary); flex-shrink: 0; }
.re-w2g-link.c-ow202j:hover { opacity: 0.92; }
.re-w2g-link.c-ow202j:active { transform: scale(0.96); }
.re-w2g-link.c-ow202j:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 560px) {
  .re-w2g-link.c-ow202j { padding: 6px 8px; margin-right: 6px; }
  .re-w2g-link.c-ow202j span { display: none; }
}

.re-tlang.c-ow202j {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
  padding: 0;
  gap: 2px;
  border: none;
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.re-tlang.c-ow202j:hover {
  opacity: 0.92;
}
.re-tlang.c-ow202j:active {
  transform: scale(0.96);
}
.re-tlang.c-ow202j:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.re-tlang-opt.c-ow202j {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s ease;
  user-select: none;
}
/* The box behind the selected option — hidden (opacity 0) for inactive. */
.re-tlang-opt.c-ow202j::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewX(-12deg) scale(0.9);
  background: linear-gradient(180deg, rgba(203, 254, 10, 0.10), rgba(203, 254, 10, 0.03)), rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(203, 254, 10, 0.55);
  box-shadow: inset 0 0 0 3px rgba(8, 8, 8, 0.55), inset 0 0 0 4px rgba(203, 254, 10, 0.22);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}
.re-tlang.c-ow202j[data-lang="en"] .re-tlang-opt[data-opt="en"],
.re-tlang.c-ow202j[data-lang="jp"] .re-tlang-opt[data-opt="jp"] {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.re-tlang.c-ow202j[data-lang="en"] .re-tlang-opt[data-opt="en"]::before,
.re-tlang.c-ow202j[data-lang="jp"] .re-tlang-opt[data-opt="jp"]::before {
  opacity: 1;
  transform: skewX(-12deg) scale(1);
}
/* Sliding thumb retired in favour of the selected-option box. */
.re-tlang-thumb.c-ow202j {
  display: none;
}
@media (max-width: 480px) {
  .re-tlang-opt.c-ow202j {
    min-width: 30px;
    padding: 5px 9px;
    font-size: 10px;
  }
}

/* ===== Player hover logo — theme watermark, top-right (AniPaca-style) ===== */
#player-logo {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#player-box:hover #player-logo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#player-logo:hover img {
  transform: scale(1.06);
}
#player-logo img {
  transition: transform 0.25s ease;
}

/* ===== SVG fill override (Khawar 2026-09-30) — .fill-current renders lime instead of inheriting text color ===== */
.fill-current {
    fill: rgb(203 254 10);
}

/* ===== Announcement notice bar (original design, Khawar 2026-09-30) ===== */
.re-nb.c-ow202j {
  position: relative;
  z-index: 1;
  max-height: 320px;
  margin-bottom: 4px;
  background: #0b0e08;
  border: 1px solid rgba(190, 242, 80, 0.35);
  border-left: 3px solid #bef250;
  border-radius: 0;
  overflow: hidden;
  transform: translateY(-14px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, max-height 0.45s ease, margin 0.45s ease, border-width 0.3s ease;
}
.re-nb.c-ow202j.re-nb-in {
  transform: translateY(0);
  opacity: 1;
}
.re-nb.c-ow202j.re-nb-out {
  max-height: 0 !important;
  opacity: 0;
  margin-bottom: 0;
  border-width: 0;
}
/* Drifting diagonal stripes on the right side.
 * Lightweight: the pattern lives on a wider pseudo-layer that slides with a
 * GPU-composited transform (zero per-frame repaints). Sliding exactly one
 * pattern period (39.6px) loops seamlessly at the same speed and direction
 * as before, so the look is pixel-identical. */
.re-nb-stripes.c-ow202j {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}
.re-nb-stripes.c-ow202j::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -44px;
  width: calc(100% + 44px);
  background: repeating-linear-gradient(-45deg, rgba(190, 242, 80, 0.09) 0 14px, transparent 14px 28px);
  animation: re-nb-drift 16s linear infinite;
  will-change: transform;
}
@keyframes re-nb-drift {
  from { transform: translateX(0); }
  to { transform: translateX(39.6px); }
}
@media (prefers-reduced-motion: reduce) {
  .re-nb-stripes.c-ow202j::before { animation: none; }
  .re-nb.c-ow202j { transition: none; }
}
.re-nb-inner.c-ow202j {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.re-nb-icon.c-ow202j {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(190, 242, 80, 0.08);
  border: 1px solid rgba(190, 242, 80, 0.35);
}
.re-nb-icon.c-ow202j svg {
  width: 18px;
  height: 18px;
  fill: #bef250;
}
.re-nb-text.c-ow202j {
  flex: 1;
  min-width: 0;
}
.re-nb-headrow.c-ow202j {
  display: flex;
  align-items: center;
  gap: 12px;
}
.re-nb-heading.c-ow202j {
  color: #bef250;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.re-nb-dash.c-ow202j {
  flex: 1;
  min-width: 24px;
  border-top: 1px dashed rgba(190, 242, 80, 0.4);
}
.re-nb-msg.c-ow202j {
  margin: 3px 0 0;
  color: #d7d7d7;
  font-size: 13px;
  line-height: 1.45;
}
.re-nb-link.c-ow202j {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.re-nb-link.c-ow202j:hover {
  color: #bef250;
}
.re-nb-actions.c-ow202j {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.re-nb-discord.c-ow202j {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141a26;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.re-nb-discord.c-ow202j:hover {
  background: #232c40;
  border-color: rgba(190, 242, 80, 0.5);
}
.re-nb-discord.c-ow202j svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}
.re-nb-discord.c-ow202j:hover svg {
  transform: translateX(3px);
}
.re-nb-close.c-ow202j {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  color: #cfcfcf;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.re-nb-close.c-ow202j:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.re-nb-close.c-ow202j:active {
  transform: scale(0.92);
}
.re-nb-close.c-ow202j svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 640px) {
  .re-nb-inner.c-ow202j {
    gap: 10px;
    padding: 8px 12px;
  }
  .re-nb-dash.c-ow202j {
    display: none;
  }
  .re-nb-msg.c-ow202j {
    font-size: 12px;
  }
  .re-nb-stripes.c-ow202j {
    width: 48%;
  }
  .re-nb-discord.c-ow202j {
    padding: 7px 10px;
    font-size: 11px;
  }
}

/* About Anime rating panel — subtle diagonal texture + lime stars */
.aa-rate.c-1u7mu3r::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.028) 0 10px, transparent 10px 22px);
  pointer-events: none;
}
#rating-about .fill-amber-400 { fill: #bef250; }
#rating-about .text-amber-400 { color: #bef250; }
#rating-about .ar-stars { justify-content: center; }

/* Watch page: left anime-detail sidebar appears only on very wide screens
   (min-width 2000px — i.e. what you get at ~90% browser zoom on a 1080p
   screen). Below that the About Anime section under the player carries
   the same info. */
#watch-sidebar { display: none; }
@media (min-width: 2000px) {
  #watch-sidebar { display: block; width: 300px; flex: 0 0 300px; }
  #about-anime { display: none; }
}
/* About panel polish: bigger stars, single heading (hide widget's own tag) */
#rating-about .ar-stars svg { width: 30px; height: 30px; }
#rating-about .ar-head { display: none; }
#rating-about .ar-caption { margin-top: 6px; }

/* Responsive safety (v2.0.34.15): never allow horizontal page wobble on mobile.
 * overflow-x: clip prevents sideways scrolling without breaking sticky
 * positioning (unlike hidden). Zero visual change — only kills the wobble. */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
