/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Particle Background */
.particle-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #00d4ff, #ff6b6b);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  top: 30%;
  left: 70%;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  top: 70%;
  left: 10%;
  animation-delay: 3s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Header Styles */
.game-header {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
}

.main-title {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.title-line {
  display: block;
  background: linear-gradient(45deg, #00d4ff, #ff6b6b, #00ff88);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.subtitle {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  color: #00d4ff;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

/* Stats Panel */
.stats-panel {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(5px);
  min-width: 120px;
}

.stat-number {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: #cccccc;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

/* Control Panel */
.control-panel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.control-btn {
  font-family: 'Orbitron', monospace;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 107, 107, 0.2));
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.control-btn:hover {
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.4), rgba(255, 107, 107, 0.4));
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

/* Search Container */
.search-container {
  display: none;
  justify-content: center;
  padding: 1rem;
  animation: slideDown 0.3s ease;
}

.search-container.active {
  display: flex;
}

#search-input {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 25px;
  width: 300px;
  max-width: 80vw;
  font-size: 1rem;
  outline: none;
}

#search-input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

#search-close {
  background: rgba(255, 107, 107, 0.8);
  border: none;
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
  margin-left: 1rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Character Arena */
.character-arena {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Character Cards */
.character-card {
  width: 280px;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: scale(1.05);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.character-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 107, 0.1));
  border: 2px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(255, 107, 107, 0.12), rgba(0, 255, 136, 0.12));
  border: 2px solid rgba(255, 107, 107, 0.35);
  padding: 1rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-back-image {
  position: relative;
  width: 100%;
  height: 110px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-back-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.card-back:hover .card-back-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Character Avatar */
.character-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0, 212, 255, 0.5);
}

.character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.character-card:hover .character-avatar img {
  transform: scale(1.1);
}

.avatar-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00d4ff, #ff6b6b);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.character-card:hover .avatar-glow {
  opacity: 0.7;
}

/* Coming Soon Placeholder */
.coming-soon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
}

/* Character Info */
.character-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 0.5rem;
}

.character-title {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 1rem;
  font-style: italic;
  text-align: left;
}

/* Power Level */
.power-level {
  margin-top: auto;
}

.power-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.power-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #00ff88);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.power-text {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: #00ff88;
  font-weight: 600;
}

/* Card Back Content */
/* Card Back Content Styles */
.card-back .character-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.card-back .character-preview h4 {
  font-family: 'Orbitron', monospace;
  color: #ff6b6b;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
  flex-shrink: 0;
}

.card-back .character-preview ul {
  list-style: none;
  margin-bottom: 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  min-height: 0;
}

.card-back .character-preview li {
  padding: 0.2rem 0;
  color: #e0e0e0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
}

.card-back .character-preview li:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.card-back .character-preview li:before {
  content: "⚡";
  color: #00ff88;
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  flex-shrink: 0;
}

.card-back .enter-btn {
  background: linear-gradient(45deg, #ff6b6b, #00ff88);
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 18px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.card-back .enter-btn:hover {
  box-shadow:
    0 0 20px rgba(255, 107, 107, 0.4),
    0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  background: linear-gradient(45deg, #ff8a8a, #33ff99);
}

/* Placeholder Cards */
.character-card.placeholder {
  opacity: 0.6;
}

.character-card.placeholder:hover {
  transform: none;
}

.character-card.placeholder .card-inner {
  transform: none !important;
}

/* Footer */
.game-footer {
  text-align: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(0, 212, 255, 0.3);
  margin-top: 2rem;
}

.game-footer p {
  color: #cccccc;
  font-size: 0.9rem;
}

/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .character-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .character-card {
    width: 250px;
    height: 320px;
  }

  .stats-panel {
    gap: 1rem;
  }

  .control-panel {
    gap: 0.5rem;
  }

  .control-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .character-grid {
    grid-template-columns: 1fr;
  }

  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}

/ *=====CHARACTER PAGE STYLES=====*/
/* Character Page Body */
.character-page {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  min-height: 100vh;
}

/* Character Navigation */
.character-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(0, 212, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00d4ff;
  text-decoration: none;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.back-icon {
  font-size: 1.2rem;
}

.nav-title {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

/* Character Hero Section */
.character-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.4);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 107, 107, 0.2));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  padding: 2rem;
  text-align: center;
}

