/*
Theme Name: MangaNoir
Theme URI: https://example.com/manganoir
Author: Claude
Author URI: https://anthropic.com
Description: Um tema escuro e elegante para sites de leitura de mangás, com suporte a capítulos, géneros e sistema de avaliação.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manganoir
Tags: dark, manga, reader, anime, entertainment, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --clr-bg:        #0a0a0f;
  --clr-surface:   #111118;
  --clr-card:      #16161f;
  --clr-border:    #1e1e2e;
  --clr-red:       #7c3aed;
  --clr-red-dark:  #4c1d95;
  --clr-red-glow:  rgba(124, 58, 237, 0.25);
  --clr-gold:      #f4c542;
  --clr-text:      #e8e8f0;
  --clr-muted:     #888899;
  --clr-accent:    #c9b1ff;
  --font-display:  'Bebas Neue', 'Impact', sans-serif;
  --font-jp:       'Noto Serif JP', serif;
  --font-body:     'DM Sans', 'Segoe UI', sans-serif;
  --radius:        6px;
  --radius-lg:     12px;
  --transition:    0.2s ease;
  --shadow-card:   0 4px 24px rgba(0,0,0,0.5);
  --shadow-red:    0 0 20px var(--clr-red-glow);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
/* Imagens do leitor: inline-block para funcionar dentro do flex container */
.reader-page-img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.site-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.12em;
  color: var(--clr-text);
}

.site-title span { color: var(--clr-red); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.08em;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--clr-text);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 1.4em;
  background: var(--clr-red);
  border-radius: 2px;
  box-shadow: var(--shadow-red);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}

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

.site-branding { display: flex; align-items: center; gap: 0.5rem; }

.site-branding .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--clr-red);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  box-shadow: var(--shadow-red);
}

/* NAV */
#site-navigation { display: flex; align-items: center; gap: 2rem; }

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-navigation ul li a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
  color: var(--clr-text);
  background: var(--clr-border);
}

/* SEARCH */
.header-search { display: flex; align-items: center; gap: 0.5rem; }

.search-form {
  display: flex;
  align-items: center;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 2rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.search-form:focus-within { border-color: var(--clr-red); box-shadow: var(--shadow-red); }

.search-form input[type="search"] {
  background: transparent;
  border: none;
  color: var(--clr-text);
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  width: 180px;
  outline: none;
}

.search-form button {
  background: var(--clr-red);
  border: none;
  color: #fff;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition);
}

.search-form button:hover { background: var(--clr-red-dark); }

/* HAMBURGER */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

/* ============================================================
   HERO / FEATURED SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0f 50%, #0a0a0f 100%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(124,58,237,0.08) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e63946' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text .manga-tag {
  display: inline-block;
  background: var(--clr-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--clr-red);
  display: block;
}

.hero-text p {
  color: var(--clr-muted);
  font-size: 1rem;
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-meta span {
  font-size: 0.85rem;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta strong { color: var(--clr-text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: var(--clr-red);
  color: #fff;
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: var(--clr-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--clr-red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn-ghost:hover { background: var(--clr-border); }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: flex-end; }

.hero-cover-stack { position: relative; width: 260px; height: 360px; }

.hero-cover-stack .cover-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-cover-stack .cover-card:nth-child(1) {
  width: 200px; height: 280px;
  top: 40px; right: 0;
  transform: rotate(3deg);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid var(--clr-border);
}

.hero-cover-stack .cover-card:nth-child(2) {
  width: 220px; height: 300px;
  top: 20px; right: 30px;
  transform: rotate(-2deg);
  background: linear-gradient(135deg, #2d1b1b, #1a1a2e);
  border: 1px solid var(--clr-border);
}

.hero-cover-stack .cover-card:nth-child(3) {
  width: 240px; height: 340px;
  top: 0; right: 10px;
  background: linear-gradient(160deg, var(--clr-card) 0%, #1a0f0f 100%);
  border: 1px solid rgba(124,58,237,0.3);
  z-index: 3;
}

.placeholder-cover {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
}

.placeholder-cover .cover-icon {
  font-size: 3rem;
  filter: grayscale(0.3);
}

.placeholder-cover span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--clr-muted);
}

/* ============================================================
   MANGA GRID / CARDS
   ============================================================ */
.section { padding: 3rem 0; }

.manga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.manga-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* MANGA CARD */
.manga-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  position: relative;
}

.manga-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), var(--shadow-red);
}

.manga-card-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--clr-surface);
}

.manga-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.manga-card:hover .manga-card-thumb img { transform: scale(1.06); }

.manga-card-thumb .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(160deg, var(--clr-surface) 0%, var(--clr-border) 100%);
}

.manga-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--clr-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
}

