/* =========================================================
   电影天堂网 · 星河影院  |  Starry Cinema Theme
   Indigo / Silver / Gold cosmic aesthetic
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --indigo-deep:   #312e81;
  --indigo-900:    #1e1b4b;
  --indigo-700:    #4338ca;
  --periwinkle:    #818cf8;
  --light-indigo:  #e0e7ff;
  --silver:        #c0c0c0;
  --silver-soft:   #d4d4d8;
  --space-black:   #0f0f23;
  --space-void:    #050511;
  --star-gold:     #fbbf24;
  --star-gold-2:   #f59e0b;
  --nebula-purple: #4c1d95;
  --aurora-teal:   #2dd4bf;

  --font-cosmic: "Cinzel", "STSong", "Songti SC", "SimSun", serif;
  --font-ui: "STSong", "Songti SC", "SimSun", "Cinzel", serif;

  --glow-indigo: 0 0 18px rgba(129, 140, 248, 0.55), 0 0 36px rgba(79, 70, 229, 0.35);
  --glow-gold:   0 0 14px rgba(251, 191, 36, 0.7),  0 0 28px rgba(245, 158, 11, 0.4);
  --glow-silver: 0 0 12px rgba(192, 192, 192, 0.45);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --maxw: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  color: var(--light-indigo);
  background: var(--space-void);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Starfield Backdrop (multi-layer) ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(67, 56, 202, 0.28), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(76, 29, 149, 0.32), transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(15, 15, 35, 0.6), var(--space-void) 75%);
}
/* tiny CSS-dots star layer */
body::after {
  background-image:
    radial-gradient(1px 1px at 12% 18%, #ffffff 50%, transparent 100%),
    radial-gradient(1px 1px at 28% 62%, #e0e7ff 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 27%, #fbbf24 50%, transparent 100%),
    radial-gradient(1px 1px at 63% 73%, #ffffff 50%, transparent 100%),
    radial-gradient(1px 1px at 78% 12%, #c0c0c0 50%, transparent 100%),
    radial-gradient(1.2px 1.2px at 88% 48%, #818cf8 50%, transparent 100%),
    radial-gradient(1px 1px at 8% 84%, #ffffff 50%, transparent 100%),
    radial-gradient(1px 1px at 35% 92%, #e0e7ff 50%, transparent 100%),
    radial-gradient(1.4px 1.4px at 55% 55%, #fbbf24 50%, transparent 100%),
    radial-gradient(1px 1px at 95% 88%, #ffffff 50%, transparent 100%),
    radial-gradient(1px 1px at 22% 38%, #c0c0c0 50%, transparent 100%),
    radial-gradient(1px 1px at 72% 28%, #ffffff 50%, transparent 100%);
  background-size: 100% 100%;
  animation: twinkle 6s ease-in-out infinite alternate;
  opacity: 0.85;
}

@keyframes twinkle {
  0%   { opacity: 0.55; }
  50%  { opacity: 0.95; }
  100% { opacity: 0.6; }
}

/* Shooting stars layer (decorative) */
.shooting-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.shooting-stars span {
  position: absolute;
  display: block;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(224, 231, 255, 0.8);
}
.shooting-stars span::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, #fff, transparent);
  transform: translateX(-140px) rotate(-25deg);
  transform-origin: right center;
}
.shooting-stars span:nth-child(1) { top: 12%; left: 80%; animation: shoot 7s linear infinite; animation-delay: 0s; }
.shooting-stars span:nth-child(2) { top: 35%; left: 95%; animation: shoot 9s linear infinite; animation-delay: 2.5s; }
.shooting-stars span:nth-child(3) { top: 65%; left: 70%; animation: shoot 8s linear infinite; animation-delay: 5s; }
.shooting-stars span:nth-child(4) { top: 22%; left: 50%; animation: shoot 11s linear infinite; animation-delay: 7s; }

@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(-25deg); opacity: 0; }
  5%   { opacity: 1; }
  40%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { transform: translate(-900px, 420px) rotate(-25deg); opacity: 0; }
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-cosmic);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--light-indigo);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--star-gold));
}
.section-title small {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--silver);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 400;
  margin-left: 8px;
}
.section-link {
  color: var(--periwinkle);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-bottom: 1px dashed rgba(129, 140, 248, 0.4);
  padding-bottom: 2px;
  transition: color .25s;
}
.section-link:hover { color: var(--star-gold); }

/* ---------- Top Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(180deg, rgba(15, 15, 35, 0.92), rgba(15, 15, 35, 0.65));
  border-bottom: 1px solid rgba(129, 140, 248, 0.22);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--light-indigo);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--light-indigo), var(--indigo-700) 60%, var(--nebula-purple));
  position: relative;
  box-shadow: var(--glow-indigo);
  flex-shrink: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(192, 192, 192, 0.5);
}
.brand-mark::before { inset: -6px; transform: rotate(20deg); border-style: dashed; }
.brand-mark::after  { inset: -11px; border-style: dotted; opacity: 0.45; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .zh {
  font-family: var(--font-cosmic);
  font-size: 1.25rem;
  letter-spacing: 3px;
  color: var(--light-indigo);
}
.brand-text .en {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--silver);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  position: relative;
  color: var(--silver-soft);
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.92rem;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--light-indigo); background: rgba(99, 102, 241, 0.12); }
.nav-links a.active {
  color: var(--star-gold);
  background: rgba(251, 191, 36, 0.08);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--star-gold), transparent);
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 999px;
  background: rgba(15, 15, 35, 0.5);
}
.nav-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--light-indigo);
  font-family: var(--font-ui);
  width: 130px;
  font-size: 0.85rem;
}
.nav-search input::placeholder { color: rgba(192, 192, 192, 0.6); }
.nav-search .ico { color: var(--periwinkle); font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
}
.hero-constellation {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 120px;
  pointer-events: none;
}
.hero-constellation svg { width: 100%; height: 100%; }
.hero-eyebrow {
  font-family: var(--font-cosmic);
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--star-gold);
  font-size: 0.8rem;
  margin-bottom: 18px;
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.05);
}
.hero-title {
  font-family: var(--font-cosmic);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 6px;
  line-height: 1.1;
  color: var(--light-indigo);
  text-shadow: 0 0 30px rgba(129, 140, 248, 0.5);
  margin-bottom: 8px;
}
.hero-title .accent { color: var(--star-gold); }
.hero-subtitle {
  font-family: var(--font-cosmic);
  font-size: 1.1rem;
  letter-spacing: 4px;
  color: var(--silver);
  margin-bottom: 22px;
}
.hero-desc {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--silver-soft);
  font-size: 1rem;
}
.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  font-family: var(--font-cosmic);
  letter-spacing: 2px;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform .25s, box-shadow .25s, background .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold-2));
  color: var(--space-void);
  font-weight: 700;
  box-shadow: var(--glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(251,191,36,0.85); }
.btn-ghost {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.5);
  color: var(--light-indigo);
}
.btn-ghost:hover { background: rgba(129, 140, 248, 0.18); transform: translateY(-2px); }

/* Orbit decoration */
.orbit-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(192, 192, 192, 0.18);
  pointer-events: none;
}
.orbit-deco.o1 { width: 540px; height: 540px; top: -120px; left: -160px; }
.orbit-deco.o2 { width: 360px; height: 360px; bottom: -140px; right: -80px; border-color: rgba(251,191,36,0.18); }
.orbit-deco .planet {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, var(--periwinkle), var(--indigo-700));
  box-shadow: var(--glow-indigo);
}

/* ---------- Movie Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-6 { grid-template-columns: repeat(6, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(30, 27, 75, 0.7), rgba(15, 15, 35, 0.85));
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: var(--radius);
  padding: 18px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% -10%, rgba(129, 140, 248, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55), var(--glow-indigo);
}
.card:hover::before { opacity: 1; }

/* Poster placeholder (no images) */
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 14px;
  background:
    linear-gradient(135deg, var(--indigo-900), var(--nebula-purple)),
    radial-gradient(circle at 30% 30%, rgba(192,192,192,0.3), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(129, 140, 248, 0.25);
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 60% 60%, #e0e7ff, transparent),
    radial-gradient(1.5px 1.5px at 80% 20%, #fbbf24, transparent),
    radial-gradient(1px 1px at 40% 80%, #fff, transparent),
    radial-gradient(1px 1px at 90% 70%, #c0c0c0, transparent);
  opacity: 0.7;
}
.poster .glyph {
  font-family: var(--font-cosmic);
  font-size: 2.2rem;
  color: rgba(224, 231, 255, 0.85);
  letter-spacing: 4px;
  text-shadow: var(--glow-indigo);
  z-index: 1;
}
.poster .badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.92);
  color: var(--space-void);
  font-weight: 700;
}
.poster .badge连载 { background: var(--periwinkle); color: var(--space-void); }
.poster .badge完结 { background: var(--silver); color: var(--space-void); }
.poster .badge新 { background: var(--aurora-teal); color: var(--space-void); }
.poster .score-tag {
  position: absolute;
  bottom: 10px; right: 10px;
  z-index: 2;
  font-family: var(--font-cosmic);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--star-gold);
  background: rgba(15, 15, 35, 0.78);
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid rgba(251,191,36,0.45);
}
.card-title {
  font-family: var(--font-cosmic);
  font-size: 1.02rem;
  color: var(--light-indigo);
  letter-spacing: 1px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--silver); display: inline-block; }

