/* ==========================================================================
   AUDIKUNG PUBLIC HOME v11
   - Plus Jakarta Sans & Outfit (Chill, modern, un-pointy English typography)
   - Frosted translucent glassmorphism nav on scroll
   - Realistic Celestial North Star, multi-layer starfield & shooting stars
   - Line (ติดต่องาน) & Social Community strip with platform badges
   - Attached Audi Anime Magic portrait card (รู้จักออดี้)
   - Stock Deep Dive showcase alongside latest clips
   - Modern SVG media controls (replacing Roman numeral Ⅱ)
   ========================================================================== */

/* ── Typography Overrides ── */
:root {
  --font-brand: 'Plus Jakarta Sans', 'Outfit', Anuphan, -apple-system, sans-serif;
  --font-heading: 'Mitr', 'Plus Jakarta Sans', sans-serif;
  --font-ui: 'Plus Jakarta Sans', Anuphan, sans-serif;
}

body .logo,
body .wordmark {
  font-family: var(--font-brand);
}

body .logo {
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 21px;
}

body .wordmark {
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(86px, 15vw, 240px);
}

body .wordmark .letter-k {
  transform: rotate(-6deg);
}

/* ── Header & Scrolled Nav Glassmorphism ── */
body .header {
  transition: width 360ms var(--ease),
              border-radius 360ms var(--ease),
              background 260ms var(--ease),
              border-color 260ms var(--ease),
              box-shadow 360ms var(--ease),
              backdrop-filter 260ms var(--ease),
              -webkit-backdrop-filter 260ms var(--ease);
}

/* Scrolled / Compact Header: luxury frosted greyish translucent glass */
body.is-scrolled .header,
body .header.is-compact {
  background: rgba(241, 244, 249, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(115, 129, 151, 0.24) !important;
  box-shadow: 0 10px 32px rgba(20, 32, 50, 0.08), 0 1px 2px rgba(20, 32, 50, 0.04) !important;
  padding: 8px 18px !important;
  box-sizing: border-box !important;
}

html[data-theme=dark] body.is-scrolled .header,
html[data-theme=dark] body .header.is-compact {
  background: rgba(4, 9, 20, 0.78) !important;
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border-color: rgba(226, 201, 143, 0.18) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  padding: 8px 18px !important;
  box-sizing: border-box !important;
}

/* Header Navigation layout: comfortable spacing without squeezing controls */
body .header nav {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body .header nav a {
  padding: 8px 8px !important;
  font-size: 13.5px !important;
  white-space: nowrap !important;
}

/* ── Whole-Page Clean Base + Starry Night Sky Gimmick ── */
body {
  background-color: var(--paper);
  position: relative;
}

html[data-theme=dark] body {
  background-color: #050a18;
}

/* Starry Sky Backdrop Overlay across entire page */
.cosmos-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 400ms var(--ease);
}

html[data-theme=dark] .cosmos-backdrop {
  opacity: 1;
  background: radial-gradient(circle at 80% 20%, rgba(26, 45, 84, 0.4) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(38, 16, 56, 0.3) 0%, transparent 60%);
}

.cosmos-twinkle-stars {
  position: absolute;
  inset: 0;
}

.cosmos-twinkle-stars .c-star {
  position: absolute;
  top: var(--top);
  left: var(--left);
  font-size: 14px;
  line-height: 1;
  color: var(--color, #ffffff);
  text-shadow: 0 0 10px var(--color, #ffffff), 0 0 20px rgba(255, 255, 255, 0.6);
  transform-origin: center center;
  animation: cosmosStarSparkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}

.cosmos-twinkle-stars .c-dot {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--size, 2.5px);
  height: var(--size, 2.5px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.9), 0 0 16px rgba(226, 201, 143, 0.6);
  animation: cosmosDotPulse var(--dur, 3.5s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes cosmosStarSparkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.3) rotate(45deg); filter: drop-shadow(0 0 8px currentColor); }
}

@keyframes cosmosDotPulse {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 0.95; transform: scale(1.4); }
}

