@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Outfit:wght@300;400;500;600;700&family=Noto+Serif+JP:wght@300;400;700&family=Bebas+Neue&family=Cinzel:wght@700;900&display=swap");

:root {
  --bg: #07060f;
  --bg2: #0d0b1a;
  --bg3: #120f22;
  --bg4: #18142e;
  --card: #0e0b1e;

  --accent1: #7c3aed;
  --accent2: #4f46e5;
  --accent3: #06b6d4;
  --accent-mid: #6d28d9;
  --accent-glow: rgba(124, 58, 237, 0.22);
  --accent-glow2: rgba(79, 70, 229, 0.18);
  --accent-glow3: rgba(6, 182, 212, 0.14);

  --grad-main: linear-gradient(135deg, var(--accent1), var(--accent2));
  --grad-full: linear-gradient(
    135deg,
    var(--accent1) 0%,
    var(--accent2) 50%,
    var(--accent3) 100%
  );
  --grad-subtle: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.18),
    rgba(79, 70, 229, 0.1)
  );

  --w100: #ffffff;
  --w95: rgba(255, 255, 255, 0.95);
  --w80: rgba(255, 255, 255, 0.8);
  --w60: rgba(255, 255, 255, 0.6);
  --w50: rgba(255, 255, 255, 0.5);
  --w40: rgba(255, 255, 255, 0.4);
  --w30: rgba(255, 255, 255, 0.3);
  --w20: rgba(255, 255, 255, 0.2);
  --w10: rgba(255, 255, 255, 0.1);
  --w06: rgba(255, 255, 255, 0.06);
  --w04: rgba(255, 255, 255, 0.04);
  --w03: rgba(255, 255, 255, 0.03);

  --b0: rgba(124, 58, 237, 0.06);
  --b1: rgba(124, 58, 237, 0.14);
  --b2: rgba(124, 58, 237, 0.26);
  --b3: rgba(124, 58, 237, 0.45);

  --card-w: 190px;
  --card-img-ratio: 148%;
  --r18: 18px;
  --r14: 14px;
  --r12: 12px;
  --r10: 10px;
  --r8: 8px;
  --r6: 6px;
  --nav-h: 62px;

  --font-display: "Playfair Display", "Noto Serif JP", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--w80);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 60% 40% at 10% 20%,
    rgba(124, 58, 237, 0.07) 0%,
    transparent 60%
  );
}

.hidden {
  display: none !important;
}

.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  z-index: 1000;
  background: rgba(10, 8, 22, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid var(--b1);
  border-top-color: rgba(124, 58, 237, 0.22);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(124, 58, 237, 0.1) inset,
    0 10px 70px rgba(0, 0, 0, 0.75),
    0 2px 14px rgba(0, 0, 0, 0.5);
}
.navbar:hover {
  border-color: var(--b2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  height: var(--nav-h);
  gap: 12px;
}
.nav-left {
  flex: 0 0 auto;
}
.nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition:
    opacity 0.25s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.logo-wrap:hover {
  opacity: 0.9;
  transform: scale(1.03);
}
.logo-svg {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.5));
}

.logo-svg stop:first-child {
  stop-color: #a78bfa !important;
}
.logo-svg stop:last-child {
  stop-color: #818cf8 !important;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  background: var(--grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.site-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 0.46rem;
  color: rgba(167, 139, 250, 0.5);
  letter-spacing: 5px;
  line-height: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r12);
  color: var(--w60);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.nav-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.nav-btn:hover {
  color: var(--w95);
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--b2);
  transform: scale(1.04);
}
.nav-btn.active {
  color: var(--w100);
  background: var(--grad-subtle);
  border-color: var(--b3);
  box-shadow:
    0 0 22px var(--accent-glow),
    0 1px 0 rgba(124, 58, 237, 0.15) inset;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex: 0 0 auto;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap.inline {
  width: 280px;
}
.search-icon {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 14px;
  color: rgba(167, 139, 250, 0.5);
  pointer-events: none;
  z-index: 1;
}
.search-input {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--b1);
  border-radius: var(--r12);
  color: var(--w95);
  font-family: var(--font-body);
  font-size: 0.81rem;
  padding: 8px 12px 8px 33px;
  width: 170px;
  outline: none;
  transition:
    color 0.28s,
    background 0.28s,
    border-color 0.28s,
    width 0.28s,
    box-shadow 0.28s;
}
.search-input:focus {
  background: rgba(124, 58, 237, 0.14);
  border-color: var(--b3);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
  width: 220px;
}
.search-wrap.inline .search-input {
  width: 100%;
}
.search-wrap.inline .search-input:focus {
  width: 100%;
}
.search-input::placeholder {
  color: rgba(167, 139, 250, 0.4);
}
.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: var(--r18);
  overflow: hidden;
  z-index: 2000;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(124, 58, 237, 0.06);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--b0);
  transition: background 0.14s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: rgba(124, 58, 237, 0.1);
}
.search-result-item img {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg3);
}
.sr-name {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--w95);
}
.sr-meta {
  font-size: 0.69rem;
  color: var(--w40);
  margin-top: 2px;
}

main {
  padding-top: calc(var(--nav-h) + 32px);
  position: relative;
  z-index: 2;
}
.page-section {
  padding: 0 28px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-section {
  position: relative;
  width: calc(100% - 56px);
  max-width: 1400px;
  margin: 0 auto 64px;
  height: 580px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.12),
    0 32px 110px rgba(0, 0, 0, 0.88),
    0 0 80px rgba(124, 58, 237, 0.08);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: opacity 1.1s ease;
  transform: scale(1.05);
  filter: brightness(0.44) contrast(1.18) saturate(0.75);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      80deg,
      rgba(7, 6, 15, 0.97) 0%,
      rgba(13, 11, 26, 0.6) 45%,
      transparent 70%
    ),
    linear-gradient(0deg, rgba(7, 6, 15, 0.88) 0%, transparent 38%),
    linear-gradient(180deg, rgba(7, 6, 15, 0.22) 0%, transparent 28%);
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 40px;
  width: 300px;
  height: 200px;
  background: radial-gradient(
    ellipse,
    rgba(124, 58, 237, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: absolute;
  bottom: 66px;
  left: 62px;
  max-width: 600px;
  z-index: 2;
}
.hero-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.hero-badge {
  padding: 3px 11px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid var(--b2);
  color: rgba(167, 139, 250, 0.8);
}
.hero-badge.hd {
  background: var(--grad-subtle);
  border-color: var(--b3);
  color: var(--w100);
  box-shadow: 0 0 16px var(--accent-glow);
}
.hero-title {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.02;
  margin-bottom: 16px;
  background: linear-gradient(
    140deg,
    #ffffff 0%,
    #c4b5fd 45%,
    #818cf8 80%,
    #67e8f9 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 15px;
}
.score-num {
  font-size: 0.76rem;
  color: var(--w40);
  margin-left: 9px;
}
.hero-desc {
  font-size: 0.87rem;
  color: var(--w60);
  line-height: 1.88;
  margin-bottom: 24px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
}
.hero-meta {
  display: flex;
  gap: 22px;
  font-size: 0.74rem;
  color: var(--w40);
  margin-bottom: 30px;
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-actions {
  display: flex;
  gap: 10px;
}

.btn-watch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 34px;
  background: var(--grad-full);
  border: none;
  border-radius: var(--r12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.24s,
    background 0.24s,
    border-color 0.24s,
    transform 0.24s,
    box-shadow 0.24s;
  box-shadow:
    0 0 34px var(--accent-glow),
    0 4px 22px rgba(124, 58, 237, 0.3);
}
.btn-watch svg {
  width: 12px;
  height: 12px;
}
.btn-watch:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow:
    0 0 55px rgba(124, 58, 237, 0.55),
    0 8px 32px rgba(124, 58, 237, 0.35);
  filter: brightness(1.08);
}

.btn-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--b3);
  border-radius: var(--r12);
  color: var(--w95);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.24s,
    transform 0.24s;
}
.btn-info svg {
  width: 14px;
  height: 14px;
}
.btn-info:hover {
  background: rgba(124, 58, 237, 0.18);
  transform: scale(1.04);
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 3;
}
.hero-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(124, 58, 237, 0.3);
  cursor: pointer;
  transition:
    background 0.3s,
    width 0.3s,
    box-shadow 0.3s;
}
.hero-dot.active {
  width: 28px;
  background: var(--grad-main);
  box-shadow: 0 0 12px var(--accent-glow);
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(124, 58, 237, 0.1);
  z-index: 3;
}
.hero-progress-bar {
  height: 100%;
  background: var(--grad-full);
  width: 0%;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.1s linear;
}

.section-block {
  padding: 0 28px;
  max-width: 1400px;
  margin: 0 auto 60px;
  overflow: visible;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header svg {
  width: 14px;
  height: 14px;
  color: rgba(167, 139, 250, 0.7);
  flex-shrink: 0;
}
.section-header h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--w95);
}
.section-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--b2), transparent);
  margin-left: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.9);
  margin-left: 4px;
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.9);
  }
  50% {
    opacity: 0.3;
    box-shadow: 0 0 3px rgba(167, 139, 250, 0.3);
  }
}

.cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 40px 8px 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.18) transparent;
  align-items: flex-start;
  will-change: scroll-position;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-overflow-scrolling: touch;
}
.cards-scroll::-webkit-scrollbar {
  height: 3px;
}
.cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.22);
  border-radius: 2px;
}

@keyframes card-border-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes card-shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); }
  100% { transform: translateX(260%) skewX(-12deg); }
}
@keyframes card-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

.anime-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  min-width: var(--card-w);
  max-width: var(--card-w);
  border-radius: var(--r18);
  overflow: visible;
  cursor: pointer;
  position: relative;
  padding: 2px;
  background: transparent;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease;
  isolation: isolate;
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.anime-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r18) + 2px);
  background: transparent;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.anime-card::after {
  display: none;
}

.anime-card:hover {
  transform: translateY(-14px) scale(1.04);
  box-shadow:
    0 8px 0 -4px rgba(124, 58, 237, 0.55),
    0 28px 70px rgba(0, 0, 0, 0.92),
    0 0 0 1.5px rgba(124, 58, 237, 0.7),
    0 0 28px rgba(124, 58, 237, 0.25),
    0 40px 60px -20px rgba(124, 58, 237, 0.35);
  z-index: 10;
}

.anime-card {
  box-shadow:
    0 8px 32px -8px rgba(80, 40, 180, 0.22),
    0 2px 8px rgba(0,0,0,0.3);
}

.anime-card:active {
  transform: translateY(-6px) scale(1.01);
  transition-duration: 0.1s;
}

.card-inner {
  border-radius: calc(var(--r18) - 2px);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition: box-shadow 0.25s;
  transform: translateZ(0);
}

.anime-card:hover .card-inner {
  box-shadow:
    0 0 0 1.5px rgba(124, 58, 237, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: var(--card-img-ratio);
  overflow: hidden;
  background: var(--bg3);
}

.card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg3);
  transition:
    transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.4s ease;
  filter: brightness(0.92) saturate(1.05);
}

.anime-card:hover .card-img-wrap img {
  transform: scale(1.07);
  filter: brightness(1.05) saturate(1.15);
}

.card-img-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    0deg,
    rgba(4, 2, 14, 0.88) 0%,
    rgba(4, 2, 14, 0.3) 55%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.card-img-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.38) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.card-flags {
  position: absolute;
  top: 9px;
  right: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  z-index: 3;
}

.card-type-badge {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgb(0, 0, 0);
  background: rgba(255, 255, 255, 0.836);
  backdrop-filter: blur(8px) saturate(1.5);
  -webkit-backdrop-filter: blur(8px) saturate(1.5);
  border: 1px solid rgba(124, 58, 237, 0.45);
  padding: 3px 9px;
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 2px 8px rgba(0,0,0,0.5);
  transition: border-color 0.25s, background 0.25s;
}