/* Star rating */
.stars { color: var(--star-gold); letter-spacing: 1px; font-size: 0.85rem; }
.stars .empty { color: rgba(192,192,192,0.35); }

/* Featured "星荐" large card */
.featured-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 26px;
}
.featured {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(circle at 75% 20%, rgba(129, 140, 248, 0.35), transparent 55%),
    linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(76, 29, 149, 0.85));
  padding: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.featured::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--light-indigo), var(--indigo-700) 55%, transparent 70%);
  opacity: 0.5;
  filter: blur(2px);
}
.featured-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-cosmic);
  letter-spacing: 4px;
  font-size: 0.72rem;
  color: var(--star-gold);
  border: 1px solid rgba(251,191,36,0.5);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.featured-title {
  font-family: var(--font-cosmic);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--light-indigo);
  letter-spacing: 3px;
  margin-bottom: 10px;
  text-shadow: var(--glow-indigo);
}
.featured-desc { color: var(--silver-soft); margin-bottom: 18px; max-width: 520px; }
.featured-meta { display: flex; gap: 18px; color: var(--silver); font-size: 0.85rem; flex-wrap: wrap; }

.featured-list { display: flex; flex-direction: column; gap: 14px; }
.featured-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(30, 27, 75, 0.45);
  border: 1px solid rgba(129, 140, 248, 0.18);
  transition: border-color .25s, transform .25s;
}
.featured-item:hover { border-color: var(--star-gold); transform: translateX(4px); }
.featured-item .rank-no {
  font-family: var(--font-cosmic);
  font-size: 1.6rem;
  color: var(--star-gold);
  font-weight: 700;
  min-width: 34px;
  text-shadow: var(--glow-gold);
}
.featured-item .fi-body { flex: 1; }
.featured-item .fi-title { color: var(--light-indigo); font-family: var(--font-cosmic); letter-spacing: 1px; }
.featured-item .fi-meta { color: var(--silver); font-size: 0.8rem; }

