/* ── VARIABLES DE COULEURS ── */
:root {
  --bg-color: #f7f6f4;
  --sidebar-bg: #f0efed;
  --text-color: #2c2c2c;
  --secondary-text: #707070;
  --author-text: #1a1a1a;
  --border-color: #e0dedb;
  --link-color: #36c;
  --star-color: #c89a15;
  --shadow-color: rgba(0,0,0,0.08);
  --quote-bg: #f0efed;
}

/* ── MODE SOMBRE ── */
body.dark-mode {
  --bg-color: #121212;
  --sidebar-bg: #1e1e1e;
  --text-color: #e0e0e0;
  --secondary-text: #a0a0a0;
  --author-text: #ffffff;
  --border-color: #333333;
  --link-color: #7baaf7;
  --star-color: #f5c542;
  --shadow-color: rgba(0,0,0,0.4);
  --quote-bg: #1e1e1e;
}

/* ── BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'IM Fell English', serif; 
  background: var(--bg-color); 
  color: var(--text-color); 
  transition: background 0.3s, color 0.3s;
}

.wrapper { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
  width: 200px; padding: 20px; background: var(--sidebar-bg);
  font-family: 'Space Grotesk', sans-serif;
  display: flex; flex-direction: column; align-items: flex-start;
  position: sticky; top: 0; height: 100vh; transition: background 0.3s;
}
.sidebar-header { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sidebar h1 { font-weight: 400; color: var(--text-color); }
#theme-toggle { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-color); transition: transform 0.2s; }
#theme-toggle:hover { transform: scale(1.2); }
.sidebar ul { list-style: none; }
.sidebar li { margin: 10px 0; }
.sidebar a { text-decoration: none; color: var(--secondary-text); transition: color 0.2s; }
.sidebar a.active { color: var(--link-color); font-weight: 700; }
.sidebar a:hover { color: var(--link-color); }

/* ── Zone principale ── */
.content { flex: 1; overflow-y: auto; padding: 0 20px; }
.page { display: none; width: 100%; max-width: 900px; margin: 0 auto; text-align: center; }

#page-bibliographie.active { display: block; padding-top: 40px; }

/* ── Bibliographie (Layout général) ── */
.text-content h2 { margin: 60px 0 20px; font-family:'Space Grotesk', sans-serif; font-size: 24px; color: var(--author-text); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.books { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 40px; }

.book-card { width: 150px; text-decoration: none; color: var(--text-color); text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.book-card img { width: 100%; height: 220px; object-fit: cover; object-position: top left; box-shadow: 0 4px 8px var(--shadow-color); border-radius: 2px; }
.book-card:hover { transform: scale(1.05); box-shadow: 0 8px 16px var(--shadow-color); }
.book-title { font-size: 14px; margin-top: 8px; font-weight: 700; line-height: 1.3; color: var(--text-color); }
.book-meta { font-size: 16px; color: var(--star-color); margin-top: 6px; letter-spacing: 2px; }

/* ── Citation (Centrée, comme avant) ── */
.random-quote {
  text-align: center;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 80px;
  padding: 20px 40px;
  background: var(--quote-bg);
  border-radius: 5px;
}
.quote-author { display: block; margin-top: 8px; font-style: normal; font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--secondary-text); font-weight: 500; }

/* ── PAGE À PROPOS ── */
#page-apropos.active { display: block; padding-top: 40px; }
.apropos-layout { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 40px; max-width: 950px; margin: 0 auto; border: 1px solid var(--border-color); padding: 40px; border-radius: 5px; background: var(--bg-color); }
.apropos-col { flex: 1; }
.photo-col { text-align: center; }
.apropos-pfp { width: 100%; max-width: 180px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 5px; margin-bottom: 10px; }
.pfp-credit { font-family: 'IM Fell English', serif; font-size: 12px; font-style: italic; color: var(--secondary-text); }
.bio-col { text-align: center; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); padding: 0 30px; }
.apropos-username { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 500; margin-bottom: 5px; text-transform: lowercase; color: var(--author-text); }
.carrd-divider { color: var(--secondary-text); letter-spacing: 2px; margin: 20px 0; font-size: 14px; }
.carrd-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; margin-bottom: 15px; color: var(--text-color); }
.carrd-list { list-style: none; text-align: left; font-family: 'IM Fell English', serif; font-size: 15px; line-height: 1.8; padding: 0; }
.carrd-list li { margin-bottom: 5px; }
.links-col { text-align: center; }
.carrd-links-verticaux a { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 13px; color: var(--text-color); text-decoration: none; text-transform: lowercase; margin-bottom: 10px; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 15px; transition: all 0.2s; }
.carrd-links-verticaux a:hover { border-color: var(--link-color); color: var(--link-color); }