.anime-card:hover .card-type-badge {
  border-color: rgba(124, 58, 237, 0.45);
  background: rgba(255, 255, 255, 0.836);
}

.card-score-ring {
  position: absolute;
  bottom: 9px;
  right: 9px;
  z-index: 4;
  width: 46px;
  height: 46px;
  background: rgba(4, 2, 14, 0.72);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    0 2px 12px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anime-card:hover .card-score-ring {
  transform: scale(1.15);
}

.card-score-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.card-score-ring .ring-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 3;
}

.card-score-ring .ring-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-score-ring .ring-fill.green {
  stroke: #22c55e;
  filter: drop-shadow(0 0 3px rgba(34,197,94,0.6));
}
.card-score-ring .ring-fill.yellow {
  stroke: #f59e0b;
  filter: drop-shadow(0 0 3px rgba(245,158,11,0.6));
}
.card-score-ring .ring-fill.red {
  stroke: #ef4444;
  filter: drop-shadow(0 0 3px rgba(239,68,68,0.5));
}

.card-score-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.card-hover-title {
  position: absolute;
  bottom: 13px;
  left: 10px;
  right: 62px;
  z-index: 4;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anime-card:hover .card-hover-title {
  opacity: 1;
  transform: translateY(0);
}

.card-body  { display: none; }
.card-title { display: none; }
.card-meta  { display: none; }
.card-sub   { display: none; }

.resume-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  min-width: var(--card-w);
  max-width: var(--card-w);
  border-radius: var(--r18);
  overflow: visible;
  cursor: pointer;
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.resume-card:hover {
  transform: scale(1.06) translateY(-10px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    0 0 0 2px rgba(255,255,255,0.12);
  z-index: 10;
}
.resume-card .card-inner {
  border-radius: var(--r18);
  overflow: hidden;
  width: 100%;
  position: relative;
}
.resume-card .card-img-wrap {
  padding-top: 148%;
}
.resume-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--grad-full);
  box-shadow: 0 0 6px var(--accent-glow);
  z-index: 2;
}
.resume-time {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.64rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.84);
  color: var(--w100);
  padding: 2px 7px;
  border-radius: 5px;
  z-index: 3;
}
.resume-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(210, 40, 40, 0.96);
  border: 2px solid rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  transition:
    transform 0.18s,
    background 0.18s;
  opacity: 0.7;
}
.resume-card:hover .resume-delete {
  opacity: 1;
}
.resume-delete:hover {
  transform: scale(1.28);
  background: rgb(255, 20, 20);
  opacity: 1;
}

.trend-rank {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: var(--w100);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.trend-rank.gold {
  background: rgba(175, 138, 0, 0.85);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.32);
}
.trend-rank.silver {
  background: rgba(108, 108, 120, 0.85);
  border-color: rgba(200, 200, 210, 0.4);
}
.trend-rank.bronze {
  background: rgba(130, 70, 25, 0.85);
  border-color: rgba(200, 130, 60, 0.4);
}

.flag-badge,
.fi {
  display: inline-block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  flex-shrink: 0;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
  vertical-align: middle;
}
.flag-badge {
  width: 22px;
  height: 14px;
}
.flag-badge.sm {
  width: 16px;
  height: 10px;
}
.fi {
  width: 20px;
  height: 13px;
  margin-right: 5px;
}
.fi-fr,
.flag-fr {
  background: linear-gradient(
    90deg,
    #002395 33.3%,
    #fff 33.3% 66.6%,
    #ed2939 66.6%
  );
}
.fi-jp,
.flag-jp {
  background: #fff;
  position: relative;
}
.fi-jp::after,
.flag-jp::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: #bc002d;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.flag-en {
  background: #b22234;
  position: relative;
  overflow: hidden;
}
.flag-en::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    180deg,
    #b22234 0px,
    #b22234 7.69%,
    #fff 7.69%,
    #fff 15.38%,
    #b22234 15.38%,
    #b22234 23.08%,
    #fff 23.08%,
    #fff 30.77%,
    #b22234 30.77%,
    #b22234 38.46%,
    #fff 38.46%,
    #fff 46.15%,
    #b22234 46.15%,
    #b22234 53.85%,
    #fff 53.85%,
    #fff 61.54%,
    #b22234 61.54%,
    #b22234 69.23%,
    #fff 69.23%,
    #fff 76.92%,
    #b22234 76.92%,
    #b22234 84.62%,
    #fff 84.62%,
    #fff 92.31%,
    #b22234 92.31%,
    #b22234 100%
  );
}
.flag-en::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 53%;
  background: #3c3b6e;
}
.flag-us {
  background: #b22234;
  position: relative;
  overflow: hidden;
}
.flag-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    180deg,
    #b22234 0px,
    #b22234 7.69%,
    #fff 7.69%,
    #fff 15.38%,
    #b22234 15.38%,
    #b22234 23.08%,
    #fff 23.08%,
    #fff 30.77%,
    #b22234 30.77%,
    #b22234 38.46%,
    #fff 38.46%,
    #fff 46.15%,
    #b22234 46.15%,
    #b22234 53.85%,
    #fff 53.85%,
    #fff 61.54%,
    #b22234 61.54%,
    #b22234 69.23%,
    #fff 69.23%,
    #fff 76.92%,
    #b22234 76.92%,
    #b22234 84.62%,
    #fff 84.62%,
    #fff 92.31%,
    #b22234 92.31%,
    #b22234 100%
  );
}
.flag-us::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 53%;
  background: #3c3b6e;
}
.flag-de {
  background: linear-gradient(
    180deg,
    #000 33.3%,
    #dd0000 33.3% 66.6%,
    #ffce00 66.6%
  );
}

.spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  width: 100%;
}
.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(124, 58, 237, 0.18);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-header-block {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 32px;
  padding: 48px 52px 44px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.13) 0%,
    rgba(79, 70, 229, 0.08) 50%,
    rgba(6, 182, 212, 0.05) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.page-header-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 80% 50%, rgba(124, 58, 237, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header-block::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.5) 0%, rgba(6, 182, 212, 0.3) 50%, transparent 100%);
}
.page-header-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(167, 139, 250, 0.8);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.page-header-eyebrow svg {
  width: 16px;
  height: 16px;
  color: rgba(167, 139, 250, 0.8);
}
.page-header-block h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(140deg, #ffffff 0%, #c4b5fd 45%, #818cf8 80%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}
.page-header-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
  line-height: 1.5;
}
.catalogue-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(167, 139, 250, 0.7);
  font-family: var(--font-body);
  font-weight: 500;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 8px;
  padding: 3px 10px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
}
.catalogue-count::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.7);
  display: inline-block;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 30px;
  margin-left: 28px;
  margin-right: 28px;
  gap: 12px;
}
.filter-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lang-filters {
  display: flex;
  gap: 7px;
}
.genre-filter-wrap {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  position: relative;
}
.genre-filter-wrap::before {
  content: "Genres";
  position: absolute;
  top: -9px;
  left: 14px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(167, 139, 250, 0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--bg);
  padding: 0 6px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  background: transparent;
  border: 1px solid var(--b1);
  border-radius: var(--r12);
  color: var(--w60);
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.filter-btn:hover {
  border-color: var(--b3);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
  transform: scale(1.04);
}
.filter-btn.active {
  background: var(--grad-subtle);
  border-color: var(--b3);
  color: var(--w100);
  box-shadow: 0 0 14px var(--accent-glow);
}
.filter-btn.genre-btn {
  padding: 5px 13px;
  font-size: 0.72rem;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding-left: 28px;
  padding-right: 28px;
}
.catalogue-grid .anime-card {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 34px 0 0;
}
.load-more-btn {
  padding: 11px 44px;
  background: transparent;
  border: 1px solid var(--b2);
  border-radius: var(--r12);
  color: var(--w60);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.load-more-btn:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: var(--b3);
  color: var(--w100);
  transform: scale(1.04);
}
.load-more-btn.hidden {
  display: none;
}

.planning-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 40px;
  padding: 64px 52px 56px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12) 0%,
    rgba(79, 70, 229, 0.08) 50%,
    rgba(6, 182, 212, 0.06) 100%
  );
  border: 1px solid rgba(124, 58, 237, 0.18);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.55);
}
.planning-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 60% at 0% 50%,
      rgba(124, 58, 237, 0.13) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 80% at 100% 20%,
      rgba(79, 70, 229, 0.09) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 40% at 60% 100%,
      rgba(6, 182, 212, 0.07) 0%,
      transparent 50%
    );
}
.planning-hero-bg::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(124, 58, 237, 0.35) 30%,
    rgba(79, 70, 229, 0.25) 70%,
    transparent 95%
  );
}
.planning-hero-content {
  position: relative;
  z-index: 1;
}
.planning-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.8);
  margin-bottom: 22px;
}
.planning-hero-eyebrow svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.planning-hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  background: linear-gradient(
    140deg,
    #ffffff 0%,
    #c4b5fd 45%,
    #818cf8 80%,
    #67e8f9 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.planning-hero-sub {
  font-size: 0.88rem;
  color: var(--w40);
  font-weight: 300;
  max-width: 460px;
  line-height: 1.6;
}

.planning-filters-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 8, 22, 0.9);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 16px;
  padding: 18px 28px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.planning-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.planning-filter-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--w30);
  white-space: nowrap;
}
.planning-filter-divider {
  width: 1px;
  align-self: stretch;
  min-height: 28px;
  background: rgba(124, 58, 237, 0.18);
  flex-shrink: 0;
}
.planning-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 10px;
  color: var(--w50);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.pf-pill:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
}
.pf-pill.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.22),
    rgba(79, 70, 229, 0.14)
  );
  border-color: rgba(124, 58, 237, 0.5);
  color: var(--w100);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

.planning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.planning-day-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.planning-day-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--w50);
  padding: 0;
}
.planning-day-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent1), transparent);
  flex-shrink: 0;
}
.planning-day-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.15), transparent);
}
.planning-day-label.is-today {
  color: #a78bfa;
}
.planning-day-label.is-today::before {
  background: linear-gradient(90deg, #a78bfa, transparent);
}
.planning-day-label.is-past {
  color: rgba(103, 232, 249, 0.5);
}
.planning-day-label.is-past::before {
  background: linear-gradient(90deg, rgba(103, 232, 249, 0.5), transparent);
}

.planning-day-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.planning-card {
  background: rgba(14, 11, 30, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 16px;
  padding: 0;
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s,
    box-shadow 0.28s;
  position: relative;
}
.planning-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
}
.planning-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(124, 58, 237, 0.18);
}
.planning-card:hover::after {
  opacity: 1;
}
.planning-card.today {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.1),
    0 4px 24px rgba(124, 58, 237, 0.12);
}
.planning-card.past {
  opacity: 0.65;
}
.planning-card.past .planning-card-strip {
  background: linear-gradient(
    180deg,
    rgba(6, 182, 212, 0.5),
    rgba(6, 182, 212, 0.2)
  );
}

.planning-card-strip {
  width: 3px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent1), var(--accent2));
  opacity: 0.5;
  transition: opacity 0.28s;
}
.planning-card:hover .planning-card-strip {
  opacity: 1;
}
.planning-card.today .planning-card-strip {
  opacity: 1;
  background: linear-gradient(180deg, #a78bfa, #818cf8);
}

.planning-card-img-wrap {
  position: relative;
  width: 72px;
  flex-shrink: 0;
  overflow: hidden;
}
.planning-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.planning-card:hover .planning-card-img-wrap img {
  transform: scale(1.08);
}
.planning-card-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 70%,
    rgba(14, 11, 30, 0.5) 100%
  );
}