.manga-badge.completed { background: #2d9e5a; }
.manga-badge.hiatus    { background: #c97b22; }

.manga-rating {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  color: var(--clr-gold);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.manga-card-body { padding: 0.85rem; }

.manga-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.manga-chapters {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
}

.manga-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.genre-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  background: var(--clr-border);
  color: var(--clr-muted);
  letter-spacing: 0.04em;
}

/* LATEST CHAPTERS LIST */
.chapters-list { display: flex; flex-direction: column; gap: 0.5rem; }

.chapter-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  color: var(--clr-text);
}

.chapter-item:hover {
  border-color: rgba(124,58,237,0.3);
  background: var(--clr-surface);
}

.chapter-thumb {
  width: 44px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.chapter-thumb img { width: 100%; height: 100%; object-fit: cover; }

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

.chapter-manga-name {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-number {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.chapter-date {
  font-size: 0.72rem;
  color: var(--clr-muted);
}

.chapter-new {
  background: var(--clr-red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ============================================================
   GENRE BAR
   ============================================================ */
.genre-bar {
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
  border-top: 1px solid var(--clr-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.genre-bar::-webkit-scrollbar { display: none; }

.genre-bar-inner {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.5rem;
  min-width: max-content;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid var(--clr-border);
  font-size: 0.8rem;
  color: var(--clr-muted);
  background: var(--clr-surface);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.genre-pill:hover,
.genre-pill.active {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #fff;
}

/* ============================================================
   READER PAGE
   ============================================================ */
.reader-header {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 1.5rem;
}

.reader-breadcrumb {
  font-size: 0.8rem;
  color: var(--clr-muted);
  margin-bottom: 0.5rem;
}

.reader-breadcrumb a { color: var(--clr-red); }
.reader-breadcrumb a:hover { text-decoration: underline; }

.reader-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reader-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  flex: 1;
}

.reader-chapter-select {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.reader-nav {
  display: flex;
  gap: 0.5rem;
}

.reader-nav .btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.reader-canvas {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.reader-page {
  display: block !important;
  margin: 0 !important;
  margin-bottom: -1px !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: none !important;
  border: none !important;
}

.reader-page img {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top !important;
  border: none !important;
}

.reader-page .page-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  background: var(--clr-card);
  color: var(--clr-muted);
  font-size: 0.85rem;
}

.reader-page .page-placeholder .page-num {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--clr-border);
  line-height: 1;
}

/* ============================================================
   SINGLE MANGA PAGE
   ============================================================ */
.manga-single-header {
  padding: 3rem 0 2rem;
}

.manga-single-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.manga-single-cover {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-red);
  border: 1px solid rgba(124,58,237,0.2);
  aspect-ratio: 3/4;
  background: var(--clr-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.manga-single-cover img { width: 100%; height: 100%; object-fit: cover; }

.manga-single-info .manga-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #2d9e5a;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.manga-single-info h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.manga-alt-title {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: var(--clr-muted);
  margin-bottom: 1.25rem;
}

.manga-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.manga-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
}

.manga-stat .stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--clr-text);
}

.manga-stat .stat-label {
  font-size: 0.7rem;
  color: var(--clr-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.manga-genres-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.manga-genres-row .genre-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
}

.manga-description {
  color: var(--clr-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 640px;
}

/* CHAPTER LIST TABLE */
.chapter-list-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
}

.chapter-list-table th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  padding: 0.5rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}

.chapter-list-table tbody tr {
  background: var(--clr-card);
  transition: background var(--transition);
}

.chapter-list-table tbody tr:hover { background: var(--clr-surface); }

.chapter-list-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.chapter-list-table td:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.chapter-list-table td:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }

.chapter-list-table td a {
  color: var(--clr-text);
  font-weight: 600;
  transition: color var(--transition);
}

.chapter-list-table td a:hover { color: var(--clr-red); }

.chapter-list-table .td-date { color: var(--clr-muted); font-size: 0.8rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.widget {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title::before {
  content: '';
  width: 3px;
  height: 1em;
  background: var(--clr-red);
  border-radius: 2px;
}

/* TOP MANGA LIST */
.top-manga-list { display: flex; flex-direction: column; gap: 0.75rem; }

.top-manga-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.top-rank {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-border);
  width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}

.top-rank.gold   { color: var(--clr-gold); }
.top-rank.silver { color: #b0b0b0; }
.top-rank.bronze { color: #cd7f32; }

.top-thumb {
  width: 36px;
  height: 50px;
  border-radius: var(--radius);
  background: var(--clr-surface);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.top-info a {
  font-size: 0.82rem;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--clr-text);
  transition: color var(--transition);
}

.top-info a:hover { color: var(--clr-red); }

.top-info span {
  font-size: 0.72rem;
  color: var(--clr-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  margin-top: 4rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand .site-title { font-size: 1.6rem; margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-links { display: flex; gap: 0.6rem; }

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--clr-border);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transition: background var(--transition), color var(--transition);
}

.social-link:hover { background: var(--clr-red); color: #fff; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--clr-text);
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--clr-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--clr-red); }

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 1.25rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8rem; color: var(--clr-muted); }
.footer-bottom a { color: var(--clr-red); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem 0;
}

.pagination .page-numbers {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  background: var(--clr-card);
  transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--clr-red);
  border-color: var(--clr-red);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .manga-single-inner { grid-template-columns: 200px 1fr; gap: 1.5rem; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

@media (max-width: 768px) {
  .main-navigation { display: none; }
  .main-navigation.toggled { display: block; }
  .main-navigation.toggled ul { flex-direction: column; padding: 1rem 0; }
  .menu-toggle { display: block; }
  .header-search { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .manga-single-inner { grid-template-columns: 1fr; }
  .manga-single-cover { max-width: 200px; }
  .hero-content { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
  .footer-main { grid-template-columns: 1fr; }
  .manga-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.manga-card {
  animation: fadeUp 0.4s ease both;
}

.manga-card:nth-child(2) { animation-delay: 0.05s; }
.manga-card:nth-child(3) { animation-delay: 0.10s; }
.manga-card:nth-child(4) { animation-delay: 0.15s; }
.manga-card:nth-child(5) { animation-delay: 0.20s; }
.manga-card:nth-child(6) { animation-delay: 0.25s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-red   { color: var(--clr-red); }
.text-muted { color: var(--clr-muted); }
.text-gold  { color: var(--clr-gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 1rem; }
.justify-between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* WP ALIGNMENT CLASSES */
.alignleft  { float: left;  margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin: 0 auto; }
.alignwide   { margin-left: -2rem; margin-right: -2rem; }

/* COMMENTS */
.comment-list { display: flex; flex-direction: column; gap: 1rem; }

.comment-body {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.comment-author .fn { font-weight: 700; color: var(--clr-text); }
.comment-metadata { font-size: 0.78rem; color: var(--clr-muted); margin-bottom: 0.75rem; }
.comment-content { font-size: 0.9rem; color: var(--clr-muted); line-height: 1.7; }

.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--clr-muted); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  color: var(--clr-text);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  outline: none;
  margin-bottom: 1rem;
  transition: border-color var(--transition);
  font-family: var(--font-body);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--clr-red);
  box-shadow: var(--shadow-red);
}

.comment-form textarea { min-height: 120px; resize: vertical; }

.comment-form .submit {
  background: var(--clr-red);
  color: #fff;
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.comment-form .submit:hover { background: var(--clr-red-dark); }

/* ============================================================
   LIVE SEARCH DROPDOWN
   ============================================================ */
.search-form { position: relative; }

.mn-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.6);
  z-index: 2000;
  overflow: hidden;
  min-width: 280px;
}

.mn-search-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  color: var(--clr-text);
  transition: background var(--transition);
  border-bottom: 1px solid var(--clr-border);
}
.mn-search-item:last-child { border-bottom: none; }
.mn-search-item:hover { background: var(--clr-surface); }
.mn-search-item img { width: 32px; height: 44px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.mn-si-title { font-size: .85rem; font-weight: 600; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  font-size: .8rem;
  color: var(--clr-muted);
  padding: .75rem 0;
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--clr-red); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--clr-muted); }

/* ============================================================
   QUALIDADE DE IMAGEM — READER
   Garante que o browser não degrada a qualidade das páginas
   ============================================================ */

/* Nenhuma limitação de tamanho nas páginas do leitor */
.reader-page {
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    margin-bottom: -1px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
    overflow: hidden !important;
}
.reader-page img {
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    /* Forçar renderização de alta qualidade */
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Bloco de imagens WP não interfere com o leitor */
.reader-wrap figure,
.reader-wrap .wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
}

/* Sem filtros/transforms que degradem qualidade */
.reader-page img:not([src*="data:image"]) {
    filter: none !important;
    opacity: 1 !important;
}

/* ============================================================
   TABS
   ============================================================ */
.mn-tabs-wrap { }
.mn-tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--clr-border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.mn-tabs-header::-webkit-scrollbar { display: none; }

.mn-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: .7rem 1.3rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--clr-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
    font-family: inherit;
}
.mn-tab-btn:hover  { color: var(--clr-text); }
.mn-tab-btn.active { color: var(--clr-red); border-bottom-color: var(--clr-red); }

.mn-tab-panel { display: none; }
.mn-tab-panel[data-panel="latest"] { display: block; } /* first shown by default */

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mn-sort-sel {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
    padding: .45rem 1rem;
    border-radius: var(--radius);
    font-size: .85rem;
    cursor: pointer;
}
.mn-sort-sel:focus { outline: none; border-color: var(--clr-red); }

/* ============================================================
   GENRE PILLS (button version for AJAX filter)
   ============================================================ */
.genre-pills-wrap { display: flex; flex-wrap: wrap; gap: .4rem; }
.genre-pill {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    color: var(--clr-muted);
    padding: .3rem .85rem;
    border-radius: 2rem;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}
.genre-pill:hover  { border-color: var(--clr-red); color: var(--clr-red); }
.genre-pill.active { background: var(--clr-red); border-color: var(--clr-red); color: #fff; }
.pill-count { opacity: .6; font-size: .7rem; }

/* ============================================================
   RECENT CHAPTERS GRID (homepage)
   ============================================================ */
.recent-chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}
.recent-ch-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    padding: .6rem;
    transition: border-color .15s, transform .15s;
    overflow: hidden;
}
.recent-ch-card:hover { border-color: var(--clr-red); transform: translateY(-1px); }
.recent-ch-thumb {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 56px;
    border-radius: 3px;
    overflow: hidden;
    background: var(--clr-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.recent-ch-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ch-new-badge {
    position: absolute;
    bottom: 1px; left: 1px;
    background: var(--clr-red);
    color: #fff;
    font-size: 7px;
    font-weight: 800;
    padding: 1px 3px;
    border-radius: 2px;
    letter-spacing: .05em;
}
.recent-ch-info { min-width: 0; }
.recent-ch-manga { font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 2px; }
.recent-ch-num   { font-size: .72rem; color: var(--clr-red); margin: 0 0 2px; }
.recent-ch-time  { font-size: .68rem; color: var(--clr-muted); margin: 0; }

/* ============================================================
   HOME LAYOUT
   ============================================================ */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 900px) {
    .home-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   GENRE CLOUD (sidebar)
   ============================================================ */
.genre-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { position: relative; }
.search-inner {
    display: flex;
    align-items: center;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s;
}
.search-inner:focus-within { border-color: var(--clr-red); }
.search-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--clr-text);
    padding: .55rem .9rem;
    font-size: .875rem;
    font-family: inherit;
    min-width: 0;
}
.search-field::placeholder { color: var(--clr-muted); }
.search-submit {
    background: none;
    border: none;
    padding: .5rem .85rem;
    cursor: pointer;
    color: var(--clr-muted);
    display: flex;
    align-items: center;
    transition: color .15s;
}
.search-submit:hover { color: var(--clr-red); }

/* ── LIVE SEARCH DROPDOWN ── */
.mn-search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    min-width: 280px;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0,0,0,.6);
    z-index: 3000;
    overflow: hidden;
    animation: dropIn .15s ease;
}
@keyframes dropIn { from { opacity:0; transform:translateY(-6px) } to { opacity:1; transform:none } }

.mn-search-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    color: var(--clr-text);
    border-bottom: 1px solid var(--clr-border);
    transition: background .12s;
}
.mn-search-item:last-of-type { border-bottom: none; }
.mn-search-item:hover { background: var(--clr-surface); }
.mn-search-item img { width: 32px; height: 44px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.mn-si-icon { font-size: 1.5rem; width: 32px; text-align: center; flex-shrink: 0; }
.mn-si-info { display: flex; flex-direction: column; min-width: 0; }
.mn-si-title { font-size: .85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mn-si-meta  { font-size: .72rem; color: var(--clr-muted); margin-top: 2px; }

.mn-search-all {
    display: block;
    padding: .65rem 1rem;
    font-size: .8rem;
    color: var(--clr-red);
    background: var(--clr-surface);
    border-top: 1px solid var(--clr-border);
    text-align: center;
    font-weight: 600;
}
.mn-search-all:hover { background: var(--clr-card); }

/* ============================================================
   MISC HELPERS
   ============================================================ */
.mn-empty { color: var(--clr-muted); font-size: .9rem; padding: 2rem 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }

/* ============================================================
   HOME v2 — NEW HERO STYLES
   ============================================================ */

/* Hero background */
.hero-bg-blur {
  position: absolute;
  inset: 0;
  filter: blur(24px) saturate(1.4) brightness(0.3);
  transform: scale(1.08);
}
.hero-bg-blur img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,15,0.96) 40%, rgba(10,10,15,0.4) 100%),
    linear-gradient(to top, rgba(10,10,15,1) 0%, transparent 60%);
}

/* Hero content layout */
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 580px;
}