/* Whole-page Comets / Shooting Stars (ดาวตก / ดาวหาง) */
.cosmos-shooting-star {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.cosmos-shooting-star.comet-1 {
  top: 15%;
  right: 15%;
  width: 170px;
  background: linear-gradient(90deg, #ffffff, rgba(226, 201, 143, 0.9) 35%, rgba(226, 201, 143, 0.2) 75%, transparent);
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.95), 0 0 24px rgba(226, 201, 143, 0.7);
  transform: rotate(-25deg);
  animation: cosmosShooting1 9.5s cubic-bezier(0.25, 0.1, 0.25, 1) 1.5s infinite;
}

.cosmos-shooting-star.comet-2 {
  top: 38%;
  right: 30%;
  width: 140px;
  background: linear-gradient(90deg, #ffffff, rgba(168, 85, 247, 0.9) 40%, rgba(139, 196, 244, 0.25) 80%, transparent);
  box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.9), 0 0 20px rgba(168, 85, 247, 0.6);
  transform: rotate(-30deg);
  animation: cosmosShooting2 13s cubic-bezier(0.25, 0.1, 0.25, 1) 5.5s infinite;
}

.cosmos-shooting-star.comet-3 {
  top: 62%;
  right: 18%;
  width: 150px;
  background: linear-gradient(90deg, #ffffff, rgba(139, 215, 255, 0.9) 40%, rgba(139, 215, 255, 0.2) 75%, transparent);
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, 0.95), 0 0 22px rgba(139, 215, 255, 0.7);
  transform: rotate(-22deg);
  animation: cosmosShooting3 16s cubic-bezier(0.25, 0.1, 0.25, 1) 9s infinite;
}

@keyframes cosmosShooting1 {
  0%, 78% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-25deg); }
  81% { opacity: 1; }
  87% { opacity: 0; transform: translate3d(-340px, 150px, 0) rotate(-25deg); }
  100% { opacity: 0; }
}

@keyframes cosmosShooting2 {
  0%, 82% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-30deg); }
  85% { opacity: 0.95; }
  91% { opacity: 0; transform: translate3d(-290px, 160px, 0) rotate(-30deg); }
  100% { opacity: 0; }
}

@keyframes cosmosShooting3 {
  0%, 84% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-22deg); }
  87% { opacity: 0.95; }
  93% { opacity: 0; transform: translate3d(-310px, 125px, 0) rotate(-22deg); }
  100% { opacity: 0; }
}

body.paused .c-star,
body.paused .c-dot,
body.paused .cosmos-shooting-star {
  animation-play-state: paused !important;
}

/* ── Luxury Titanium Grey Pill Controls (Zero-Overflow & Icons Restored) ── */
body .view-controls {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
}