.planning-card-body {
  flex: 1;
  min-width: 0;
  padding: 16px 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planning-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.planning-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--w95);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.planning-card-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #a78bfa;
  flex-shrink: 0;
  white-space: nowrap;
}
.planning-card-time-chip.available {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: #67e8f9;
}
.planning-card-time-chip.is-today {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  color: #c4b5fd;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}

.planning-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.planning-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--w40);
}
.planning-meta-sep {
  color: rgba(124, 58, 237, 0.3);
  font-size: 0.6rem;
}
.planning-meta-score {
  font-size: 0.67rem;
  font-weight: 700;
  color: rgba(167, 139, 250, 0.7);
}
.planning-card-date {
  font-size: 0.63rem;
  color: var(--w25, rgba(255, 255, 255, 0.25));
  font-style: italic;
  margin-top: 2px;
}

.aide-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 48px;
}
.aide-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  margin-bottom: 22px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.18),
    rgba(79, 70, 229, 0.12),
    rgba(6, 182, 212, 0.08)
  );
  border: 1px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 40px rgba(124, 58, 237, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.aide-hero-icon svg {
  width: 32px;
  height: 32px;
  stroke: url(#aide-grad);
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4));
}

svg defs linearGradient#aide-grad {
  --stop1: #7c3aed;
  --stop2: #4f46e5;
  --stop3: #06b6d4;
}

.aide-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  line-height: 1;
}
.aide-hero-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.38);
  max-width: 440px;
  line-height: 1.7;
}

.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
.faq-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--w95);
  margin-bottom: 24px;
}
.faq-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--b2), transparent);
}
.faq-heading-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(
    135deg,
    var(--accent1),
    var(--accent2),
    var(--accent3)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-heading-icon svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
  flex-shrink: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.faq-item.open {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.1);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.18s;
}
.faq-q:hover {
  background: rgba(124, 58, 237, 0.06);
}
.faq-item.open .faq-q {
  background: rgba(124, 58, 237, 0.08);
}
.faq-q span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--w95);
  line-height: 1.4;
  font-family: var(--font-body);
}
.faq-item.open .faq-q span {
  color: #fff;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(167, 139, 250, 0.5);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #a78bfa;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.3s;
  padding: 0 22px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 22px 20px;
}
.faq-a p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  font-weight: 300;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

@media (max-width: 700px) {
  .aide-hero-title {
    font-size: 2.2rem;
  }
  .faq-wrap {
    padding: 0 12px 60px;
  }
  .faq-q {
    padding: 16px 16px;
  }
  .faq-q span {
    font-size: 0.84rem;
  }
  .faq-item.open .faq-a {
    padding: 0 16px 16px;
  }
}

.anime-page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.anime-hero-cinematic {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.anime-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: blur(14px) saturate(1.2) brightness(0.32);
  transform: scale(1.08);
  z-index: 0;
}
.anime-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(7, 6, 15, 0.15) 0%,
      rgba(7, 6, 15, 0.55) 50%,
      rgba(7, 6, 15, 0.97) 100%
    ),
    linear-gradient(90deg, rgba(124, 58, 237, 0.14) 0%, transparent 55%);
}
.anime-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  align-items: flex-end;
  padding: 32px 32px 36px;
  width: 100%;
}
.anime-hero-poster {
  flex-shrink: 0;
  width: 165px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 36px rgba(124, 58, 237, 0.2);
  transform: translateY(24px);
  transition: transform 0.3s ease;
}
.anime-hero-poster:hover {
  transform: translateY(18px) scale(1.02);
}
.anime-hero-poster img {
  width: 100%;
  display: block;
}
.anime-hero-meta {
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}
.anime-hero-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(167, 139, 250, 0.5);
  margin-bottom: 7px;
}
.anime-hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 13px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.85);
}
.anime-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.hero-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 5px;
}
.hero-badge.status-airing {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.hero-badge.status-done {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.22);
}
.hero-badge.status-pause {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.hero-badge.badge-year {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-badge.badge-eps {
  background: rgba(6, 182, 212, 0.1);
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.2);
}
.anime-hero-rating {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.hero-score {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}
.hero-score-max {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
}
.anime-hero-genres {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-genre-tag {
  font-size: 0.67rem;
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.13);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 20px;
  color: rgba(167, 139, 250, 0.85);
  font-weight: 500;
}
.anime-hero-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  max-width: 600px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.anime-page-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 22px;
  padding-top: 10px;
}

.anime-select-panel {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 18px;
  overflow: hidden;
}
.select-panel-section {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.select-panel-section:last-child {
  border-bottom: none;
}
.select-panel-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.42);
  margin-bottom: 11px;
}
.lang-btns-new {
  display: flex;
  gap: 8px;
}
.lang-btn-new {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.lang-btn-new:hover {
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
}
.lang-btn-new.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.22),
    rgba(79, 70, 229, 0.14)
  );
  border-color: rgba(124, 58, 237, 0.5);
  color: #fff;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.18);
}
.season-btns-new {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.season-btn-new {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-body);
  font-size: 0.73rem;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
  white-space: nowrap;
}
.season-btn-new:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
}
.season-btn-new.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.25),
    rgba(79, 70, 229, 0.15)
  );
  border-color: rgba(124, 58, 237, 0.55);
  color: #fff;
}
.ep-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 5px;
  max-height: 230px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}
.ep-btn-new {
  position: relative;
  padding: 9px 3px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.ep-btn-new:hover {
  border-color: rgba(124, 58, 237, 0.5);
  color: #fff;
  background: rgba(124, 58, 237, 0.1);
  transform: scale(1.07);
}
.ep-btn-new.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.38),
    rgba(79, 70, 229, 0.24)
  );
  border-color: rgba(124, 58, 237, 0.65);
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

.anime-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sidebar-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 15px;
  padding: 17px 19px;
}
.sidebar-card-title {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.42);
  margin-bottom: 13px;
}
.btn-watch-first {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  border-radius: 11px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.38);
}
.btn-watch-first:hover {
  transform: scale(1.03);
  box-shadow: 0 7px 28px rgba(124, 58, 237, 0.5);
}
.btn-watch-first svg {
  width: 14px;
  height: 14px;
}
.btn-resume-play {
  width: 100%;
  padding: 10px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.22),
    rgba(79, 70, 229, 0.14)
  );
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 11px;
  color: rgba(167, 139, 250, 0.95);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 11px;
}
.btn-resume-play:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.42);
}
.btn-resume-play svg {
  width: 13px;
  height: 13px;
}
.resume-mini {
  display: flex;
  align-items: center;
  gap: 11px;
}
.resume-mini-thumb {
  width: 50px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg3);
}
.resume-mini-ep {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--w80);
  margin-bottom: 4px;
}
.resume-mini-lang {
  font-size: 0.68rem;
  color: var(--w30);
}
.sidebar-info-table {
  width: 100%;
  border-collapse: collapse;
}
.sidebar-info-table td {
  padding: 5px 0;
  font-size: 0.74rem;
}
.sidebar-info-table td:first-child {
  color: var(--w30);
}
.sidebar-info-table td:last-child {
  text-align: right;
  color: var(--w75, rgba(255, 255, 255, 0.75));
}
.sidebar-info-table tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.genre-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.genre-tag {
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--b1);
  border-radius: 6px;
  font-size: 0.69rem;
  color: rgba(167, 139, 250, 0.8);
}
.ep-section-title {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.5);
  margin-bottom: 9px;
}
.anime-lang-btns,
.season-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.lang-btn,
.season-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--b1);
  border-radius: 7px;
  color: var(--w60);
  font-family: var(--font-body);
  font-size: 0.67rem;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-btn:hover,
.season-btn:hover {
  border-color: var(--b3);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
  transform: scale(1.04);
}
.lang-btn.active,
.season-btn.active {
  background: var(--grad-subtle);
  border-color: var(--b3);
  color: var(--w100);
  box-shadow: 0 0 14px var(--accent-glow);
}
.lang-btn .flag-badge {
  width: 17px;
  height: 11px;
}
.ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 5px;
  max-height: 216px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.18) transparent;
}
.ep-btn {
  padding: 9px 4px;
  background: var(--card);
  border: 1px solid var(--b1);
  border-radius: var(--r8);
  color: var(--w60);
  font-family: var(--font-body);
  font-size: 0.74rem;
  text-align: center;
  cursor: pointer;
  transition:
    color 0.17s,
    background 0.17s,
    border-color 0.17s;
}
.ep-btn:hover {
  border-color: var(--b3);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
  transform: scale(1.06);
}
.ep-btn.active {
  background: var(--grad-subtle);
  border-color: var(--b3);
  color: var(--w100);
  box-shadow: 0 0 10px var(--accent-glow);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r12);
  color: var(--w50);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  margin-bottom: 22px;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.back-btn:hover {
  border-color: var(--b3);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.08);
  transform: translateX(-2px);
}
.back-btn svg {
  width: 14px;
  height: 14px;
}

.stars-display {
  display: inline-flex;
  gap: 2px;
}
.star {
  font-size: 0.78rem;
}
.no-results {
  text-align: center;
  padding: 64px;
  color: var(--w40);
  font-size: 0.86rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.modal-overlay.hidden { display: none; }

.player-navbar-wrap {
  flex-shrink: 0;
  background: rgba(5, 4, 14, 0.98);
  padding: 10px 18px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(124,58,237,.08);
}

.player-navbar-wrap .navbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.player-navbar {
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 54px;
  background: rgba(10, 8, 22, 0.95);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-top-color: rgba(124, 58, 237, 0.3);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(124,58,237,.12) inset,
    0 8px 36px rgba(0,0,0,.65),
    0 2px 10px rgba(0,0,0,.35);
  position: relative;
  z-index: 10;
  gap: 0;
  transition: border-color .25s;
}
.player-navbar:hover { border-color: rgba(124,58,237,.38); }
.player-navbar::before {
  content: "";
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  border-radius: 20px;
  background: linear-gradient(90deg, transparent 0%, rgba(124,58,237,.4) 35%, rgba(6,182,212,.22) 70%, transparent 100%);
}

.player-nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .22s;
  margin-right: 24px;
}
.player-nav-logo:hover { opacity: .75 }
.player-nav-logo .logo-svg { width: 26px; height: 26px }

.player-nav-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 0 12px;
}
.player-nav-now-playing {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.player-nav-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .9rem;
  font-weight: 600;
  color: var(--w95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.1px;
}
.player-nav-ep-info {
  font-size: .64rem;
  font-weight: 500;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  letter-spacing: .15px;
}

.player-nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.player-nav-link {
  background: none;
  border: none;
  color: var(--w50);
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 9px;
  cursor: pointer;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.player-nav-link:hover {
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.05);
}
.player-nav-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.07);
  flex-shrink: 0;
  margin: 0 6px;
}
.modal-close {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  color: var(--w50);
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .73rem;
  font-weight: 500;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  letter-spacing: .1px;
  margin-left: 4px;
}
.modal-close svg { width:13px; height:13px; transition: transform .22s }
.modal-close:hover {
  background: rgba(220,50,50,.12);
  border-color: rgba(220,50,50,.32);
  color: #fca5a5;
}
.modal-close:hover svg { transform: translateX(-2px) }

.player-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  height: calc(100vh - 78px);
  min-height: 480px;
  flex-shrink: 0;
  overflow: hidden;
}

.player-left {
  display: flex;
  flex-direction: column;
  background: #020108;
  overflow: hidden;
  border-right: 1px solid rgba(124,58,237,.12);
  position: relative;
}

.player-sources-strip-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(13,11,26,1) 0%, rgba(10,8,20,1) 100%);
  border-bottom: 1px solid rgba(124,58,237,.1);
  position: relative;
}
.player-sources-strip-row::after {
  content: "";
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.25), transparent);
  pointer-events: none;
}

.player-sources-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border-bottom: none;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  position: static;
}
.player-sources-strip::after { display: none; }
.player-sources-strip::-webkit-scrollbar { display: none }

.player-quit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  color: rgba(255,255,255,.5);
  padding: 7px 14px 7px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .73rem;
  font-weight: 500;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  flex-shrink: 0;
  letter-spacing: .1px;
  margin-right: 12px;
  white-space: nowrap;
}
.player-quit-btn svg { width: 13px; height: 13px; transition: transform .22s; }
.player-quit-btn:hover {
  background: rgba(220,50,50,.12);
  border-color: rgba(220,50,50,.32);
  color: #fca5a5;
}
.player-quit-btn:hover svg { transform: translateX(-2px); }

