/* VORTEX — صفحة الأنمي v4: تصميم أنظف وأوضح (طبقة أخيرة فوق anime.css) */
.ax { --v4-line: rgba(255,255,255,.08); --v4-card: linear-gradient(160deg, #111820, #0a0e13); }

/* ===== الهيرو ===== */
.ax-hero { margin: 0 calc(50% - 50vw); border-bottom: 0; background: #05080c; }
.ax-hero-bg.has-img::after { background: linear-gradient(0deg, #05080c 6%, rgba(5,8,12,.7) 50%, rgba(5,8,12,.35) 100%), linear-gradient(90deg, rgba(5,8,12,.95) 0%, rgba(5,8,12,.55) 60%, rgba(5,8,12,.8) 100%); }
.ax-hero-bg:not(.has-img) { background: radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--ax) 26%, transparent), transparent 70%), #05080c; }
.ax-hero-inner { grid-template-columns: clamp(170px, 19vw, 250px) minmax(0, 1fr); padding: clamp(36px, 5vw, 70px) clamp(18px, 4vw, 40px) clamp(28px, 4vw, 44px); max-width: 1240px; }
.ax-poster { border-radius: 18px; border: 1px solid var(--v4-line); box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.02); }
.ax-hero h1 { font-size: clamp(30px, 4.8vw, 56px); line-height: 1.12; font-weight: 900; text-shadow: 0 8px 30px rgba(0,0,0,.5); }
.ax-hero .ax-eyebrow, .ax-hero [class*="eyebrow"] { color: var(--ax-light, #76e5fd); letter-spacing: .14em; }
.ax-en { font-size: 14px; opacity: .65; margin: 0 0 12px; }
.ax-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.ax-badges > * { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--v4-line); font-size: 12.5px; color: #cfd7df; }
.ax-tagline { margin: 16px 0 0; max-width: 60ch; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.85; color: #d7dee6; padding-inline-start: 14px; border-inline-start: 3px solid var(--anime-accent, var(--ax)); }

/* ===== التبويبات ===== */
.ax-tabs { top: 0; margin: 0 0 26px; padding: 12px 0; background: rgba(8,10,14,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--v4-line); gap: 8px; }
.ax-tabs button { border-radius: 999px; background: transparent; border-color: var(--v4-line); padding: 9px 16px; font-size: 14px; }
.ax-tabs button:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.ax-tabs button.on { box-shadow: 0 8px 24px -10px var(--anime-primary, #13abd2); }

/* ===== الإحصائيات ===== */
.ax-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ax-stats > * { border-radius: 16px; border: 1px solid var(--v4-line); background: var(--v4-card); padding: 18px 20px; }
.ax-stats strong { font-size: 26px; color: #fff; }
.ax-stats small { color: #8a96a3; font-size: 12.5px; }

/* ===== البطاقات ===== */
.ax-card { border-radius: 18px; border: 1px solid var(--v4-line); background: var(--v4-card); padding: clamp(18px, 2.6vw, 28px); }
.ax-card h3 { font-size: 17px; margin-bottom: 16px; }
.ax-prose { line-height: 2; color: #cdd5dd; }
.ax-split { gap: 16px; }
.ax-acc { border-radius: 16px; border: 1px solid var(--v4-line); background: var(--v4-card); overflow: hidden; }
.ax-acc summary { padding: 16px 20px; font-weight: 800; }

/* ===== الأقواس ===== */
.ax-arcs { gap: 14px; }

/* ===== الحلقات ===== */
.ax-toolbar input, .ax-toolbar select { border-radius: 12px; }
.ax-count { color: #8a96a3; font-size: 13px; margin: 6px 2px 12px; }
.ax-ep { border-radius: 14px; border: 1px solid var(--v4-line); background: rgba(255,255,255,.02); margin-bottom: 8px; overflow: hidden; }
.ax-ep:hover { border-color: rgba(255,255,255,.16); }
.ax-ep > summary { padding: 12px 14px; }
.ax-num { font-family: var(--mono, monospace); color: var(--ax-light, #76e5fd); font-weight: 700; }

/* ===== الجوال ===== */
@media (max-width: 720px) {
  .ax-hero { margin: 0 calc(50% - 50vw); }
  .ax-hero-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 28px; }
  .ax-poster { width: min(200px, 56vw); }
  .ax-hero h1 { font-size: 28px; }
  .ax-badges { justify-content: center; }
  .ax-tagline { border-inline-start: 0; padding-inline-start: 0; }
  .ax-tabs { margin-inline: -18px; padding-inline: 18px; }
  .ax-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-stats strong { font-size: 22px; }
}