.header-line-btn,
body .theme-toggle,
body .motion {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-family: var(--font-heading, Mitr, sans-serif) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  background: rgba(20, 32, 50, 0.06) !important;
  border: 1px solid rgba(20, 32, 50, 0.12) !important;
  color: var(--ink, #142032) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  outline: none !important;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease) !important;
}

.header-line-btn:hover,
body .theme-toggle:hover,
body .motion:hover {
  background: rgba(20, 32, 50, 0.1) !important;
  border-color: rgba(20, 32, 50, 0.22) !important;
}

/* Dark mode: sleek titanium grey frosted pill */
html[data-theme=dark] .header-line-btn,
html[data-theme=dark] body .theme-toggle,
html[data-theme=dark] body .motion {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #f0f0f5 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme=dark] .header-line-btn:hover,
html[data-theme=dark] body .theme-toggle:hover,
html[data-theme=dark] body .motion:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* Elegant focus ring hugging the pill border, replacing oversized square outline */
.header-line-btn:focus-visible,
body .theme-toggle:focus-visible,
body .motion:focus-visible {
  outline: 2px solid rgba(226, 201, 143, 0.85) !important;
  outline-offset: 1px !important;
}

.header-line-btn svg {
  width: 14px;
  height: 14px;
  color: #06c755;
  flex-shrink: 0;
}

.header-line-btn:hover {
  border-color: rgba(6, 199, 85, 0.45) !important;
}

/* Force icons visible with !important to defeat legacy public-v8 rules */
body .theme-icon,
body .motion-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

body .theme-icon {
  font-family: system-ui, -apple-system, sans-serif !important;
}

body .motion-icon svg {
  display: block !important;
  width: 12px !important;
  height: 12px !important;
  fill: currentColor !important;
}

body .theme-text,
body .motion-text {
  white-space: nowrap !important;
  display: inline !important;
  line-height: 1 !important;
  font-size: 12.5px !important;
}

/* Suppress legacy track rules */
.theme-track {
  display: none !important;
}

body .motion[aria-pressed=true] {
  background: var(--ink, #142032) !important;
  color: var(--paper, #ffffff) !important;
}

html[data-theme=dark] body .motion[aria-pressed=true] {
  background: #e2c98f !important;
  color: #0c152b !important;
  border-color: #e2c98f !important;
}

/* ── Profile Entry ("รู้จักออดี้" + Chrollo Skill Hunter Grimoire & Controlled Nen System) ── */
body .profile-entry {
  animation: none;
  transform: none;
  rotate: none;
  translate: none;
  scale: 1;
  transform-origin: 90% 50%;
  top: 49%;
  right: 2.2%;
  width: 370px;
  height: auto;
  min-height: 148px;
  padding: 18px 22px;
  border: 1.5px solid rgba(192, 132, 252, 0.4);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(22, 12, 32, 0.96) 0%, rgba(13, 17, 32, 0.98) 55%, rgba(28, 14, 28, 0.96) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 16px 36px rgba(6, 10, 20, 0.45), 0 0 18px rgba(168, 85, 247, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: absolute;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  transition: translate 240ms cubic-bezier(0.16, 1, 0.3, 1),
              scale 240ms cubic-bezier(0.16, 1, 0.3, 1),
              background 220ms,
              box-shadow 260ms,
              border-color 220ms;
  z-index: 5;
}

.ticket-visual {
  position: relative;
  width: 104px;
  height: 114px;
  flex-shrink: 0;
  z-index: 2;
}

/* Portrait Frame (Audi with Nen Shroud) */
.ticket-portrait-frame {
  position: absolute;
  left: 0;
  top: 4px;
  width: 78px;
  height: 102px;
  border-radius: 12px;
  overflow: hidden;
  background: #101a2e;
  border: 1.5px solid rgba(226, 201, 143, 0.5);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 14px rgba(168, 85, 247, 0.3);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms,
              box-shadow 320ms;
  z-index: 4;
}

.ticket-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
  display: block;
  transition: transform 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ticket-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Crisp, precise Nen rim contour around portrait - outwards only, face remains crystal sharp */
.portrait-nen-rim {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
  pointer-events: none;
  transition: border-color 240ms, box-shadow 240ms;
}

/* Grimoire Prop positioned in front of photo at rest, drops behind on hover */
.ticket-book-prop {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 44px;
  height: 64px;
  z-index: 6;
  perspective: 500px;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), z-index 0s;
}

/* 3D Chrollo Skill Hunter Book */
.chrollo-book-3d {
  position: relative;
  width: 44px;
  height: 64px;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(3deg);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 320ms;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75))
          drop-shadow(0 0 8px rgba(168, 85, 247, 0.55))
          drop-shadow(0 0 2px rgba(220, 180, 255, 0.8));
}

.chrollo-book-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  position: relative;
  z-index: 3;
}

/* Grimoire Spine & Gilded Page Edges */
.chrollo-book-spine {
  position: absolute;
  left: -2px;
  top: 1px;
  bottom: 1px;
  width: 3px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #09090d, #22222a);
  z-index: 2;
  box-shadow: -1px 0 3px rgba(0, 0, 0, 0.5);
}

.chrollo-book-pages {
  position: absolute;
  right: -2px;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 0 1px 1px 0;
  background: repeating-linear-gradient(to bottom, #ded8c5 0px, #ded8c5 2px, #c4beaa 2px, #c4beaa 3px);
  z-index: 2;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.35);
}

/* Contoured Nen Aura softly hugging the book without muddy blur blobs */
.chrollo-nen-aura {
  position: absolute;
  inset: -2px -3px;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.45) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 72%);
  filter: blur(3px);
  z-index: 1;
  pointer-events: none;
  animation: chrolloNenPulse 3s ease-in-out infinite alternate;
}

.chrollo-nen-wisp {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #f3e8ff, rgba(168, 85, 247, 0.8) 60%, transparent);
  filter: blur(1px);
  pointer-events: none;
  z-index: 4;
}

.chrollo-nen-wisp.wisp-1 {
  top: -4px;
  left: 10px;
  animation: wispFloat1 2.8s ease-in-out infinite;
}

.chrollo-nen-wisp.wisp-2 {
  bottom: 6px;
  right: -3px;
  animation: wispFloat2 3.4s ease-in-out 1.2s infinite;
}

@keyframes chrolloNenPulse {
  0% { opacity: 0.5; transform: scale(0.94); }
  100% { opacity: 0.85; transform: scale(1.08); filter: blur(7px); }
}

@keyframes wispFloat1 {
  0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0.3; }
  50% { transform: translate(-3px, -8px) scale(1.15); opacity: 0.85; }
}

@keyframes wispFloat2 {
  0%, 100% { transform: translate(0, 0) scale(0.7); opacity: 0.2; }
  50% { transform: translate(3px, -6px) scale(1.1); opacity: 0.8; }
}

/* ── Typography & Badge (Guaranteed Sharp, Clear & High Contrast) ── */
.ticket-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  position: relative;
  z-index: 3;
  padding: 4px 10px 4px 4px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 35% 50%, rgba(10, 15, 28, 0.82) 0%, rgba(10, 15, 28, 0.45) 68%, transparent 100%);
}

.ticket-body .mini-caption {
  font-size: 13.5px;
  color: #fde047 !important;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 3px #000000, 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 10px rgba(253, 224, 71, 0.4);
}

.ticket-body strong {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  color: #ffffff !important;
  text-shadow: 0 1px 3px #000000, 0 2px 6px #000000, 0 0 16px rgba(0, 0, 0, 0.95) !important;
}

