:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-elevated: #1a1a1a;
  --bg-glass: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --accent: #f97316;
  --accent-light: #fb923c;
  --accent-dark: #c2410c;
  --accent-glow: rgba(249,115,22,0.3);
  --text: #f5f5f5;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-medium: 280ms;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Canvas background */
#bgCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.page-transition.active { opacity: 1; }

/* ===== GLASS NAVBAR ===== */
.glass-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--motion-base) ease, padding var(--motion-base) ease;
  background: transparent;
}
.glass-nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}
.logo-mark i { margin-left: 2px; }
.accent { color: var(--accent); }

.nav-menu {
  display: flex;
  gap: 4px;
  flex: 1;
}
.nav-item {
  padding: 8px 16px;
  border-radius: var(--radius);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.nav-item i { font-size: 12px; }
.nav-item:hover, .nav-item.active { color: var(--text); background: var(--bg-elevated); }
.nav-item.active { color: var(--accent); }

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search shell */
.search-shell {
  position: relative;
  display: flex;
  align-items: center;
}
.search-expand {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.search-expand:hover { color: var(--accent); border-color: var(--accent); }

.search-field {
  position: absolute;
  right: 48px;
  width: 0;
  padding: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: width var(--motion-medium) ease, opacity var(--motion-base) ease, padding var(--motion-base) ease;
  min-height: 44px;
}
.search-shell.open .search-field {
  width: 260px;
  padding: 0 14px;
  opacity: 1;
  pointer-events: auto;
}
.search-field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.search-field::placeholder { color: var(--text-dim); }

.search-drop {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.sug {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--motion-fast) ease;
  font-size: 13px;
  min-height: 44px;
}
.sug:hover { background: var(--bg-card); }
.sug img { width: 32px; height: 44px; object-fit: cover; border-radius: 6px; }

.nav-icon-btn {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
  font-size: 16px;
}
.nav-icon-btn:hover { color: var(--accent); border-color: var(--accent); }

.hamburger { display: none; }

/* ===== MAIN ===== */
.main {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  min-height: 100vh;
}
.pg { display: none; }
.pg.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-bottom: 32px;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.8s ease, transform 8s ease;
  will-change: opacity, transform;
  transform: scale(1.05);
}
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.2) 100%),
              linear-gradient(to top, var(--bg-primary) 0%, transparent 30%);
  z-index: 1;
}
.hero-body {
  position: absolute;
  bottom: 100px;
  left: 48px;
  max-width: 600px;
  z-index: 2;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
  letter-spacing: -0.03em;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.hero-acts {
  display: flex;
  gap: 14px;
}
.hero-nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, transform 0.15s ease;
  font-size: 16px;
  backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-dots { display: flex; gap: 10px; }
.h-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--motion-fast) ease, width var(--motion-base) ease;
  border: none;
  padding: 0;
}
.h-dot.on { background: var(--accent); width: 32px; border-radius: 5px; }

/* ===== SECTIONS ===== */
.sect {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.sect-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.sect-head h2 {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.sect-head h2 i { color: var(--accent); font-size: 18px; }
.see-all {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--motion-fast) ease;
}
.see-all:hover { gap: 8px; }
.dim { color: var(--text-dim); }

/* ===== CARD ROW (horizontal scroll) ===== */
.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card-row .anime-card {
  min-width: 200px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.card-grid.full {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}

/* ===== ANIME CARD ===== */
.anime-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--motion-base) ease, box-shadow var(--motion-base) ease, border-color var(--motion-base) ease;
  border: 1px solid var(--border);
  will-change: transform;
}
.anime-card:hover {
  box-shadow: 0 12px 40px rgba(249,115,22,0.15);
  border-color: rgba(249,115,22,0.4);
}
.card-vis {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-elevated);
}
.card-vis img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.anime-card:hover .card-vis img { transform: scale(1.08); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 40%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--motion-base) ease;
}
.anime-card:hover .card-overlay { opacity: 1; }
.card-play {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  transform: scale(0.7);
  transition: transform var(--motion-base) ease;
  box-shadow: 0 0 30px var(--accent-glow);
}
.anime-card:hover .card-play { transform: scale(1); }
.card-bm {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.card-bm:hover, .card-bm.on { color: var(--accent); background: rgba(249,115,22,0.25); }
.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.card-hot {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.card-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
}
.card-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
}
.card-txt { padding: 12px; }
.card-txt h3 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.card-row-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.card-row-meta i { font-size: 10px; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ctag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(249,115,22,0.1);
  color: var(--tc, var(--accent));
  border: 1px solid color-mix(in srgb, var(--tc, var(--accent)) 30%, transparent);
}