/* Eyebrow row */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
  animation: fadeUp .6s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--clr-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .28rem .8rem;
  border-radius: 2rem;
  box-shadow: 0 0 16px var(--clr-red-glow);
}
.hero-genre-tag {
  display: inline-block;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--clr-muted);
  font-size: .7rem;
  font-weight: 600;
  padding: .22rem .7rem;
  border-radius: 2rem;
  backdrop-filter: blur(6px);
}

/* Hero title */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: .96;
  letter-spacing: .02em;
  margin-bottom: 1.5rem;
  color: var(--clr-text);
  animation: fadeUp .6s .1s ease both;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 1.8rem;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s .2s ease both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.hero-stat-icon { font-size: .85rem; }
.hero-stat-val  { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--clr-text); }
.hero-stat-label{ font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--clr-muted); }

/* Hero description */
.hero-desc {
  color: var(--clr-muted);
  font-size: .95rem;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 2rem;
  animation: fadeUp .6s .3s ease both;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  animation: fadeUp .6s .4s ease both;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--clr-red);
  color: #fff;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: all .2s;
  box-shadow: 0 4px 20px var(--clr-red-glow);
  border: none;
  cursor: pointer;
}
.btn-hero-primary:hover {
  background: #5b21b6;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--clr-red-glow);
}
.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--clr-text);
  padding: .78rem 1.75rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all .2s;
  backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

/* Decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(124,58,237,.2), transparent 70%);
  top: -60px; right: 40px;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,177,255,.1), transparent 70%);
  bottom: 0; right: 100px;
}

/* Cover stack improvements */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  animation: fadeRight .8s .2s ease both;
}
.hero-cover-stack {
  position: relative;
  width: 280px;
  height: 380px;
}
.cover-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  transition: transform .3s;
}
.cover-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-card-0 {
  width: 200px; height: 280px;
  top: 50px; right: 0;
  transform: rotate(4deg);
  background: linear-gradient(135deg,#1a1a2e,#16213e);
  border: 1px solid var(--clr-border);
  z-index: 1;
}
.cover-card-1 {
  width: 220px; height: 310px;
  top: 25px; right: 28px;
  transform: rotate(-2.5deg);
  background: linear-gradient(135deg,#2d1b1b,#1a1a2e);
  border: 1px solid var(--clr-border);
  z-index: 2;
}
.cover-card-2 {
  width: 248px; height: 348px;
  top: 0; right: 12px;
  background: linear-gradient(160deg,var(--clr-card),#1a0f0f);
  border: 1px solid rgba(124,58,237,.3);
  z-index: 3;
}
.hero-cover-stack:hover .cover-card-0 { transform: rotate(6deg) translateX(8px); }
.hero-cover-stack:hover .cover-card-1 { transform: rotate(-4deg) translateX(-4px); }

/* ============================================================
   LATEST CHAPTERS STRIP
   ============================================================ */
.latest-chapters-strip {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  padding: .7rem 0;
  overflow: hidden;
}
.lcs-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}
.lcs-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-red);
  white-space: nowrap;
  flex-shrink: 0;
  padding-right: 1rem;
  border-right: 1px solid var(--clr-border);
}
.lcs-dot {
  width: 6px; height: 6px;
  background: var(--clr-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--clr-red);
  animation: pulse 1.8s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 8px var(--clr-red); }
  50%      { box-shadow: 0 0 16px var(--clr-red), 0 0 4px var(--clr-red); }
}
.lcs-scroll {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
}
.lcs-scroll::-webkit-scrollbar { display: none; }
.lcs-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: .35rem .55rem;
  min-width: 170px;
  flex-shrink: 0;
  transition: border-color .15s, transform .15s;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--clr-text);
}
.lcs-item:hover {
  border-color: var(--clr-red);
  transform: translateY(-1px);
}
.lcs-thumb {
  position: relative;
  flex-shrink: 0;
  width: 30px; height: 42px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--clr-surface);
}
.lcs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcs-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.lcs-new {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--clr-red);
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  text-align: center;
  padding: 1px 0;
  letter-spacing: .05em;
}
.lcs-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.lcs-manga-name {
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
}
.lcs-cap { font-size: .66rem; color: var(--clr-red); font-weight: 600; }