.ticket-body small {
  font-size: 13.5px;
  font-weight: 500;
  color: #f1f5f9 !important;
  line-height: 1.35;
  text-shadow: 0 1px 3px #000000, 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

.chrollo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  background: rgba(147, 51, 234, 0.28) !important;
  border: 1px solid rgba(192, 132, 252, 0.55) !important;
  border-radius: 999px;
  padding: 2.5px 9px;
  width: fit-content;
  margin-top: 4px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.25);
}

.chrollo-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 6px #c084fc;
}

.profile-entry .profile-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: #142237;
  font: 20px var(--font-brand);
  font-weight: 700;
  transition: translate 200ms var(--ease), background 200ms, color 200ms, box-shadow 200ms;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

/* ── Chrollo Pop-Out 3D Card (Stand Awakening on Hover) ── */
.chrollo-ghost-backdrop {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chrollo-ghost-img {
  position: absolute;
  right: -10px;
  bottom: -4px;
  width: 236px;
  height: auto;
  max-width: none;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 16px rgba(168, 85, 247, 0.65))
          drop-shadow(0 0 6px rgba(216, 180, 254, 0.8));
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 5%, black 12%, black 86%, rgba(0, 0, 0, 0.7) 94%, transparent 100%),
              linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 1) 56%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.7) 5%, black 12%, black 86%, rgba(0, 0, 0, 0.7) 94%, transparent 100%),
                      linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 1) 56%, rgba(0, 0, 0, 1) 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  transform: translateY(28px) scale(0.92);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

body .profile-entry:hover .chrollo-ghost-backdrop,
body .profile-entry:focus-visible .chrollo-ghost-backdrop {
  opacity: 1;
}

body .profile-entry:hover .chrollo-ghost-img,
body .profile-entry:focus-visible .chrollo-ghost-img {
  opacity: 0.92;
  transform: translateY(-8px) scale(1.02);
}

/* ── REFINED ANIME NEN HOVER ACTIVATION (Zero Overlap & Crisp Aura) ── */
body .profile-entry:hover,
body .profile-entry:focus-visible,
html[data-theme=dark] body .profile-entry:hover,
html[data-theme=dark] body .profile-entry:focus-visible {
  translate: -6px -8px;
  scale: 1.05;
  rotate: none;
  background: linear-gradient(135deg, #1b0d2a 0%, #0c1224 55%, #240e24 100%) !important;
  border-color: rgba(216, 180, 254, 0.8) !important;
  color: #ffffff !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.7),
              0 0 28px rgba(168, 85, 247, 0.45),
              inset 0 0 16px rgba(168, 85, 247, 0.15) !important;
}

/* Hover Nen Surge on Portrait Frame (Audi Zoom & Presence Surge - in front of book) */
body .profile-entry:hover .ticket-portrait-frame,
body .profile-entry:focus-visible .ticket-portrait-frame {
  z-index: 6;
  transform: scale(1.14) translateY(-4px) rotate(-1.5deg);
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8),
              0 0 24px rgba(168, 85, 247, 0.85),
              0 0 10px rgba(244, 114, 182, 0.8);
}

body .profile-entry:hover .portrait-nen-rim,
body .profile-entry:focus-visible .portrait-nen-rim {
  border-color: rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.9),
              0 0 8px rgba(244, 114, 182, 0.75);
}

body .profile-entry:hover .ticket-portrait,
body .profile-entry:focus-visible .ticket-portrait {
  transform: scale(1.12);
}

/* Hover: Grimoire Book drops behind Audi's photo */
body .profile-entry:hover .ticket-book-prop,
body .profile-entry:focus-visible .ticket-book-prop {
  z-index: 3;
  transform: translate3d(-6px, 2px, -20px);
}

/* Hover 3D Grimoire Awakening (Controlled tilt, stays behind frame) */
body .profile-entry:hover .chrollo-book-3d,
body .profile-entry:focus-visible .chrollo-book-3d {
  transform: rotateY(-24deg) rotateX(8deg) rotateZ(4deg) scale(1.08) translateY(-2px);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.85))
          drop-shadow(0 0 14px rgba(168, 85, 247, 0.8))
          drop-shadow(0 0 3px rgba(245, 230, 255, 0.9));
}

body .profile-entry:hover .chrollo-nen-aura,
body .profile-entry:focus-visible .chrollo-nen-aura {
  opacity: 0.9 !important;
  transform: scale(1.05);
  filter: blur(4px);
}

body .profile-entry:hover .profile-arrow,
body .profile-entry:focus-visible .profile-arrow {
  translate: 2px -2px;
  background: #e2c98f !important;
  color: #07101d !important;
  box-shadow: 0 0 12px rgba(226, 201, 143, 0.7);
}

body .profile-entry:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.85);
  outline-offset: 5px;
}

