:root {
  --glass-surface: linear-gradient(135deg, rgba(24, 28, 36, 0.52) 0%, rgba(12, 14, 20, 0.34) 100%);
  --glass-surface-hover: linear-gradient(135deg, rgba(32, 38, 48, 0.64) 0%, rgba(16, 19, 28, 0.46) 100%);
  --glass-dock: rgba(8, 10, 14, 0.42);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-bright: rgba(255, 255, 255, 0.46);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 1px 0 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  --glass-shine-hover: inset 0 1px 0 rgba(255, 255, 255, 0.64), inset 1px 0 0 rgba(255, 255, 255, 0.24), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  --ios-pill-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.11) 100%);
  --ios-pill-border: 1px solid rgba(255, 255, 255, 0.36);
  --ios-pill-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 4px 16px rgba(0, 0, 0, 0.28), 0 0 14px rgba(56, 189, 248, 0.2);
  --ios-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ios-bounce: cubic-bezier(0.22, 1.18, 0.36, 1);
  --text: #ffffff;
  --muted: rgba(240, 244, 250, 0.74);
  --muted-2: rgba(240, 244, 250, 0.48);
  --green: #1ed760;
  --green-2: #12b866;
  --coral: #ff7e79;
  --amber: #ffb86c;
  --cyan: #38bdf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: #0d0a09;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   GLOSSY BLURRED WALLPAPER BACKGROUND (images/bg.jpg)
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #120c09;
}

.bg-image {
  position: absolute;
  inset: -4%;
  background:
    url("images/bg.jpg") center / cover no-repeat,
    radial-gradient(circle at 22% 24%, rgba(235, 130, 42, 0.9), transparent 48%),
    radial-gradient(circle at 78% 28%, rgba(212, 168, 56, 0.75), transparent 48%),
    radial-gradient(circle at 50% 80%, rgba(186, 68, 36, 0.8), transparent 52%),
    #180e08;
  filter: blur(10px) saturate(1.25) brightness(0.84);
  transform: scale(1.04);
  animation: slowBreathe 34s ease-in-out infinite alternate;
  will-change: transform;
}

.bg-glow {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 215, 96, 0.14), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(108, 138, 255, 0.16), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(255, 148, 72, 0.16), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(10, 12, 16, 0.12) 0%, rgba(6, 8, 12, 0.58) 100%);
  pointer-events: none;
}

@keyframes slowBreathe {
  0%   { transform: scale(1.04) translate(0%, 0%); }
  50%  { transform: scale(1.08) translate(-1.2%, -0.8%); }
  100% { transform: scale(1.05) translate(1.2%, 0.8%); }
}

/* ============================================================
   FULL-WIDTH EDGE-TO-EDGE GLASS NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.36);
  background: linear-gradient(180deg, rgba(22, 26, 36, 0.64) 0%, rgba(12, 14, 22, 0.48) 100%);
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.navbar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(56, 189, 248, 0.72) 25%,
    rgba(255, 255, 255, 0.92) 50%,
    rgba(30, 215, 96, 0.72) 75%,
    rgba(255, 255, 255, 0.14) 100%
  );
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55), 0 0 24px rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.navbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 10px 3px 3px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform 0.34s var(--ios-bounce), opacity 0.2s ease;
}
.brand:hover { transform: scale(1.03); }
.brand:active { transform: scale(0.95); }

.brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.48), 0 4px 12px rgba(0, 0, 0, 0.4);
  background: #080c14;
}
.brand-logo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); display: block; }
.brand-name { font-size: 1.08rem; font-weight: 800; letter-spacing: 0.2px; white-space: nowrap; }
.nav-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.18); flex-shrink: 0; }

/* iPhone / iOS Segmented Sliding Nav */
.top-links {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--ios-pill-bg);
  border: var(--ios-pill-border);
  box-shadow: var(--ios-pill-shadow);
  pointer-events: none;
  will-change: transform, width;
  transition: transform 0.48s var(--ios-spring), width 0.48s var(--ios-spring), opacity 0.25s ease;
  z-index: 0;
}

