@font-face {
  font-family: 'Press Start 2P';
  src: url(/fonts/press-start-2p-v16.78a190b9.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sawarabi Mincho';
  src: url(/fonts/sawarabi-mincho-1.c08e8ef9.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sawarabi Mincho';
  src: url(/fonts/sawarabi-mincho-2.d78597f9.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sawarabi Mincho';
  src: url(/fonts/sawarabi-mincho-3.153a70ba.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Sawarabi Mincho';
  src: url(/fonts/sawarabi-mincho-4.0f6222ff.woff2) format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url(/fonts/roboto-v51-1.ee07f3bd.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url(/fonts/roboto-v51-2.b6009e20.woff2) format('woff2');
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg-color: #120458;
  --text-color: #ffffff;
  --accent-color: #ff00ff; /* Magenta */
  --secondary-color: #00ffff; /* Cyan */
  --highlight-color: #ffcc00; /* Yellow */
  --shadow-color: rgba(0, 0, 0, 0.5);
  --font-retro: 'Press Start 2P', cursive;
  --font-jp: 'Sawarabi Mincho', serif;
  --font-main: 'Roboto', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Effets CRT */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 100%),
              linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  pointer-events: none;
  background-size: 100% 100%, 100% 2px, 3px 100%;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 16, 16, 0) 0%,
    rgba(18, 16, 16, 0.1) 50%,
    rgba(18, 16, 16, 0) 100%
  );
  background-size: 100% 4px;
  z-index: 9998;
  pointer-events: none;
  animation: scanline 10s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

header {
  background: linear-gradient(to bottom, #000, transparent);
  padding: 2rem 0;
  text-align: center;
  border-bottom: 2px solid var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}

.logo-jp {
  font-family: var(--font-retro);
  font-size: 1.5rem;
  color: var(--secondary-color);
  text-shadow: 3px 3px var(--accent-color), 0 0 10px var(--secondary-color);
  margin-bottom: 1rem;
}

.subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--highlight-color);
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-retro);
  font-size: 0.7rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.main-nav a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color);
}

.inline-link {
  color: var(--secondary-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--secondary-color);
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: var(--highlight-color);
  border-bottom: 1px solid var(--highlight-color);
  text-shadow: 0 0 5px var(--highlight-color);
}

.inline-link[href^="http"] {
  display: inline-flex;
  align-items: center;
  gap: 0.3ch;
}

.inline-link[href^="http"]::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27black%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6%27%3E%3C/path%3E%3Cpolyline points=%2715 3 21 3 21 9%27%3E%3C/polyline%3E%3Cline x1=%2710%27 y1=%2714%27 x2=%2721%27 y2=%273%27%3E%3C/line%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-size: contain;
  vertical-align: middle;
}

/* Hero Section */
#hero {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.sun {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: linear-gradient(to bottom, #ffcc00, #ff00ff);
  border-radius: 50%;
  box-shadow: 0 0 50px #ff00ff;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 70%); /* Half sun for effect */
}

.grid {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 100%;
  left: -50%;
  background-image:
    linear-gradient(var(--accent-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-color) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(300px) rotateX(60deg);
  animation: grid-move 5s linear infinite;
}

@keyframes grid-move {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}

.city-skyline {
  position: absolute;
  bottom: 20%;
  width: 100%;
  height: 200px;
  background-image: url(/img/skyline.f5ee11b8.svg);
  background-repeat: repeat-x;
  background-position: bottom;
  background-size: 1000px 200px;
  z-index: -1;
  opacity: 0.7;
}

.hero-text p {
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Reference Sites Section */
.reference-sites {
  margin: 3rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--secondary-color);
}

.reference-sites h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}

.reference-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.reference-list li {
  font-size: 0.95rem;
}

.hero-links .program-card {
  min-width: 250px;
  padding: 1.5rem;
}

.main-nav a.active {
  color: var(--highlight-color);
  text-shadow: 0 0 10px var(--highlight-color);
  border-bottom: 2px solid var(--highlight-color);
}

/* Sections */
.content-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 4px double var(--secondary-color);
  padding-bottom: 1rem;
  position: relative;
}

.section-title h2 {
  font-family: var(--font-retro);
  font-size: 1.5rem;
  color: var(--highlight-color);
}

#legal .section-title h2 {
  color: #fff;
  font-size: 1.2rem;
}

.section-title-character {
  position: absolute;
  right: 0;
  bottom: -110px;
  height: 260px;
  width: auto;
  max-width: 40vw;
  pointer-events: none;
}

.jp {
  font-family: var(--font-jp);
}

h3 {
  font-family: var(--font-retro);
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

/* Cards */
.history-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--secondary-color);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  height: 100%;
}

.card-link:hover .card {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--secondary-color);
  border-color: var(--accent-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--secondary-color);
}

