/* ========================================================
   Manga Trend Radar - Top Tier Manga Industry UI (顶级漫画行业白底UI)
   Inspired by Shonen Jump Official, MangaPlus by Shueisha, Comic Natalie
   ======================================================== */

:root {
  --bg-pure: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;    /* 极深纯墨黑，确保极其清晰 */
  --text-secondary: #334155;  /* 舒适阅读深碳灰 */
  --text-muted: #64748b;      /* 辅助次要文字 */
  --border-light: #e2e8f0;    /* 柔和精致边框 */
  --border-strong: #0f172a;   /* 漫画画格墨线 */
  --jump-red: #ff1a40;        /* 少年Jump高能炽红 */
  --jump-red-hover: #e0002b;
  --jump-red-soft: #fff1f2;
  --accent-blue: #0284c7;
  --accent-gold: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --shadow-card-hover: 0 16px 32px -4px rgba(225, 26, 64, 0.15);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  background-color: var(--bg-pure) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Manga Paper Texture */
.bg-manga-paper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  padding: 14px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary) !important;
}

.brand-logo-frame {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary) !important;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--jump-red) !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary) !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--jump-red) !important;
  background: var(--jump-red-soft);
}

.btn-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jump-red) !important;
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 26, 64, 0.35);
  transition: all 0.2s ease;
  border: none;
}

.btn-yt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 26, 64, 0.45);
  background: var(--jump-red-hover) !important;
}

/* Hero Section */
.hero {
  padding: 56px 0 44px;
}

.hero-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 50px 48px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--jump-red);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jump-red-soft);
  color: var(--jump-red) !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.hero h2 {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text-primary) !important;
  margin-bottom: 18px;
}

.hero h2 .highlight {
  color: var(--jump-red);
  background: none;
  position: relative;
  display: inline-block;
}

.hero h2 .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 26, 64, 0.14);
  z-index: -1;
  border-radius: 4px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary) !important;
  max-width: 780px;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 36px;
}

/* Telemetry Stats: Crisp White Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-primary) !important;
  line-height: 1;
}

.stat-value .unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--jump-red) !important;
  margin-left: 2px;
}

/* Sections Header */
.section {
  padding: 48px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 14px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-pill {
  background: var(--jump-red);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  font-weight: 500;
}

/* Episode Cards: MangaPlus Clean Streamlined Design */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.episode-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.episode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 26, 64, 0.3);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.episode-card:hover .thumb-wrap img {
  transform: scale(1.05);
}

.ep-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--jump-red);
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.duration-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text-primary) !important;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
  font-weight: 600;
}

.score-badge {
  background: var(--jump-red-soft);
  color: var(--jump-red) !important;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.8rem;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-card {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-play {
  background: #f1f5f9;
  color: var(--text-primary) !important;
  border: 1px solid #e2e8f0;
}

.btn-play:hover {
  background: #e2e8f0;
  color: var(--jump-red) !important;
}

.btn-yt-sm {
  background: var(--jump-red-soft);
  color: var(--jump-red) !important;
  border: 1px solid rgba(255, 26, 64, 0.2);
}

.btn-yt-sm:hover {
  background: var(--jump-red);
  color: #ffffff !important;
}

/* Feature Panels */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #cbd5e1;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--jump-red) !important;
  margin-bottom: 10px;
}

.feature-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.94rem;
  color: var(--text-secondary) !important;
  line-height: 1.65;
}

/* Request Banner: Deep Contrast & High Readability */
.request-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #ffffff !important;
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.2);
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.request-banner * {
  color: inherit;
}

.request-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.request-banner h2 {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff !important;
  margin-bottom: 14px;
}

.request-banner p.lead {
  font-size: 1.1rem;
  color: #cbd5e1 !important;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.request-banner .btn-yt {
  background: var(--jump-red) !important;
  color: #ffffff !important;
  font-size: 1rem;
  padding: 12px 32px;
}

/* Legal Documents */
.legal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow-card);
  margin: 30px 0 60px;
}

.legal-box h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary) !important;
  margin-bottom: 10px;
}

.legal-box .effective-date {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--jump-red) !important;
  font-size: 0.9rem;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-box h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  margin: 30px 0 14px;
}

.legal-box p, .legal-box ul, .legal-box ol {
  color: var(--text-secondary) !important;
  font-size: 0.96rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-box ul, .legal-box ol {
  padding-left: 24px;
}

.legal-box li {
  margin-bottom: 8px;
}

.legal-box a {
  color: var(--jump-red) !important;
  font-weight: 600;
  text-decoration: underline;
}

.legal-highlight {
  background: var(--jump-red-soft);
  border-left: 4px solid var(--jump-red);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
  color: #881337 !important;
  font-weight: 500;
}

/* Modal Player */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 900px;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  position: relative;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  background: none;
  border: none;
}

.iframe-container {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer: Clean White */
footer.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #ffffff !important;
  padding: 48px 0 28px;
  margin-top: 60px;
  color: var(--text-muted) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}

.footer-col h4 {
  color: var(--text-primary) !important;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--text-muted) !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--jump-red) !important;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .hero h2 { font-size: 2.1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