.top-link {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.28s var(--ios-spring), transform 0.32s var(--ios-bounce);
}
.top-link:hover { color: #fff; }
.top-link:active { transform: scale(0.93); }
.top-link.active { color: #fff; }

.nav-right { display: flex; align-items: center; }

.search {
  position: relative;
  width: 260px;
  display: flex;
  align-items: center;
  color: var(--muted);
}
.search svg { position: absolute; left: 13px; pointer-events: none; }
.search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: border-color 0.28s var(--ios-spring), background 0.28s var(--ios-spring), box-shadow 0.28s var(--ios-spring);
}
.search input::placeholder { color: var(--muted-2); }
.search input:focus {
  background: rgba(0, 0, 0, 0.48);
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* ============================================================
   FULL-WIDTH PAGE SHELL
   ============================================================ */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 52px;
}

/* ============================================================
   SMOOTH 0.5-SECOND DOWNWARD FADE-OUT & FADE-IN
   ============================================================ */
.stage-body {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.stage-body.fading-out {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.stage-body.prep-in {
  transition: none !important;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

/* ============================================================
   CLEAN HOME WELCOME SCREEN
   ============================================================ */
.welcome-screen {
  min-height: calc(100vh - 110px);
  width: 100%;
  display: grid;
  place-items: center;
}

.welcome-glass {
  padding: clamp(28px, 4.5vw, 52px) clamp(44px, 8vw, 110px);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(24, 28, 38, 0.44) 0%, rgba(12, 14, 22, 0.28) 100%);
  backdrop-filter: blur(28px) saturate(1.65);
  -webkit-backdrop-filter: blur(28px) saturate(1.65);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.48),
    0 0 40px rgba(56, 189, 248, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 1px 0 0 rgba(255, 255, 255, 0.18);
}

.welcome-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 850;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-align: center;
  color: #ffffff;
  text-shadow:
    0 6px 32px rgba(0, 0, 0, 0.48),
    0 0 28px rgba(255, 255, 255, 0.28);
}

/* ============================================================
   BREADCRUMB & QUALITY BAR
   ============================================================ */
.crumb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.crumb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.glass-pill-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), var(--glass-shine);
  transition: transform 0.34s var(--ios-bounce), border-color 0.25s ease, box-shadow 0.25s ease;
}
.glass-pill-btn:hover {
  transform: translateY(-1px);
  border-color: var(--glass-border-bright);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38), 0 0 18px rgba(56, 189, 248, 0.22), var(--glass-shine-hover);
}
.glass-pill-btn:active { transform: scale(0.94); }

.crumb-path { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.crumb-path strong { color: #fff; }

.quality-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.q-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(16, 18, 24, 0.42);
  backdrop-filter: blur(14px);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.32s var(--ios-bounce), color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.q-pill:hover { color: #fff; border-color: var(--glass-border-bright); }
.q-pill:active { transform: scale(0.93); }
.q-pill.active { color: #fff; background: rgba(30, 215, 96, 0.22); border-color: rgba(30, 215, 96, 0.62); box-shadow: 0 0 14px rgba(30, 215, 96, 0.25); }

/* ============================================================
   SPOTLIGHT CARD (Used on Anime, Movie, Others, Detail, Search)
   With Embedded iOS Sliding Tabs inside .spot-dock
   ============================================================ */
.spotlight-card {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(14, 14, 16, 0.28) 100%);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.38),
    0 0 12px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  overflow: hidden;
}

.spot-art {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  align-self: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.spot-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-info { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.spot-eyebrow { display: flex; align-items: center; gap: 9px; font-size: 0.74rem; font-weight: 750; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.8); text-transform: uppercase; }
.eq-bars { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.eq-bars i { display: block; width: 3px; border-radius: 2px; background: var(--green); box-shadow: 0 0 8px rgba(30, 215, 96, 0.7); animation: eqPulse 1.2s ease-in-out infinite alternate; }
.eq-bars i:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-bars i:nth-child(2) { height: 13px; animation-delay: 0.2s; }
.eq-bars i:nth-child(3) { height: 9px; animation-delay: 0.4s; }
.eq-bars i:nth-child(4) { height: 11px; animation-delay: 0.6s; }
@keyframes eqPulse { 0% { transform: scaleY(0.45); } 100% { transform: scaleY(1); } }
.spot-title { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -0.6px; line-height: 1.1; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4); }
.spot-sub-row { display: flex; align-items: center; gap: 8px; }
.spot-sub { font-size: 0.94rem; color: var(--muted); }
.verified-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 0.68rem; font-weight: 900; color: #03220f; background: var(--green); box-shadow: 0 0 12px rgba(30, 215, 96, 0.7); flex-shrink: 0; }
.spot-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.spot-tag { font-size: 0.74rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.9); }

/* Inner Glossy Action Capsule */
.spot-dock {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--glass-dock);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.spot-dock-left, .spot-dock-right { display: flex; align-items: center; gap: 10px; }

/* Separate iOS Sliding Tabs positioned cleanly above .spot-dock */
.dock-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 4px;
  margin-bottom: 2px;
}

.sub-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.sub-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--ios-pill-bg);
  border: var(--ios-pill-border);
  box-shadow: var(--ios-pill-shadow);
  pointer-events: none;
  will-change: transform, width;
  transition: transform 0.48s var(--ios-spring), width 0.48s var(--ios-spring), opacity 0.25s ease;
  z-index: 0;
}