.sources-label {
  font-size: .52rem;
  letter-spacing: 2.5px;
  font-weight: 700;
  color: rgba(167,139,250,.35);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  margin-right: 4px;
}

.source-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: var(--w50);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.source-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.08), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.source-tab:hover {
  border-color: rgba(124,58,237,.35);
  color: var(--w95);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.source-tab:hover::before { opacity: 1 }
.source-tab.active {
  background: rgba(124,58,237,.15);
  border-color: rgba(124,58,237,.45);
  color: #c4b5fd;
  box-shadow: 0 0 18px rgba(124,58,237,.2), 0 4px 12px rgba(0,0,0,.3);
}
.source-tab.active::before { opacity: 1 }

.player-wrap {
  position: relative;
  flex: 1;
  background: #000;
  min-height: 0;
  overflow: hidden;
}
.player-wrap::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.35), rgba(6,182,212,.2), transparent);
  pointer-events: none;
  z-index: 6;
}
.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(ellipse at center, #0a0818 0%, #000 70%);
  z-index: 5;
  color: var(--w50);
  font-size: .78rem;
  letter-spacing: .3px;
}
.player-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(124,58,237,.12);
  border-top-color: #a78bfa;
  border-right-color: rgba(124,58,237,.4);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }

.player-live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(8,4,20,.82);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 20px;
  padding: 5px 13px 5px 9px;
  font-family: var(--font-body);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .6px;
  color: #fca5a5;
  backdrop-filter: blur(10px);
  z-index: 10;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444, 0 0 16px rgba(239,68,68,.4);
  animation: pulseDot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0%,100% { transform: scale(1); opacity:1 }
  50%      { transform: scale(1.4); opacity:.6 }
}

.player-right {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg2) 0%, rgba(10,8,22,1) 100%);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,.2) transparent;
}
.player-right::-webkit-scrollbar { width: 4px }
.player-right::-webkit-scrollbar-track { background: rgba(5,4,14,1); border-radius: 4px; }
.player-right::-webkit-scrollbar-thumb { background: rgba(124,58,237,.35); border-radius: 4px }

.player-content-card {
  display: flex;
  gap: 16px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
  position: relative;
}
.player-content-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.2), transparent);
}

.player-poster {
  width: 80px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(124,58,237,.25);
  box-shadow: 0 12px 30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
  position: relative;
}
.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  pointer-events: none;
}
.player-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}

.player-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 2px;
}

.player-eyebrow {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a78bfa;
  opacity: .7;
}

.player-title-big {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  letter-spacing: -.2px;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.player-tag {
  font-size: .58rem;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(124,58,237,.1);
  border: 1px solid rgba(124,58,237,.18);
  color: #c4b5fd;
  font-weight: 500;
  letter-spacing: .2px;
}

.player-rating-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: .73rem;
}
.player-stars { color: #fbbf24; letter-spacing: 1px }
.player-rating-num { font-weight: 700; color: var(--w80) }
.player-year { color: var(--w30); font-size: .68rem }

.player-desc-block {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  flex-shrink: 0;
}
.player-desc {
  font-size: .76rem;
  line-height: 1.7;
  color: var(--w50);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.player-section-label {
  font-size: .52rem;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(167,139,250,.35);
  width: 100%;
  margin-bottom: 4px;
}
.player-langs-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  flex-shrink: 0;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  color: var(--w60);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  letter-spacing: .3px;
}
.lang-btn:hover {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.35);
  color: #fff;
  transform: translateY(-1px);
}
.lang-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(79,70,229,.15));
  border-color: rgba(124,58,237,.5);
  color: #e9d5ff;
  box-shadow: 0 0 16px rgba(124,58,237,.18), 0 4px 12px rgba(0,0,0,.3);
}

.flag-badge {
  display: inline-block;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.flag-fr, .flag-vf { background-image: url("https://flagcdn.com/w40/fr.png") }
.flag-en, .flag-va { background-image: url("https://flagcdn.com/w40/gb.png") }
.flag-ja, .flag-vo { background-image: url("https://flagcdn.com/w40/jp.png") }

.player-episode-pickers {
  padding: 16px 18px 20px;
  flex-shrink: 0;
  background: rgba(124,58,237,.03);
  border-top: 1px solid rgba(124,58,237,.08);
}
.player-ep-pickers-title {
  font-size: .52rem;
  letter-spacing: 2.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(167,139,250,.45);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.player-ep-pickers-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(124,58,237,.22), transparent);
}

.player-ep-pickers-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.ep-picker-select-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ep-picker-select-wrap::before {
  content: attr(data-label);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(167,139,250,.5);
  padding-left: 2px;
}
.ep-picker-select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 14px;
  height: 14px;
  background: rgba(167,139,250,.5);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  pointer-events: none;
  transition: background .18s, transform .18s;
}
.ep-picker-select-wrap:focus-within::after {
  background: rgba(167,139,250,.9);
  transform: translateY(-50%) rotate(180deg);
  bottom: auto;
  top: 50%;
  margin-top: 8px;
}

.ep-picker-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(124,58,237,.06);
  border: 1px solid rgba(124,58,237,.18);
  border-radius: 13px;
  color: var(--w80);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  padding: 10px 34px 10px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  outline: none;
  min-width: 0;
  letter-spacing: .1px;
}
.ep-picker-select:focus,
.ep-picker-select:hover {
  border-color: rgba(124,58,237,.55);
  background: rgba(124,58,237,.12);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1), 0 2px 12px rgba(124,58,237,.15);
}
.ep-picker-select option {
  background: #110e22;
  color: var(--w80);
  font-weight: 500;
}

.ep-picker-ok {
  padding: 10px 18px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: none;
  border-radius: 13px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 4px 18px rgba(124,58,237,.38);
  flex-shrink: 0;
  letter-spacing: .4px;
  white-space: nowrap;
  align-self: flex-end;
  height: 40px;
}
.ep-picker-ok:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 24px rgba(124,58,237,.55);
}
.ep-picker-ok:active { transform: scale(.97) }

.player-footer {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(8,6,20,.98) 0%, rgba(5,4,14,1) 100%);
  border-top: 1px solid rgba(124,58,237,.1);
  padding: 0 24px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.player-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 500px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.22), transparent);
}

.player-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity .2s;
}
.player-footer-brand:hover { opacity: .75 }
.player-footer-logo { width: 20px; height: 20px }
.player-footer-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .9rem;
  font-weight: 700;
  background: var(--grad-full);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.player-footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  justify-content: center;
}
.player-footer-links a {
  font-size: .67rem;
  color: var(--w35, rgba(255,255,255,.35));
  text-decoration: none;
  font-weight: 500;
  transition: color .18s;
  letter-spacing: .2px;
}
.player-footer-links a:hover { color: var(--w70, rgba(255,255,255,.7)) }

.player-footer-copy {
  font-size: .62rem;
  color: var(--w25, rgba(255,255,255,.25));
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .1px;
}

@media (max-width: 900px) {
  .player-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    overflow: visible;
  }
  .player-left {
    border-right: none;
    border-bottom: 1px solid rgba(124,58,237,.1);
    min-height: 240px;
  }
  .player-wrap {
    padding-top: 56.25%;
    flex-shrink: 0;
  }
  .player-right {
    overflow-y: visible;
    max-height: none;
  }
  .player-footer-links { display: none }
  .player-nav-link { display: none }
  .player-nav-logo .logo-text { display: none }
}

@media (max-width: 700px) {
  .player-navbar-wrap {
    padding: 0;
    background: transparent;
    border-bottom: none;
  }
  .player-navbar-wrap .navbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: calc(100% - 16px) !important;
    max-width: none !important;
    margin: 7px auto 0 !important;
    border-radius: 15px !important;
    box-sizing: border-box !important;
    display: flex !important;
  }

  .player-body { width: 100%; }
  .player-left { width: 100%; }
  .player-wrap { width: 100%; padding-top: 56.25%; }
  .player-sources-strip-row { width: 100%; padding: 0; }
  .player-right { width: 100%; }
  .player-content-card  { padding: 14px 14px 12px; }
  .player-desc-block    { padding: 10px 14px; }
  .player-langs-panel   { padding: 10px 14px; }
  .player-episode-pickers { padding: 0 14px 14px; }
  .player-footer { padding: 0 14px; }
  .player-footer-copy { display: none; }
  .player-ep-pickers-row { grid-template-columns: 1fr auto; }
  .player-ep-pickers-row .ep-picker-select-wrap:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .player-navbar-wrap .navbar {
    width: calc(100% - 16px) !important;
  }
}

.player-real-footer {
  margin-top: 0 !important;
  flex-shrink: 0;
}

.footer {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  border-top: 1px solid var(--b1);
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.footer-glow-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--b3), transparent);
}

.footer::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(124, 58, 237, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 54px 28px 40px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 50px;
  position: relative;
  z-index: 1;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--w40);
  line-height: 1.82;
  margin: 13px 0 15px;
  max-width: 270px;
  font-weight: 300;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid var(--b1);
  border-radius: var(--r8);
  font-size: 0.67rem;
  color: rgba(167, 139, 250, 0.7);
}
.footer-col h4 {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.5);
  margin-bottom: 15px;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul li a,
.footer-col ul li span {
  font-size: 0.79rem;
  color: var(--w60);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover {
  color: #a78bfa;
}
.footer-bottom {
  border-top: 1px solid var(--b0);
  padding: 16px 28px;
  position: relative;
  z-index: 1;
}
.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  color: var(--w40);
}
.fsep {
  color: rgba(124, 58, 237, 0.3);
}

.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg2);
  border: 1px solid var(--b2);
  color: var(--w95);
  padding: 10px 22px;
  border-radius: var(--r12);
  font-size: 0.79rem;
  z-index: 9999;
  box-shadow:
    0 10px 38px rgba(0, 0, 0, 0.88),
    0 0 20px var(--accent-glow);
  pointer-events: none;
  opacity: 0;
  animation: toastIn 0.25s ease forwards;
}
.toast.err {
  border-color: rgba(255, 80, 80, 0.3);
  color: rgba(255, 150, 150, 0.9);
}
@keyframes toastIn {
  to {
    opacity: 1;
  }
}

.search-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--b1);
  border-radius: 10px;
  color: var(--w60);
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  flex-shrink: 0;
}
.search-toggle-btn svg {
  width: 16px;
  height: 16px;
}
.search-toggle-btn:hover,
.search-toggle-btn.active {
  border-color: var(--b3);
  color: var(--w95);
  background: rgba(124, 58, 237, 0.1);
}

.src-group-label {
  font-size: 0.55rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: rgba(167, 139, 250, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
  text-transform: uppercase;
}
.src-badge {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 3px;
  vertical-align: middle;
}
.src-badge.hls {
  background: rgba(100, 255, 100, 0.12);
  color: #8f8;
  border: 1px solid rgba(100, 255, 100, 0.25);
}
.src-badge.mp4 {
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.25);
}

@media (max-width: 960px) {
  .anime-page-body {
    grid-template-columns: 1fr;
  }
  .anime-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1;
    min-width: 220px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .anime-page-hero {
    flex-direction: column;
  }
  .anime-page-poster {
    width: 155px;
  }
  .modal-box {
    max-width: 98vw;
  }
}