body .profile-entry:active {
  translate: -2px -3px;
  scale: 1.02;
}

html[data-theme=dark] body .profile-entry {
  background: linear-gradient(135deg, rgba(20, 10, 28, 0.98) 0%, rgba(10, 15, 30, 0.98) 55%, rgba(26, 12, 26, 0.98) 100%) !important;
  border: 1.5px solid rgba(192, 132, 252, 0.4);
}

/* ── Realistic Celestial North Star & Starfield ── */
.night-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 350ms;
  background: radial-gradient(ellipse at 78% 22%, rgba(20, 52, 100, 0.45), transparent 55%),
              radial-gradient(ellipse at 18% 65%, rgba(65, 56, 107, 0.25), transparent 50%);
}

html[data-theme=dark] .night-sky {
  opacity: 1;
  background: radial-gradient(ellipse at 78% 22%, rgba(26, 68, 130, 0.7), transparent 58%),
              radial-gradient(ellipse at 24% 58%, rgba(88, 70, 142, 0.35), transparent 55%);
}

/* North Star System */
.celestial-northstar {
  position: absolute;
  top: 14%;
  right: 12%;
  width: 90px;
  height: 90px;
  transform: translate(50%, -50%);
  z-index: 2;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.celestial-northstar:hover {
  filter: brightness(1.28) drop-shadow(0 0 14px rgba(226, 201, 143, 0.45));
  transform: translate(50%, -50%) scale(1.08);
}

.ns-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.55) 0%, rgba(226, 201, 143, 0.3) 38%, transparent 72%);
  transform: translate(-50%, -50%);
  animation: northstar-halo-breathe 4.5s ease-in-out infinite;
}

.ns-ray-v {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  animation: northstar-ray-pulse 4.5s ease-in-out infinite;
}

.ns-ray-h {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1.5px;
  width: 88px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.95) 45%, rgba(255, 255, 255, 0.95) 55%, transparent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  animation: northstar-ray-pulse 4.5s ease-in-out infinite;
}

.ns-ray-d1,
.ns-ray-d2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(244, 225, 178, 0.7) 50%, transparent);
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ns-ray-d2 {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ns-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px 3px #ffffff,
              0 0 20px 8px rgba(244, 225, 178, 0.85),
              0 0 45px 16px rgba(226, 201, 143, 0.45);
  animation: northstar-core-shimmer 3.5s ease-in-out infinite;
}

.ns-sparkle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff8e1;
  font-size: 26px;
  line-height: 1;
  opacity: 0.9;
  text-shadow: 0 0 12px rgba(254, 240, 138, 0.85);
  animation: northstar-spin 26s linear infinite;
}

@keyframes northstar-halo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.35); opacity: 0.45; }
}

@keyframes northstar-ray-pulse {
  0%, 100% { transform: translate(-50%, -50%) scaleY(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scaleY(0.78); opacity: 0.65; }
}

@keyframes northstar-core-shimmer {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 12px 5px #fff, 0 0 30px 12px rgba(244, 225, 178, 0.95); }
}

@keyframes northstar-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Twinkling Starfield */
.starfield-twinkle i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size, 2px);
  height: var(--size, 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  opacity: 0.3;
  animation: star-twinkle var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}

.starfield-twinkle .twinkle-spark {
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 13px;
  color: #fce7b2;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.7);
  animation: star-spark-turn var(--dur, 6s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 0.95; transform: scale(1.35); box-shadow: 0 0 10px rgba(255, 255, 255, 1); }
}

@keyframes star-spark-turn {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 0.9; transform: scale(1.2) rotate(45deg); }
}

/* Shooting Stars (ดาวตก) */
.celestial-shooting-star {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.celestial-shooting-star.ss-1 {
  top: 18%;
  right: 18%;
  width: 140px;
  background: linear-gradient(90deg, #ffffff, rgba(226, 201, 143, 0.7) 45%, transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: rotate(-24deg);
  animation: celestial-shoot-1 9s ease-in-out 1.5s infinite;
}

.celestial-shooting-star.ss-2 {
  top: 28%;
  right: 32%;
  width: 120px;
  background: linear-gradient(90deg, #ffffff, rgba(139, 196, 244, 0.7) 45%, transparent);
  box-shadow: 0 0 8px rgba(139, 196, 244, 0.8);
  transform: rotate(-28deg);
  animation: celestial-shoot-2 13s ease-in-out 5s infinite;
}

.celestial-shooting-star.ss-3 {
  top: 12%;
  right: 50%;
  width: 110px;
  background: linear-gradient(90deg, #ffffff, rgba(254, 240, 138, 0.6) 45%, transparent);
  box-shadow: 0 0 8px rgba(254, 240, 138, 0.7);
  transform: rotate(-22deg);
  animation: celestial-shoot-3 17s ease-in-out 9s infinite;
}

@keyframes celestial-shoot-1 {
  0%, 75% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-24deg); }
  78% { opacity: 0.95; }
  85% { opacity: 0; transform: translate3d(-260px, 115px, 0) rotate(-24deg); }
  100% { opacity: 0; }
}

@keyframes celestial-shoot-2 {
  0%, 80% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-28deg); }
  83% { opacity: 0.85; }
  90% { opacity: 0; transform: translate3d(-230px, 120px, 0) rotate(-28deg); }
  100% { opacity: 0; }
}