.sub-tab {
  position: relative;
  z-index: 1;
  padding: 7px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.28s var(--ios-spring), transform 0.32s var(--ios-bounce);
}
.sub-tab:hover { color: #fff; }
.sub-tab:active { transform: scale(0.93); }
.sub-tab.active { color: #fff; }

.glow-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(135deg, #ffffff 0%, #e7fff0 100%);
  color: #061c0f;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.36s var(--ios-bounce), box-shadow 0.28s ease;
}
.glow-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 30px rgba(30, 215, 96, 0.5), 0 8px 22px rgba(0, 0, 0, 0.35); }
.glow-cta:active { transform: scale(0.95); }

.dock-stat { font-size: 0.8rem; font-weight: 600; color: var(--green); padding: 5px 12px; border-radius: 999px; background: rgba(30, 215, 96, 0.14); border: 1px solid rgba(30, 215, 96, 0.32); white-space: nowrap; }
.dock-btn { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: transform 0.32s var(--ios-bounce), background 0.22s ease, border-color 0.22s ease; }
.dock-btn:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.38); }
.dock-btn:active { transform: scale(0.94); }

/* ============================================================
   BLINKING STAR INLINE SECTION HEADINGS
   ============================================================ */
.cat-heading-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.cat-block-head .cat-heading-inline { margin-bottom: 0; }

.blink-star {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  color: var(--amber);
  text-shadow: 0 0 12px var(--amber), 0 0 22px rgba(255, 184, 108, 0.65);
  animation: starBlink 1.35s ease-in-out infinite;
  transform-origin: center;
}
@keyframes starBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.2; transform: scale(0.8); }
}

.head-main { font-size: 1.24rem; font-weight: 800; letter-spacing: 0.06em; color: #ffffff; }
.head-sep { font-size: 0.95rem; font-weight: 500; color: var(--muted-2); }
.head-sub { font-size: 0.88rem; font-weight: 500; color: var(--muted); }

/* ============================================================
   ANIME LIBRARY GRID (Clean Photo Previews — No Black Feather)
   ============================================================ */
.cat-block { width: 100%; }
.cat-block-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }

.anime-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 168px));
  gap: 15px;
  width: 100%;
}

.poster-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  min-width: 0;
  transition: transform 0.38s var(--ios-bounce);
}
.poster-item:hover { transform: translateY(-5px); }
.poster-item:active { transform: scale(0.96); }

.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--glass-surface);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), var(--glass-shine);
  transition: border-color 0.25s ease, box-shadow 0.3s ease;
}
.poster-item:hover .poster-frame {
  border-color: var(--glass-border-bright);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.54), 0 0 22px rgba(56, 189, 248, 0.26), var(--glass-shine-hover);
}
.poster-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ios-spring); }
.poster-item:hover .poster-frame img { transform: scale(1.06); }