/* ── PAGE ECRANS ── */
#page-ecrans.active { display: block; padding-top: 40px; }
.ecrans-content { max-width: 900px; margin: 0 auto; }
.sub-nav { text-align: center; margin-bottom: 50px; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.sub-nav-link { font-family: 'Space Grotesk', sans-serif; font-size: 14px; color: var(--secondary-text); text-decoration: none; margin: 0 15px; padding-bottom: 5px; transition: color 0.2s; }
.sub-nav-link.active { color: var(--link-color); font-weight: 700; border-bottom: 2px solid var(--link-color); }
.sub-nav-link:hover { color: var(--link-color); }
.sub-page { display: none; }
.sub-page.active { display: block; }
#filmsContent h2, #seriesContent h2 { margin: 60px 0 20px; font-family:'Space Grotesk', sans-serif; font-size: 24px; color: var(--author-text); border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
#filmsContent .books, #seriesContent .books { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-bottom: 40px; }
#filmsContent .book-card, #seriesContent .book-card { width: 180px; }
#filmsContent .book-card img, #seriesContent .book-card img { height: 270px; object-position: center; }

/* ── BARRE DE RECHERCHE ── */
.search-bar { width: 100%; max-width: 400px; padding: 10px 0; margin: 40px auto 20px auto; display: block; background: transparent; border: none; border-bottom: 1px solid var(--border-color); color: var(--text-color); font-family: 'Space Grotesk', sans-serif; font-size: 14px; text-align: center; outline: none; transition: border-color 0.2s; }
.search-bar::placeholder { color: var(--secondary-text); opacity: 0.5; }
.search-bar:focus { border-bottom: 1px solid var(--link-color); }

/* ── MOBILE ── */
@media(max-width:768px) {
  .wrapper { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; justify-content: space-between; padding: 15px; height: auto; position: relative; }
  .sidebar-header { margin-bottom: 0; }
  .content { padding: 20px 10px; }
  .book-card { width: 45%; }
  .book-card img { height: 180px; }
}

/* ── COMPTEURS ── */
.counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--secondary-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* ── MOYENNES ── */
.show-average {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: var(--secondary-text);
  margin-top: -15px;
  margin-bottom: 20px;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* ── JEUX VIDÉO ── */
#page-jeux.active { display: block; padding-top: 40px; }
#jeuxContent .book-card { width: 210px; }
#jeuxContent .book-card img { 
  width: 100%; 
  height: 280px; 
  object-fit: cover; 
  object-position: center; 
  border-radius: 2px; 
  box-shadow: 0 4px 8px var(--shadow-color); 
}

@media(max-width:768px) {
  #jeuxContent .book-card { width: 45%; }
  #jeuxContent .book-card img { height: 200px; }
}

/* ── MUSIQUE ── */
#page-musique.active { display: block; padding-top: 40px; }
#musiqueContent .book-card { width: 180px; }
#musiqueContent .book-card img { 
  width: 100%; 
  height: 180px; 
  object-fit: cover; 
  object-position: center; 
  border-radius: 2px; 
  box-shadow: 0 4px 8px var(--shadow-color); 
}

@media(max-width:768px) {
  #musiqueContent .book-card { width: 45%; }
  #musiqueContent .book-card img { height: 140px; }
}