/* ---------- Genre Constellation Map ---------- */
.constellation-map {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: radial-gradient(ellipse at center, rgba(30,27,75,0.6), rgba(15,15,35,0.85));
  text-align: center;
}
.constellation-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.const-node {
  position: relative;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: rgba(15, 15, 35, 0.6);
  color: var(--light-indigo);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all .25s;
}
.const-node::before {
  content: "★";
  color: var(--star-gold);
  margin-right: 6px;
  font-size: 0.8rem;
}
.const-node:hover {
  background: rgba(251, 191, 36, 0.12);
  border-color: var(--star-gold);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

/* Planet / orbit category icons */
.planet-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--light-indigo);
  transition: transform .3s;
}
.planet-cat:hover { transform: translateY(-6px); }
.planet-icon {
  width: 86px; height: 86px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cosmic);
  font-size: 1.4rem;
  color: var(--space-void);
  font-weight: 700;
  box-shadow: var(--glow-indigo);
}
.planet-icon::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(192,192,192,0.4);
  transform: rotate(-15deg);
}
.pi-1 { background: radial-gradient(circle at 35% 30%, var(--light-indigo), var(--indigo-700) 60%, var(--nebula-purple)); }
.pi-2 { background: radial-gradient(circle at 35% 30%, var(--star-gold), var(--star-gold-2) 60%, #92400e); color: var(--space-void); }
.pi-3 { background: radial-gradient(circle at 35% 30%, var(--aurora-teal), #0f766e 60%, #134e4a); }
.pi-4 { background: radial-gradient(circle at 35% 30%, var(--silver), #71717a 60%, #3f3f46); }
.pi-5 { background: radial-gradient(circle at 35% 30%, var(--periwinkle), var(--indigo-700) 60%, var(--nebula-purple)); }
.planet-cat .pc-label { font-size: 0.85rem; letter-spacing: 2px; }
.planet-cat .pc-en { font-size: 0.65rem; color: var(--silver); letter-spacing: 3px; text-transform: uppercase; }

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(15, 15, 35, 0.55);
  margin-bottom: 32px;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label {
  font-size: 0.78rem;
  color: var(--silver);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-right: 6px;
}
.chip {
  padding: 6px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: transparent;
  color: var(--silver-soft);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-ui);
}
.chip:hover { color: var(--light-indigo); border-color: var(--periwinkle); }
.chip.active {
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold-2));
  color: var(--space-void);
  border-color: transparent;
  font-weight: 700;
  box-shadow: var(--glow-gold);
}

.sort-select {
  background: rgba(15,15,35,0.6);
  color: var(--light-indigo);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--silver-soft);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0 10px;
  transition: all .2s;
}
.pagination a:hover { border-color: var(--periwinkle); color: var(--light-indigo); }
.pagination a.active {
  background: linear-gradient(135deg, var(--indigo-700), var(--nebula-purple));
  color: var(--light-indigo);
  border-color: transparent;
  box-shadow: var(--glow-indigo);
}

/* ---------- Ranking List ---------- */
.rank-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.3);
  background: rgba(15,15,35,0.55);
  margin-bottom: 32px;
}
.rank-tabs a {
  padding: 8px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--silver-soft);
  font-size: 0.88rem;
  letter-spacing: 1px;
  transition: all .25s;
}
.rank-tabs a.active {
  background: linear-gradient(135deg, var(--star-gold), var(--star-gold-2));
  color: var(--space-void);
  font-weight: 700;
  box-shadow: var(--glow-gold);
}