@keyframes celestial-shoot-3 {
  0%, 82% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-22deg); }
  85% { opacity: 0.8; }
  92% { opacity: 0; transform: translate3d(-210px, 85px, 0) rotate(-22deg); }
  100% { opacity: 0; }
}

/* ── Stock Deep Dive (Premium Institutional Research Cards) ── */
.deepdive-heading {
  margin-top: 64px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.deepdive-head-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deepdive-lead-tag {
  font-family: var(--font-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.28);
  padding: 4px 14px;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 4px;
}

html[data-theme="dark"] .deepdive-lead-tag {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.32);
}

.deepdive-heading h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}

.deepdive-lead-sub {
  font-size: 14.5px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

.shelf-heading a.deepdive-all-btn,
.deepdive-all-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 6px 14px 6px 20px !important;
  min-height: 38px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  border-radius: 999px !important;
  font-family: 'Plus Jakarta Sans', Mitr, Anuphan, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  color: #142032 !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(20, 32, 50, 0.04) !important;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease) !important;
}

.shelf-heading a.deepdive-all-btn span:first-child,
.deepdive-all-btn span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.deepdive-all-btn .all-btn-arr {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  background: rgba(20, 32, 50, 0.08) !important;
  color: #142032 !important;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease) !important;
}

.shelf-heading a.deepdive-all-btn:hover,
.deepdive-all-btn:hover {
  background: #142032 !important;
  color: #ffffff !important;
  border-color: #142032 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 16px rgba(20, 32, 50, 0.16) !important;
}

.shelf-heading a.deepdive-all-btn:hover .all-btn-arr,
.deepdive-all-btn:hover .all-btn-arr {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translate(1px, -1px) !important;
}

html[data-theme="dark"] .shelf-heading a.deepdive-all-btn,
html[data-theme="dark"] .deepdive-all-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(12px) !important;
}

