/* TVCeleb.com - Mobile-First Responsive CSS */
/* Design: Visual, Modern, Fast, Fandom-Respectful */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Colors - Dark theme with vibrant accents */
  --color-bg: #0a0a0f;
  --color-bg-secondary: #12121a;
  --color-bg-card: #1a1a2e;
  --color-bg-card-hover: #222240;
  --color-surface: #16213e;
  --color-border: #2a2a4a;
  --color-border-light: #3a3a5a;

  --color-text: #e8e8f0;
  --color-text-secondary: #a0a0b8;
  --color-text-muted: #6a6a88;

  --color-primary: #7c3aed;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #5b21b6;
  --color-accent: #06b6d4;
  --color-accent-light: #22d3ee;
  --color-hot: #ef4444;
  --color-hot-light: #f87171;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-gold: #fbbf24;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-hot: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  --gradient-card: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  --gradient-hero: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,0.8) 50%, #0a0a0f 100%);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(124,58,237,0.3);
  --shadow-glow-accent: 0 0 20px rgba(6,182,212,0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --max-width: 1280px;
  --max-width-narrow: 960px;
  --header-height: 64px;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-light);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
}

button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ========== UTILITIES ========== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: var(--max-width-narrow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding: var(--space-12) 0;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  color: white;
  font-weight: 900;
}

.logo:hover {
  color: var(--color-text);
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  min-height: 48px;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
  background: rgba(124, 58, 237, 0.1);
}

.nav-search-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.nav-search-btn:hover {
  color: var(--color-text);
  background: rgba(124, 58, 237, 0.1);
}

.hamburger {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-md);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  z-index: 99;
  padding: var(--space-8) var(--space-4);
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
  min-height: 56px;
}

.mobile-nav-link:hover {
  background: var(--color-bg-card);
  color: var(--color-primary-light);
}

.mobile-nav-link svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary-light);
}

/* ========== HERO SECTION ========== */
.hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(6,182,212,0.06) 0%, transparent 40%);
  animation: heroGlow 15s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 5%) rotate(5deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-primary-light);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

/* Search Bar */
.search-container {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) 48px;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  transition: all var(--transition-base);
  min-height: 56px;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-8);
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.card-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
  color: var(--color-text);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-bg-secondary);
}

.card-image-portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.card-body {
  padding: var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-3);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.card-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========== TAGS & BADGES ========== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.15);
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-genre {
  background: rgba(6, 182, 212, 0.15);
  color: var(--color-accent-light);
}

.tag-network {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.tag-status-ongoing {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
}

.tag-status-ended {
  background: rgba(107, 114, 128, 0.15);
  color: var(--color-text-secondary);
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Fan Heat Badge */
.fan-heat {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
}

.fan-heat-bar {
  width: 48px;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.fan-heat-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-hot);
  transition: width var(--transition-slow);
}

.fan-heat-score {
  color: var(--color-hot-light);
  min-width: 28px;
}

.fan-heat-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.fan-heat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    var(--color-hot) calc(var(--score) * 1%),
    var(--color-border) calc(var(--score) * 1%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fan-heat-circle-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-hot-light);
}

.fan-heat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========== FAN HEAT BREAKDOWN ========== */
.heat-breakdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.heat-metric {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.heat-metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  min-width: 140px;
}