.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.18);
  background: rgba(30, 27, 75, 0.45);
  transition: all .25s;
}
.rank-row:hover {
  border-color: var(--star-gold);
  background: rgba(30, 27, 75, 0.7);
  transform: translateX(6px);
}
.rank-no {
  font-family: var(--font-cosmic);
  font-size: 2rem;
  font-weight: 700;
  color: var(--silver);
  text-align: center;
}
.rank-row:nth-child(1) .rank-no { color: var(--star-gold); text-shadow: var(--glow-gold); }
.rank-row:nth-child(2) .rank-no { color: var(--silver); text-shadow: var(--glow-silver); }
.rank-row:nth-child(3) .rank-no { color: #cd7f32; }
.rank-info .ri-title { font-family: var(--font-cosmic); color: var(--light-indigo); font-size: 1.1rem; letter-spacing: 1px; }
.rank-info .ri-meta { color: var(--silver); font-size: 0.83rem; margin-top: 4px; }
.rank-score {
  font-family: var(--font-cosmic);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--star-gold);
}
.rank-trend { font-size: 0.78rem; color: var(--aurora-teal); margin-top: 2px; text-align: right; }
.rank-trend.down { color: #f87171; }

/* Rating distribution chart */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(15,15,35,0.5);
}
.chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar .bar {
  width: 70%;
  background: linear-gradient(180deg, var(--star-gold), var(--indigo-700));
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 14px rgba(251,191,36,0.4);
  transition: transform .25s;
  position: relative;
}
.chart-bar:hover .bar { transform: scaleY(1.05); transform-origin: bottom; }
.chart-bar .lbl { font-size: 0.72rem; color: var(--silver); }