html[data-theme="dark"] .deepdive-all-btn .all-btn-arr {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .shelf-heading a.deepdive-all-btn:hover,
html[data-theme="dark"] .deepdive-all-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .shelf-heading a.deepdive-all-btn:hover .all-btn-arr,
html[data-theme="dark"] .deepdive-all-btn:hover .all-btn-arr {
  background: #ffffff !important;
  color: #0b1220 !important;
  transform: translate(1px, -1px) !important;
}

/* 2-Column Grid */
.shelf-deepdives-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.deepdive-card {
  background: #fdfaf3 !important;
  border: 1.5px solid #dcd1be !important;
  border-radius: 20px;
  padding: 28px 26px 22px;
  box-shadow: 0 8px 24px rgba(20, 32, 50, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  position: relative;
}

html[data-theme="dark"] .deepdive-card {
  background: #111a2e !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.deepdive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(20, 32, 50, 0.12);
  border-color: #0f172a !important;
}

html[data-theme="dark"] .deepdive-card:hover {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.deepdive-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.deepdive-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.deepdive-logo-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .deepdive-logo-box {
  background: #0b1220;
  border-color: rgba(255, 255, 255, 0.12);
}

.deepdive-logo-box img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.deepdive-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.deepdive-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ticker-badge {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.ticker-nflx {
  background: rgba(229, 9, 20, 0.12);
  color: #e50914;
  border: 1px solid rgba(229, 9, 20, 0.25);
}

.ticker-pltr {
  background: rgba(20, 32, 50, 0.1);
  color: #142032;
  border: 1px solid rgba(20, 32, 50, 0.2);
}

html[data-theme="dark"] .ticker-pltr {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.32);
}

.deepdive-sector {
  font-size: 12.5px;
  color: var(--muted);
}

.deepdive-company {
  font-size: 13px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.deepdive-date-pill {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(20, 32, 50, 0.05);
  color: var(--muted);
  border: 1px solid rgba(20, 32, 50, 0.1);
  flex-shrink: 0;
}

.deepdive-date-pill.is-latest {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

html[data-theme="dark"] .deepdive-date-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

html[data-theme="dark"] .deepdive-date-pill.is-latest {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}

.deepdive-card-content {
  margin: 18px 0 16px;
}

.deepdive-card-headline {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.deepdive-card-prose {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}

.deepdive-metrics-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dd-metric-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: #f0e8dc;
  border: 1px solid #e2d6c5;
  font-size: 12.5px;
}

html[data-theme="dark"] .dd-metric-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.chip-k {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.chip-v {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--ink);
}

.deepdive-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(20, 32, 50, 0.08);
  padding-top: 16px;
  margin-top: auto;
}

html[data-theme="dark"] .deepdive-card-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.deepdive-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', Mitr, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  background: #142032;
  color: #ffffff !important;
  border: 1.5px solid #142032;
  box-shadow: 0 4px 12px rgba(20, 32, 50, 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.deepdive-primary-btn .btn-arr {
  font-size: 13.5px;
  transition: transform 0.2s var(--ease);
}

.deepdive-primary-btn:hover {
  transform: translateY(-2px);
  background: #0b1220;
  border-color: #0b1220;
  box-shadow: 0 6px 18px rgba(20, 32, 50, 0.2);
}

.deepdive-primary-btn:hover .btn-arr {
  transform: translate(2px, -2px);
}

html[data-theme="dark"] .deepdive-primary-btn {
  background: linear-gradient(180deg, #1e2c46 0%, #121c2e 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .deepdive-primary-btn:hover {
  background: linear-gradient(180deg, #27395c 0%, #16243b 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* ── Interactive Video Series Widget ── */
.deepdive-series-widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.series-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.series-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.series-ep-btn {
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  padding: 3.5px 10px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', Mitr, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  background: #eef2f7;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.series-ep-btn::before {
  content: "▶";
  font-size: 7.5px;
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.series-ep-btn:hover {
  background: #142032;
  color: #ffffff !important;
  border-color: #142032;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(20, 32, 50, 0.25);
}

.series-ep-btn:hover::before {
  color: #38bdf8;
  opacity: 1;
  transform: scale(1.15);
}

html[data-theme="dark"] .series-ep-btn {
  background: rgba(24, 38, 64, 0.65);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .series-ep-btn:hover {
  background: linear-gradient(180deg, #1e3a5f, #142844);
  color: #ffffff !important;
  border-color: rgba(96, 165, 250, 0.65);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(56, 189, 248, 0.35);
}

html[data-theme="dark"] .series-ep-btn:hover::before {
  color: #67e8f9;
  opacity: 1;
  transform: scale(1.15);
}

/* ── Community & Contact Directory (Editorial Layout, No Boxes) ── */
.home-connect {
  max-width: 1120px;
  margin: 0 auto 90px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 52px;
  border-top: 1px solid var(--line);
}

.connect-copy span {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.connect-copy h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 16px;
}

.connect-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 44ch;
}

.connect-directory {
  display: flex;
  flex-direction: column;
}

.connect-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--ink);
  text-decoration: none;
  transition: translate 200ms var(--ease), color 200ms;
}

.connect-item:last-child {
  border-bottom: 1px solid var(--line);
}

.connect-item:hover,
.connect-item:focus-visible {
  translate: 6px 0;
}

.connect-brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.connect-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.connect-item:hover .connect-icon-box {
  transform: scale(1.08);
}

.connect-icon-box img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Brand-specific icon boxes */
.connect-line-icon {
  background: rgba(6, 199, 85, 0.12);
  border: 1px solid rgba(6, 199, 85, 0.28);
}

html[data-theme="dark"] .connect-line-icon {
  background: rgba(6, 199, 85, 0.18);
  border-color: rgba(6, 199, 85, 0.4);
  box-shadow: 0 2px 10px rgba(6, 199, 85, 0.15);
}

.connect-fb-icon {
  background: rgba(24, 119, 242, 0.1);
  border: 1px solid rgba(24, 119, 242, 0.24);
}

html[data-theme="dark"] .connect-fb-icon {
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.38);
  box-shadow: 0 2px 10px rgba(24, 119, 242, 0.15);
}

.connect-tiktok-icon {
  background: #ffffff;
  border: 1px solid rgba(20, 32, 50, 0.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .connect-tiktok-icon {
  background: #111a2e;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .connect-tiktok-icon img {
  filter: invert(1);
}

.connect-ig-icon {
  background: rgba(228, 64, 95, 0.1);
  border: 1px solid rgba(228, 64, 95, 0.24);
}

html[data-theme="dark"] .connect-ig-icon {
  background: rgba(228, 64, 95, 0.18);
  border-color: rgba(228, 64, 95, 0.38);
  box-shadow: 0 2px 10px rgba(228, 64, 95, 0.15);
}

.connect-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  min-width: 130px;
}

.brand-role {
  font-size: 14px;
  color: var(--muted);
}

.connect-cue {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: auto;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.connect-item:hover .connect-cue,
.connect-item:focus-visible .connect-cue {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* LINE */
.connect-line .connect-cue {
  color: #059669;
}
html[data-theme="dark"] .connect-line .connect-cue {
  color: #22c55e !important;
}

/* Facebook */
.connect-fb .connect-cue {
  color: #1877f2;
}
html[data-theme="dark"] .connect-fb .connect-cue {
  color: #60a5fa !important;
}

/* TikTok */
.connect-tiktok .connect-cue {
  color: #0f172a;
}
html[data-theme="dark"] .connect-tiktok .connect-cue {
  color: #38bdf8 !important;
}

/* Instagram */
.connect-ig .connect-cue {
  color: #e1306c;
}
html[data-theme="dark"] .connect-ig .connect-cue {
  color: #fb7185 !important;
}

/* ── Responsive Refinements ── */
@media (max-width: 1200px) and (min-width: 721px) {
  body .profile-entry {
    width: 320px;
    padding: 16px 18px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    right: 2%;
    transform-origin: 92% 50%;
  }
  .chrollo-ghost-img {
    width: 204px;
    right: 2px;
    bottom: -4px;
  }
  .ticket-visual {
    width: 88px;
    height: 112px;
  }
  .ticket-portrait-frame {
    width: 82px;
    height: 104px;
  }
  .chrollo-book-3d {
    width: 44px;
    height: 64px;
  }
  .ticket-body strong {
    font-size: 24px;
  }
}

@media (max-width: 760px) {
  .home-connect {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    gap: 30px;
    margin-bottom: 45px;
  }
  .deepdive-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .shelf-deepdives-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .deepdive-card {
    padding: 22px 18px;
  }
  .deepdive-card-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .deepdive-primary-btn {
    width: 100%;
    justify-content: center;
  }
  .deepdive-series-widget {
    width: 100%;
    justify-content: space-between;
  }
  .connect-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 0;
  }
  .connect-cue {
    margin-left: 60px;
    font-size: 13.5px;
  }
}

@media (max-width: 720px) {
  body .profile-entry {
    width: 242px;
    height: auto;
    min-height: 0;
    top: 184px;
    right: 12px;
    padding: 12px 14px;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
    transform-origin: 95% 50%;
  }
  .chrollo-ghost-img {
    width: 154px;
    right: -2px;
    bottom: -4px;
  }
  body .profile-entry:hover,
  body .profile-entry:focus-visible {
    scale: 1.03;
    translate: -3px -4px;
  }
  .ticket-visual {
    width: 60px;
    height: 80px;
  }
  .ticket-portrait-frame {
    width: 56px;
    height: 74px;
    border-radius: 10px;
  }
  .ticket-book-prop {
    right: -8px;
    bottom: -4px;
  }
  .chrollo-book-3d {
    width: 34px;
    height: 50px;
  }
  .ticket-body strong {
    font-size: 19px;
  }
  .ticket-body .mini-caption {
    font-size: 11.5px;
  }
  .ticket-body small {
    font-size: 11.5px;
  }
  .chrollo-badge {
    font-size: 9.5px;
    padding: 2px 7px;
  }
  .profile-entry .profile-arrow {
    width: 28px;
    height: 28px;
    font-size: 16px;
    right: 10px;
    bottom: 10px;
  }
  .header-line-btn {
    padding: 0 10px !important;
    min-height: 36px !important;
    height: 36px !important;
  }
  .header-line-btn span {
    display: none;
  }
  body .theme-toggle,
  body .motion {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
  }
  .celestial-northstar {
    top: 9%;
    right: 14%;
    transform: translate(50%, -50%) scale(0.75);
  }
}

@media (max-width: 360px) {
  body .profile-entry {
    width: 196px;
    right: 8px;
    top: 168px;
    padding: 9px 10px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }
  .chrollo-ghost-img {
    width: 130px;
    right: -4px;
    bottom: -4px;
  }
  .ticket-visual {
    width: 46px;
    height: 62px;
  }
  .ticket-portrait-frame {
    width: 44px;
    height: 58px;
  }
  .ticket-book-prop {
    right: -5px;
    bottom: -3px;
  }
  .chrollo-book-3d {
    width: 26px;
    height: 38px;
  }
  .ticket-body strong {
    font-size: 16px;
  }
}

body.paused .portrait-nen-rim,
body.paused .chrollo-nen-aura,
body.paused .chrollo-nen-wisp {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .ns-halo,
  .ns-ray-v,
  .ns-ray-h,
  .ns-core,
  .ns-sparkle,
  .starfield-twinkle i,
  .celestial-shooting-star,
  .c-star,
  .c-dot,
  .cosmos-shooting-star,
  .portrait-nen-rim,
  .chrollo-nen-aura,
  .chrollo-nen-wisp {
    animation: none !important;
  }
  .celestial-shooting-star,
  .cosmos-shooting-star {
    display: none !important;
  }
  .chrollo-ghost-backdrop,
  .chrollo-ghost-img {
    transition: none !important;
  }
}