@media (max-width: 700px) {
  :root {
    --card-w: 160px;
    --nav-h: 55px;
  }
  .navbar {
    width: calc(100% - 16px);
    top: 7px;
    border-radius: 15px;
  }
  .nav-inner {
    padding: 0 10px;
    gap: 5px;
  }
  .logo-text {
    display: none;
  }
  .logo-svg {
    width: 33px;
    height: 33px;
  }
  .nav-label {
    display: none;
  }
  .nav-btn {
    padding: 8px 10px;
    gap: 0;
    border-radius: 10px;
  }
  .nav-btn svg {
    width: 17px;
    height: 17px;
  }
  .nav-right {
    flex-shrink: 0;
  }
  .search-wrap {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 14px);
    left: 8px;
    right: 8px;
    width: auto;
    background: var(--bg2);
    border: 1px solid var(--b2);
    border-radius: var(--r18);
    padding: 10px 13px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.94);
    z-index: 1100;
  }
  .search-wrap.mobile-open {
    display: flex;
    flex-direction: column;
  }
  .search-wrap .search-input {
    width: 100%;
    font-size: 0.85rem;
    padding-left: 36px;
  }
  .search-wrap .search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
  }
  .search-results {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
    border: 1px solid var(--b1);
    max-height: 280px;
    overflow-y: auto;
  }
  .search-toggle-btn {
    display: flex;
  }
  .hero-section {
    height: 340px;
    width: calc(100% - 16px);
    border-radius: 16px;
  }
  .hero-content {
    left: 16px;
    bottom: 34px;
    max-width: calc(100% - 32px);
  }
  .hero-title {
    font-size: 1.72rem;
    line-height: 1.1;
  }
  .hero-desc {
    display: none;
  }
  .hero-meta {
    font-size: 0.68rem;
    gap: 12px;
  }
  .btn-watch,
  .btn-info {
    padding: 10px 18px;
    font-size: 0.8rem;
  }
  .cards-scroll {
    gap: 10px;
    padding: 9px 4px 14px;
  }
  .card-body {
    padding: 7px 9px 10px;
  }
  .card-title {
    font-size: 0.74rem;
  }
  .catalogue-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  .anime-hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 18px 24px;
    gap: 14px;
  }
  .anime-hero-poster {
    width: 105px;
    transform: none;
  }
  .anime-hero-poster:hover {
    transform: none;
  }
  .anime-hero-title {
    font-size: 1.55rem;
  }
  .anime-hero-desc {
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }
  .sidebar-card {
    min-width: 100%;
  }
  .anime-page-poster {
    width: 122px;
  }
  .anime-page-info h1 {
    font-size: 1.45rem;
  }
  .ep-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  }
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    border-radius: 22px 22px 0 0;
    max-width: 100%;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .player-wrap {
    padding-top: 56.25%;
    flex-shrink: 0;
  }
  .player-top {
    padding: 11px 44px 10px 13px;
    flex-shrink: 0;
  }
  .player-header {
    font-size: 0.78rem;
  }
  .player-source-bar {
    padding: 7px 11px;
    gap: 5px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .source-tab {
    padding: 5px 10px;
    font-size: 0.7rem;
  }
  .player-nav-btns {
    padding: 9px 11px;
    flex-shrink: 0;
  }
  .player-nav-btns button {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
  .player-controls-top {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    padding: 32px 16px 24px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col:nth-child(3),
  .footer-col:nth-child(4) {
    display: block;
  }
  .footer-col h4 {
    font-size: 0.58rem;
    margin-bottom: 12px;
  }
  .footer-col ul li {
    margin-bottom: 8px;
  }
  .footer-col ul li a,
  .footer-col ul li span {
    font-size: 0.76rem;
  }
  .footer-bottom-inner {
    flex-wrap: wrap;
    gap: 5px;
    text-align: center;
    justify-content: center;
  }
  .planning-grid {
    grid-template-columns: 1fr;
  }
  .planning-card {
    padding: 12px;
  }
  .section-block {
    padding: 0 12px;
  }
  .page-section {
    padding: 0 12px 56px;
  }
  main {
    padding-top: calc(var(--nav-h) + 20px);
  }

  .filter-bar {
    gap: 10px;
  }
  .filter-bar-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-bar-top .search-wrap.inline {
    width: 100%;
  }
  .lang-filters {
    flex-wrap: wrap;
    gap: 6px;
  }
  .genre-filter-wrap {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 14px;
  }
  .filter-btn.genre-btn {
    flex: 0 0 auto;
    padding: 5px 12px;
    font-size: 0.7rem;
  }
}

.player-top-nav {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
}
.player-top-nav button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 0.73rem;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
  white-space: nowrap;
}
.player-top-nav button svg {
  width: 11px;
  height: 11px;
}
.player-top-nav button:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--b3);
  color: #fff;
}
.player-ep-info {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-scan {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.12),
    rgba(251, 146, 60, 0.08)
  );
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 11px;
  color: #fbbf24;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.22s,
    background 0.22s,
    border-color 0.22s,
    transform 0.22s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 0 20px rgba(234, 179, 8, 0.08);
}
.btn-scan svg {
  width: 15px;
  height: 15px;
}
.btn-scan:hover {
  background: linear-gradient(
    135deg,
    rgba(234, 179, 8, 0.22),
    rgba(251, 146, 60, 0.14)
  );
  border-color: rgba(234, 179, 8, 0.7);
  color: #fde68a;
  transform: scale(1.02);
  box-shadow:
    0 0 30px rgba(234, 179, 8, 0.18),
    0 4px 20px rgba(0, 0, 0, 0.4);
}

.ep-btn-movie {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--gold, #c9a227);
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.ep-btn-movie svg {
  width: 14px;
  height: 14px;
}
.ep-btn-movie:hover {
  opacity: 0.85;
}

.detail-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.detail-backdrop {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 0 0 40px 40px;
  margin-bottom: 0;
}

.detail-backdrop-img {
  position: absolute;
  inset: -8px;
  background-size: cover;
  background-position: center 20%;
  filter: blur(32px) saturate(1.6) brightness(0.22);
  transform: scale(1.12);
  z-index: 0;
  transition: filter 1s ease;
}

.detail-backdrop-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(7, 6, 15, 0.05) 0%,
      rgba(7, 6, 15, 0.18) 30%,
      rgba(7, 6, 15, 0.82) 72%,
      rgba(7, 6, 15, 1) 100%
    ),
    linear-gradient(
      100deg,
      rgba(124, 58, 237, 0.22) 0%,
      rgba(79, 70, 229, 0.1) 40%,
      transparent 70%
    );
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 5%,
    rgba(124, 58, 237, 0.35) 35%,
    rgba(6, 182, 212, 0.22) 65%,
    transparent 95%
  );
  z-index: 3;
}

.detail-backdrop-back {
  position: absolute;
  top: 78px;
  left: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: rgba(7, 6, 15, 0.65);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s,
    border-color 0.22s;
  letter-spacing: 0.3px;
}
.detail-backdrop-back:hover {
  border-color: rgba(124, 58, 237, 0.55);
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.12);
  transform: translateX(-3px);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}
.detail-backdrop-back svg {
  width: 13px;
  height: 13px;
}

.detail-main-row {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  padding: 0 28px;
  margin-top: -160px;
  position: relative;
  z-index: 5;
}

.detail-poster {
  flex-shrink: 0;
  width: 200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(124, 58, 237, 0.12),
    0 32px 90px rgba(0, 0, 0, 0.98),
    0 0 50px rgba(124, 58, 237, 0.18);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s;
  position: relative;
}
.detail-poster::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: radial-gradient(
    ellipse,
    rgba(124, 58, 237, 0.22) 0%,
    transparent 70%
  );
  z-index: -1;
  filter: blur(10px);
  pointer-events: none;
}
.detail-poster:hover {
  transform: translateY(-8px) scale(1.025);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(124, 58, 237, 0.2),
    0 44px 110px rgba(0, 0, 0, 0.98),
    0 0 70px rgba(124, 58, 237, 0.28);
}
.detail-poster img {
  width: 100%;
  display: block;
}

.detail-info {
  flex: 1;
  min-width: 0;
  padding-bottom: 4px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.detail-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid;
  backdrop-filter: blur(8px);
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}

.detail-meta-badge.tmdb {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(6, 182, 212, 0.06));
  color: #67e8f9;
  border-color: rgba(103, 232, 249, 0.3);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  font-size: 0.62rem;
}
.detail-meta-badge.year {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.09);
}
.detail-meta-badge.season-count {
  background: rgba(124, 58, 237, 0.1);
  color: #c4b5fd;
  border-color: rgba(196, 181, 253, 0.2);
}
.detail-meta-badge.type-badge {
  background: rgba(79, 70, 229, 0.12);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.2);
}
.detail-meta-badge.status-badge.airing {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.1);
}
.detail-meta-badge.status-badge.done {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.18);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.5px;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #e2d9ff 40%,
    #c4b5fd 70%,
    #a5b4fc 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.6));
}
.detail-genres {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.detail-genre-tag {
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.09);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 5px;
  color: rgba(167, 139, 250, 0.78);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.detail-genre-tag:hover {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(124, 58, 237, 0.45);
  color: #c4b5fd;
}

.detail-desc {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.78;
  max-width: 620px;
  margin-bottom: 20px;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 300;
  border-left: 2px solid rgba(124, 58, 237, 0.3);
  padding-left: 14px;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 60%, #06b6d4 100%);
  border: none;
  border-radius: 11px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.24s,
    border-color 0.24s;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 5px 24px rgba(124, 58, 237, 0.5),
    0 0 50px rgba(124, 58, 237, 0.18);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}
.detail-btn-watch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 55%
  );
  transition: opacity 0.2s;
}
.detail-btn-watch:hover {
  transform: scale(1.06) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 36px rgba(124, 58, 237, 0.65),
    0 0 80px rgba(124, 58, 237, 0.28);
  filter: brightness(1.08);
}
.detail-btn-watch:hover::before {
  opacity: 0;
}
.detail-btn-watch svg {
  width: 14px;
  height: 14px;
}

.detail-btn-manga {
  display: none;
}

.detail-btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.30);
  border-radius: 8px;
  color: rgba(167, 139, 250, 0.85);
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s,
    background 0.22s,
    border-color 0.22s;
  flex-shrink: 0;
}
.detail-btn-fav:hover {
  background: rgba(124, 58, 237, 0.20);
  border-color: rgba(167, 139, 250, 0.55);
  color: #a78bfa;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 22px rgba(124, 58, 237, 0.35);
}
.detail-btn-fav:hover svg {
  transform: scale(1.15);
}
.detail-btn-fav svg {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s, stroke 0.2s;
}
.detail-btn-fav.fav-active {
  background: rgba(124, 58, 237, 0.20);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.30);
}
.detail-btn-fav.fav-pop {
  animation: fav-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fav-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.detail-rating-pill {
  display: none;
}
.detail-rating-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.detail-rating-circle svg {
  width: 42px;
  height: 42px;
  transform: rotate(0deg);
}

.detail-body {
  padding: 32px 28px 0;
}

.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}

.detail-tab {
  padding: 12px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  margin-bottom: -1px;
}
.detail-tab.active {
  color: #fff;
  border-bottom-color: #7c3aed;
}
.detail-tab:hover:not(.active) {
  color: rgba(255, 255, 255, 0.65);
}

.detail-season-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-season-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.detail-season-title span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-body);
  font-weight: 400;
  margin-left: 8px;
}

.detail-season-select {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.detail-season-select:hover {
  border-color: rgba(124, 58, 237, 0.45);
  color: #fff;
  background: rgba(124, 58, 237, 0.1);
}
.detail-season-select svg {
  width: 14px;
  height: 14px;
}

.detail-season-dropdown {
  position: relative;
}
.detail-season-popup {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(13, 11, 26, 0.97);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 12px;
  overflow: hidden;
  z-index: 100;
  min-width: 180px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
  display: none;
}
.detail-season-dropdown.open .detail-season-popup {
  display: block;
}
.detail-season-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}
.detail-season-option:last-child {
  border-bottom: none;
}
.detail-season-option:hover {
  background: rgba(124, 58, 237, 0.12);
  color: #fff;
}
.detail-season-option.active {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.15);
}

.detail-episodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-episode-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.detail-episode-card:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateX(4px);
}