/* ── TAMAGOTCHI ── */
.tamagotchi-container { 
  flex: 0 0 100%; 
  width: 100%; 
  margin-top: 10px; 
  padding-top: 30px; 
  border-top: 1px solid var(--border-color); 
  text-align: center; 
}
.bird-friendship {
  font-family: 'IM Fell English', serif;
  font-size: 13px;
  color: var(--secondary-text);
  font-style: italic;
  margin-bottom: 20px;
  min-height: 20px;
}
.tamagotchi-cages-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tamagotchi-bird-container {
  flex: 1;
  max-width: 200px;
}
.bird-name {
  font-family: 'IM Fell English', serif;
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 10px;
  font-style: italic;
}
.tamagotchi-cage { 
  height: 150px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-bottom: 20px;
  background: var(--bg-color);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: background 0.3s;
  cursor: pointer; /* Pour montrer qu'on peut cliquer */
}
.tamagotchi-stats { 
  display: flex; 
  flex-direction: column;
  align-items: center; 
  gap: 10px; 
  margin-bottom: 20px; 
}
.stat { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 11px; 
  color: var(--secondary-text); 
  text-transform: lowercase;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bar { 
  width: 80px; 
  height: 4px; 
  background: var(--border-color); 
  border-radius: 2px; 
  margin-top: 5px; 
  overflow: hidden; 
}
.fill { 
  height: 100%; 
  background: var(--link-color); 
  transition: width 0.5s ease; 
}
.bird-harmony {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--link-color);
  margin-top: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.8s ease;
  text-transform: lowercase;
}
.bird-harmony.visible {
  opacity: 1;
}
.bird-thought {
  font-family: 'IM Fell English', serif;
  font-size: 14px;
  color: var(--secondary-text);
  font-style: italic;
  margin-top: 15px;
  margin-bottom: 20px;
  min-height: 25px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.bird-thought.visible {
  opacity: 1;
}
.tamagotchi-actions button { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 12px; 
  color: var(--text-color); 
  background: transparent; 
  border: 1px solid var(--border-color); 
  border-radius: 8px; 
  padding: 8px 15px; 
  margin: 0 5px; 
  cursor: pointer; 
  transition: all 0.2s; 
  text-transform: lowercase; 
}
.tamagotchi-actions button:hover { 
  border-color: var(--link-color); 
  color: var(--link-color); 
}

/* Animation du petit saut quand on clique */
.bird-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes birdJump {
  0% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
  50% { transform: translateY(0); }
  70% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}
.bird-jump {
  animation: birdJump 0.5s ease;
}

/* ── IMAGE BIO À PROPOS ── */
.apropos-bio-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ── PAGE ACCUEIL (CALENDRIER) ── */
#page-home.active { display: block; padding: 40px 20px; }
.home-wrapper { max-width: 800px; margin: 0 auto; }

/* Mini Dashboard */
.home-dashboard { 
  margin-bottom: 40px; 
  padding-bottom: 20px; 
  border-bottom: 1px solid var(--border-color); 
}
.home-dashboard-title { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 13px; 
  color: var(--secondary-text); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
  margin-bottom: 20px; 
}
.home-dashboard-grid { 
  display: flex; 
  gap: 15px; 
  justify-content: center; 
}
.home-dash-card { 
  width: 150px; 
  text-decoration: none; 
  color: var(--text-color); 
  text-align: center; 
  transition: transform 0.2s; 
}
.home-dash-card img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
  border-radius: 4px; 
  box-shadow: 0 4px 8px var(--shadow-color); 
  margin-bottom: 8px; 
}

/* Calendrier */
.home-month-title { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 18px; 
  font-weight: 500; 
  color: var(--author-text); 
  margin-bottom: 20px; 
  text-transform: lowercase;
}
.home-calendar-grid { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
  gap: 8px; 
}
.calendar-day-header { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 12px; 
  color: var(--secondary-text); 
  text-align: center; 
  padding-bottom: 10px; 
  text-transform: uppercase;
}
.calendar-day { 
  aspect-ratio: 1 / 1; 
  border-radius: 6px; 
  background: var(--sidebar-bg); 
  border: 1px solid var(--border-color); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  overflow: hidden; 
  transition: border-color 0.2s; 
}
.calendar-day.empty { 
  background: transparent; 
  border-color: transparent; 
}
.calendar-day.has-data { 
  cursor: pointer; 
}
.calendar-day.has-data:hover { 
  border-color: var(--link-color); 
}
.calendar-day img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  position: absolute; 
  top: 0; left: 0; 
}
.calendar-day-num { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 14px; 
  color: var(--secondary-text); 
  z-index: 1; 
}
.calendar-day.has-data .calendar-day-num { 
  display: none; /* Cache le numéro si there a une image */ 
}
.calendar-badge { 
  position: absolute; 
  top: 4px; 
  right: 4px; 
  background: rgba(0,0,0,0.7); 
  color: white; 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 10px; 
  padding: 2px 5px; 
  border-radius: 10px; 
  z-index: 2; 
}