.card h4 {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  color: var(--highlight-color);
  margin-bottom: 1rem;
}

.more-info {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-retro);
  font-size: 0.6rem;
  color: var(--accent-color);
  text-align: right;
}

/* Mes Programmes */
.programs-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.program-card {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(45deg, #120458, #4b0082);
  border: 3px solid var(--accent-color);
  padding: 2rem;
  text-decoration: none;
  color: #fff;
  text-align: center;
  transition: all 0.3s;
}

.program-card:hover {
  box-shadow: 0 0 20px var(--accent-color);
  transform: scale(1.02);
}

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

.program-card h4 {
  font-family: var(--font-retro);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.link-label {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--accent-color);
  font-family: var(--font-retro);
  font-size: 0.6rem;
}

/* Animations additionnelles */
@keyframes flicker {
  0% { opacity: 0.97; }
  5% { opacity: 0.95; }
  10% { opacity: 0.9; }
  15% { opacity: 0.95; }
  20% { opacity: 0.98; }
  25% { opacity: 0.95; }
  30% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* Utilities */
.hidden { display: none; }

footer {
  background: #000;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-retro);
  font-size: 0.7rem;
  border-top: 1px solid var(--accent-color);
  position: relative;
}

.legal-content h3 {
  margin-top: 2rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

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

.legal-content p img {
  vertical-align: middle;
  margin-left: 10px;
}

footer p a {
  color: #fff;
  font-size: 0.65rem;
  text-decoration: none;
  transition: color 0.3s;
}

footer p a:hover {
  color: var(--secondary-color);
  text-shadow: 0 0 8px var(--secondary-color);
  text-decoration: none;
}

.music-control {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#music-toggle {
  background: #222;
  color: #fff;
  border: 1px solid var(--secondary-color);
  padding: 8px 12px;
  font-family: var(--font-retro);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  box-shadow: 0 0 5px var(--secondary-color);
}

#music-toggle:hover {
  background: var(--secondary-color);
  color: #000;
  box-shadow: 0 0 15px var(--secondary-color);
}

#music-toggle.playing {
  border-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
}

#music-toggle.playing:hover {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-color);
}

@media (max-width: 768px) {
  #hero {
    height: auto;
    padding: 6rem 1rem;
  }
  .hero-links, .programs-grid {
    flex-direction: column;
    align-items: center;
  }
  .hero-links .program-card, .programs-grid .program-card {
    min-width: 100%;
    max-width: 400px;
    padding: 1.2rem;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  footer {
    padding-bottom: 5rem;
  }
  .music-control {
    position: static;
    transform: none;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }
  .reference-list {
    grid-template-columns: 1fr;
  }
  .section-title-character {
    height: 120px;
    bottom: -51px;
  }
}

@media (max-width: 450px) {
  .section-title-character {
    display: none;
  }
}


/* --- Subpages Styles --- */
.featured-articles {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card {
  background: rgba(18, 4, 88, 0.6);
  border: 1px solid var(--secondary-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.article-card:hover {
  background: rgba(18, 4, 88, 0.9);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transform: translateY(-5px);
}

.article-card:hover::before {
  transform: translateX(100%);
}

.article-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.article-category {
  font-family: var(--font-retro);
  font-size: 0.5rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-jp {
  font-family: var(--font-jp);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.article-card h4 {
  font-family: var(--font-retro);
  font-size: 0.9rem;
  color: var(--highlight-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-card p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-article {
  font-family: var(--font-retro);
  font-size: 0.6rem;
  color: var(--secondary-color);
  text-align: right;
  transition: all 0.3s;
}

.article-card:hover .read-article {
  color: var(--accent-color);
  text-shadow: 0 0 5px var(--accent-color);
}

.subpage-header {
  text-align: center;
  margin-bottom: 2rem;
}
.subpage-image-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  clear: both;
}
.subpage-image-container.align-left {
  justify-content: flex-start;
}
.subpage-image-container.align-right {
  justify-content: flex-end;
}
.subpage-image-container.align-center {
  justify-content: center;
}
.subpage-image-container.float-left {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    max-width: 50%;
    clear: left;
}
.subpage-image-container.float-right {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    max-width: 50%;
    clear: right;
}
.subpage-card-img {
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  max-width: 100%;
  height: auto;
  background: #000;
  padding: 5px;
}
.subpage-specs {
  background: rgba(0, 0, 0, 0.5);
  border-left: 5px solid var(--secondary-color);
  padding: 1rem;
  margin: 2rem 0;
}
.subpage-specs h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}
.subpage-specs ul {
    list-style: none;
    padding-left: 0;
}
.subpage-specs li {
    margin-bottom: 0.3rem;
    font-family: var(--font-main);
}
.subpage-specs li strong {
    color: var(--highlight-color);
}

/* --- Code Box --- */
.code-box {
  margin: 2rem 0;
}
.code-box h4 {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}
.code-box-container {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--secondary-color);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}
.code-box-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--secondary-color);
  overflow-x: auto;
}
.code-tab {
  background: transparent;
  border: none;
  color: #888;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-family: var(--font-retro);
  font-size: 0.6rem;
  transition: all 0.3s;
  white-space: nowrap;
}
.code-tab:hover {
  color: #fff;
}
.code-tab.active {
  color: var(--highlight-color);
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid var(--highlight-color);
}
.code-box-content {
  padding: 1.5rem;
}
.code-box-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier New', Courier, monospace;
  color: var(--secondary-color);
  font-size: 0.9rem;
  line-height: 1.4;
}
.code-description {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 255, 255, 0.3);
  font-size: 0.9rem;
  color: #ddd;
}
.code-description strong {
  color: var(--highlight-color);
}
.details-text {
    margin-bottom: 2rem;
}
.concept-box {
  margin-bottom: 2rem;
}
.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--font-retro);
    font-size: 0.7rem;
}
.back-link:hover {
    text-shadow: 0 0 5px var(--secondary-color);
}