.detail-ep-thumb {
  flex-shrink: 0;
  width: 168px;
  height: 95px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(14, 11, 30, 0.9);
  position: relative;
}
.detail-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}
.detail-episode-card:hover .detail-ep-thumb img {
  transform: scale(1.05);
}
.detail-ep-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
}
.detail-episode-card:hover .detail-ep-thumb-overlay {
  opacity: 1;
}
.detail-ep-thumb-overlay svg {
  width: 32px;
  height: 32px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}
.detail-ep-num-badge {
  position: absolute;
  bottom: 6px;
  left: 7px;
  background: rgba(7, 6, 15, 0.82);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 800;
  color: rgba(196, 181, 253, 0.9);
  padding: 2px 6px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.detail-ep-info {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.detail-ep-number {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #7c3aed;
  margin-bottom: 5px;
}

.detail-ep-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 7px;
  line-height: 1.3;
}

.detail-ep-desc {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-ep-duration {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
  font-weight: 500;
}

.detail-movie-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.026);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.detail-movie-card:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
}

@media (max-width: 860px) {
  .detail-main-row {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -90px;
    padding: 0 16px;
    gap: 16px;
  }
  .detail-poster {
    width: 145px;
  }
  .detail-info {
    padding-bottom: 0;
  }
  .detail-title {
    font-size: 1.9rem;
  }
  .detail-body {
    padding: 24px 16px 0;
  }
  .detail-ep-thumb {
    width: 120px;
    height: 68px;
  }
  .detail-backdrop {
    height: 260px;
  }
  .detail-desc {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 560px) {
  .detail-poster {
    width: 115px;
  }
  .detail-title {
    font-size: 1.55rem;
  }
  .detail-ep-thumb {
    width: 96px;
    height: 54px;
  }
  .detail-ep-title {
    font-size: 0.82rem;
  }
  .detail-btn-watch {
    padding: 10px 20px;
    font-size: 0.82rem;
  }
}

.reveal-cat,
.reveal-plan {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-cat.visible,
.reveal-plan.visible {
  opacity: 1;
  transform: none;
}
.catalogue-grid .reveal-cat {
  display: contents;
}
.catalogue-grid .reveal-cat > .anime-card {
  width: 100%;
}

.mg-premium-screen {
  flex: 1;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 0;
}

.mg-premium-ambient {
  position: absolute;
  inset: -80px;
  background-size: cover;
  background-position: center;
  filter: blur(100px) brightness(0.08) saturate(3);
  transform: scale(1.2);
  z-index: 0;
}

.mg-premium-noise {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.mg-premium-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(124, 58, 237, 0.04) 0%,
      transparent 40%,
      rgba(6, 182, 212, 0.03) 100%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 119px,
      rgba(124, 58, 237, 0.025) 120px
    );
}

.mg-premium-layout {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 52px 72px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  animation: mgPremSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes mgPremSlide {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mg-premium-left {
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mg-book-shadow {
  position: absolute;
  bottom: -10px;
  left: 14px;
  right: -6px;
  height: 36px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75) 0%, transparent 75%);
  filter: blur(18px);
  z-index: 0;
}

.mg-book-wrap {
  position: relative;
  width: 185px;
  border-radius: 3px 14px 14px 3px;
  overflow: hidden;
  box-shadow:
    -2px 0 0 rgba(0, 0, 0, 0.8),
    -5px 0 0 rgba(0, 0, 0, 0.55),
    -9px 0 0 rgba(0, 0, 0, 0.32),
    -13px 0 0 rgba(0, 0, 0, 0.14),
    0 36px 90px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 60px rgba(124, 58, 237, 0.12);
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.5s;
  cursor: pointer;
  z-index: 1;
}
.mg-book-wrap:hover {
  transform: translateY(-10px) rotateY(-6deg) scale(1.03);
  box-shadow:
    -2px 0 0 rgba(0, 0, 0, 0.8),
    -6px 0 0 rgba(0, 0, 0, 0.55),
    -12px 0 0 rgba(0, 0, 0, 0.32),
    -18px 0 0 rgba(0, 0, 0, 0.14),
    0 60px 120px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 90px rgba(124, 58, 237, 0.22);
}

.mg-book-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.5) 0%,
    rgba(79, 70, 229, 0.4) 50%,
    rgba(6, 182, 212, 0.3) 100%
  );
  z-index: 2;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.mg-book-cover {
  width: 100%;
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.mg-book-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.18) 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

.mg-book-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.4);
}

.mg-premium-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mg-prem-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(167, 139, 250, 0.55);
}

.mg-prem-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.6);
  flex-shrink: 0;
}

.mg-prem-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 900;
  font-style: italic;
  line-height: 0.93;
  letter-spacing: -0.8px;
  background: linear-gradient(
    135deg,
    #fff 0%,
    #e0d7ff 35%,
    #c4b5fd 60%,
    #93c5fd 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mg-prem-genres {
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(167, 139, 250, 0.38);
  letter-spacing: 0.5px;
}

.mg-prem-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.4) 0%,
    rgba(6, 182, 212, 0.15) 50%,
    transparent 100%
  );
}

.mg-prem-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 14px;
  overflow: hidden;
  width: fit-content;
}

.mg-prem-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 24px;
  transition: background 0.2s;
}
.mg-prem-stat:hover {
  background: rgba(124, 58, 237, 0.12);
}

.mg-prem-stat-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(124, 58, 237, 0.18);
  flex-shrink: 0;
}

.mg-prem-stat-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.mg-prem-stat-lbl {
  font-size: 0.46rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.2);
}

.mg-prem-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.85;
  max-width: 520px;
  font-weight: 300;
}

.mg-prem-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.35);
  width: fit-content;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s,
    border-color 0.28s;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(124, 58, 237, 0.08);
  position: relative;
}
.mg-prem-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08) 0%,
    rgba(6, 182, 212, 0.04) 100%
  );
  transition: opacity 0.2s;
}
.mg-prem-cta:hover {
  border-color: rgba(124, 58, 237, 0.65);
  transform: scale(1.03) translateY(-2px);
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(124, 58, 237, 0.18);
}
.mg-prem-cta:hover::before {
  opacity: 2;
}

.mg-prem-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.mg-prem-cta-icon svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.mg-prem-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  position: relative;
  z-index: 1;
}

.mg-prem-cta-main {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.mg-prem-cta-sub {
  font-size: 0.65rem;
  color: rgba(167, 139, 250, 0.6);
  font-weight: 400;
}

.mg-prem-cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 52px;
  position: relative;
  z-index: 1;
  transition: transform 0.22s;
}
.mg-prem-cta:hover .mg-prem-cta-arrow {
  transform: translateX(3px);
}
.mg-prem-cta-arrow svg {
  width: 15px;
  height: 15px;
  stroke: rgba(167, 139, 250, 0.5);
}

.mg-prem-hint {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.12);
  font-style: italic;
  letter-spacing: 0.5px;
}

@media (max-width: 700px) {
  .mg-premium-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 20px 52px;
    gap: 32px;
  }
  .mg-book-wrap {
    width: 140px;
  }
  .mg-prem-title {
    font-size: 2.4rem;
  }
  .mg-prem-stats {
    justify-content: center;
  }
  .mg-prem-stat {
    padding: 10px 16px;
  }
  .mg-prem-cta {
    align-self: center;
  }
  .mg-prem-rule {
    display: none;
  }
  .mg-prem-desc {
    display: none;
  }
}
.ga-cmt-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 32px;
}

.ga-cmt-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
}

.ga-cmt-pseudo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ga-cmt-pseudo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 10px;
  color: rgba(167, 139, 250, 0.6);
  flex-shrink: 0;
}
.ga-cmt-pseudo-icon svg {
  width: 15px;
  height: 15px;
}
.ga-cmt-pseudo-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}
.ga-cmt-pseudo-input:focus {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.07);
}
.ga-cmt-pseudo-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.ga-cmt-textarea-wrap {
  position: relative;
}
.ga-cmt-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 160px;
  resize: vertical;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 12px 14px 28px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.55;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.ga-cmt-textarea:focus {
  border-color: rgba(124, 58, 237, 0.55);
  background: rgba(124, 58, 237, 0.06);
}
.ga-cmt-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}
.ga-cmt-char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.ga-cmt-send-btn {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5, #06b6d4);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ga-cmt-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
}
.ga-cmt-send-btn svg {
  width: 14px;
  height: 14px;
}
.ga-cmt-send-btn:disabled {
  pointer-events: none;
}

.ga-cmt-list-outer {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
}
.ga-cmt-list {
  height: 340px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, 0.25) transparent;
}
.ga-cmt-list::-webkit-scrollbar {
  width: 4px;
}
.ga-cmt-list::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.3);
  border-radius: 2px;
}

.ga-cmt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 14px;
  padding: 20px;
}
.ga-cmt-empty-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.1),
    rgba(79, 70, 229, 0.05)
  );
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 16px;
  color: rgba(167, 139, 250, 0.3);
}
.ga-cmt-empty-icon svg {
  width: 26px;
  height: 26px;
}
.ga-cmt-empty-txt {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  text-align: center;
}

.ga-cmt-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  animation: gaCmtIn 0.25s ease;
}
@keyframes gaCmtIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ga-cmt-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 11px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}
.ga-cmt-content {
  flex: 1;
  min-width: 0;
}
.ga-cmt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 8px;
}
.ga-cmt-pseudo {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c4b5fd;
  font-family: var(--font-body);
}
.ga-cmt-time {
  font-size: 0.67rem;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.ga-cmt-body {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
  font-family: var(--font-body);
}

.detail-tabs {
  justify-content: center;
  gap: 8px;
}

@media (max-width: 700px) {
  .planning-hero {
    padding: 36px 24px 32px;
    border-radius: 16px;
    margin-bottom: 24px;
  }
  .planning-hero-title {
    font-size: 2.4rem;
  }
  .planning-filters-wrap {
    padding: 14px 16px;
    gap: 12px;
  }
  .planning-filter-divider {
    display: none;
  }
  .planning-day-cards {
    grid-template-columns: 1fr;
  }
  .planning-card-img-wrap {
    width: 56px;
  }
  .planning-card-time-chip {
    display: none;
  }
  .planning-card-body {
    padding: 12px 12px 12px 10px;
  }
}

.detail-ep-thumb img {
  transition: filter 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}
.antispoil-active .detail-ep-thumb img {
  filter: blur(10px) !important;
}

.antispoil-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 11px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 8px;
}

.antispoil-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
  user-select: none;
}

.antispoil-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.antispoil-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
}
.antispoil-toggle.on .antispoil-track {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.antispoil-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.35s ease;
}
.antispoil-toggle.on .antispoil-thumb {
  transform: translateX(20px);
  background: #fff;
}

.antispoil-state {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.25);
  transition: color 0.3s ease;
  min-width: 24px;
  user-select: none;
}
.antispoil-toggle.on .antispoil-state {
  color: rgba(167, 139, 250, 0.9);
}

.detail-actions .detail-rating-circle {
  margin-left: 2px;
}
.detail-actions .detail-rating-circle svg {
  width: 42px;
  height: 42px;
}

.detail-meta-badge.status-badge.airing {
  background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(16,185,129,0.06));
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.32);
  box-shadow: 0 0 12px rgba(16,185,129,0.2);
}
.detail-meta-badge.status-badge.done {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.2);
}
.detail-meta-badge.season-count {
  background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(124,58,237,0.06));
  color: #d8b4fe;
  border-color: rgba(216, 180, 254, 0.3);
}
.detail-meta-badge.type-badge {
  background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(79,70,229,0.06));
  color: #c7d2fe;
  border-color: rgba(199, 210, 254, 0.28);
}
.detail-meta-badge.year {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

.wp-party-word {
  background: linear-gradient(135deg, #ff3366, #ff6b6b, #ffaaaa);
  background-clip: text;
  color: transparent;
  font-weight: 800;
  display: inline-block;
}

.wp-card {
  width: 100%;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(18,14,35,0.98) 0%, rgba(10,8,22,0.99) 100%);
  border: 1px solid rgba(124,58,237,0.22);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.08) inset,
    0 32px 80px rgba(0,0,0,0.55),
    0 8px 30px rgba(0,0,0,0.4);
}