/* ===== BUTTONS ===== */
.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  min-height: 44px;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(249,115,22,0.4);
}
.btn-glow.lg { padding: 14px 32px; font-size: 15px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
  min-height: 44px;
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(249,115,22,0.08);
}
.btn-ghost.lg { padding: 14px 32px; font-size: 15px; }

/* ===== PAGE HEADERS ===== */
.pg-head {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 16px;
}
.pg-head h1 {
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}
.pg-head h1 i { color: var(--accent); }
.pg-head p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ===== FILTERS ===== */
.filter-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-row select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--motion-fast) ease;
  min-height: 44px;
}
.filter-row select:focus { border-color: var(--accent); outline: none; }

/* ===== A-Z BAR ===== */
.alpha-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.az-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.az-btn:hover, .az-btn.on { background: var(--accent); color: white; border-color: var(--accent); }

/* ===== CATEGORY GRID ===== */
.cat-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cat-grid.large { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; padding: 0 24px 32px; }
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform var(--motion-base) ease, border-color var(--motion-base) ease;
  text-align: center;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cat-ico {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.cat-card span { font-size: 13px; font-weight: 600; }
.cat-n { font-size: 11px !important; color: var(--text-dim) !important; font-weight: 400 !important; }

/* ===== ABOUT ===== */
.about-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.about-card { padding: 28px; text-align: center; }
.about-ico {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(249,115,22,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin: 0 auto 16px;
}
.about-card h3 { font-size: 16px; margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.about-block { padding: 28px; margin-bottom: 24px; }
.about-block h2, .about-block h3 { margin-bottom: 12px; }
.about-block p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* ===== CONTACT ===== */
.contact-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-info { padding: 28px; }
.contact-info h2 { margin-bottom: 20px; }
.c-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.c-item:last-child { border-bottom: none; }
.c-item i { font-size: 20px; color: var(--accent); width: 40px; text-align: center; padding-top: 4px; }
.c-item h4 { font-size: 14px; margin-bottom: 4px; }
.c-item a { color: var(--accent); text-decoration: none; font-size: 13px; }

.contact-form { padding: 28px; }
.contact-form h2 { margin-bottom: 20px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.fg input, .fg textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease;
  min-height: 44px;
}
.fg input:focus, .fg textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-glow); }
.fg textarea { resize: vertical; min-height: 100px; }

/* ===== LEGAL ===== */
.legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 24px;
}
.legal-card { padding: 24px; margin-bottom: 16px; }
.legal-card h2, .legal-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.legal-card p { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* ===== GLASS ===== */
.glass {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== WATCH ===== */
.watch-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.watch-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.btn-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--motion-fast) ease;
  min-height: 44px;
}
.btn-back:hover { color: var(--accent); }
.watch-meta h1 { font-size: 20px; font-weight: 700; }
.watch-meta p { font-size: 13px; color: var(--text-dim); }

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.player-box.theater { max-width: 100%; }
.player-ph {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
}
.play-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  box-shadow: 0 0 40px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px var(--accent-glow); }
  50% { box-shadow: 0 0 60px rgba(249,115,22,0.5); }
}

.player-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  flex-wrap: wrap;
  gap: 12px;
}
.srv-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}
.srv-pills .dim { font-size: 13px; color: var(--text-dim); }
.srv {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
  min-height: 44px;
}
.srv:hover, .srv.active { background: var(--accent); color: white; border-color: var(--accent); }

.player-btns { display: flex; gap: 8px; }
.p-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
  font-size: 14px;
}
.p-btn:hover { color: var(--accent); border-color: var(--accent); }

.ep-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.ep-nav::-webkit-scrollbar { display: none; }
.ep-arrow {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.ep-arrow:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.ep-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.ep-scroll {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.ep-pill {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background var(--motion-fast) ease, color var(--motion-fast) ease;
  min-height: 44px;
}
.ep-pill:hover, .ep-pill.on { background: var(--accent); color: white; border-color: var(--accent); }

.watch-tags { padding: 16px 0; }
.dt-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.dt-label { color: var(--text); font-weight: 600; min-width: 70px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }

/* ===== DETAIL ===== */
.detail-bg {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 450px;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  opacity: 0.25;
  filter: blur(20px);
  transform: scale(1.1);
}
.detail-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
}

.detail-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 24px 40px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}
.detail-side {
  position: sticky;
  top: 100px;
  align-self: start;
}
.detail-poster {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border);
}
.detail-acts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.detail-acts .btn-glow, .detail-acts .btn-ghost { width: 100%; justify-content: center; }