.poster-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background:
    radial-gradient(circle at 28% 24%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 75% 78%, rgba(30, 215, 96, 0.2), transparent 55%),
    rgba(12, 15, 22, 0.55);
}
.poster-ph-mono {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 850; letter-spacing: 1px; color: #fff;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.poster-ph-hint { font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.poster-count-chip {
  position: absolute; top: 8px; right: 8px; z-index: 3; padding: 2px 8px; border-radius: 999px;
  font-size: 0.64rem; font-weight: 750; background: rgba(8, 10, 16, 0.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24); color: #fff;
}
.poster-caption { display: flex; flex-direction: column; gap: 2px; padding: 0 3px; }
.poster-name { font-size: 0.85rem; font-weight: 700; color: #fff; line-height: 1.25; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65); }

/* ============================================================
   LIBRARY CONTROLS: SORT PILL BAR + FULL A-Z iOS SLIDING BAR
   ============================================================ */
.library-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  width: 100%;
}

.sort-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.sort-slider {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: var(--ios-pill-bg);
  border: var(--ios-pill-border);
  box-shadow: var(--ios-pill-shadow);
  pointer-events: none;
  will-change: transform, width;
  transition: transform 0.48s var(--ios-spring), width 0.48s var(--ios-spring);
  z-index: 0;
}

.sort-tab {
  position: relative;
  z-index: 1;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.28s var(--ios-spring), transform 0.32s var(--ios-bounce);
}
.sort-tab:hover { color: #fff; }
.sort-tab:active { transform: scale(0.93); }
.sort-tab.active { color: #fff; }

.alpha-bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 9px 18px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(20, 24, 34, 0.56) 0%, rgba(10, 12, 18, 0.44) 100%);
  backdrop-filter: blur(26px) saturate(1.65);
  -webkit-backdrop-filter: blur(26px) saturate(1.65);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.alpha-slider {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 10px;
  background: var(--ios-pill-bg);
  border: var(--ios-pill-border);
  box-shadow: var(--ios-pill-shadow);
  pointer-events: none;
  will-change: transform, width, height;
  transition: transform 0.48s var(--ios-spring), width 0.48s var(--ios-spring), height 0.48s var(--ios-spring);
  z-index: 0;
}

.alpha-btn {
  position: relative;
  z-index: 1;
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.28s var(--ios-spring), transform 0.32s var(--ios-bounce);
}
.alpha-btn:hover { color: #fff; }
.alpha-btn:active { transform: scale(0.9); }
.alpha-btn.has-items { color: #fff; }
.alpha-btn.has-items::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.alpha-btn.empty-letter { color: rgba(255, 255, 255, 0.36); }
.alpha-btn.active { color: #fff; }
.alpha-btn.active::after { display: none; }

/* ============================================================
   SECTION HEADERS, COLLECTIONS & CARDS
   ============================================================ */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 16px; }
.sec-title { display: flex; align-items: center; gap: 10px; font-size: 1.24rem; font-weight: 750; letter-spacing: -0.2px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55); }
.sec-count { font-size: 0.82rem; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: rgba(14, 16, 22, 0.44); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(12px); }

.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 12px; }
.collection-card {
  display: flex; flex-direction: column; padding: 0; text-align: left; color: #fff; font: inherit; cursor: pointer;
  border-radius: 20px; overflow: hidden; background: var(--glass-surface);
  backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--glass-border); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), var(--glass-shine);
  transition: transform 0.4s var(--ios-bounce), border-color 0.26s ease, box-shadow 0.3s ease, background 0.26s ease;
}
.collection-card:hover { transform: translateY(-6px); background: var(--glass-surface-hover); border-color: var(--glass-border-bright); box-shadow: 0 22px 52px rgba(0, 0, 0, 0.54), 0 0 28px rgba(30, 215, 96, 0.24), var(--glass-shine-hover); }
.collection-card:active { transform: scale(0.97); }