.wp-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124,58,237,0.5) 20%,
    rgba(167,139,250,0.6) 50%,
    rgba(79,70,229,0.4) 80%,
    transparent 100%
  );
}

.wp-card::after {
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.wp-card-inner {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.wp-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 40px;
  justify-content: flex-start;
}

.wp-panel:first-child {
  border-right: none;
}

.wp-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.wp-panel-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wp-panel-icon.create {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(79,70,229,0.15));
  border: 1px solid rgba(124,58,237,0.3);
}

.wp-panel-icon.join {
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(79,70,229,0.15));
  border: 1px solid rgba(6,182,212,0.25);
}

.wp-panel-icon svg {
  width: 15px;
  height: 15px;
  color: rgba(167,139,250,0.9);
}

.wp-panel-icon.join svg {
  color: rgba(103,232,249,0.9);
}

.wp-panel-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.wp-panel-subtitle {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  margin-top: 1px;
}

.wp-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wp-field-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(167,139,250,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.wp-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 11px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}

.wp-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.wp-input:focus {
  border-color: rgba(124,58,237,0.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1), 0 0 14px rgba(124,58,237,0.08);
  background: rgba(124,58,237,0.05);
}

.wp-input-display {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 12px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-body);
  font-size: 0.84rem;
  padding: 11px 15px;
  letter-spacing: 0.3px;
}

.wp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s, opacity 0.2s;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.wp-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.wp-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.wp-btn-main {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4), 0 1px 0 rgba(255,255,255,0.12) inset;
}

.wp-btn-main:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.55), 0 1px 0 rgba(255,255,255,0.12) inset;
}

.wp-btn-main:active {
  transform: scale(0.97);
}

.wp-btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(220,38,38,0.35), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.wp-btn-danger:hover {
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 8px 30px rgba(220,38,38,0.5), 0 1px 0 rgba(255,255,255,0.1) inset;
}

.wp-btn-danger:active {
  transform: scale(0.97);
}

.wp-divider {
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(124,58,237,0.25) 20%,
    rgba(167,139,250,0.3) 50%,
    rgba(79,70,229,0.2) 80%,
    transparent 100%
  );
  position: relative;
}

.wp-divider::after {
  content: "ou";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(18,14,35,1);
  color: rgba(167,139,250,0.35);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 4px;
  white-space: nowrap;
  writing-mode: vertical-lr;
}

.wp-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 9px 13px;
  line-height: 1.5;
  animation: wpErrIn 0.25s ease;
}

@keyframes wpErrIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wp-member-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.wp-member-count::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .wp-card-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1px auto;
  }
  .wp-panel {
    padding: 28px 22px;
  }
  .wp-divider {
    width: auto;
    height: 1px;
    background: linear-gradient(to right,
      transparent 0%,
      rgba(124,58,237,0.25) 20%,
      rgba(167,139,250,0.3) 50%,
      rgba(79,70,229,0.2) 80%,
      transparent 100%
    );
  }
  .wp-divider::after {
    writing-mode: horizontal-tb;
    padding: 4px 8px;
    top: 50%;
    left: 50%;
  }
}

.auth-nav-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(60,50,100,0.55);
  border: 1.5px solid rgba(124,58,237,0.28);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.22s;
  flex-shrink: 0;
  overflow: visible;
  padding: 0;
}
.auth-nav-btn:hover {
  border-color: rgba(167,139,250,0.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 0 14px rgba(124,58,237,0.28);
  transform: scale(1.08);
  background: rgba(80,60,130,0.65);
}
.auth-btn-inner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.auth-btn-inner img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #07060f;
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
  animation: dotPulse 2.4s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(34,197,94,0.7); }
  50% { box-shadow: 0 0 12px rgba(34,197,94,0.9), 0 0 20px rgba(34,197,94,0.4); }
}

.auth-card {
  position: fixed;
  width: 290px;
  background: linear-gradient(160deg, rgba(14,11,28,0.98) 0%, rgba(10,8,22,0.99) 100%);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 0 0 1px rgba(167,139,250,0.06) inset;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.25s cubic-bezier(0.34,1.3,0.64,1);
  pointer-events: none;
}
.auth-card-visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}
.ac-glow-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.6), rgba(79,70,229,0.5), rgba(6,182,212,0.4), transparent);
}
.ac-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
}
.ac-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.ac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(80,60,120,0.6);
  border: 1.5px solid rgba(124,58,237,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ac-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid #0a0816;
}
.ac-user-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.ac-username {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}
.ac-role {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.42);
  font-size: 0.74rem;
  font-weight: 500;
}
.ac-role-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 5px #22c55e;
}
.ac-guest-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
}
.ac-guest-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(80,60,120,0.45);
  border: 1.5px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ac-guest-title {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
}
.ac-guest-sub {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  margin-top: 2px;
}
.ac-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), transparent);
  margin: 0 16px;
}
.ac-actions {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ac-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, transform 0.15s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.ac-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s;
}
.ac-btn-label { flex: 1; text-align: left; }
.ac-btn-arrow {
  width: 13px;
  height: 13px;
  opacity: 0.35;
  transition: opacity 0.18s, transform 0.18s;
  flex-shrink: 0;
}
.ac-btn-profile {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.18);
  color: rgba(255,255,255,0.9);
}
.ac-btn-profile .ac-btn-icon { background: rgba(124,58,237,0.18); color: #a78bfa; }
.ac-btn-profile:hover {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.4);
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(124,58,237,0.2);
}
.ac-btn-profile:hover .ac-btn-arrow { opacity: 0.8; transform: translateX(2px); }
.ac-btn-profile:hover .ac-btn-icon { background: rgba(124,58,237,0.3); }
.ac-btn-logout {
  background: rgba(239,68,68,0.07);
  border-color: rgba(239,68,68,0.14);
  color: #f87171;
}
.ac-btn-logout .ac-btn-icon { background: rgba(239,68,68,0.12); color: #f87171; }
.ac-btn-logout:hover {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.35);
  transform: translateX(2px);
  box-shadow: 0 4px 14px rgba(239,68,68,0.18);
}
.ac-provider-logo { width: 17px; height: 17px; flex-shrink: 0; }
.ac-btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: rgba(0,0,0,0.08);
  font-weight: 600;
}
.ac-btn-google:hover { background: #f5f5f5; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.ac-btn-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  border-color: rgba(88,101,242,0.4);
  font-weight: 600;
}
.ac-btn-discord:hover { background: linear-gradient(135deg, #6875f4, #5865f2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(88,101,242,0.45); }

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}
.onboarding-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5,4,14,0.94);
  backdrop-filter: blur(14px);
}
.onboarding-visible { opacity: 1; }
.ob-exit { opacity: 0 !important; }
.ob-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.ob-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(124,58,237,0.18);
  top: -100px;
  left: -80px;
}
.ob-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(6,182,212,0.1);
  bottom: -60px;
  right: -60px;
}
.ob-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ob-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.ob-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #a78bfa, #67e8f9);
  background-clip: text;
  color: transparent;
}
.ob-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.ob-subtitle {
  color: rgba(255,255,255,0.42);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 28px;
}
.ob-steps-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  width: 100%;
  max-width: 240px;
  justify-content: center;
}
.ob-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ob-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: all 0.35s cubic-bezier(0.34,1.3,0.64,1);
  background: rgba(255,255,255,0.03);
}
.ob-step.active .ob-step-circle {
  border-color: var(--accent1);
  color: var(--accent1);
  background: rgba(124,58,237,0.12);
  box-shadow: 0 0 16px rgba(124,58,237,0.3);
}
.ob-step.done .ob-step-circle {
  border-color: #a78bfa;
  color: #fff;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 14px rgba(124,58,237,0.4);
}
.ob-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ob-step.active .ob-step-label, .ob-step.done .ob-step-label { color: rgba(167,139,250,0.8); }
.ob-step-track {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 0 10px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.ob-step-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.34,1.1,0.64,1);
}
.ob-card {
  width: 100%;
  background: linear-gradient(160deg, rgba(14,11,30,0.96), rgba(10,8,20,0.98));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px;
  padding: 28px 28px 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(167,139,250,0.05) inset;
  position: relative;
  overflow: hidden;
}
.ob-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), rgba(6,182,212,0.3), transparent);
}
.ob-section-avatar { margin-bottom: 0; }
.ob-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 12px;
}
.ob-tag-opt {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ob-tag-req {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(167,139,250,0.7);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ob-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
}
.ob-avatar-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(60,50,100,0.5);
  border: 2px dashed rgba(124,58,237,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.2s;
}
.ob-avatar-btn:hover {
  border-color: rgba(167,139,250,0.65);
  box-shadow: 0 0 20px rgba(124,58,237,0.28);
  transform: scale(1.04);
}
.ob-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50%;
}
.ob-avatar-btn:hover .ob-avatar-overlay { opacity: 1; }
.ob-avatar-hints { flex: 1; }
.ob-avatar-hint-title { color: rgba(255,255,255,0.75); font-size: 0.84rem; font-weight: 600; margin-bottom: 3px; }
.ob-avatar-hint-sub { color: rgba(255,255,255,0.3); font-size: 0.75rem; margin-bottom: 8px; }
.ob-avatar-link {
  background: transparent;
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 7px;
  color: rgba(167,139,250,0.85);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.ob-avatar-link:hover { background: rgba(124,58,237,0.12); border-color: rgba(167,139,250,0.5); color: #c4b5fd; }
.ob-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), transparent);
  margin: 22px 0;
}
.ob-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.07);
  border: 1.5px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  padding: 11px 12px;
  transition: border-color 0.22s, box-shadow 0.22s, background 0.22s;
  margin-bottom: 8px;
}
.ob-input-wrap:focus-within {
  border-color: rgba(167,139,250,0.55);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
  background: rgba(124,58,237,0.1);
}
.ob-wrap-valid { border-color: rgba(34,197,94,0.4) !important; }
.ob-wrap-valid:focus-within { box-shadow: 0 0 0 3px rgba(34,197,94,0.1) !important; }
.ob-wrap-error { border-color: rgba(239,68,68,0.4) !important; }
.ob-input-icon { flex-shrink: 0; }
.ob-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 0;
}
.ob-input::placeholder { color: rgba(255,255,255,0.25); }
.ob-char-count { color: rgba(255,255,255,0.3); font-size: 0.72rem; font-weight: 600; flex-shrink: 0; }
.ob-input-hint { color: rgba(255,255,255,0.28); font-size: 0.75rem; margin-bottom: 14px; }
.ob-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  color: #f87171;
  font-size: 0.8rem;
  padding: 8px 12px;
  margin-bottom: 14px;
  animation: obErrIn 0.25s ease;
}
@keyframes obErrIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ob-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 55%, var(--accent3) 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.2s;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}
.ob-submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.ob-submit-btn:hover:not(:disabled)::before { opacity: 1; }
.ob-submit-btn:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 8px 28px rgba(124,58,237,0.5); }
.ob-submit-btn:disabled { background: rgba(70,60,110,0.6); color: rgba(255,255,255,0.3); cursor: not-allowed; }
.ob-submit-btn.ob-loading { pointer-events: none; opacity: 0.75; }
.ob-submit-btn.ob-success { background: linear-gradient(135deg, #16a34a, #22c55e); }

.pp-root {
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 36px) 24px 64px;
}
.pp-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20,14,40,0.95) 0%, rgba(12,9,25,0.97) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  margin-bottom: 3px;
  padding: 30px 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}
.pp-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent1), var(--accent2), var(--accent3), transparent);
}
.pp-banner-glow-left {
  position: absolute;
  width: 260px; height: 260px;
  background: rgba(124,58,237,0.12);
  border-radius: 50%;
  filter: blur(60px);
  top: -60px; left: -40px;
  pointer-events: none;
}
.pp-banner-glow-right {
  position: absolute;
  width: 200px; height: 200px;
  background: rgba(6,182,212,0.07);
  border-radius: 50%;
  filter: blur(50px);
  bottom: -40px; right: 40px;
  pointer-events: none;
}
.pp-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pp-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pp-avatar-ring {
  position: relative;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}
