/* ============================================================
   THE BOYS - FAN SITE
   Dark, Gritty, Satirical Aesthetic
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1e;
  --bg-card-hover: #222228;
  --text-primary: #e8e8e8;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent-red: #c41e3a;
  --accent-red-bright: #e82541;
  --accent-blue: #1e5fbb;
  --accent-gold: #d4a843;
  --accent-vought: #0057b7;
  --border-color: #2a2a30;
  --border-light: #3a3a40;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.8);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-heading: 'Impact', 'Arial Black', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
  --font-body: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Consolas', 'Monaco', monospace;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --max-width: 1280px;
  --navbar-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red-bright); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--accent-red-bright); }

p { margin-bottom: 1rem; color: var(--text-secondary); }

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid var(--accent-red);
  box-shadow: var(--shadow-md);
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.navbar .logo img { height: 40px; }
.navbar .logo span { color: var(--accent-red); }

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--accent-red);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #050510 0%, #1a0a10 30%, #0a0a15 60%, #100808 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 95, 187, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 168, 67, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: #fff;
  text-shadow: 0 0 60px rgba(196, 30, 58, 0.5);
  margin-bottom: 1rem;
  letter-spacing: 4px;
  line-height: 1;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--accent-red);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.hero .hero-desc {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--accent-red);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-red-bright);
  border-color: var(--accent-red-bright);
  box-shadow: 0 0 30px rgba(196, 30, 58, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 1.2rem;
  font-size: 0.8rem;
}

/* --- Section Layout --- */
.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-red);
  margin: 0.8rem auto 0;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-red);
  box-shadow: 0 8px 30px rgba(196, 30, 58, 0.2);
  background: var(--bg-card-hover);
}

.card-img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  border-bottom: 2px solid var(--border-color);
}

.card-body {
  padding: 1.2rem;
}

.card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #fff;
}

.card-body .subtitle {
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Character Cards --- */
.character-card .card-img {
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 1.5rem auto 0;
  border: 3px solid var(--border-color);
  font-size: 2rem;
}

.character-card .card-body {
  text-align: center;
}

.character-card .actor-name {
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.character-card .power-tag {
  display: inline-block;
  background: rgba(196, 30, 58, 0.2);
  color: var(--accent-red);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  margin: 0.2rem;
}

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-red);
  display: block;
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Table (Episodes) --- */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--bg-card);
  color: var(--accent-red);
  padding: 1rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--accent-red);
  position: sticky;
  top: var(--navbar-height);
}

tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tbody tr:hover {
  background: rgba(196, 30, 58, 0.05);
}

.ep-num {
  color: var(--accent-red);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* --- Season Cards --- */
.season-card {
  display: flex;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.season-card:hover {
  border-color: var(--accent-red);
}

.season-card .season-poster {
  width: 200px;
  aspect-ratio: 2/3;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.season-info h3 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.season-info .meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.season-info .meta span {
  color: var(--accent-red);
  font-weight: 600;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-red);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
}

.gallery-item:hover {
  border-color: var(--accent-red);
  transform: scale(1.03);
}

.gallery-item .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.gallery-item:hover .placeholder {
  color: var(--accent-red);
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-content .placeholder-large {
  width: 600px;
  height: 400px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--text-muted);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}
.lightbox-close:hover { color: var(--accent-red); }

/* --- Filter Tags --- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-tag {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.filter-tag:hover,
.filter-tag.active {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* --- Vought Page --- */
.vought-banner {
  background: linear-gradient(135deg, var(--accent-vought), #003080);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.vought-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.03) 2px,
    rgba(255,255,255,0.03) 4px
  );
}

.vought-banner h2 {
  color: #fff;
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

.vought-banner .vought-tagline {
  color: rgba(255,255,255,0.8);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-vought);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
}

.product-card:hover {
  border-color: var(--accent-red);
  box-shadow: 0 0 30px rgba(0, 87, 183, 0.3);
}

.product-card .product-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* --- News/Blog --- */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.news-item:hover {
  border-color: var(--accent-red);
}

.news-item .news-thumb {
  width: 180px;
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.news-item .news-date {
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-item h3 {
  margin: 0.3rem 0;
}

/* --- Footer --- */
footer {
  background: var(--bg-secondary);
  border-top: 3px solid var(--accent-red);
  padding: 3rem 2rem 1rem;
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent-red);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom .disclaimer {
  font-size: 0.75rem;
  color: #555;
  margin-top: 0.5rem;
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-red);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  opacity: 0;
  pointer-events: none;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-red-bright);
  transform: translateY(-3px);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent-red);
}

.breadcrumbs .sep {
  color: var(--accent-red);
}

/* --- Page Header (non-hero pages) --- */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(180deg, var(--bg-secondary), transparent);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
}

