:root {
  --bg: #0a0a0c;
  --bg-card: #12121a;
  --bg-elevated: #1a1a24;
  --text: #e8e4dc;
  --text-muted: #8a8580;
  --accent: #c9a227;
  --accent-dim: #8a7020;
  --border: rgba(201, 162, 39, 0.15);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon { color: var(--accent); font-size: 1.2rem; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

.header-aside {
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.site-nav-link:hover {
  color: var(--text);
}

.site-nav-link.is-active {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(201, 162, 39, 0.08);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .tagline,
  .header-aside {
    margin-left: 0;
  }
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.nav-link:hover { opacity: 0.8; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding: 4rem 0 3rem;
  align-items: end;
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-compact {
  padding: 2.5rem 0 2rem;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  text-align: right;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Search */
.search-box {
  position: relative;
  max-width: 480px;
}

.search-box input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow-y: auto;
  z-index: 50;
}

.search-results.hidden { display: none; }

.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover { background: rgba(201, 162, 39, 0.08); }

.search-result-item small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Volumes grid */
.volumes-section {
  padding: 2rem 0 4rem;
}

.volumes-section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.volumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.volume-card {
  display: block;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.volume-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.volume-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow);
}

.volume-card:hover::before { opacity: 1; }

.volume-soon { opacity: 0.75; }

.volume-cover-wrap,
.volume-cover-hero-wrap {
  margin: -1.25rem -1.25rem 1rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}

.volume-cover-hero-wrap {
  margin: 0;
  border-radius: var(--radius);
  padding: 0.5rem;
}

.volume-cover {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.no-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 140px;
  font-size: 2rem;
  color: var(--border);
  background: var(--bg-elevated);
}

.volume-header {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

@media (max-width: 640px) {
  .volume-header { grid-template-columns: 1fr; }
}

.volume-hero-cover {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.volume-cover-large {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center center;
  background: var(--bg-elevated);
}

.film-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
  overflow: hidden;
}

.film-card:hover { border-color: rgba(201, 162, 39, 0.3); }

.film-card-poster-link {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.film-poster-col {
  width: 100px;
  min-width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
}

.film-poster-col .film-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
}

.film-poster-col .film-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
}

.no-poster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 150px;
  font-size: 26px;
  color: var(--border);
  background: var(--bg-elevated);
}

.no-poster--hero {
  width: 100%;
  min-height: 280px;
  aspect-ratio: 2 / 3;
  font-size: 48px;
}

@media (min-width: 769px) {
  .film-poster-col { width: 110px; min-width: 110px; }
  .no-poster { min-height: 165px; }
}

.film-body {
  padding: 0.85rem 1.15rem 1rem;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.film-position {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
  border-radius: 8px;
  margin-bottom: 0.15rem;
}

.film-detail-layout {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .film-detail-layout { grid-template-columns: 1fr; }
}

.film-poster-hero {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.film-poster-large {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-result-poster {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.search-result-poster--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--border);
}

.volume-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.volume-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.volume-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(201, 162, 39, 0.15);
  color: var(--accent);
  border-radius: 4px;
}

.badge-soon {
  background: rgba(138, 133, 128, 0.2);
  color: var(--text-muted);
}

.badge-acquired {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
  font-weight: 600;
}

.volume-card .badge-acquired {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.badge-missing {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
  font-weight: 600;
}

.volume-card .badge-missing {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.volume-missing {
  opacity: 0.72;
}

.volume-missing:hover {
  opacity: 1;
}

/* Detail pages */
.detail-page { padding: 2rem 0 4rem; }

.volume-header-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.volume-desc, .volume-extra {
  color: var(--text-muted);
  max-width: 720px;
}

.volume-extra {
  margin-top: 0.5rem;
  font-style: italic;
}

.films-list h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.films-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.film-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.film-body h3 a {
  color: var(--text);
  text-decoration: none;
}

.film-body h3 a:hover { color: var(--accent); }

.film-original {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.film-original.large {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.film-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.film-card-label {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.film-card-cast {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.film-card-synopsis {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.film-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
}

.tag-imdb {
  color: var(--accent);
  border: 1px solid var(--border);
}

.tag-imdb:hover { background: rgba(201, 162, 39, 0.1); }

.tag-rating { color: var(--accent); }

/* Link para a crítica do Carlão no minisite (catálogo Filme Noir) */
.tag-critica {
  color: #e6c860;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
  font-weight: 600;
}

.tag-critica:hover { background: rgba(201, 162, 39, 0.22); }

/* Film detail */
.film-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.film-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.info-item { display: flex; flex-direction: column; gap: 0.2rem; }

.info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.info-block {
  margin-bottom: 1.5rem;
}

.info-block h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.synopsis {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 720px;
}

.film-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform 0.15s, opacity 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn-critica {
  background: linear-gradient(135deg, #c9a227, #e6c860);
  color: #1a1407;
  font-weight: 700;
}

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer a { color: var(--accent); }

.footer-small {
  margin-top: 0.5rem;
  font-size: 0.75rem !important;
  opacity: 0.7;
}

/* Inventário — mídias físicas MyMovies */
.inventario-page { padding-bottom: 3rem; }

.inv-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  padding: 1.15rem 1.25rem;
}

.inv-toolbar-head {
  margin-bottom: 1rem;
}

.inv-toolbar-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.inv-toolbar-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inv-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.inv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.65rem;
}

.inv-btn-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.inv-btn-text {
  font-size: 0.88rem;
  font-weight: 600;
}

.inv-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.inv-btn--sync {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(96, 165, 250, 0.35);
  color: #93c5fd;
}

.inv-btn--import {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.inv-btn--all {
  flex: 1 1 auto;
  min-width: 11rem;
  justify-content: center;
}

.inv-toolbar-file {
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}

.inv-file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.inv-file-row input[type="file"] {
  flex: 1 1 12rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.inv-progress {
  margin-top: 0.6rem;
  height: 2px;
  border-radius: 2px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(148, 163, 184, 0.3) 0 4px,
    transparent 4px 10px
  );
  background-size: 10px 100%;
  background-repeat: repeat-x;
}

/* Só anima quando uma operação está em andamento */
.inv-progress.is-loading {
  background-image: repeating-linear-gradient(
    to right,
    rgba(201, 162, 39, 0.7) 0 4px,
    transparent 4px 10px
  );
  animation: inv-progress-dots 0.55s linear infinite;
}

@keyframes inv-progress-dots {
  to { background-position: 10px 0; }
}

.inv-sync-panel {
  display: none;
}

.inv-file-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.inv-status {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
}

.inv-status--ok {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
}

.inv-status--err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.inv-filters { margin-bottom: 1.25rem; }

.inv-filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

@media (max-width: 768px) {
  .inv-filter-row { grid-template-columns: 1fr 1fr; }
}

.inv-filter-group label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.inv-filter-group select,
.inv-filter-group input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.inv-filter-grow { grid-column: span 1; }

.inv-result-count {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1.1rem;
}

.inv-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.inv-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.15s;
}

.inv-card {
  cursor: pointer;
}

.inv-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
}

.inv-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.inv-card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  background: var(--bg-elevated);
  overflow: hidden;
}

.inv-card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inv-card-poster--vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inv-card-cover .inv-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.inv-card-critica-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  color: #1a1206;
  background: linear-gradient(180deg, #e6c860, #c9a227);
  border: 1px solid rgba(0, 0, 0, 0.25);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.inv-card-body {
  padding: 0.85rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.inv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.inv-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.inv-badge--4k {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.inv-badge--bluray {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.35);
}

.inv-badge--dvd {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.inv-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.inv-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.inv-card-orig {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.35rem;
}

.inv-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.inv-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.inv-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  background: var(--bg-elevated);
  border-radius: 4px;
  color: var(--text-muted);
}

.inv-tag--upc {
  font-family: monospace;
  font-size: 0.68rem;
}

.inv-card-foot { margin-top: auto; }

.inv-imdb {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.inv-imdb:hover { opacity: 0.85; }

/* ---- Modal de detalhes ---- */
.inv-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.inv-modal.hidden { display: none; }

.inv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.inv-modal-dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.inv-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.inv-modal-close:hover { color: var(--text); }

.inv-modal-body {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (max-width: 640px) {
  .inv-modal-body { grid-template-columns: 1fr; }
}

.inv-modal-cover img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.inv-modal-cover--vazio {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.inv-modal-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.inv-modal-title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.inv-modal-orig {
  color: var(--text-muted);
  font-style: italic;
  margin: 0.2rem 0 0.9rem;
}

.inv-modal-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.2rem;
  margin: 0;
}

.inv-field { min-width: 0; }
.inv-field--full { grid-column: 1 / -1; }

.inv-field dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.inv-field dd {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.inv-field--destaque {
  grid-column: 1 / -1;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.inv-field--destaque dt { color: var(--accent); }
.inv-field--destaque dd { font-size: 1.05rem; font-weight: 600; }

.inv-modal-vazio { color: var(--text-muted); font-size: 0.9rem; }

/* ── Crítica do Carlão (minisite) ─────────────────────────────────────────── */
.inv-modal-critica,
.inv-modal-noir { padding: 0 1.5rem 1.5rem; }

.inv-critica {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.inv-critica-head { margin-bottom: 0.5rem; }
.inv-critica-autor {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.inv-critica-nota {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.inv-critica-estrelas { color: var(--accent); font-size: 1.15rem; letter-spacing: 0.05em; }
.inv-critica-conceito {
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.inv-critica.c-otimo   .inv-critica-conceito { background: rgba(76, 175, 80, 0.22);  color: #9fe0a2; }
.inv-critica.c-muitobom .inv-critica-conceito{ background: rgba(139, 195, 74, 0.2);  color: #c5e1a5; }
.inv-critica.c-bom     .inv-critica-conceito { background: rgba(201, 162, 39, 0.2);  color: #e6c860; }
.inv-critica.c-regular .inv-critica-conceito { background: rgba(255, 167, 38, 0.18); color: #ffcc80; }
.inv-critica.c-ruim    .inv-critica-conceito { background: rgba(239, 83, 80, 0.18);  color: #ef9a9a; }
.inv-critica.c-pessimo .inv-critica-conceito { background: rgba(229, 57, 53, 0.22);  color: #ef9a9a; }
.inv-critica.c-bomb    .inv-critica-conceito { background: rgba(123, 31, 31, 0.4);   color: #ff8a80; }

.inv-critica-idioma { margin-top: 0.6rem; }
.inv-critica-idioma + .inv-critica-idioma {
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.inv-critica-texto { margin: 0.45rem 0 0; }
.inv-critica-lang {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05rem 0.35rem;
  margin-bottom: 0.25rem;
}
.inv-critica-texto p { margin: 0.2rem 0 0; font-size: 0.9rem; line-height: 1.55; white-space: pre-line; }

.inv-audio {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: nowrap;
  margin-top: 0.5rem;
}
.inv-audio-lang {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 3.2rem;
}
.inv-audio-flag { font-size: 0.82rem; font-weight: 700; }
.inv-audio-voz { font-size: 0.66rem; color: var(--text-muted); line-height: 1.2; }
.inv-audio audio { flex: 1 1 auto; min-width: 0; height: 34px; }
.inv-tag--cult { background: rgba(156, 39, 176, 0.22); color: #ce93d8; }

/* ── Lista de filmes do volume Noir ───────────────────────────────────────── */
.inv-noir-titulo {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.inv-noir-count { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.inv-noir-loading { color: var(--text-muted); font-size: 0.9rem; }

.inv-noir-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.inv-noir-filme {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.inv-noir-filme-head { display: flex; align-items: center; gap: 0.7rem; }
.inv-noir-pos {
  width: 1.6rem; height: 1.6rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated); border-radius: 50%;
  font-size: 0.8rem; color: var(--text-muted);
}
.inv-noir-titulos { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.inv-noir-pt { font-weight: 600; font-size: 0.95rem; }
.inv-noir-orig { font-style: italic; color: var(--text-muted); font-size: 0.82rem; }
.inv-noir-imdb {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #000;
  background: #f5c518;
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  text-decoration: none;
}
.inv-noir-imdb:hover { filter: brightness(1.08); }
.inv-noir-meta { color: var(--text-muted); font-size: 0.8rem; margin: 0.4rem 0 0 2.3rem; }
.inv-noir-filme .inv-critica { margin-top: 0.7rem; }

.inv-diag {
  font-size: 0.75rem;
  line-height: 1.45;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  white-space: pre-wrap;
  color: var(--text-muted);
}