/* ---------- News Cards ---------- */
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.2);
  background: rgba(30, 27, 75, 0.45);
  transition: all .25s;
}
.news-card:hover { border-color: var(--star-gold); transform: translateY(-4px); box-shadow: var(--glow-indigo); }
.news-thumb {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--indigo-900), var(--nebula-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cosmic);
  font-size: 1.5rem;
  color: var(--light-indigo);
  border: 1px solid rgba(129,140,248,0.25);
  position: relative;
  overflow: hidden;
}
.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1px 1px at 30% 40%, #fff, transparent),
              radial-gradient(1px 1px at 70% 60%, #fbbf24, transparent),
              radial-gradient(1px 1px at 50% 80%, #e0e7ff, transparent);
  opacity: 0.6;
}
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.18);
  color: var(--periwinkle);
  margin-bottom: 8px;
}
.news-title {
  font-family: var(--font-cosmic);
  color: var(--light-indigo);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.news-excerpt { color: var(--silver-soft); font-size: 0.88rem; }
.news-meta { color: var(--silver); font-size: 0.78rem; margin-top: 8px; }

/* Premiere calendar */
.premiere-cal {
  border-radius: var(--radius);
  border: 1px solid rgba(129, 140, 248, 0.22);
  background: rgba(15,15,35,0.55);
  padding: 22px;
}
.cal-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(129, 140, 248, 0.18);
}
.cal-row:last-child { border-bottom: none; }
.cal-date {
  font-family: var(--font-cosmic);
  text-align: center;
  color: var(--star-gold);
}
.cal-date .d { font-size: 1.6rem; font-weight: 700; display: block; }
.cal-date .m { font-size: 0.7rem; color: var(--silver); letter-spacing: 2px; }
.cal-title { color: var(--light-indigo); font-family: var(--font-cosmic); }
.cal-sub { color: var(--silver); font-size: 0.8rem; }
.cal-pill {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.15);
  color: var(--aurora-teal);
  border: 1px solid rgba(45,212,191,0.3);
}

/* ---------- Anime cosmic frame ---------- */
.anime-card {
  position: relative;
  background: linear-gradient(160deg, rgba(76, 29, 149, 0.55), rgba(15, 15, 35, 0.85));
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius);
  padding: 16px;
  overflow: hidden;
}
.anime-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--star-gold), var(--periwinkle), transparent);
}
.anime-card:hover { transform: translateY(-6px); border-color: var(--star-gold); box-shadow: var(--glow-indigo); transition: all .3s; }

/* ---------- Series episode badge ---------- */
.ep-badge {
  position: absolute;
  bottom: 10px; left: 10px;
  z-index: 2;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(15, 15, 35, 0.85);
  color: var(--light-indigo);
  border: 1px solid rgba(129,140,248,0.4);
}