.pp-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(60,50,100,0.7);
  border: 2px solid rgba(124,58,237,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.1);
}
.pp-online-dot {
  position: absolute;
  bottom: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 2.5px solid #0e0a1e;
  box-shadow: 0 0 8px rgba(34,197,94,0.7);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.pp-id-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pp-eyebrow-sm {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(167,139,250,0.65);
  text-transform: uppercase;
}
.pp-username {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 3px 10px;
  width: fit-content;
}
.pp-stat-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.22);
  border-radius: 12px;
  padding: 14px 28px;
  gap: 12px;
  backdrop-filter: blur(8px);
}
.pp-stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, rgba(167,139,250,0.8));
  background-clip: text;
  color: transparent;
}
.pp-stat-unit {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pp-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: linear-gradient(160deg, rgba(12,9,24,0.95), rgba(9,7,18,0.97));
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  min-height: 480px;
}
.pp-sidenav {
  border-right: 1px solid rgba(124,58,237,0.1);
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.15);
}
.pp-snav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.pp-snav-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  flex-shrink: 0;
  transition: background 0.2s;
}
.pp-snav-btn:hover {
  background: rgba(124,58,237,0.08);
  color: rgba(255,255,255,0.85);
  border-color: rgba(124,58,237,0.15);
  transform: translateX(2px);
}
.pp-snav-btn:hover .pp-snav-icon { background: rgba(124,58,237,0.15); }
.pp-snav-btn.active {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(79,70,229,0.12));
  border-color: rgba(124,58,237,0.3);
  color: #fff;
}
.pp-snav-btn.active .pp-snav-icon {
  background: rgba(124,58,237,0.25);
  color: #c4b5fd;
}
.pp-snav-sep {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 6px 4px;
}
.pp-snav-red { color: rgba(248,113,113,0.75); }
.pp-snav-red .pp-snav-icon { color: rgba(248,113,113,0.75); }
.pp-snav-red:hover {
  background: rgba(239,68,68,0.08) !important;
  border-color: rgba(239,68,68,0.2) !important;
  color: #fca5a5 !important;
}
.pp-snav-red:hover .pp-snav-icon { background: rgba(239,68,68,0.12) !important; color: #fca5a5 !important; }
.pp-snav-red.active {
  background: rgba(239,68,68,0.1) !important;
  border-color: rgba(239,68,68,0.25) !important;
  color: #fca5a5 !important;
}

.pp-content {
  padding: 28px 28px;
  overflow-y: auto;
}
.pt-head { margin-bottom: 20px; }
.pt-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(167,139,250,0.6);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.pt-h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.2px;
}
.pt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pt-card {
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.13);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s;
}
.pt-card:hover { border-color: rgba(124,58,237,0.22); }
.pt-card-tall {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
}
.pt-card-tall .pt-field-group {
  flex: 1;
}
.pt-pwd-hint {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  margin-top: 6px;
  line-height: 1.5;
}
.pt-card-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.pt-card-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
}
.pt-card-title { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.87rem; }
.pt-field-group { display: flex; flex-direction: column; gap: 6px; }
.pt-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.32);
  text-transform: uppercase;
}
.pt-field-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 7px 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pt-field-row-active {
  border-color: rgba(124,58,237,0.45) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.pt-readonly { cursor: default; }
.pt-field-inp {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-width: 0;
}
.pt-field-inp:not([readonly]) { color: #fff; }
.pt-ico-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
  color: rgba(255,255,255,0.45);
}
.pt-ico-btn:hover { background: rgba(124,58,237,0.15); border-color: rgba(124,58,237,0.3); color: #a78bfa; }
.pt-ico-ok:hover { background: rgba(34,197,94,0.12) !important; border-color: rgba(34,197,94,0.3) !important; }
.pt-ico-cancel:hover { background: rgba(239,68,68,0.12) !important; border-color: rgba(239,68,68,0.3) !important; }
.pt-field-error { color: #f87171; font-size: 0.75rem; margin-top: 2px; }

.pt-notif-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.14);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.pt-notif-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  flex-shrink: 0;
}
.pt-notif-text { flex: 1; }
.pt-notif-t { color: rgba(255,255,255,0.9); font-weight: 600; font-size: 0.88rem; margin-bottom: 3px; }
.pt-notif-s { color: rgba(255,255,255,0.4); font-size: 0.78rem; }
.pt-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.12);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.pt-toggle.on {
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  border-color: transparent;
  box-shadow: 0 0 12px rgba(124,58,237,0.4);
}
.pt-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1), background 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.pt-toggle.on .pt-knob { transform: translateX(20px); background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.pt-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 9px;
  border: none;
  background: linear-gradient(135deg, var(--accent1), var(--accent2), var(--accent3));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pt-save-btn:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124,58,237,0.4); }
.pt-save-ok { background: linear-gradient(135deg, #15803d, #22c55e) !important; }

.pt-session-card {
  background: rgba(124,58,237,0.05);
  border: 1px solid rgba(124,58,237,0.13);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.pt-sc-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.pt-sc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #a78bfa; flex-shrink: 0;
}
.pt-sc-name { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.87rem; margin-bottom: 2px; }
.pt-sc-desc { color: rgba(255,255,255,0.38); font-size: 0.77rem; }
.pt-sc-rows {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 9px;
  padding: 12px 14px;
}
.pt-sc-row { display: flex; align-items: center; gap: 8px; }
.pt-sc-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 0; }
.pt-sc-k { color: rgba(255,255,255,0.38); font-size: 0.78rem; font-weight: 600; flex-shrink: 0; }
.pt-sc-v { color: rgba(255,255,255,0.85); font-size: 0.82rem; font-family: "Courier New", monospace; background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.15); border-radius: 5px; padding: 2px 8px; }
.pt-dz-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: rgba(239,68,68,0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.pt-dz-divider::before, .pt-dz-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(239,68,68,0.15);
}
.pt-danger-card {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.16);
  border-radius: 12px;
  padding: 16px;
}
.pt-dc-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.pt-dc-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(239,68,68,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #f87171; flex-shrink: 0;
}
.pt-dc-name { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.87rem; margin-bottom: 2px; }
.pt-dc-desc { color: rgba(255,255,255,0.38); font-size: 0.77rem; line-height: 1.5; }
.pt-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1.5px solid rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.08);
  color: #f87171;
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pt-del-btn:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.55); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(239,68,68,0.25); color: #fca5a5; }

@media (max-width: 900px) {
  .pp-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pp-sidenav { border-right: none; border-bottom: 1px solid rgba(124,58,237,0.1); flex-direction: row; flex-wrap: wrap; padding: 12px; gap: 6px; }
  .pp-snav-btn { width: auto; font-size: 0.78rem; padding: 7px 10px; }
  .pp-snav-sep { display: none; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-card-tall { grid-column: 1; grid-row: auto; }
  .pp-content { padding: 18px; }
}
@media (max-width: 700px) {
  .auth-card { width: calc(100vw - 16px); left: 8px !important; right: 8px !important; }
  .pp-root { padding: calc(var(--nav-h) + 18px) 12px 40px; }
  .pp-banner { padding: 20px 18px; }
  .pp-identity { gap: 12px; }
  .pp-avatar-ring { width: 60px; height: 60px; }
  .pp-avatar { width: 56px; height: 56px; }
  .pp-username { font-size: 1.2rem; }
  .pp-stat-block { padding: 12px 18px; }
  .pp-stat-num { font-size: 1.5rem; }
  .ob-card { padding: 20px 18px 18px; }
  .ob-title { font-size: 1.7rem; }
  .ob-avatar-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ac-btn { padding: 9px 10px; font-size: 0.83rem; }
  .pp-snav-btn { font-size: 0.74rem; padding: 6px 8px; }

  .pp-sidenav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px;
  }
  .pp-snav-btn {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 6px;
    font-size: 0.7rem;
    text-align: center;
  }
  .pp-snav-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .pp-snav-btn .pp-snav-label { display: block; }

  .pt-grid { grid-template-columns: 1fr; }
  .pt-card-tall { grid-column: 1; grid-row: auto; }
  .pt-card { overflow: hidden; }
  .pt-field-row { min-width: 0; overflow: hidden; }
  .pt-field-inp { min-width: 0; width: 0; }

  .auth-nav-btn { width: 36px; height: 36px; }
  .auth-btn-inner { width: 32px; height: 32px; }
  .auth-btn-inner svg { display: block !important; }
}

#pls-confirm-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .28s;
}
#pls-confirm-overlay.pls-confirm-visible { opacity: 1; }
.pls-confirm-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}
.pls-confirm-box {
  position: relative; z-index: 1;
  width: min(400px, calc(100vw - 32px));
  background: linear-gradient(160deg, rgba(22,12,35,.99) 0%, rgba(12,8,24,.99) 100%);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 20px;
  padding: 32px 28px 26px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(239,68,68,.08) inset;
  transform: translateY(18px) scale(.96);
  transition: transform .32s cubic-bezier(.22,.68,0,1.2);
  text-align: center;
}
#pls-confirm-overlay.pls-confirm-visible .pls-confirm-box {
  transform: translateY(0) scale(1);
}
.pls-confirm-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.pls-confirm-title {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  margin-bottom: 10px; letter-spacing: -0.3px;
}
.pls-confirm-desc {
  font-size: .82rem; color: rgba(255,255,255,.45);
  line-height: 1.6; margin-bottom: 26px;
}
.pls-confirm-desc strong { color: rgba(239,68,68,.85); font-weight: 700; }
.pls-confirm-actions {
  display: flex; gap: 10px;
}
.pls-confirm-cancel {
  flex: 1; padding: 11px 0; border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55); font-size: .83rem; font-weight: 600;
  cursor: pointer; transition: background .2s, color .2s;
}
.pls-confirm-cancel:hover { background: rgba(255,255,255,.1); color: #fff; }
.pls-confirm-delete {
  flex: 1.5; padding: 11px 0; border-radius: 10px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border: none; color: #fff; font-size: .83rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: filter .2s, opacity .2s;
  box-shadow: 0 4px 18px rgba(220,38,38,.4);
}
.pls-confirm-delete:hover:not(:disabled) { filter: brightness(1.12); }
.pls-confirm-delete:disabled { opacity: .5; cursor: not-allowed; }
.detail-btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(124, 58, 237, 0.10);
  border: 1px solid rgba(124, 58, 237, 0.30);
  border-radius: 8px;
  color: rgba(167, 139, 250, 0.85);
  cursor: pointer;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s,
    background 0.22s,
    border-color 0.22s;
  flex-shrink: 0;
}
.detail-btn-fav:hover {
  background: rgba(124, 58, 237, 0.20);
  border-color: rgba(167, 139, 250, 0.55);
  color: #a78bfa;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 4px 22px rgba(124, 58, 237, 0.35);
}
.detail-btn-fav:hover svg {
  transform: scale(1.15);
}
.detail-btn-fav svg {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.2s, stroke 0.2s;
}
.detail-btn-fav.fav-active {
  background: rgba(124, 58, 237, 0.20);
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.30);
}
.detail-btn-fav.fav-pop {
  animation: fav-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fav-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.wl-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w, 160px), 1fr));
  gap: 14px;
  margin-top: 20px;
}
.wl-catalogue-card {
  position: relative;
}
.wl-card-del {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
  z-index: 5;
}
.wl-catalogue-card:hover .wl-card-del {
  opacity: 1;
}
.wl-card-del:hover {
  background: #dc2626;
  transform: scale(1.12);
}
.wl-empty {
  text-align: center;
  padding: 48px 20px;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.wl-empty svg {
  opacity: 0.22;
}
.wl-loading {

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}