/* ===== SHARED CSS — senpaistream.vip category pages ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px; line-height: 1.65;
  color: #1a1a1a; background: #0d0d0d;
}
:root {
  --orange: #E06500; --orange-light: #ff8c2a; --orange-dim: rgba(224,101,0,0.15);
  --surface: #161616; --surface2: #1e1e1e; --surface3: #252525;
  --border: rgba(255,255,255,0.08); --border-hover: rgba(255,255,255,0.15);
  --text: #f0f0f0; --text-muted: #888; --text-dim: #555;
  --green: #4ade80; --blue: #63b3ed; --purple: #a78bfa;
}
h1,h2,h3,h4 { color: var(--text); font-weight: 700; line-height: 1.25; }
p { color: #999; }
a { color: var(--orange-light); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 600; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* NAV */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,13,13,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 8px; padding: 0 20px; height: 58px; max-width: 1100px; margin: 0 auto; position: relative; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; margin-right: 8px; }
.nav-logo img { height: 32px; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; list-style: none; overflow-x: auto; }
.nav-links a { display: block; padding: 6px 11px; font-size: 13.5px; color: var(--text-muted); text-decoration: none; border-radius: 7px; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface3); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; max-width: max-content; background: var(--orange); color: #fff !important; padding: 7px 16px !important; border-radius: 8px !important; font-weight: 600 !important; font-size: 13.5px !important; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background 0.15s !important; }
.nav-cta:hover { background: var(--orange-light) !important; text-decoration: none !important; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-menu-button { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; border: 1px solid var(--border-hover); border-radius: 8px; background: var(--surface2); cursor: pointer; }
.nav-menu-button span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }

/* BREADCRUMB */
.breadcrumb { padding: 16px 0 0; }
.breadcrumb ol { display: flex; align-items: center; gap: 8px; list-style: none; flex-wrap: wrap; }
.breadcrumb li { font-size: 13px; color: var(--text-dim); }
.breadcrumb li::after { content: '/'; margin-left: 8px; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* PAGE HEADER */
.page-header { padding: 36px 0 32px; }
.page-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px; }
.page-header h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -1px; margin-bottom: 14px; }
.page-header .subtitle { font-size: 17px; color: #888; max-width: 620px; line-height: 1.65; }

/* ARTICLE BODY */
.article-body { padding-bottom: 60px; }
.article-body h2 { font-size: 22px; margin: 40px 0 14px; padding-top: 8px; border-top: 1px solid var(--border); }
.article-body h3 { font-size: 17px; margin: 24px 0 10px; }
.article-body p { color: #999; line-height: 1.75; margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; color: #999; }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body a { color: var(--orange-light); }
.article-body strong { color: var(--text); }

/* CTA BOX */
.cta-box {
  background: var(--surface); border: 1px solid rgba(224,101,0,0.3);
  border-radius: 14px; padding: 28px 32px; margin: 28px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before { content: ''; position: absolute; top: 0; right: 0; width: 220px; height: 160px; background: radial-gradient(ellipse at top right, rgba(224,101,0,0.1), transparent 60%); pointer-events: none; }
.cta-box-text h3 { font-size: 18px; margin-bottom: 8px; }
.cta-box-text p { font-size: 14px; color: #888; margin: 0; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 700; padding: 12px 26px; border-radius: 10px; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.btn-primary:hover { background: var(--orange-light); text-decoration: none; }
.btn-secondary { display: inline-flex; align-items: center; gap: 8px; background: var(--surface3); color: var(--text); font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border-hover); text-decoration: none; transition: background 0.15s; }
.btn-secondary:hover { background: var(--surface2); text-decoration: none; }

/* INFO BOX */
.info-box { border-radius: 10px; padding: 18px 22px; margin: 24px 0; border-left: 3px solid; }
.info-box.info { background: rgba(99,179,237,0.07); border-color: var(--blue); }
.info-box.tip { background: rgba(74,222,128,0.07); border-color: var(--green); }
.info-box .box-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.info-box p { font-size: 14px; margin-bottom: 0; color: #888; line-height: 1.6; }

/* GENRE GRID */
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.genre-tag {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  text-align: center; text-decoration: none;
  transition: all 0.15s;
}
.genre-tag:hover { background: var(--orange-dim); border-color: rgba(224,101,0,0.35); color: var(--text); text-decoration: none; }

/* RELATED PAGES */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.related-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; text-decoration: none; display: block; transition: border-color 0.15s, background 0.15s; }
.related-card:hover { border-color: var(--border-hover); background: var(--surface2); text-decoration: none; }
.related-icon { font-size: 22px; margin-bottom: 10px; display: block; }
.related-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.related-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* FORMAT BADGE */
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; margin-right: 6px; }
.badge-vf { background: rgba(99,179,237,0.15); color: var(--blue); border: 1px solid rgba(99,179,237,0.25); }
.badge-vostfr { background: rgba(167,139,250,0.15); color: var(--purple); border: 1px solid rgba(167,139,250,0.25); }
.badge-anime { background: rgba(167,139,250,0.15); color: var(--purple); }
.badge-film { background: rgba(99,179,237,0.15); color: var(--blue); }
.badge-serie { background: rgba(74,222,128,0.15); color: var(--green); }

/* FOOTER */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-brand-name { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.footer-brand-name span { color: var(--orange); }
.footer-brand-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13.5px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: var(--text-dim); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .genre-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .nav-inner { height: auto; min-height: 58px; flex-wrap: wrap; align-content: center; padding-top: 8px; padding-bottom: 8px; }
  .nav-logo { margin-right: auto; }
  .nav-menu-button { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle:checked ~ .nav-links { display: flex; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 4px; order: 4; overflow: visible; padding-top: 8px; }
  .nav-toggle:checked ~ .nav-links li { width: 100%; }
  .nav-toggle:checked ~ .nav-links a { width: 100%; padding: 10px 12px; }
  .nav-toggle:checked ~ .nav-cta { display: inline-flex; flex: 0 0 100%; max-width: none; order: 5; margin-bottom: 4px; padding: 10px 14px !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