/* Popup du jour */
.calendar-popup { 
  display: none; 
  position: fixed; 
  top: 0; left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(0,0,0,0.6); 
  z-index: 1000; 
  justify-content: center; 
  align-items: center; 
}
.calendar-popup.visible { 
  display: flex; 
}
.calendar-popup-content { 
  background: var(--bg-color); 
  padding: 30px; 
  border-radius: 8px; 
  max-width: 600px; 
  width: 90%; 
  max-height: 80vh; 
  overflow-y: auto; 
  position: relative; 
  border: 1px solid var(--border-color); 
}
.popup-close { 
  position: absolute; 
  top: 15px; 
  right: 15px; 
  background: none; 
  border: none; 
  color: var(--secondary-text); 
  font-size: 24px; 
  cursor: pointer; 
}
.popup-date { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 14px; 
  color: var(--secondary-text); 
  margin-bottom: 20px; 
  text-transform: lowercase; 
  border-bottom: 1px solid var(--border-color); 
  padding-bottom: 10px; 
}
.popup-items { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 15px; 
}
.popup-item { 
  width: 100px; 
  text-align: center; 
}
.popup-item img { 
  width: 100%; 
  height: 140px; 
  object-fit: cover; 
  border-radius: 4px; 
  box-shadow: 0 4px 8px var(--shadow-color); 
  margin-bottom: 8px; 
}
.popup-item-title { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 11px; 
  color: var(--text-color); 
  margin-bottom: 4px; 
  line-height: 1.3; 
}
.popup-item-note { 
  font-family: 'IM Fell English', serif; 
  font-size: 14px; 
  color: var(--text-color); 
  font-style: italic; 
}
.popup-type-dot { 
  display: inline-block; 
  width: 6px; 
  height: 6px; 
  border-radius: 50%; 
  margin-right: 4px; 
}
.dot-film { background: #42A5F5; }
.dot-livre { background: #ef5350; }
.dot-jeu { background: #66BB6A; }
.dot-musique { background: #AB47BC; }

@media(max-width:768px) {
  .home-calendar-grid { gap: 4px; }
  .calendar-day-num { font-size: 11px; }
  .home-dashboard-grid { gap: 10px; }
  .home-dash-card { width: 80px; }
  .home-dash-card img { height: 110px; }
}

.home-calendar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.calendar-nav-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 20px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.calendar-nav-btn:hover {
  border-color: var(--link-color);
  color: var(--link-color);
}

/* Labels du dashboard */
.dash-label { 
  display: block; 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 12px; 
  color: var(--link-color); 
  text-transform: lowercase; 
  margin-bottom: 2px;
}
.dash-title { 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 14px; /* Taille normale lisible */
  display: block; 
  line-height: 1.4; 
  color: var(--text-color);
}
.dash-note { 
  display: block; 
  font-family: 'IM Fell English', serif; 
  font-size: 12px; 
  color: var(--secondary-text); 
  font-style: italic; 
  margin-top: 4px; 
}

/* ── TRANSITION DES PAGES ── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page.active { 
  animation: pageFadeIn 0.3s ease; 
}

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
}
.site-footer p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--secondary-text);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* ── PAGE ANIME ── */
#page-anime.active { display: block; padding-top: 40px; }

.anime-tags-wrapper { margin-bottom: 40px; text-align: center; }
.anime-tags { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.anime-tag-section { width: 100%; }
.anime-tag-section-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 10px;
  color: var(--secondary-text); text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 10px; opacity: 0.5;
}
.anime-tag-section-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.anime-tag-btn {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: var(--secondary-text); background: transparent;
  border: 1px solid var(--border-color); border-radius: 20px;
  padding: 5px 13px; cursor: pointer; transition: all 0.2s; text-transform: lowercase;
}
.anime-tag-btn:hover { border-color: var(--link-color); color: var(--link-color); }
.anime-tag-btn.active { background: var(--link-color); color: #fff; border-color: var(--link-color); }
.anime-tag-btn.quality-tag { border-style: dashed; }
.anime-tag-btn.quality-tag.active { border-style: solid; }

.toggle-tags-btn {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: var(--secondary-text); background: none; border: none;
  cursor: pointer; text-transform: lowercase; text-decoration: underline; transition: color 0.2s;
}
.toggle-tags-btn:hover { color: var(--link-color); }

.anime-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 40px; }

.anime-card { position: relative; }
.anime-card img {
  width: 100%; height: 220px; object-fit: cover; object-position: center;
  border-radius: 2px; box-shadow: 0 4px 8px var(--shadow-color); display: block;
}
.anime-placeholder {
  width: 100%; height: 220px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--hue), 15%, 90%);
  color: hsl(var(--hue), 20%, 60%);
  box-shadow: 0 4px 8px var(--shadow-color);
}
body.dark-mode .anime-placeholder { background: hsl(var(--hue), 15%, 18%); color: hsl(var(--hue), 20%, 40%); }

.anime-badges {
  position: absolute; top: 6px; right: 6px;
  display: flex; gap: 4px; z-index: 2;
}
.anime-badge {
  width: 18px; height: 18px; padding: 2px;
  background: rgba(0,0,0,0.65); border-radius: 50%; color: #fff;
  backdrop-filter: blur(4px);
}

.load-more-btn {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px;
  color: var(--text-color); background: transparent;
  border: 1px solid var(--border-color); border-radius: 8px;
  padding: 10px 25px; cursor: pointer; transition: all 0.2s;
  text-transform: lowercase; margin-bottom: 40px;
}
.load-more-btn:hover { border-color: var(--link-color); color: var(--link-color); }

@media(max-width:768px) {
  .anime-grid { gap: 10px; }
  .anime-card img, .anime-placeholder { height: 180px; }
}

.anime-top-controls {
  display: flex; justify-content: center; align-items: center;
  gap: 15px; margin-bottom: 10px;
}
.anime-sort {
  display: flex; align-items: center; gap: 8px;
}
.anime-sort-label {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: var(--secondary-text); opacity: 0.5; text-transform: lowercase;
}
.anime-sort-btn {
  font-family: 'Space Grotesk', sans-serif; font-size: 11px;
  color: var(--secondary-text); background: none; border: none;
  cursor: pointer; text-transform: lowercase; transition: color 0.2s;
}
.anime-sort-btn:hover, .anime-sort-btn.active { color: var(--link-color); }

.anime-card.hentai-card img,
.anime-card.hentai-card .anime-placeholder,
.manga-card.hentai-card img,
.manga-card.hentai-card .anime-placeholder {
  filter: blur(6px);
  transition: filter 0.3s;
}
.anime-card.hentai-card:hover img,
.anime-card.hentai-card:hover .anime-placeholder {
  filter: blur(0);
}
.manga-card.hentai-card:hover img,
.manga-card.hentai-card:hover .anime-placeholder {
  filter: blur(0);
}

#page-manga.active { display: block; padding-top: 40px; }
.manga-filters { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 40px; }
.manga-card { position: relative; }

.top-list { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: 0 auto 40px auto; }
.top-item {
  display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--text-color);
  padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; transition: all 0.2s;
}
.top-item:hover { border-color: var(--link-color); transform: translateX(5px); }
.top-rank {
  font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 500;
  color: var(--secondary-text); min-width: 40px; text-align: center; opacity: 0.4;
}
.top-item:nth-child(1) .top-rank { opacity: 1; color: var(--link-color); font-size: 32px; }
.top-item:nth-child(2) .top-rank { opacity: 0.8; font-size: 30px; }
.top-item:nth-child(3) .top-rank { opacity: 0.6; font-size: 28px; }
.top-item img, .top-item .anime-placeholder, .top-item .manga-placeholder {
  width: 60px; height: 85px; object-fit: cover; object-position: top; border-radius: 2px;
  box-shadow: 0 2px 6px var(--shadow-color); flex-shrink: 0;
}
.top-info { flex: 1; }
.top-title { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.top-stars { font-size: 14px; color: var(--star-color); letter-spacing: 1px; }