.col-thumb { position: relative; aspect-ratio: 16 / 9; width: 100%; background: linear-gradient(135deg, rgba(30, 215, 96, 0.16), rgba(92, 130, 255, 0.18)); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.col-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ios-spring); }
.collection-card:hover .col-thumb img { transform: scale(1.06); }
.col-logo-badge { position: absolute; left: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px; background: rgba(8, 10, 14, 0.72); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.28); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.col-logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.col-body { display: flex; flex-direction: column; gap: 10px; padding: 15px; flex: 1; }
.col-title { font-size: 1.08rem; font-weight: 750; line-height: 1.25; }
.col-meta { font-size: 0.82rem; color: var(--muted); }
.col-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-radius: 12px; font-size: 0.85rem; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease; }
.collection-card:hover .col-cta { background: linear-gradient(135deg, var(--green), var(--green-2)); border-color: rgba(255, 255, 255, 0.36); color: #041d0d; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--glass-surface);
  backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid var(--glass-border); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), var(--glass-shine);
  transition: transform 0.4s var(--ios-bounce), border-color 0.26s ease, box-shadow 0.3s ease, background 0.26s ease;
}
.card:hover { transform: translateY(-6px); background: var(--glass-surface-hover); border-color: var(--glass-border-bright); box-shadow: 0 22px 52px rgba(0, 0, 0, 0.54), 0 0 26px rgba(30, 215, 96, 0.22), var(--glass-shine-hover); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.28)); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ios-spring); }
.card:hover .thumb img { transform: scale(1.06); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: rgba(255, 255, 255, 0.45); }
.badge, .cat { position: absolute; top: 10px; z-index: 3; padding: 4px 10px; border-radius: 999px; font-size: 0.69rem; font-weight: 750; border: 1px solid rgba(255, 255, 255, 0.26); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.badge { left: 10px; background: rgba(8, 10, 14, 0.7); }
.cat { right: 10px; background: rgba(30, 215, 96, 0.32); color: #eafff2; }
.cat.scene-badge { background: rgba(96, 152, 255, 0.38); }
.cat.cut-badge { background: rgba(255, 126, 121, 0.42); }
.body { display: flex; flex-direction: column; gap: 10px; padding: 15px; flex: 1; }
.title { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; color: var(--muted); padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 12px; text-decoration: none; color: #041d0d; font-weight: 750; font-size: 0.86rem; background: linear-gradient(135deg, var(--green), #3cf29b); border: 1px solid rgba(255, 255, 255, 0.38); box-shadow: 0 6px 20px rgba(30, 215, 96, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.55); transition: transform 0.34s var(--ios-bounce), filter 0.2s ease, box-shadow 0.25s ease; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 26px rgba(30, 215, 96, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn:active { transform: scale(0.95); }
.btn.disabled { pointer-events: none; color: var(--muted); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: none; }
.empty { text-align: center; color: var(--muted); padding: 44px 0; font-size: 0.95rem; }

.site-footer {
  margin-top: 42px;
  padding: 14px 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(12, 14, 20, 0.42);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .spotlight-card { grid-template-columns: 1fr; }
  .spot-art { max-width: 420px; }
  .search { width: 200px; }
  .spot-dock { justify-content: center; }
  .dock-tabs-wrap { order: -1; flex: 0 0 100%; }
}

@media (max-width: 780px) {
  .navbar-inner { flex-direction: column; align-items: stretch; padding: 10px 14px; gap: 10px; }
  .nav-left { justify-content: space-between; flex-wrap: wrap; }
  .nav-divider { display: none; }
  .top-links { overflow-x: auto; scrollbar-width: none; }
  .top-links::-webkit-scrollbar { display: none; }
  .nav-right { width: 100%; }
  .search { width: 100%; }
  .shell { padding: 14px 12px 36px; }
  .anime-poster-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-image, .eq-bars i, .blink-star { animation: none !important; }
  .stage-body, .nav-slider, .sub-slider, .sort-slider, .alpha-slider, .card, .collection-card, .poster-item, .btn, .top-link { transition: none; }
}
