:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --gold: #c9a227;
  --text: #eaeaea;
  --text-muted: #a0a0a0;
  --bg: #0f0f1a;
  --card-bg: #1a1a2e;
  --border: #2a2a4a;
  --comics: #2d5a27;
  --tv: #5a2727;
  --movies: #27415a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Community Banner */
.community-banner {
  background: linear-gradient(90deg, var(--gold) 0%, #d4a84b 100%);
  color: var(--primary);
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.community-banner a {
  color: var(--primary);
  text-decoration: underline;
}

.community-banner a:hover {
  color: var(--secondary);
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-bottom: 3px solid var(--gold);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: var(--gold);
}

/* Language Switcher */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

/* Forum Button */
.btn-forum {
  background: var(--gold);
  color: var(--primary) !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-forum:hover {
  background: #d4a84b;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-forum::after {
  display: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--bg) 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.hero-logo {
  height: 160px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero h1 span {
  color: var(--gold);
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
  line-height: 1;
}

.btn svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
}

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

.btn-primary:hover {
  background: #d4a84b;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold);
  color: var(--primary);
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* Media Sections - Home Page */
.media-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.media-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.media-section.comics { border-top: 4px solid var(--comics); }
.media-section.tv { border-top: 4px solid var(--tv); }
.media-section.movies { border-top: 4px solid var(--movies); }

.media-header {
  padding: 1.5rem;
  text-align: center;
  background: var(--secondary);
}

.media-header h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.media-header .count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.media-preview {
  padding: 1.5rem;
}

.media-preview p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.preview-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--secondary);
  border-radius: 6px;
  font-size: 0.9rem;
}

.preview-item .number {
  background: var(--gold);
  color: var(--primary);
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.preview-item .title {
  color: var(--text);
}

.preview-item .year {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 0.85rem;
}

.media-cta {
  text-align: center;
}

.media-cta a {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 500;
  transition: all 0.2s ease;
}

.media-cta a:hover {
  background: var(--gold);
  color: var(--primary);
  border-color: var(--gold);
}

/* Album Grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.album-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.album-cover {
  aspect-ratio: 3/4;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

.album-info {
  padding: 1rem;
}

.album-info .number {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

.album-info h3 {
  font-size: 1rem;
  margin: 0.25rem 0;
  color: var(--text);
}

.album-info .year {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Episode List */
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.episode-item {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.episode-item:hover {
  background: var(--secondary);
}

.episode-number {
  background: var(--secondary);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.episode-info h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.episode-info .summary {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.episode-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Season Header */
.season-header {
  background: var(--secondary);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 2rem 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.season-header h2 {
  font-size: 1.3rem;
  margin: 0;
}

.season-header h2::before {
  display: none;
}

.season-header .episode-count {
  color: var(--text-muted);
}

/* Movie Card */
.movie-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.movie-poster {
  aspect-ratio: 2/3;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gold);
}

.movie-details {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.movie-details h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.movie-details h2::before {
  display: none;
}

.movie-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.movie-details p {
  margin-bottom: 1rem;
}

/* Cast Grid */
.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.cast-member {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--secondary);
  border-radius: 6px;
}

.cast-avatar {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.cast-info .actor {
  font-weight: 500;
  color: var(--text);
}

.cast-info .role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Content Sections */
section {
  margin-bottom: 3rem;
}

section > h2 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section > h2::before {
  content: '';
  width: 4px;
  height: 1.5rem;
  background: var(--gold);
  border-radius: 2px;
}

.content-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-section h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.content-section p {
  margin-bottom: 1rem;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  color: var(--accent);
  font-weight: 500;
}

.card-link:hover {
  color: var(--gold);
}

/* Info Box */
.info-box {
  background: var(--secondary);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box h4 {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* Quick Facts */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.fact {
  background: var(--secondary);
  padding: 1rem;
  border-radius: 6px;
}

.fact-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fact-value {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Character Cards */
.character-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.character-icon {
  width: 60px;
  height: 60px;
  background: var(--secondary);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.character-info h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.character-info .role {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gold);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline-year {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: var(--primary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.footer-section a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Intro Text */
.intro-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.intro-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Community Section */
.community-highlight {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.community-highlight h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.community-highlight h2::before {
  display: none;
}

.community-highlight p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .media-sections {
    grid-template-columns: 1fr;
  }

  .movie-card {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .lang-switch {
    margin: 0;
    padding: 0;
    border: none;
  }

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

  .movie-card {
    grid-template-columns: 1fr;
  }

  .movie-poster {
    height: 200px;
  }

  .movie-details {
    padding: 1.5rem;
  }

  .episode-item {
    grid-template-columns: 40px 1fr;
  }

  .episode-date {
    display: none;
  }

  .character-card {
    flex-direction: column;
    text-align: center;
  }

  .character-icon {
    margin: 0 auto;
  }

  .community-highlight {
    padding: 2rem 1.5rem;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 150;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav ul li a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  nav ul li a::after {
    display: none;
  }

  .btn-forum {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
  }

  .lang-switch {
    margin-top: 1rem;
    padding-top: 1rem;
    border-left: none;
    border-top: 1px solid var(--border);
    justify-content: center;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 140;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