.page-header .subtitle {
  color: var(--accent-red);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 2px solid var(--accent-red);
  }

  .nav-links.show {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .season-card {
    flex-direction: column;
  }

  .season-card .season-poster {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item .news-thumb {
    width: 100%;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 3rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.hidden { display: none !important; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(196, 30, 58, 0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* --- Chinese Typography --- */
html[lang="zh-CN"] body {
  font-family: var(--font-body);
}

.logo-icon {
  font-size: 2rem;
}

/* Tables with Chinese text */
td {
  word-break: break-all;
}

/* ============================================================
   TIMELINE PAGE
   ============================================================ */

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
  position: relative;
}

/* The vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--accent-red) 5%,
    var(--accent-red) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
}

/* Period header */
.timeline-period {
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 3rem 0 2rem;
}

.timeline-period:first-child {
  margin-top: 0;
}

.timeline-period h2 {
  display: inline-block;
  background: var(--bg-primary);
  padding: 0.5rem 2rem;
  border: 2px solid var(--accent-red);
  border-radius: 30px;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 3px;
  position: relative;
  z-index: 2;
}

.timeline-period .period-date {
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Timeline item */
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternate left/right */
.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* The dot on the line */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--accent-red);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 12px rgba(196, 30, 58, 0.6);
}

.timeline-item.major::before {
  width: 22px;
  height: 22px;
  background: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 0 20px rgba(196, 30, 58, 0.8);
}

/* Timeline card */
.timeline-card {
  width: 44%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  border-color: var(--accent-red);
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.15);
  transform: translateY(-2px);
}

/* Arrow connecting card to line */
.timeline-item:nth-child(odd) .timeline-card::after {
  content: '';
  position: absolute;
  top: 16px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
  transition: border-color var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-card::after {
  content: '';
  position: absolute;
  top: 16px;
  left: -10px;
  width: 20px;
  height: 20px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transform: rotate(45deg);
  transition: border-color var(--transition-normal);
}

.timeline-item:nth-child(odd) .timeline-card:hover::after {
  border-right-color: var(--accent-red);
  border-top-color: var(--accent-red);
}

.timeline-item:nth-child(even) .timeline-card:hover::after {
  border-left-color: var(--accent-red);
  border-bottom-color: var(--accent-red);
}

/* Spacer for the other side */
.timeline-spacer {
  width: 44%;
}

/* Card content */
.timeline-card .tl-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  background: rgba(196, 30, 58, 0.1);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}

.timeline-card .tl-episode {
  font-size: 0.7rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-left: 0.5rem;
}

.timeline-card h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.timeline-card .tl-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.timeline-card .tl-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  background: rgba(196, 30, 58, 0.15);
  color: var(--accent-red);
}

.timeline-card .tl-tag.death {
  background: rgba(255, 255, 255, 0.05);
  color: #999;
}

.timeline-card .tl-tag.intro {
  background: rgba(212, 168, 67, 0.15);
  color: var(--accent-gold);
}

.timeline-card .tl-tag.event {
  background: rgba(30, 95, 187, 0.15);
  color: var(--accent-blue);
}

.timeline-card .tl-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

/* Timeline cards that are major (big reveals) */
.timeline-item.major .timeline-card {
  border-color: var(--accent-red);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(196, 30, 58, 0.05) 100%);
}

.timeline-item.major .timeline-card h3 {
  color: var(--accent-red);
}

/* Responsive - stack on mobile */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 60px;
  }

  .timeline-item::before {
    left: 20px;
  }

  .timeline-spacer {
    display: none;
  }

  .timeline-card {
    width: 100%;
  }

  .timeline-item:nth-child(odd) .timeline-card::after,
  .timeline-item:nth-child(even) .timeline-card::after {
    top: 16px;
    left: -10px;
    right: auto;
    border: none;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
  }
}

/* Fade-in trigger */
.timeline-item.fade-ready {
  opacity: 0;
  transform: translateY(30px);
}

.timeline-item.fade-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline stats bar (like stats-bar but for timeline intro) */
.timeline-intro {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.timeline-intro strong {
  color: var(--accent-red);
}