/* Character Avatar Large */
.character-avatar-large {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.character-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 4px solid;
  border-image: linear-gradient(45deg, #00d4ff, #ff6b6b, #00ff88) 1;
  border-radius: 50%;
  animation: rotate-border 3s linear infinite;
}

@keyframes rotate-border {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.power-indicator {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: linear-gradient(45deg, #ff6b6b, #00ff88);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(0, 0, 0, 0.8);
}

.power-level-display {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.power-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 1px;
}

/* Character Header Info */
.character-header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.character-main-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #00d4ff, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.character-subtitle {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
}

.character-status {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.status-badge.active {
  background: linear-gradient(45deg, #00ff88, #00d4ff);
  color: #000000;
}

.threat-level {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  color: #ff6b6b;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Character Main Content */
.character-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Panel Base Styles */
.info-panel,
.abilities-panel,
.description-panel,
.timeline-panel,
.battles-panel,
.media-panel,
.network-panel {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(255, 107, 107, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.info-panel:hover,
.abilities-panel:hover,
.description-panel:hover,
.timeline-panel:hover,
.battles-panel:hover,
.media-panel:hover,
.network-panel:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.panel-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: 1px;
}

.panel-icon {
  font-size: 1.5rem;
}

/* Info Panel */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.info-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #00ff88;
  letter-spacing: 1px;
}

.info-value {
  color: #ffffff;
  font-size: 0.9rem;
}

.info-value a {
  color: #00d4ff;
  text-decoration: none;
}

.info-value a:hover {
  text-decoration: underline;
}

/* Abilities Panel */
.abilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.ability-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 107, 107, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.ability-card:hover {
  border-color: rgba(255, 107, 107, 0.5);
  transform: translateY(-5px);
}

.ability-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ability-card h3 {
  font-family: 'Orbitron', monospace;
  color: #ff6b6b;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.ability-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.ability-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #00ff88);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ability-card p {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Description Panel */
.language-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.lang-btn {
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: #ffffff;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: #00d4ff;
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

.lang-content p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.lang-content blockquote {
  background: rgba(0, 212, 255, 0.1);
  border-left: 4px solid #00d4ff;
  padding: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: #cccccc;
}

/* Timeline Panel */
.timeline-container {
  position: relative;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 60px;
  top: 60px;
  width: 2px;
  height: calc(100% + 2rem);
  background: linear-gradient(180deg, #00d4ff, #ff6b6b);
}

.timeline-year {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 1rem;
}

.timeline-content h4 {
  font-family: 'Orbitron', monospace;
  color: #00d4ff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.timeline-content p {
  color: #cccccc;
  line-height: 1.5;
}

/* Battle Records Panel */
.battle-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  min-width: 100px;
}

.stat-number {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.stat-label {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: #cccccc;
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.battle-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.battle-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.battle-item.win {
  border-color: rgba(0, 255, 136, 0.3);
}

.battle-item.loss {
  border-color: rgba(255, 107, 107, 0.3);
}

.battle-item:hover {
  transform: translateX(10px);
}

.battle-result {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.battle-item.win .battle-result {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border: 2px solid #00ff88;
}

.battle-item.loss .battle-result {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
}

.battle-info h4 {
  font-family: 'Orbitron', monospace;
  color: #00d4ff;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.battle-info p {
  color: #cccccc;
  font-size: 0.9rem;
}

.battle-info a {
  color: #00d4ff;
  text-decoration: none;
}

.battle-info a:hover {
  text-decoration: underline;
}

/* Media Panel */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.5);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Network Panel */
.network-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.network-node.main-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.network-node.main-node img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #00d4ff;
}

.network-node.main-node span {
  font-family: 'Orbitron', monospace;
  color: #00d4ff;
  font-weight: 600;
}

.network-connections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  width: 100%;
}

.connection-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.connection-line {
  width: 2px;
  height: 50px;
  background: linear-gradient(180deg, transparent, #cccccc, transparent);
}

.connection-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.node-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #cccccc;
}

.connection-item.ally .node-placeholder {
  border-color: #00ff88;
  color: #00ff88;
}

.connection-item.rival .node-placeholder {
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.connection-node span {
  font-family: 'Orbitron', monospace;
  color: #ffffff;
  font-size: 0.9rem;
}

.connection-type {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

.connection-item.ally .connection-type {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
}

.connection-item.rival .connection-type {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.connection-item.neutral .connection-type {
  background: rgba(204, 204, 204, 0.2);
  color: #cccccc;
}

/* Responsive Design for Character Page */
@media (max-width: 768px) {
  .character-nav {
    padding: 1rem;
  }

  .nav-title {
    font-size: 0.9rem;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .character-avatar-large {
    width: 150px;
    height: 150px;
  }

  .power-indicator {
    width: 60px;
    height: 60px;
  }

  .power-level-display {
    font-size: 1.2rem;
  }

  .character-main {
    padding: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .abilities-grid {
    grid-template-columns: 1fr;
  }

  .battle-stats {
    gap: 1rem;
  }

  .timeline-item {
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-item::after {
    display: none;
  }

  .network-connections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .character-hero {
    height: 50vh;
    min-height: 300px;
  }

  .character-main-name {
    font-size: 1.8rem;
  }

  .character-subtitle {
    font-size: 1rem;
  }

  .panel-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* 
Character Footer */
.character-footer {
  background: rgba(0, 0, 0, 0.8);
  border-top: 2px solid rgba(0, 212, 255, 0.3);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-content p {
  color: #cccccc;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-content a {
  color: #00d4ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links span {
  color: #666666;
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-links span {
    display: none;
  }
}

/ *=====RELATED CHARACTERS PANEL STYLES=====*/
/* Related Panel */
.related-panel {
  background: linear-gradient(145deg, rgba(0, 255, 136, 0.05), rgba(0, 212, 255, 0.05));
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.related-panel:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

/* Related Characters Grid */
.related-characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

/* Related Character Card */
.related-character-card {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.related-character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.related-character-card:hover::before {
  left: 100%;
}

.related-character-card:hover {
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

/* Character Preview */
.character-preview {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

/* Character Avatar Small */
.character-avatar-small {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 212, 255, 0.3);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 107, 0.1));
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: #00d4ff;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.related-character-card:hover .avatar-placeholder {
  color: #ffffff;
  background: rgba(0, 212, 255, 0.3);
  transform: scale(1.1);
}

/* Character Details */
.character-details {
  flex: 1;
}

.character-details h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: #00d4ff;
  margin-bottom: 0.3rem;
  transition: color 0.3s ease;
}

.related-character-card:hover .character-details h3 {
  color: #ffffff;
}

.character-role {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  color: #00ff88;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.character-desc {
  color: #cccccc;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* Relationship Indicator */
.relationship-indicator {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid;
  transition: all 0.3s ease;
}

.relationship-indicator.rival {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
  border-color: #ff6b6b;
}

.relationship-indicator.ally {
  background: rgba(0, 255, 136, 0.2);
  color: #00ff88;
  border-color: #00ff88;
}

.relationship-indicator.neutral {
  background: rgba(204, 204, 204, 0.2);
  color: #cccccc;
  border-color: #cccccc;
}

.relationship-indicator.defeated {
  background: rgba(255, 165, 0, 0.2);
  color: #ffa500;
  border-color: #ffa500;
}

.related-character-card:hover .relationship-indicator {
  box-shadow: 0 0 10px currentColor;
  transform: scale(1.05);
}

/* View Character Button */
.view-character-btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 107, 107, 0.2));
  border: 2px solid rgba(0, 212, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  border-radius: 25px;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.view-character-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.view-character-btn:hover::before {
  left: 100%;
}

.view-character-btn:hover {
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.4), rgba(255, 107, 107, 0.4));
  border-color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.view-character-btn:active {
  transform: translateY(0);
}

/* Responsive Design for Related Panel */
@media (max-width: 768px) {
  .related-characters-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-character-card {
    padding: 1rem;
  }

  .character-preview {
    gap: 0.8rem;
  }

  .character-avatar-small {
    width: 50px;
    height: 50px;
  }

  .avatar-placeholder {
    font-size: 1rem;
  }

  .character-details h3 {
    font-size: 1rem;
  }

  .character-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .related-characters-grid {
    grid-template-columns: 1fr;
  }

  .character-preview {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .character-avatar-small {
    width: 60px;
    height: 60px;
  }
}

/* Animation for related character cards */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.related-character-card {
  animation: slideInFromBottom 0.6s ease forwards;
}

.related-character-card:nth-child(1) {
  animation-delay: 0.1s;
}

.related-character-card:nth-child(2) {
  animation-delay: 0.2s;
}

.related-character-card:nth-child(3) {
  animation-delay: 0.3s;
}

.related-character-card:nth-child(4) {
  animation-delay: 0.4s;
}

/* ==
=== LEGACY CONTENT SECTIONS STYLES ===== */

/* Legacy sections styling to match the panel design */
#backstory,
#battles,
#quotes,
#theories {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(255, 107, 107, 0.05));
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

#backstory:hover,
#battles:hover,
#quotes:hover,
#theories:hover {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Section headers */
#backstory h2,
#battles h2,
#quotes h2,
#theories h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: #00d4ff;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  position: relative;
}

#backstory h2::after,
#battles h2::after,
#quotes h2::after,
#theories h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #ff6b6b);
}

/* Battle section specific styling */
#battles h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ff6b6b;
  margin: 1.5rem 0 0.8rem 0;
  padding-left: 1rem;
  border-left: 3px solid #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  padding: 0.5rem 0 0.5rem 1rem;
  border-radius: 0 8px 8px 0;
}

/* Paragraph styling */
#backstory p,
#battles p,
#theories p {
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

#backstory em {
  color: #00ff88;
  font-style: italic;
  font-weight: 600;
}

/* Links styling */
#battles a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

#battles a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #ff6b6b);
  transition: width 0.3s ease;
}

#battles a:hover::after {
  width: 100%;
}

#battles a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Quotes section styling */
#quotes blockquote {
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 107, 0.1));
  border: none;
  border-left: 4px solid #00d4ff;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #cccccc;
  border-radius: 0 10px 10px 0;
  position: relative;
  font-size: 1.1rem;
  line-height: 1.5;
}

#quotes blockquote::before {
  content: '"';
  font-size: 3rem;
  color: rgba(0, 212, 255, 0.3);
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: 'Orbitron', monospace;
}

#quotes blockquote strong {
  color: #00ff88;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

/* Theories section list styling */
#theories ul {
  list-style: none;
  padding: 0;
}

#theories li {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  color: #ffffff;
  line-height: 1.5;
  position: relative;
  transition: all 0.3s ease;
}

#theories li::before {
  content: '🔍';
  position: absolute;
  left: -10px;
  top: -5px;
  background: rgba(0, 212, 255, 0.2);
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

#theories li:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.05);
  transform: translateX(10px);
}

#theories li em {
  color: #00ff88;
  font-style: italic;
  font-weight: 600;
}

/* Responsive design for legacy sections */
@media (max-width: 768px) {

  #backstory,
  #battles,
  #quotes,
  #theories {
    margin: 1rem;
    padding: 1.5rem;
  }

  #backstory h2,
  #battles h2,
  #quotes h2,
  #theories h2 {
    font-size: 1.1rem;
  }

  #battles h3 {
    font-size: 1rem;
  }

  #quotes blockquote {
    padding: 1rem;
    font-size: 1rem;
  }

  #quotes blockquote::before {
    font-size: 2rem;
    top: -5px;
  }

  #theories li {
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {

  #backstory,
  #battles,
  #quotes,
  #theories {
    margin: 0.5rem;
    padding: 1rem;
  }

  #backstory h2,
  #battles h2,
  #quotes h2,
  #theories h2 {
    font-size: 1rem;
  }

  #battles h3 {
    font-size: 0.9rem;
    padding: 0.3rem 0 0.3rem 0.8rem;
  }

  #quotes blockquote {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  #theories li::before {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
}

/* Animation for legacy sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#backstory,
#battles,
#quotes,
#theories {
  animation: fadeInUp 0.6s ease forwards;
}

#backstory {
  animation-delay: 0.1s;
}

#battles {
  animation-delay: 0.2s;
}

#quotes {
  animation-delay: 0.3s;
}

#theories {
  animation-delay: 0.4s;
}