.heat-metric-bar {
  flex: 1;
  height: 8px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.heat-metric-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.heat-metric-fill-engagement { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.heat-metric-fill-social { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.heat-metric-fill-meme { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.heat-metric-fill-fanart { background: linear-gradient(90deg, #ec4899, #f472b6); }
.heat-metric-fill-longevity { background: linear-gradient(90deg, #10b981, #34d399); }

.heat-metric-value {
  font-size: var(--text-sm);
  font-weight: 700;
  min-width: 32px;
  text-align: right;
}

/* ========== FAN ECOSYSTEM GRID ========== */
.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.ecosystem-platform {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.ecosystem-platform-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.ecosystem-platform-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.ecosystem-platform-name {
  font-size: var(--text-base);
  font-weight: 700;
}

.ecosystem-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ecosystem-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
  min-height: 48px;
  color: var(--color-text);
}

.ecosystem-link:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary-light);
}

.ecosystem-link-name {
  font-size: var(--text-sm);
  font-weight: 600;
}

.ecosystem-link-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Platform icon colors */
.icon-reddit { background: rgba(255, 69, 0, 0.15); color: #ff4500; }
.icon-instagram { background: rgba(225, 48, 108, 0.15); color: #e1306c; }
.icon-tiktok { background: rgba(0, 242, 234, 0.15); color: #00f2ea; }
.icon-youtube { background: rgba(255, 0, 0, 0.15); color: #ff0000; }
.icon-twitter { background: rgba(29, 161, 242, 0.15); color: #1da1f2; }
.icon-web { background: rgba(124, 58, 237, 0.15); color: #7c3aed; }
.icon-discord { background: rgba(88, 101, 242, 0.15); color: #5865f2; }
.icon-tumblr { background: rgba(54, 70, 93, 0.15); color: #36465d; }

/* ========== YOUTUBE EMBED ========== */
.youtube-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.youtube-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.youtube-facade:hover .youtube-play-btn {
  background: #ff0000;
}

.youtube-play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent white;
  margin-left: 3px;
}

.youtube-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-2);
}

/* ========== FAQ ACCORDION ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
  min-height: 56px;
  gap: var(--space-3);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-primary-light);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-4) var(--space-4);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  padding: var(--space-4) 0;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}

.breadcrumbs-item a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs-item a:hover {
  color: var(--color-primary-light);
}

.breadcrumbs-separator {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.breadcrumbs-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ========== PAGE HERO (Character/Show/Actor) ========== */
.page-hero {
  padding: var(--space-8) 0;
  position: relative;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.page-hero-image {
  width: 200px;
  height: 260px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-xl);
  margin: 0 auto;
}

.page-hero-info {
  text-align: center;
}

.page-hero-info h1 {
  font-size: var(--text-3xl);
  font-weight: 900;
  margin-bottom: var(--space-2);
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.page-hero-meta a {
  color: var(--color-primary-light);
}

.page-hero-meta-divider {
  color: var(--color-text-muted);
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
}

.content-section:first-of-type {
  border-top: none;
}

.content-section h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.content-section h2 .section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.character-arc p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

/* Key Episodes */
.episodes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.episode-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.episode-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1.2;
}

.episode-info h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.episode-info p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ========== TRENDING / SCROLL SECTIONS ========== */
.scroll-section {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
}

.scroll-section::-webkit-scrollbar {
  display: none;
}

.scroll-row {
  display: flex;
  gap: var(--space-4);
  min-width: max-content;
}

.scroll-row .card {
  width: 260px;
  flex-shrink: 0;
}

/* ========== FAN HEAT LEADERS ========== */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-fast);
  min-height: 56px;
}

.leaderboard-item:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-card-hover);
  color: var(--color-text);
}

.leaderboard-rank {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text-muted);
  min-width: 28px;
  text-align: center;
}

.leaderboard-rank.top-3 {
  color: var(--color-gold);
}

.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.leaderboard-info {
  flex: 1;
  min-width: 0;
}

.leaderboard-name {
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-show {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.leaderboard-score {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* ========== DIRECTORY / FILTER PAGE ========== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  min-height: 40px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ========== SEARCH PAGE ========== */
.search-page {
  padding: var(--space-8) 0;
}

.search-page .search-container {
  max-width: 100%;
  margin-bottom: var(--space-8);
}

.search-results-count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.search-result-group {
  margin-bottom: var(--space-8);
}

.search-result-group h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

/* ========== IMAGE WITH ATTRIBUTION ========== */
.image-attributed {
  position: relative;
  display: inline-block;
}

.image-attribution {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-1) var(--space-2);
  background: rgba(0, 0, 0, 0.7);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-6);
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  line-height: 1.6;
}

.footer-nav h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========== 404 PAGE ========== */
.not-found {
  text-align: center;
  padding: var(--space-20) 0;
}

.not-found h1 {
  font-size: var(--text-5xl);
  font-weight: 900;
  margin-bottom: var(--space-4);
}

.not-found p {
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 48px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.1);
  color: var(--color-primary-light);
}

/* ========== SHOW PAGE CHARACTER GRID ========== */
.character-list-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.character-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-fast);
  min-height: 80px;
}

.character-list-item:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-card-hover);
  color: var(--color-text);
}

.character-list-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.character-list-info {
  flex: 1;
  min-width: 0;
}

.character-list-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.character-list-actor {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ========== ACTOR PAGE ========== */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.role-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.role-card:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.role-card-info h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.role-card-show {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.role-card-years {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Social links */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  min-height: 40px;
}

.social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-light);
}

/* ========== VIDEOS GRID ========== */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* ========== RELATED ITEMS ========== */
.related-section {
  padding: var(--space-8) 0;
}

/* ========== SKELETON / PLACEHOLDER STYLES ========== */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-surface) 50%, var(--color-bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-4xl);
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet (640px+) */
@media (min-width: 640px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  .hero h1 { font-size: var(--text-5xl); }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .videos-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero-content {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-hero-image { margin: 0; }

  .page-hero-info {
    text-align: left;
  }

  .page-hero-meta {
    justify-content: flex-start;
  }

  .character-list-compact {
    grid-template-columns: repeat(2, 1fr);
  }

  .heat-breakdown {
    grid-template-columns: 1fr 1fr;
  }

  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }

  .hero h1 { font-size: 3.5rem; }

  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .card-grid-5 { grid-template-columns: repeat(5, 1fr); }

  .ecosystem-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }

  .page-hero-image {
    width: 240px;
    height: 320px;
  }

  .page-hero-info h1 { font-size: var(--text-4xl); }

  .character-list-compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .videos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }

  .character-list-compact { grid-template-columns: repeat(4, 1fr); }
}

/* ========== QUOTES & TRIVIA ========== */
.quotes-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.character-quote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.character-quote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 var(--space-2);
}

.character-quote cite {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-style: normal;
  display: block;
}

.trivia-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trivia-item {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  line-height: 1.6;
  position: relative;
  padding-left: var(--space-8);
}

.trivia-item::before {
  content: "★";
  position: absolute;
  left: var(--space-3);
  color: var(--color-primary);
  font-size: var(--text-base);
}

/* ========== PRINT STYLES ========== */
@media print {
  .header, .footer, .mobile-nav, .search-container, .youtube-facade { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .card { border: 1px solid #ccc; }
}