/* ---------- About / Form ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.cosmic-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(129, 140, 248, 0.25);
  background: linear-gradient(160deg, rgba(30,27,75,0.6), rgba(15,15,35,0.85));
}
.cosmic-card h3 {
  font-family: var(--font-cosmic);
  color: var(--star-gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 1.2rem;
}
.cosmic-card p { color: var(--silver-soft); margin-bottom: 12px; }
.cosmic-card ul { list-style: none; padding-left: 0; }
.cosmic-card ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--silver-soft);
  border-bottom: 1px dashed rgba(129,140,248,0.15);
}
.cosmic-card ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--star-gold);
}

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--silver);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15,15,35,0.6);
  border: 1px solid rgba(129,140,248,0.3);
  border-radius: var(--radius-sm);
  color: var(--light-indigo);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  outline: none;
  transition: border-color .2s;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--star-gold); }
.form-field textarea { resize: vertical; min-height: 110px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.45), rgba(15,15,35,0.7));
  border: 1px solid rgba(129,140,248,0.25);
  margin-bottom: 48px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-cosmic);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--star-gold);
  text-shadow: var(--glow-gold);
  display: block;
}
.stat-label { color: var(--silver); font-size: 0.82rem; letter-spacing: 2px; }

/* ---------- Spotlight ---------- */
.spotlight {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.3);
  background:
    radial-gradient(circle at 80% 30%, rgba(129,140,248,0.4), transparent 55%),
    linear-gradient(135deg, rgba(30,27,75,0.9), rgba(76,29,149,0.85));
}
.spotlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.spotlight-poster {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--indigo-900), var(--nebula-purple));
  border: 1px solid rgba(251,191,36,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.spotlight-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 20% 25%, #fff, transparent),
    radial-gradient(1px 1px at 60% 50%, #fbbf24, transparent),
    radial-gradient(1.5px 1.5px at 80% 75%, #e0e7ff, transparent),
    radial-gradient(1px 1px at 40% 80%, #c0c0c0, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff, transparent);
  opacity: 0.8;
}
.spotlight-poster .glyph {
  font-family: var(--font-cosmic);
  font-size: 3rem;
  color: rgba(224,231,255,0.9);
  letter-spacing: 6px;
  z-index: 1;
  text-shadow: var(--glow-indigo);
}
.spotlight h2 { font-family: var(--font-cosmic); color: var(--light-indigo); font-size: 2rem; letter-spacing: 3px; margin-bottom: 12px; }
.spotlight .spot-desc { color: var(--silver-soft); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 80px;
  border-top: 1px solid rgba(129, 140, 248, 0.2);
  background: linear-gradient(180deg, transparent, rgba(15,15,35,0.85));
  padding: 50px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 {
  font-family: var(--font-cosmic);
  color: var(--star-gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a { color: var(--silver-soft); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer ul li a:hover { color: var(--periwinkle); }
.footer p { color: var(--silver); font-size: 0.85rem; }
.footer-bottom {
  border-top: 1px dashed rgba(129,140,248,0.18);
  padding-top: 18px;
  text-align: center;
  color: var(--silver);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.footer-bottom .star-divider { color: var(--star-gold); margin: 0 8px; }

/* ---------- Page Header ---------- */
.page-header {
  position: relative;
  text-align: center;
  padding: 70px 0 40px;
}
.page-header .crumb {
  color: var(--silver);
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.page-header .crumb a { color: var(--periwinkle); text-decoration: none; }
.page-title {
  font-family: var(--font-cosmic);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--light-indigo);
  letter-spacing: 6px;
  text-shadow: var(--glow-indigo);
  margin-bottom: 10px;
}
.page-title .accent { color: var(--star-gold); }
.page-sub { color: var(--silver); letter-spacing: 3px; font-size: 0.9rem; }

/* ---------- Decorative dividers ---------- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0;
  color: var(--star-gold);
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 180px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.5), transparent);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(4, 1fr); }
  .featured-wrap { grid-template-columns: 1fr; }
  .spotlight-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .nav-search { margin-left: auto; }
  .grid-6, .grid-5, .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 60px 0 40px; }
  .news-card { grid-template-columns: 90px 1fr; }
  .cal-row { grid-template-columns: 70px 1fr; }
  .cal-pill { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 560px) {
  .grid-6, .grid-5, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .rank-row { grid-template-columns: 50px 1fr; }
  .rank-score { grid-column: 1 / -1; text-align: left; }
  .nav-search input { width: 90px; }
  .section { padding: 44px 0; }
}