.detail-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  align-items: center;
}
.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(249,115,22,0.15);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}
.meta-pill i { color: var(--accent); font-size: 12px; }

.detail-syn {
  margin: 24px 0;
}
.detail-syn h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.detail-syn p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* Episode list */
.ep-list { display: flex; flex-direction: column; gap: 4px; }
.ep-range-wrap { margin-bottom: 12px; }
.ep-range-wrap select {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
}
.ep-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease;
  min-height: 44px;
}
.ep-item:hover { border-color: var(--accent); background: rgba(249,115,22,0.05); }
.ep-item.seen { border-left: 3px solid var(--accent); }
.ep-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.ep-title { flex: 1; font-size: 13px; }

/* ===== TOAST ===== */
.toast-rack {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  transform: translateX(120%);
  transition: transform var(--motion-medium) ease;
}
.toast.show { transform: translateX(0); }
.toast i { color: var(--accent); }

/* ===== MOBILE NAV ===== */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  justify-content: space-around;
}
.mob-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 10px;
  padding: 8px 16px;
  transition: color var(--motion-fast) ease;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.mob-item i { font-size: 18px; }
.mob-item.active { color: var(--accent); }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  background: var(--bg-secondary);
}
.ft-wrap { max-width: 1400px; margin: 0 auto; padding: 48px 24px 24px; }
.ft-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.ft-brand p { color: var(--text-dim); font-size: 13px; margin-top: 12px; line-height: 1.7; }
.ft-social { display: flex; gap: 12px; margin-top: 16px; }
.ft-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.ft-social a:hover { color: var(--accent); border-color: var(--accent); }
.ft-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.ft-col ul { list-style: none; }
.ft-col li { margin-bottom: 8px; }
.ft-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--motion-fast) ease;
  min-height: 44px;
}
.ft-col a:hover { color: var(--accent); }
.ft-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-dim);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; color: var(--text-dim); }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .detail-wrap { grid-template-columns: 220px 1fr; gap: 24px; }
  .detail-title { font-size: 28px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(24px);
    padding: 16px;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .mob-nav { display: flex; }
  .main { padding-bottom: 70px; }
  .hero { height: 450px; }
  .hero-body { left: 20px; bottom: 80px; max-width: calc(100% - 40px); }
  .hero-title { font-size: 32px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .detail-wrap { grid-template-columns: 1fr; padding-top: 20px; }
  .detail-bg { position: absolute; height: 300px; opacity: 0.15; }
  .detail-side { display: flex; gap: 16px; align-items: flex-start; position: static; }
  .detail-poster { width: 140px; }
  .detail-acts { flex-direction: row; flex: 1; margin-top: 0; }
  .detail-acts .btn-glow, .detail-acts .btn-ghost { flex: 1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 24px; }
  .ft-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .card-grid.full { padding: 12px; }
  .card-txt { padding: 8px; }
  .card-txt h3 { font-size: 12px; }
  .card-row-meta { font-size: 10px; }
  .card-tags { display: none; }
  .hero { height: 380px; }
  .hero-title { font-size: 26px; }
  .hero-acts { flex-direction: column; }
  .btn-glow.lg, .btn-ghost.lg { padding: 12px 20px; font-size: 13px; }
  .detail-title { font-size: 24px; }
  .pg-head h1 { font-size: 24px; }
  .toast-rack { left: 16px; right: 16px; bottom: 80px; }
  .toast { width: 100%; }
}

/* ===== 3D CARD TILT ===== */
.anime-card {
  transform-style: preserve-3d;
}

/* ===== ANIMATED BORDER (premium cards) ===== */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(249,115,22,0.2); }
  50% { border-color: rgba(249,115,22,0.5); }
}

/* ===== GRADIENT TEXT ===== */
.hero-title {
  background: linear-gradient(135deg, #fff 0%, #f97316 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NEON GLOW ACCENT ===== */
.detail-acts .btn-glow {
  position: relative;
  overflow: hidden;
}
.detail-acts .btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.detail-acts .btn-glow:hover::after { opacity: 0.5; }