/* ============================================================
   SECTION HEADER (tabs + see-all link)
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.see-all-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--clr-red);
  letter-spacing: .04em;
  white-space: nowrap;
  transition: opacity .15s;
}
.see-all-link:hover { opacity: .75; }

/* ============================================================
   HOME CONTAINER & LAYOUT
   ============================================================ */
.home-container { padding-top: 2.5rem; padding-bottom: 3rem; }
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.home-main { min-width: 0; }
.home-sidebar { position: sticky; top: 80px; }

/* ============================================================
   SIDEBAR WIDGETS — refreshed
   ============================================================ */
.widget {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .08em;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}
.wt-icon { font-size: 1rem; }

/* Top manga items */
.top-manga-list { display: flex; flex-direction: column; gap: .6rem; }
.top-manga-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem .6rem;
  border-radius: var(--radius);
  transition: background .15s;
  text-decoration: none;
  color: var(--clr-text);
}
.top-manga-item:hover { background: var(--clr-surface); }
.top-rank {
  font-family: var(--font-display);
  font-size: 1.2rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  color: var(--clr-muted);
}
.top-rank.gold   { color: var(--clr-gold); text-shadow: 0 0 10px rgba(244,197,66,.4); }
.top-rank.silver { color: #c0c0d0; }
.top-rank.bronze { color: #cd9060; }
.top-thumb {
  width: 36px; height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--clr-surface);
}
.top-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.top-info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.top-title {
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-rating { font-size: .72rem; color: var(--clr-gold); }

/* Genres cloud */
.genre-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.genre-tag {
  display: inline-block;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: .72rem;
  font-weight: 600;
  padding: .24rem .7rem;
  border-radius: 2rem;
  transition: all .15s;
  text-decoration: none;
}
.genre-tag:hover {
  border-color: var(--clr-red);
  color: var(--clr-red);
  background: rgba(124,58,237,.06);
}
.genre-tag sup { opacity: .6; font-size: .6rem; margin-left: 2px; }

/* ============================================================
   TABS refresh
   ============================================================ */
.mn-tabs-header {
  display: flex;
  gap: .3rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  padding: .3rem;
  border-radius: var(--radius);
}
.mn-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .03em;
  white-space: nowrap;
}
.mn-tab-btn:hover { color: var(--clr-text); background: var(--clr-card); }
.mn-tab-btn.active {
  color: #fff;
  background: var(--clr-red);
  box-shadow: 0 2px 12px var(--clr-red-glow);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 3.5rem 1.2rem 2.5rem;
    gap: 2.5rem;
    min-height: auto;
  }
  .hero-visual { justify-content: center; }
  .hero-cover-stack { width: 220px; height: 300px; }
  .cover-card-2 { width: 195px; height: 275px; }
  .cover-card-1 { width: 175px; height: 248px; }
  .cover-card-0 { width: 158px; height: 222px; }
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { position: static; }
  .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
}
@media (max-width: 600px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .lcs-label { display: none; }
  .mn-tabs-header { overflow-x: auto; scrollbar-width: none; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   MELHORIAS v2 — UI/UX refinements
   ============================================================ */

/* ── Smooth page transitions ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.manga-card, .chapter-item, .manga-single-header {
  animation: fadeInUp .35s ease both;
}
.manga-card:nth-child(2)  { animation-delay: .04s; }
.manga-card:nth-child(3)  { animation-delay: .08s; }
.manga-card:nth-child(4)  { animation-delay: .12s; }
.manga-card:nth-child(5)  { animation-delay: .16s; }
.manga-card:nth-child(6)  { animation-delay: .20s; }

/* ── Cards: hover lift + glow ── */
.manga-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}
.manga-card:hover {
  transform:    translateY(-5px) scale(1.012);
  box-shadow:   0 8px 32px rgba(124,58,237,.22), 0 2px 8px rgba(0,0,0,.5);
  border-color: var(--clr-red);
  z-index: 2;
}

/* ── Card cover: zoom on hover ── */
.manga-card .card-cover {
  overflow: hidden;
}
.manga-card .card-cover img {
  transition: transform .45s cubic-bezier(.25,.46,.45,.94);
}
.manga-card:hover .card-cover img {
  transform: scale(1.08);
}

/* ── Skeleton loader for image placeholders ── */
.img-skeleton {
  background: linear-gradient(90deg, #1a1a26 25%, #222232 50%, #1a1a26 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Chapter list: better spacing + hover ── */
.chapter-item {
  border-radius: var(--radius);
  transition: background .15s, padding-left .15s;
}
.chapter-item:hover {
  background:   rgba(124,58,237,.07);
  padding-left: 1.1rem;
}
.chapter-item a {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.chapter-item a::before {
  content: '▸';
  color: var(--clr-red);
  font-size: .8em;
  opacity: 0;
  transition: opacity .15s;
}
.chapter-item:hover a::before { opacity: 1; }

/* ── Sticky manga header image ── */
.manga-single-cover {
  position: sticky;
  top: 80px;
}

/* ── Genre pills: pill redesign ── */
.genre-pill {
  border:           1px solid var(--clr-border);
  background:       var(--clr-card);
  color:            var(--clr-muted);
  border-radius:    999px;
  padding:          .3rem .85rem;
  font-size:        .8rem;
  cursor:           pointer;
  transition:       all .18s;
  white-space:      nowrap;
}
.genre-pill:hover {
  border-color: var(--clr-red);
  color:        var(--clr-text);
}
.genre-pill.active {
  background:   var(--clr-red);
  border-color: var(--clr-red);
  color:        #fff;
  font-weight:  600;
}

/* ── Search bar: focus ring ── */
.site-search-form input[type="search"]:focus,
input[type="text"]:focus,
input[type="search"]:focus {
  outline:      none;
  border-color: var(--clr-red);
  box-shadow:   0 0 0 3px var(--clr-red-glow);
}

/* ── Back-to-top button ── */
#mn-back-top {
  position:      fixed;
  bottom:        2rem;
  right:         2rem;
  width:         42px;
  height:        42px;
  background:    var(--clr-red);
  border:        none;
  border-radius: 50%;
  color:         #fff;
  font-size:     1.2rem;
  cursor:        pointer;
  display:       flex;
  align-items:   center;
  justify-content: center;
  opacity:       0;
  transform:     translateY(10px);
  transition:    opacity .25s, transform .25s;
  z-index:       999;
  box-shadow:    var(--shadow-red);
}
#mn-back-top.visible {
  opacity:   1;
  transform: translateY(0);
}
#mn-back-top:hover { background: var(--clr-red-dark); }

/* ── Toast notifications ── */
#mn-toast-wrap {
  position:       fixed;
  bottom:         1.5rem;
  left:           50%;
  transform:      translateX(-50%);
  z-index:        9999;
  display:        flex;
  flex-direction: column;
  gap:            .5rem;
  pointer-events: none;
}
.mn-toast {
  background:    rgba(22,22,31,.97);
  border:        1px solid var(--clr-border);
  border-left:   3px solid var(--clr-red);
  color:         var(--clr-text);
  padding:       .65rem 1.1rem;
  border-radius: var(--radius);
  font-size:     .88rem;
  backdrop-filter: blur(8px);
  animation:     fadeInUp .3s ease both;
  white-space:   nowrap;
}
.mn-toast.success { border-left-color: #2a9d5c; }
.mn-toast.error   { border-left-color: #c0392b; }

/* ── Header: scroll shadow ── */
.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

/* ── Mobile nav: slide-in ── */
@media (max-width: 768px) {
  .nav-menu {
    position:   fixed;
    top:        0; left: 0;
    width:      100%; height: 100%;
    background: var(--clr-surface);
    display:    flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap:        1.5rem;
    transform:  translateX(-100%);
    transition: transform .3s ease;
    z-index:    200;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-menu a { font-size: 1.3rem; }
}

/* ── Featured section gradient overlay ── */
.featured-hero-item {
  position: relative;
}
.featured-hero-item::after {
  content:  '';
  position: absolute;
  inset:    0;
  background: linear-gradient(
    to top,
    rgba(10,10,15,.97) 0%,
    rgba(10,10,15,.6)  50%,
    transparent        100%
  );
  pointer-events: none;
}

/* ── Status badge colours ── */
.status-badge.ongoing   { --badge-clr: #2a9d5c; }
.status-badge.completed { --badge-clr: #3a7bd5; }
.status-badge.hiatus    { --badge-clr: #f4c542; }
.status-badge.cancelled { --badge-clr: #c0392b; }
.status-badge {
  background: color-mix(in srgb, var(--badge-clr) 15%, transparent);
  border:     1px solid var(--badge-clr);
  color:      var(--badge-clr);
}

/* ── No-scroll when modal open ── */
body.mn-modal-open { overflow: hidden; }

/* ── Improved scrollbar ── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-red); }


/* ============================================================
   MANGANOIR THEME v7 — MELHORIAS VISUAIS
   ============================================================ */

/* ── Versão ── */
/* Theme Version: 2.1.0 */

/* ── Gradiente animado no título do site ── */
.site-title {
  background: linear-gradient(90deg, var(--clr-text) 0%, #fff 40%, var(--clr-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Manga cards: efeito de brilho no hover ── */
.manga-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}
.manga-card:hover::before { opacity: 1; }

/* ── Manga card: capítulo mais recente com destaque ── */
.manga-card-last-ch {
  font-size: 0.72rem;
  color: var(--clr-red);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.manga-card-last-ch::before {
  content: '▶';
  font-size: 0.6rem;
}

/* ── Source badge (Manhastro / MangaFire / MangaDex) ── */
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  opacity: 0.85;
}
.source-badge.manhastro { background: rgba(100,80,200,0.2); color: #a891ff; border: 1px solid rgba(100,80,200,0.3); }
.source-badge.mangafire { background: rgba(230,100,30,0.2); color: #ff8f50; border: 1px solid rgba(230,100,30,0.3); }
.source-badge.mangadex  { background: rgba(45,180,230,0.2); color: #5ac8e8; border: 1px solid rgba(45,180,230,0.3); }

/* ── Manga single: layout de detalhe melhorado ── */
.manga-detail-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .manga-detail-wrap { grid-template-columns: 1fr; }
  .manga-single-cover { position: static; }
}

/* ── Cover com sombra vermelha suave ── */
.manga-cover-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px var(--clr-border);
  transition: box-shadow 0.3s ease;
}
.manga-cover-img:hover {
  box-shadow: 0 12px 50px rgba(0,0,0,0.8), 0 0 0 1px rgba(124,58,237,0.4), var(--shadow-red);
}

/* ── Meta info row ── */
.manga-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0;
  align-items: center;
}
.manga-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--clr-muted);
}
.manga-meta-item strong { color: var(--clr-text); }

/* ── Action buttons ── */
.manga-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.btn-read-first {
  background: var(--clr-red);
  color: #fff;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-read-first:hover { background: var(--clr-red-dark); box-shadow: var(--shadow-red); }

.btn-read-last {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-read-last:hover { border-color: var(--clr-red); background: var(--clr-card); }

/* ── Descrição com "ver mais" ── */
.manga-description {
  color: var(--clr-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}
.manga-description.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.btn-expand-desc {
  background: none;
  border: none;
  color: var(--clr-red);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-top: 0.35rem;
  display: block;
  font-weight: 600;
}
.btn-expand-desc:hover { text-decoration: underline; }

/* ── Chapter list: header com count + filtro ── */
.chapters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.chapters-count-badge {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
}
.chapters-filter {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.chapters-filter input[type="text"] {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  width: 140px;
  transition: border-color 0.2s;
}
.chapters-filter input[type="text"]:focus {
  border-color: var(--clr-red);
  outline: none;
}

/* ── Chapter item: nova versão com data visível ── */
.chapter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.15s, padding-left 0.15s;
}
.chapter-item:hover { background: rgba(124,58,237,0.06); padding-left: 1.1rem; }
.chapter-item a { font-weight: 600; font-size: 0.9rem; color: var(--clr-text); }
.chapter-item a:hover { color: var(--clr-red); }
.chapter-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.chapter-item-date {
  font-size: 0.75rem;
  color: var(--clr-muted);
}
.chapter-new-badge {
  background: var(--clr-red);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
}

/* ── Reader: melhorias ── */
.reader-page-img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Modo de leitura webtoon (scroll vertical) */
.reader-mode-webtoon .reader-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
}
.reader-mode-webtoon .reader-page-img {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Modo de leitura paginated */
.reader-mode-paged .reader-pages {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 120px);
}
.reader-mode-paged .reader-page-img {
  max-height: calc(100vh - 120px);
  max-width: 100%;
  object-fit: contain;
}

/* ── Reader toolbar: botão de modo ── */
.reader-mode-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.reader-mode-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background 0.15s, color 0.15s;
}
.reader-mode-btn.active {
  background: var(--clr-red);
  color: #fff;
}
.reader-mode-btn:hover:not(.active) { background: var(--clr-border); color: var(--clr-text); }

/* ── Reader: nav arrows larger on desktop ── */
@media (min-width: 1024px) {
  .reader-nav-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}

/* ── Página de pesquisa: melhorias ── */
.search-results-meta {
  font-size: 0.85rem;
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
}
.search-results-meta strong { color: var(--clr-text); }

/* ── Loading overlay para listagem ── */
.mn-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.mn-loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--clr-border);
  border-top-color: var(--clr-red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Pagination: novo estilo ── */
.mn-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 2.5rem 0;
  flex-wrap: wrap;
}
.mn-pagination a,
.mn-pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.mn-pagination a { color: var(--clr-muted); border-color: var(--clr-border); background: var(--clr-surface); }
.mn-pagination a:hover { color: var(--clr-text); border-color: var(--clr-red); background: var(--clr-card); }
.mn-pagination .current { background: var(--clr-red); color: #fff; border-color: var(--clr-red); }
.mn-pagination .dots { color: var(--clr-muted); border: none; background: none; }

/* ── Alert / notice ── */
.mn-notice {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0;
}
.mn-notice.info    { background: rgba(45,180,230,0.1); border-left: 3px solid #2db4e6; color: #9ee6ff; }
.mn-notice.success { background: rgba(42,157,92,0.1);  border-left: 3px solid #2a9d5c; color: #7deca7; }
.mn-notice.warning { background: rgba(244,197,66,0.1); border-left: 3px solid #f4c542; color: #fde89a; }
.mn-notice.error   { background: rgba(124,58,237,0.1);  border-left: 3px solid var(--clr-red); color: #ffaaaa; }

/* ── Print / embed: esconder UI ── */
@media print {
  #masthead, .reader-toolbar, .reader-nav-wrap, #colophon { display: none !important; }
  .reader-page-img { max-width: 100%; page-break-inside: avoid; }
}