/* --- Playlist --- */
.playlist-box {
  background: rgba(255, 0, 255, 0.1);
  border: 2px dashed var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
}
.playlist-box h4 {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.playlist-box ul {
  list-style: none;
  padding-left: 0;
}
.playlist-box li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.playlist-box li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* --- Artist --- */
.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.artist-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--secondary-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.artist-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--secondary-color);
}
.artist-card h4 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  font-family: var(--font-retro);
  font-size: 0.8rem;
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid var(--highlight-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--highlight-color);
}
.stat-card h4 {
  color: var(--highlight-color);
  margin-bottom: 0.5rem;
  font-family: var(--font-retro);
  font-size: 0.8rem;
}
.stat-value {
  font-family: var(--font-retro);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* --- Luxury list --- */
.luxury-list {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--accent-color);
  padding: 1.5rem;
  margin: 2rem 0;
}
.luxury-list h4 {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.luxury-list ul {
  list-style: none;
  padding-left: 0;
}
.luxury-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}
.luxury-list li::before {
  content: "💰";
  position: absolute;
  left: 0;
}

/* --- District --- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.district-card {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid var(--secondary-color);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.district-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color);
}
.district-card h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-family: var(--font-retro);
  font-size: 0.8rem;
}

/* --- Neon quote --- */
.neon-quote {
  font-family: var(--font-jp);
  font-size: 1.5rem;
  text-align: center;
  margin: 3rem 0;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color);
}

/* --- Manga --- */
.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.manga-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--secondary-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.manga-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--secondary-color);
}
.manga-card h4 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  font-family: var(--font-retro);
  font-size: 0.8rem;
}

/* --- Info box --- */
.info-box {
  background: rgba(255, 204, 0, 0.1);
  border: 2px solid var(--highlight-color);
  padding: 1.5rem;
  margin: 2rem 0;
}
.info-box h4 {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--highlight-color);
}
.info-box ul {
  list-style: none;
  padding-left: 0;
}
.info-box li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}
.info-box li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* --- Anime --- */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.anime-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--secondary-color);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}
.anime-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--secondary-color);
}
.anime-card h4 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  font-family: var(--font-retro);
  font-size: 0.8rem;
}

/* --- Studio --- */
.studio-box {
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid var(--secondary-color);
  padding: 1.5rem;
  margin: 2rem 0;
}
.studio-box h4 {
  font-family: var(--font-retro);
  font-size: 0.8rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}
.studio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding-left: 0;
}
.studio-list li {
  background: var(--bg-color);
  border: 1px solid var(--accent-color);
  padding: 0.5rem 1rem;
  font-family: var(--font-retro);
  font-size: 0.6rem;
  color: var(--accent-color);
}

/* --- Image Modal --- */
.image-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: zoom-out;
  backdrop-filter: blur(5px);
}

.image-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: modalFadeIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-modal-image-container {
  display: table;
  width: auto;
  margin: 0 auto;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.image-modal-img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid var(--accent-color);
  box-shadow: 0 0 30px var(--accent-color);
  object-fit: contain;
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s;
  font-family: var(--font-retro);
}

.image-modal-close:hover {
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-color);
}

.image-modal-caption {
  display: table-caption;
  caption-side: bottom;
  color: #fff;
  font-family: var(--font-main);
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--secondary-color);
  box-sizing: border-box;
  margin-top: 1rem;
  width: 100%;
}

.zoomable {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.zoomable:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px var(--accent-color);
}

@media (max-width: 768px) {
  .image-modal-close {
    top: -50px;
    right: 0;
  }
}

