/* ==========================================================================
   MinhaFlix — Catálogo, Status & Ranking de Séries (Estilo Netflix)
   ========================================================================== */

:root {
  --bg-base: #0a0a0e;
  --bg-elevated: #13131a;
  --bg-card: #181822;
  --bg-card-hover: #21212f;
  --bg-glass: rgba(14, 14, 20, 0.86);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #e50914;
  --accent-hover: #f6121d;
  --accent-soft: rgba(229, 9, 20, 0.16);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b95a7;

  --gold: #f5c518;
  --emerald: #10b981;
  --sky: #38bdf8;
  --amber: #f59e0b;
  --rose: #ef4444;
  --slate: #94a3b8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.85);
  --nav-height: 72px;
  --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: #2b2b3a;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #43435a;
}

/* ==========================================================================
   Top Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  max-width: 100vw;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.94) 0%, rgba(10, 10, 14, 0.55) 68%, transparent 100%);
  transition: background 280ms ease, backdrop-filter 280ms ease, border-color 280ms ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled,
.navbar.solid-nav {
  background: rgba(10, 10, 14, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 1 auto;
  max-width: 62%;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #ff1e27 0%, #b80710 100%);
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.45);
}

.brand-text {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  color: var(--accent);
  text-shadow: 0 2px 14px rgba(229, 9, 20, 0.35);
  line-height: 1;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding-left: 6px;
  border-left: 1px solid var(--border-strong);
  display: none;
}

@media (min-width: 1440px) {
  .brand-sub {
    display: inline-block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-btn.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.18);
  box-shadow: inset 0 0 0 1px rgba(229, 9, 20, 0.45);
}

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.nav-btn.active .nav-badge {
  background: var(--accent);
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 140px;
  padding: 7px 26px 7px 32px;
  border-radius: 99px;
  background: rgba(22, 22, 31, 0.85);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  color: #fff;
  transition: width var(--transition), border-color var(--transition), background var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  width: 195px;
  background: rgba(26, 26, 38, 0.98);
  border-color: var(--accent);
}

@media (max-width: 1280px) {
  .nav-left {
    max-width: 54%;
  }
  .search-input {
    width: 110px;
  }
  .search-input:focus {
    width: 160px;
  }
  .btn-share-art {
    padding: 7px 10px;
    font-size: 12px;
  }
}

.search-clear {
  position: absolute;
  right: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.search-clear:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-strong);
}

/* Dropdown menu for Data / Backup */
.dropdown-wrap {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 245px;
  background: #181824;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  z-index: 150;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  transition: background 150ms ease, color 150ms ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-item.danger {
  color: #fca5a5;
}
.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.16);
  color: #fecaca;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 5px 0;
}

/* ==========================================================================
   Hero Billboard (Netflix Featured Banner)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 610px;
  max-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 36px) 4% 68px;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.02);
  transition: background-image 500ms ease, transform 6s ease;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0a0a0e 0%, rgba(10, 10, 14, 0.92) 34%, rgba(10, 10, 14, 0.42) 66%, rgba(10, 10, 14, 0.22) 100%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.45) 0%, transparent 32%, rgba(10, 10, 14, 0.72) 82%, #0a0a0e 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  animation: fadeUp 420ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.n-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(229, 9, 20, 0.9);
  padding: 4px 10px;
  border-radius: 5px;
}

.hero-platform {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(44px, 5.6vw, 74px);
  line-height: 0.96;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.75);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.score-masterpiece {
  background: linear-gradient(135deg, #f5c518 0%, #eab308 100%);
  color: #111;
  box-shadow: 0 3px 14px rgba(245, 197, 24, 0.35);
}

.score-great {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.score-mid {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.score-low {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.score-none {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border: 1px dashed rgba(255, 255, 255, 0.26);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.meta-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.cat-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-synopsis {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-quote {
  font-size: 13.5px;
  font-style: italic;
  color: #cbd5e1;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-hero-white {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 8px;
  background: #ffffff;
  color: #0a0a0e;
  font-size: 15px;
  font-weight: 800;
  transition: transform var(--transition), background var(--transition);
}

.btn-hero-white:hover {
  background: #e2e8f0;
  transform: scale(1.02);
}

.btn-hero-glass {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 8px;
  background: rgba(109, 109, 126, 0.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  transition: background var(--transition);
}

.btn-hero-glass:hover {
  background: rgba(109, 109, 126, 0.68);
}

.hero-dots {
  position: absolute;
  right: 4%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  transition: width var(--transition), background var(--transition);
}

.hero-dot.active {
  width: 40px;
  background: var(--accent);
}

/* ==========================================================================
   Netflix Rows & Carousels
   ========================================================================== */
.main-content {
  position: relative;
  z-index: 5;
  padding-bottom: 80px;
}

.rows-stack {
  position: relative;
  z-index: 6;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.row-section {
  position: relative;
  padding: 0 4%;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #f8fafc;
}

.row-count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 9px;
  border-radius: 99px;
}

.row-explore-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 180ms ease;
}

.row-explore-btn:hover {
  color: #fff;
}

.carousel-wrapper {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 8px;
  bottom: 16px;
  width: 44px;
  z-index: 15;
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 200ms ease, background 200ms ease;
  border-radius: 8px;
}

.carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(229, 9, 20, 0.85);
}

.carousel-arrow.prev {
  left: -8px;
}
.carousel-arrow.next {
  right: -8px;
}

/* ==========================================================================
   Poster Card & Top 10 Card
   ========================================================================== */
.series-card {
  position: relative;
  flex: 0 0 195px;
  width: 195px;
  max-width: 195px;
  min-width: 0;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 240ms ease, box-shadow 240ms ease;
  cursor: pointer;
}

.series-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow-card);
  z-index: 10;
}

.poster-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #14141d;
  overflow: hidden;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.series-card:hover .poster-frame img {
  transform: scale(1.05);
}

/* Top badges inside poster */
.card-top-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  z-index: 3;
}

.card-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(10, 10, 14, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
}

.card-score-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: transform 150ms ease;
}

.card-score-btn:hover {
  transform: scale(1.09);
}

/* Hover gradient overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(10, 10, 14, 0.72) 62%, rgba(10, 10, 14, 0.97) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 2;
}

.series-card:hover .card-overlay {
  opacity: 1;
}

.card-quick-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.card-mini-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  color: #fff;
  text-align: center;
  transition: background 150ms ease;
}

.card-mini-btn:hover {
  background: var(--accent);
}

.card-mini-btn.primary {
  background: var(--accent);
}
.card-mini-btn.primary:hover {
  background: var(--accent-hover);
}

.card-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 4;
}

.card-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 62%;
}

.card-body {
  padding: 10px 12px 12px;
  min-width: 0;
  overflow: hidden;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.card-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.official-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.official-status-inline.cancelled {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.42);
}

.official-status-inline.running {
  background: rgba(34, 197, 94, 0.13);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.official-status-inline.ended {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.official-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}

.card-bottom-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.card-bottom-meta .official-status-inline {
  margin-top: 0;
}

.imdb-mini-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.imdb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 4px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(245, 197, 24, 0.13);
  border: 1px solid rgba(245, 197, 24, 0.38);
  color: #fef08a;
  line-height: 1.2;
}

.imdb-badge.lg {
  font-size: 12px;
  padding: 3px 10px 3px 6px;
  border-radius: 99px;
  gap: 6px;
}

.imdb-tag {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 3px;
  background: #f5c518;
  color: #0b0b0f;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.imdb-badge.lg .imdb-tag {
  font-size: 10.5px;
  padding: 1.5px 5px;
}

.imdb-diff-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.imdb-diff-tag.lg {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 99px;
}

.imdb-diff-tag.pos {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.imdb-diff-tag.neg {
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #fdba74;
}

.imdb-diff-tag.eq {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.card-progress-text {
  color: var(--sky);
  font-weight: 600;
  font-size: 11px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Netflix Top 10 Ranked Card */
.top10-card {
  position: relative;
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  padding-left: 72px;
  cursor: pointer;
}

.top10-rank-svg {
  position: absolute;
  left: -4px;
  bottom: 6px;
  width: 110px;
  height: 175px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.top10-card .series-card {
  flex: 1 1 0%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  z-index: 2;
}

/* ==========================================================================
   Inner Pages Layout (Ranking, Categorias, Meus Status, Busca)
   ========================================================================== */
.page-container {
  padding: calc(var(--nav-height) + 32px) 4% 60px;
  max-width: 1600px;
  margin: 0 auto;
  animation: fadeUp 320ms ease;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.page-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: 1.2px;
  line-height: 1;
  color: #fff;
}

.page-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Filter Controls Bar */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
  background: var(--bg-elevated);
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all 160ms ease;
}

.filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.filter-chip.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.select-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ui-select {
  padding: 8px 14px;
  border-radius: 8px;
  background: #1c1c28;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.ui-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Responsive Poster Grid */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
}

.poster-grid .series-card {
  flex: initial;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ==========================================================================
   Ranking Page — Top 3 Podium & Leaderboard
   ========================================================================== */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
  align-items: stretch;
}

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

.podium-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.podium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.podium-card.rank-1 {
  border-color: rgba(245, 197, 24, 0.55);
  box-shadow: 0 14px 40px rgba(245, 197, 24, 0.14);
}

.podium-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.4);
}

.podium-card.rank-3 {
  border-color: rgba(217, 119, 6, 0.45);
}

.podium-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: transform 400ms ease;
}

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

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.2) 0%, rgba(10, 10, 14, 0.78) 55%, rgba(10, 10, 14, 0.97) 100%);
  z-index: 1;
}

.podium-content {
  position: relative;
  z-index: 2;
}

.podium-medal {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.rank-1 .podium-medal {
  background: linear-gradient(135deg, #f5c518, #ca8a04);
  color: #111;
}
.rank-2 .podium-medal {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #0f172a;
}
.rank-3 .podium-medal {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #111;
}

.podium-score-big {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 36px;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(10, 10, 14, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold);
}

.podium-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.podium-note {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Ranked Leaderboard List */
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 64px 1fr 220px 145px;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.ranking-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(3px);
}

@media (max-width: 900px) {
  .ranking-row {
    grid-template-columns: 42px 54px 1fr auto;
  }
  .ranking-meter-col {
    display: none;
  }
}

.rank-pos {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 30px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1;
}

.rank-pos.top-1 { color: var(--gold); }
.rank-pos.top-2 { color: #e2e8f0; }
.rank-pos.top-3 { color: #f59e0b; }

.rank-thumb {
  width: 60px;
  height: 86px;
  border-radius: 7px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

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

.rank-info-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.rank-info-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.rank-info-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 560px;
}

.ranking-meter-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-track {
  width: 100%;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 300ms ease;
}

.meter-caption {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.rank-score-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.step-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 800;
  display: grid;
  place-items: center;
  transition: background 150ms ease, color 150ms ease;
}

.step-btn:hover {
  background: var(--accent);
  color: #fff;
}

.rank-score-box {
  min-width: 62px;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
}

/* ==========================================================================
   Categorias Page — Genre Overview Cards
   ========================================================================== */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.category-overview-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 180ms ease;
}

.category-overview-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.category-overview-card.active {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.24) 0%, rgba(24, 24, 34, 0.95) 100%);
  border-color: var(--accent);
}

.cat-card-name {
  font-size: 15.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.cat-card-stats {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.cat-card-avg {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(245, 197, 24, 0.12);
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
}

/* ==========================================================================
   Meus Status Page — KPI Summary Cards
   ========================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.kpi-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 180ms ease;
}

.kpi-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.kpi-card.active {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(229, 9, 20, 0.16), var(--bg-card));
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kpi-value {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 38px;
  line-height: 1;
  color: #fff;
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   Modals (Netflix Detail & Rating Modal + Add/Edit Series Modal)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 5, 8, 0.84);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  background: #14141d;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-modal);
  animation: modalIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  transition: background 150ms ease, transform 150ms ease;
}

.modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

/* Detail Modal Hero */
.detail-hero {
  position: relative;
  height: 300px;
  background-size: cover;
  background-position: center 20%;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 29, 0.18) 0%, rgba(20, 20, 29, 0.75) 68%, #14141d 100%);
}

.detail-body {
  position: relative;
  z-index: 2;
  margin-top: -95px;
  padding: 0 32px 32px;
}

.detail-top-grid {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .detail-top-grid {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    width: 130px;
  }
}

.detail-poster {
  width: 155px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
  background: #111;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 10px;
}

.detail-synopsis {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Rating Studio Box (0 to 10) */
.rating-studio {
  background: #1b1b27;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.studio-label {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
}

.studio-big-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.studio-score-num {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
}

.studio-score-max {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
}

.quick-numbers {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .quick-numbers {
    grid-template-columns: repeat(6, 1fr);
  }
}

.num-btn {
  padding: 8px 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all 140ms ease;
}

.num-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.num-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 12px rgba(229, 9, 20, 0.45);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.score-slider {
  flex: 1;
  accent-color: var(--accent);
  height: 6px;
  cursor: pointer;
}

.clear-score-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.clear-score-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Status Selector Grid inside Modal */
.status-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.status-option-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #1b1b27;
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 150ms ease;
}

.status-option-btn:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.status-option-btn.selected {
  background: rgba(255, 255, 255, 0.11);
  border-color: #fff;
  color: #fff;
}

/* Form Elements */
.form-section {
  padding: 28px 32px 32px;
}

.form-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 34px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.online-search-panel {
  background: linear-gradient(145deg, rgba(229, 9, 20, 0.11), rgba(27, 27, 39, 0.9));
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 22px;
}

.online-search-bar {
  display: flex;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.ui-input,
.ui-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 8px;
  background: #1c1c28;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  color: #fff;
  transition: border-color 150ms ease;
}

.ui-input:focus,
.ui-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ui-textarea {
  resize: vertical;
  min-height: 76px;
}

.search-results-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 14px;
  max-height: 250px;
  overflow-y: auto;
}

.api-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(16, 16, 24, 0.9);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease;
}

.api-result-item:hover {
  border-color: var(--accent);
  background: #232334;
}

.api-result-item img {
  width: 44px;
  height: 64px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: #111;
}

.cat-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-toggle-chip {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  background: #1c1c28;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 140ms ease;
}

.cat-toggle-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.image-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #1a1a26;
  border: 1px solid var(--border-subtle);
}

.preview-thumb {
  width: 64px;
  height: 94px;
  border-radius: 6px;
  overflow: hidden;
  background: #101018;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

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

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.btn-danger {
  padding: 9px 15px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 700;
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

/* ==========================================================================
   Empty State & Toast Notification
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  background: #1e1e2c;
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-card);
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  animation: fadeUp 220ms ease;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 110px;
  }
  .page-container {
    padding-top: 110px;
  }
}


/* ==========================================================================
   Modo Triagem / Quiz Interativo das 120+ Séries Mais Vistas
   ========================================================================== */
.nav-btn-quiz {
  border: 1px solid transparent;
}

.nav-btn-quiz:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-btn-quiz.active {
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.45);
  color: #fff;
}

.triage-shell {
  max-width: 1060px;
  margin: 0 auto;
}

.triage-onboarding-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.16) 0%, rgba(24, 24, 36, 0.95) 100%);
  border: 1px solid rgba(229, 9, 20, 0.4);
}

.triage-progress-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.triage-progress-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.triage-progress-track {
  width: 100%;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.triage-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e50914 0%, #f5c518 100%);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.triage-stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.triage-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.triage-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.triage-stage {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #151520;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.72);
  animation: triageCardIn 260ms cubic-bezier(0.2, 0.85, 0.25, 1);
}

@keyframes triageCardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.triage-ambient-bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.25) brightness(0.32);
  opacity: 0.75;
  z-index: 0;
  pointer-events: none;
}

.triage-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 30px;
  padding: 28px;
  align-items: center;
}

@media (max-width: 820px) {
  .triage-card-inner {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .triage-poster-wrap {
    max-width: 210px;
    margin: 0 auto;
  }
}

.triage-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
  background: #0e0e15;
}

.triage-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.triage-counter-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(10, 10, 14, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
}

.triage-platform-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.92);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
}

.triage-question-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--gold);
  margin-bottom: 6px;
}

.triage-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: 1.2px;
  color: #fff;
  margin-bottom: 10px;
}

.triage-synopsis {
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 12px 0 20px;
}

.triage-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .triage-choices-grid {
    grid-template-columns: 1fr;
  }
}

.triage-choice-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(24, 24, 36, 0.88);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.triage-choice-btn:hover {
  transform: translateY(-2px);
}

.triage-choice-btn.watched:hover,
.triage-choice-btn.watched.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2);
}

.triage-choice-btn.watching:hover,
.triage-choice-btn.watching.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.triage-choice-btn.watchlist:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.2);
}

.triage-choice-btn.dropped:hover,
.triage-choice-btn.dropped.selected {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.2);
}

.triage-choice-btn.skip {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  color: var(--text-secondary);
  justify-content: center;
}

.triage-choice-btn.skip:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.kbd-hint {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.11);
  color: #cbd5e1;
  flex-shrink: 0;
}

/* Inline Follow-up Step (Quick Score 0–10 + Season Progress) */
.triage-followup {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(12, 12, 19, 0.94);
  border: 1.5px solid rgba(245, 197, 24, 0.55);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 197, 24, 0.15);
  scroll-margin-top: 90px;
  animation: fadeUp 220ms ease;
}

#triageRatingPromptSection {
  scroll-margin-top: 90px;
}

.triage-quick-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0 12px;
}

.triage-score-chip {
  flex: 1 1 48px;
  padding: 9px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  transition: all 140ms ease;
}

.triage-score-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.triage-score-chip.gold:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}

.triage-season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.triage-season-pill {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.triage-season-pill.selected {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
}

/* ==========================================================================
   Nav Enhancements ("✨ Para Você" & "🎨 Gerar Arte")
   ========================================================================== */
.nav-btn-foryou {
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.1));
  color: #a7f3d0;
}

.nav-btn-foryou:hover,
.nav-btn-foryou.active {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(56, 189, 248, 0.2));
  color: #fff;
}

.btn-share-art {
  border-color: rgba(245, 197, 24, 0.45);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.14), rgba(229, 9, 20, 0.14));
  color: #fde68a;
  font-weight: 800;
}

.btn-share-art:hover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.26), rgba(229, 9, 20, 0.25));
  color: #fff;
}

/* ==========================================================================
   Multi-Dimensional Advanced Filter Bar
   ========================================================================== */
.adv-filter-bar {
  background: rgba(20, 20, 31, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adv-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.adv-filter-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #e2e8f0;
}

.adv-active-pill {
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.adv-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

.adv-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.adv-filter-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.adv-filter-field .ui-select {
  width: 100%;
  padding: 7px 10px;
  font-size: 12.5px;
}

.adv-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.adv-quick-pill {
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 140ms ease;
}

.adv-quick-pill:hover {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.adv-quick-pill.active {
  background: rgba(229, 9, 20, 0.22);
  border-color: var(--accent);
  color: #fff;
}

.adv-clear-btn {
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 800;
  transition: all 140ms ease;
}

.adv-clear-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* ==========================================================================
   "✨ Para Você" Recommendations, Roulette, DNA & 1v1 Duel
   ========================================================================== */
.foryou-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.foryou-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 800;
  transition: all 160ms ease;
}

.foryou-tab-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.foryou-tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(56, 189, 248, 0.16));
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.18);
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.rec-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.48);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}

.rec-card-top {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 14px;
}

.rec-poster {
  width: 108px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d15;
  border: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.rec-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-match-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 800;
}

.rec-reason-box {
  margin: 0 14px 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.35);
  font-size: 12px;
  color: #d1fae5;
  line-height: 1.45;
}

.rec-actions {
  margin-top: auto;
  padding: 10px 14px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* DNA & Achievements Grid */
.dna-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.dna-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
}

.dna-card-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badges-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.badge-item.unlocked {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.14), rgba(16, 185, 129, 0.08));
  border-color: rgba(245, 197, 24, 0.45);
}

.badge-icon {
  font-size: 26px;
  flex-shrink: 0;
}

/* 1v1 Duel Arena */
.duel-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin: 20px 0;
}

@media (max-width: 760px) {
  .duel-arena {
    grid-template-columns: 1fr;
  }
}

.duel-card {
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 180ms ease;
}

.duel-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(245, 197, 24, 0.18);
}

.duel-poster {
  width: 170px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.duel-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duel-vs-badge {
  align-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.45);
}

/* ==========================================================================
   Shareable Artwork Studio Modal (Canvas PNG Generator)
   ========================================================================== */
.share-modal-dialog {
  max-width: 1040px;
  padding: 26px 28px;
}

.share-studio-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .share-studio-layout {
    grid-template-columns: 1fr;
  }
}

.share-controls-panel {
  background: #1b1b27;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-preview-stage {
  background: #0b0b11;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.share-canvas-el {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ==========================================================================
   Phase 2: Season Tracker Pills, Trailer Button, Fast Rater & Stream Optimizer
   ========================================================================== */
.season-tracker-box {
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.season-tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 9px;
}

.season-tracker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.season-step-pill {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  transition: all 140ms ease;
}

.season-step-pill:hover {
  border-color: #38bdf8;
  color: #fff;
}

.season-step-pill.done {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.55);
  color: #e0f2fe;
}

.season-step-pill.current {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.season-step-pill.complete-all {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.48);
  color: #86efac;
}

.season-step-pill.complete-all:hover {
  background: #16a34a;
  color: #fff;
}

.btn-trailer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.48);
  color: #fecaca;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 150ms ease;
}

.btn-trailer:hover {
  background: #dc2626;
  border-color: #ef4444;
  color: #fff;
  transform: translateY(-1px);
}

.stream-opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stream-opt-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stream-opt-card.top-pick {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), var(--bg-card));
}

/* ==========================================================================
   📺 Assistindo Atualmente (Painel no Topo do Início + Seletor Rápido)
   ========================================================================== */
.current-watch-hub {
  margin: 0 4% 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.13) 0%, rgba(20, 20, 32, 0.94) 55%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(168, 85, 247, 0.42);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.current-watch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.current-watch-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.current-watch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(168, 85, 247, 0.25);
  border: 1px solid rgba(168, 85, 247, 0.55);
  color: #e9d5ff;
}

.current-watch-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(168, 85, 247, 0.38);
  color: var(--text-secondary);
  font-size: 13.5px;
}

.current-watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.current-watch-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 13px;
  border-radius: 14px;
  background: rgba(15, 15, 24, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.32);
  transition: transform 150ms ease, border-color 150ms ease;
}

.current-watch-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.72);
}

.current-watch-poster {
  width: 78px;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.current-watch-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw-season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0;
}

.cw-season-btn {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  transition: all 130ms ease;
}

.cw-season-btn:hover {
  border-color: #a855f7;
  color: #fff;
}

.cw-season-btn.done {
  background: rgba(168, 85, 247, 0.2);
  border-color: rgba(168, 85, 247, 0.48);
  color: #e9d5ff;
}

.cw-season-btn.current {
  background: #9333ea;
  border-color: #c084fc;
  color: #fff;
  box-shadow: 0 2px 10px rgba(147, 51, 234, 0.45);
}

.card-mini-btn.active-current {
  background: rgba(168, 85, 247, 0.28);
  border-color: #a855f7;
  color: #f3e8ff;
}

.cw-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 54vh;
  overflow-y: auto;
  padding-right: 4px;
}

.cw-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: border-color 140ms ease, background 140ms ease;
}

.cw-picker-row.is-current {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.52);
}

.cw-picker-thumb {
  width: 40px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   🔑 Tela de Acesso (Usuário + PIN) & Tutorial Guiado de 1º Acesso
   ========================================================================== */
.auth-screen {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 48px;
  background: radial-gradient(circle at 50% 10%, rgba(229, 9, 20, 0.16) 0%, rgba(10, 10, 15, 0) 65%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(20, 20, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  text-align: center;
  transition: all 150ms ease;
}

.auth-tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.auth-error-msg {
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tutorial-stage {
  max-width: 680px;
  margin: 24px auto;
  background: linear-gradient(145deg, rgba(22, 22, 34, 0.96), rgba(14, 14, 22, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 30px 26px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.tutorial-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.tutorial-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

.tutorial-step-pill.active {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.55);
  color: #fff;
}

.tutorial-step-pill.done {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #86efac;
}

.form-tutorial-banner {
  padding: 12px 15px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.42);
  margin-bottom: 16px;
}

.triage-tutorial-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.45);
  margin-bottom: 14px;
}

.adv-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.adv-filter-bar.collapsed .adv-filter-grid {
  display: none;
}

/* ==========================================================================
   📱 Otimização Completa para Navegador Mobile (Android & iOS Safari)
   ========================================================================== */
@media (max-width: 768px) {
  .navbar {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 10px;
    padding: 10px 14px 6px;
    height: auto;
    min-height: 90px;
    align-items: center;
    background: rgba(10, 10, 14, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-left {
    display: contents;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .brand-text {
    font-size: 24px;
    letter-spacing: 1.5px;
  }

  .brand-sub {
    display: none;
  }

  .nav-right {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .search-box {
    flex: 1;
    min-width: 0;
    max-width: 135px;
  }

  .search-input {
    width: 100% !important;
    font-size: 13px !important;
    padding: 6px 12px 6px 28px !important;
    height: 32px;
  }

  .search-box svg {
    left: 8px;
    width: 13px;
    height: 13px;
  }

  /* Redundante no topo mobile (já está presente no Hero e no modal) */
  #openShareArtBtn {
    display: none !important;
  }

  #openAddModalBtn {
    padding: 6px 10px;
    font-size: 11.5px;
    height: 32px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  #dataMenuBtn {
    padding: 6px 9px;
    font-size: 11.5px;
    height: 32px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Linha 2: Barra de navegação por categorias sem cortes */
  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 14px 4px 0;
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-btn {
    flex-shrink: 0;
    padding: 6px 11px;
    font-size: 12px;
  }

  /* Espaçamento perfeito do conteúdo principal e Hero */
  .main-content {
    padding-top: 96px !important;
  }

  .hero {
    min-height: auto;
    padding: 16px 14px 28px !important;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-synopsis {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .hero-actions {
    gap: 8px;
  }

  .btn-hero-white,
  .btn-hero-glass {
    padding: 9px 14px;
    font-size: 13px;
  }

  .current-watch-hub {
    margin: 0 12px 22px;
    padding: 14px;
  }

  .current-watch-grid {
    grid-template-columns: 1fr;
  }

  .carousel-section {
    padding: 0 12px;
  }

  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 12px;
  }

  .page-container {
    padding: 18px 12px 48px;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .page-title {
    font-size: 32px;
  }

  /* Evita zoom automático no iOS Safari ao focar inputs */
  .ui-input,
  .ui-select,
  .ui-textarea {
    font-size: 16px;
  }

  /* Modais estilo folha inferior / tela cheia confortável no celular */
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-dialog {
    max-height: 92dvh;
    border-radius: 18px;
  }

  .detail-hero {
    height: 190px;
  }

  .detail-body {
    margin-top: -65px;
    padding: 0 16px 22px;
  }

  .detail-top-grid {
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
  }

  .detail-poster {
    width: 96px;
  }

  .detail-title {
    font-size: 28px;
  }

  .quick-numbers {
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
  }

  .form-section {
    padding: 20px 16px;
  }

  /* Triagem compacta no celular para os botões caberem sem rolar */
  .triage-stage {
    padding: 16px 14px;
  }

  .triage-card-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .triage-poster-wrap {
    max-width: 145px;
    margin: 0 auto;
  }

  .triage-title {
    font-size: 30px;
    text-align: center;
  }

  .triage-synopsis {
    font-size: 13px;
    margin: 8px 0 12px;
  }

  .triage-choices-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .triage-choice-btn.skip {
    grid-column: 1 / -1;
  }

  .triage-choice-btn .kbd-hint {
    display: none;
  }

  .tutorial-stage {
    padding: 22px 16px;
    margin: 12px auto;
  }

  .auth-card {
    padding: 22px 18px;
  }
}

@media (hover: none) {
  /* Em telas touch (celulares/tablets), exibe barra compacta no rodapé da capa */
  .series-card .card-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 12, 0.92) 100%);
    padding: 8px;
    justify-content: flex-end;
  }
  .series-card .card-overlay > div:not(.card-quick-actions) {
    display: none;
  }
  .series-card .card-quick-actions {
    margin-top: 0;
    gap: 4px;
  }
  .series-card .card-mini-btn {
    padding: 4px 7px;
    font-size: 10.5px;
  }
}

/* ==========================================================================
   ⚔️ Arena de Duelos Elo Zero-Sum & Faixas Iniciais
   ========================================================================== */
.nav-btn-duel {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.16), rgba(229, 9, 20, 0.16));
  border: 1px solid rgba(245, 197, 24, 0.35);
}

.nav-btn-duel:hover,
.nav-btn-duel.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.28), rgba(229, 9, 20, 0.32));
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(245, 197, 24, 0.25);
}

.duel-calibration-bar {
  background: linear-gradient(145deg, rgba(22, 22, 34, 0.94), rgba(14, 14, 22, 0.96));
  border: 1px solid rgba(245, 197, 24, 0.32);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
}

.duel-last-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(20, 20, 32, 0.92));
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-bottom: 18px;
  font-size: 13px;
}

.duel-stakes-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.duel-stake-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}

.duel-stake-pill.win {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #4ade80;
}

.duel-stake-pill.lose {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #fca5a5;
}

.duel-record-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.duel-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.duel-tier-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-align: left;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.duel-tier-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.14);
}

.duel-tier-btn.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.24), rgba(229, 9, 20, 0.2));
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.22);
}

.duel-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.duel-lb-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.duel-lb-item:hover {
  border-color: rgba(245, 197, 24, 0.45);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   👑 Rei da Colina — Modo TikTok / Criador (9:16)
   ========================================================================== */
.nav-btn-koth {
  color: #fef08a;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.22), rgba(168, 85, 247, 0.22));
  border: 1px solid rgba(245, 197, 24, 0.45);
}

.nav-btn-koth:hover,
.nav-btn-koth.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.38), rgba(229, 9, 20, 0.38));
  border-color: #f5c518;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.32);
}

body.koth-recording-mode .navbar {
  display: none !important;
}

body.koth-recording-mode .main-content {
  padding-top: 12px !important;
  padding-bottom: 16px !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 20%, #171226 0%, #09090f 65%, #050508 100%);
}

.koth-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

body.koth-recording-mode .koth-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.koth-studio-panel {
  background: linear-gradient(155deg, rgba(22, 22, 34, 0.95), rgba(13, 13, 21, 0.98));
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.koth-recording-mode .koth-studio-panel {
  display: none !important;
}

.koth-panel-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.koth-panel-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.koth-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.koth-chip {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 140ms ease;
}

.koth-chip:hover {
  border-color: rgba(245, 197, 24, 0.5);
  color: #fff;
  background: rgba(245, 197, 24, 0.12);
}

.koth-chip.active {
  color: #09090d;
  font-weight: 800;
  background: linear-gradient(135deg, #f5c518, #fbbf24);
  border-color: #fde047;
  box-shadow: 0 0 14px rgba(245, 197, 24, 0.35);
}

.koth-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 9:16 Vertical TikTok Frame */
.koth-tiktok-frame {
  width: 100%;
  max-width: 440px;
  min-height: 760px;
  border-radius: 28px;
  padding: 20px 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 197, 24, 0.18), transparent 48%),
    radial-gradient(circle at 50% 100%, rgba(229, 9, 20, 0.18), transparent 52%),
    linear-gradient(180deg, #13111c 0%, #0b0b13 50%, #09080e 100%);
  border: 2px solid rgba(245, 197, 24, 0.35);
  box-shadow:
    0 24px 68px rgba(0, 0, 0, 0.75),
    0 0 38px rgba(245, 197, 24, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

body.koth-recording-mode .koth-tiktok-frame {
  max-width: 445px;
  min-height: 790px;
  border-color: rgba(245, 197, 24, 0.52);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.9),
    0 0 48px rgba(245, 197, 24, 0.18);
}

.koth-stage-top {
  text-align: center;
  margin-bottom: 10px;
}

.koth-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.koth-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(245, 197, 24, 0.16);
  border: 1px solid rgba(245, 197, 24, 0.45);
  color: #fde047;
}

.koth-round-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.koth-progress-segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  margin-bottom: 10px;
}

.koth-seg {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 200ms ease, box-shadow 200ms ease;
}

.koth-seg.done {
  background: linear-gradient(90deg, #f5c518, #ef4444);
}

.koth-seg.active {
  background: #fde047;
  box-shadow: 0 0 10px rgba(253, 224, 71, 0.8);
}

.koth-hook-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 33px;
  line-height: 1.02;
  letter-spacing: 1.2px;
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.koth-hook-sub {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 3px;
}

/* Fighters Stack (Vertical 9:16 Top vs Bottom or Side by Side) */
.koth-arena-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: center;
  position: relative;
  margin: 6px 0;
}

.koth-arena-stack.side-by-side {
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}

.koth-fighter-card {
  position: relative;
  border-radius: 20px;
  padding: 13px;
  background: linear-gradient(145deg, rgba(27, 27, 42, 0.94), rgba(16, 16, 26, 0.97));
  border: 2px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  user-select: none;
}

.koth-fighter-card.king-card {
  border-color: rgba(245, 197, 24, 0.68);
  background: linear-gradient(145deg, rgba(42, 33, 16, 0.92), rgba(18, 17, 26, 0.97));
  box-shadow: 0 10px 30px rgba(245, 197, 24, 0.14);
}

.koth-fighter-card.challenger-card {
  border-color: rgba(229, 9, 20, 0.58);
  background: linear-gradient(145deg, rgba(40, 16, 24, 0.92), rgba(16, 16, 26, 0.97));
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.14);
}

.koth-fighter-card:hover {
  transform: translateY(-3px) scale(1.01);
}

.koth-fighter-card.king-card:hover {
  border-color: #fde047;
  box-shadow: 0 14px 36px rgba(245, 197, 24, 0.28);
}

.koth-fighter-card.challenger-card:hover {
  border-color: #f87171;
  box-shadow: 0 14px 36px rgba(229, 9, 20, 0.28);
}

.koth-fighter-card.is-winner {
  transform: scale(1.035) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 0 36px rgba(74, 222, 128, 0.55) !important;
  z-index: 4;
}

.koth-fighter-card.is-loser {
  transform: scale(0.95) !important;
  opacity: 0.38 !important;
  filter: grayscale(0.8);
}

.koth-role-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.koth-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.koth-role-tag.king {
  background: linear-gradient(135deg, #f5c518, #f59e0b);
  color: #09090d;
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.4);
}

.koth-role-tag.challenger {
  background: linear-gradient(135deg, #e50914, #dc2626);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.koth-streak-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(245, 197, 24, 0.18);
  border: 1px solid rgba(245, 197, 24, 0.45);
  color: #fde047;
}

.koth-card-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.koth-arena-stack.side-by-side .koth-fighter-card {
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}

.koth-arena-stack.side-by-side .koth-card-body {
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.koth-poster-box {
  width: 108px;
  height: 158px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  background: #161622;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
}

.koth-arena-stack.side-by-side .koth-poster-box {
  width: 100%;
  height: 235px;
}

.koth-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.koth-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.koth-series-title {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.koth-arena-stack.side-by-side .koth-series-title {
  font-size: 17px;
}

.koth-series-meta {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.koth-score-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.koth-arena-stack.side-by-side .koth-score-badges {
  justify-content: center;
}

.koth-vote-btn {
  margin-top: 4px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.koth-fighter-card.king-card .koth-vote-btn {
  background: linear-gradient(135deg, #f5c518, #eab308);
  color: #09090d;
}

.koth-fighter-card.challenger-card .koth-vote-btn {
  background: linear-gradient(135deg, #e50914, #dc2626);
  color: #ffffff;
}

.koth-vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: -4px 0;
  z-index: 3;
}

.koth-arena-stack.side-by-side .koth-vs-divider {
  display: none;
}

.koth-vs-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5c518, #e50914);
  color: #ffffff;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
  border: 2px solid #ffffff;
}

.koth-verdict-stamp {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.72);
  backdrop-filter: blur(3px);
  z-index: 5;
  animation: kothStampPop 220ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.koth-verdict-pill {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
}

.koth-verdict-pill.win {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #052e16;
  border: 2px solid #bbf7d0;
}

.koth-verdict-pill.lose {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #ffffff;
  border: 2px solid #fecaca;
}

@keyframes kothStampPop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.koth-stage-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

/* Floating toolbar when in TikTok Recording Mode */
.koth-recording-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Champion Finale View inside 9:16 Frame */
.koth-champion-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
}

.koth-champ-poster {
  width: 176px;
  height: 256px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #f5c518;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 36px rgba(245, 197, 24, 0.45);
  position: relative;
}

.koth-champ-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.koth-history-trail {
  width: 100%;
  max-height: 175px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
}

.koth-trail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

@media (max-width: 920px) {
  .koth-layout {
    grid-template-columns: 1fr;
  }
}







/* ==========================================================================
   PILAR 1: MÓDULO ONDE ASSISTIR & AFILIADOS INTELIGENTES
   ========================================================================== */
.where-to-watch-panel {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.85), rgba(12, 14, 22, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wtw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
  flex-wrap: wrap;
}

.wtw-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
}

.wtw-verified-pill {
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
}

.wtw-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.wtw-stream-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  color: #fff;
  background: #1f2937;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.wtw-stream-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.wtw-amazon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  color: #ff9900;
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.35);
  transition: all 0.18s ease;
  cursor: pointer;
}

.wtw-amazon-btn:hover {
  background: rgba(255, 153, 0, 0.2);
  border-color: #ff9900;
  transform: translateY(-2px);
}

.wtw-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

/* Card mini stream badge */
.card-stream-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.card-stream-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ==========================================================================
   PILAR 2: SLOTS ESTRATÉGICOS PARA GOOGLE ADSENSE & ANÚNCIOS NATIVOS
   ========================================================================== */
/* Slot 1: Native In-Feed Ad Card (mesmo tamanho e proporção de um series-card) */
.native-ad-card {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(160deg, #181926 0%, #11121d 100%);
  border: 1px solid rgba(255, 153, 0, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.native-ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.native-ad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.native-ad-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.native-ad-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.native-ad-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.native-ad-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.native-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.native-ad-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* Molduras e Miniaturas de Arte Visual dos Livros */
.native-ad-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d16;
}

.native-ad-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.native-ad-card:hover .native-ad-poster-img {
  transform: scale(1.05);
}

.native-ad-poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(13,12,24,0.95) 100%);
  pointer-events: none;
}

.visual-ad-thumb {
  width: 150px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.visual-ad-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-modal-thumb {
  width: 96px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.visual-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slot 2: Final de Interação (Duelos & Triagem) */
.ad-slot-end-interaction {
  margin: 24px auto 0;
  max-width: 820px;
  width: 100%;
  box-sizing: border-box;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  text-align: left;
}

.visual-end-ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.ad-end-content {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.ad-end-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ad-end-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ad-end-subtitle {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

.ad-end-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
}

.ad-end-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  text-decoration: none !important;
}

@media (max-width: 640px) {
  .visual-end-ad-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .visual-ad-thumb {
    width: 100%;
    height: 150px;
  }
  .ad-end-btn {
    width: 100%;
  }
}

/* Slot 3: Modal de Detalhes Banner */
.ad-slot-detail-modal {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.ad-slot-detail-modal a,
.where-to-watch-panel a,
.wtw-amazon-btn {
  text-decoration: none !important;
}

/* Slot genérico leaderboard */
.ad-slot-leaderboard {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto;
  width: 100%;
}
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto;
  width: 100%;
}

/* ==========================================================================
   PILAR 3: COMPARTILHAMENTO DE RANKING & VIRALIDADE
   ========================================================================== */
.share-ranking-dialog {
  max-width: 680px;
  padding: 24px;
  border-radius: 18px;
  background: #10111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.share-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.share-rank-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  color: #fff;
  margin: 0;
}

.share-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.share-tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.share-tab-btn.active {
  background: rgba(229, 9, 20, 0.15);
  color: #fff;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.share-preview-box {
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #090a10;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-family: monospace;
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.share-buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-share-whatsapp {
  background: #25d366;
  color: #000;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-share-twitter {
  background: #1d9bf0;
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

/* ==========================================================================
   PILAR 4: COMPLIANCE, LGPD & TERMOS
   ========================================================================== */
/* Cookie Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 860px;
  z-index: 99999;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(16, 18, 28, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: slideUpFade 0.35s ease-out;
}

.cookie-consent-banner[hidden],
.cookie-consent-banner.cookie-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-consent-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.cookie-consent-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}

.cookie-link-btn {
  background: none;
  border: none;
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.cookie-consent-actions {
  flex-shrink: 0;
}

/* Legal Modal */
.legal-dialog {
  max-width: 840px;
  max-height: 90vh;
  padding: 26px;
  border-radius: 20px;
  background: #11131c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.legal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 1px;
  color: #fff;
  margin: 0;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  overflow-x: auto;
}

.legal-tab-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.legal-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.legal-body-scroll {
  overflow-y: auto;
  padding-right: 8px;
  color: #cbd5e1;
  font-size: 13.5px;
  line-height: 1.65;
}

.legal-section-block {
  margin-bottom: 22px;
}

.legal-section-block h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.legal-section-block p {
  margin-bottom: 10px;
}

.legal-section-block ul {
  padding-left: 20px;
  margin-bottom: 10px;
}

.legal-section-block li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Floating Corner Chat-Style Widget (Matéria Escura)
   ========================================================================== */
.corner-floating-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  transition: bottom 0.3s ease;
}

body:has(.cookie-consent-banner:not([hidden]):not(.cookie-hidden)) .corner-floating-widget {
  bottom: 95px;
}

.corner-widget-card {
  pointer-events: auto;
  width: 300px;
  max-width: calc(100vw - 36px);
  background: rgba(13, 16, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.22);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s ease;
  transform-origin: bottom right;
  animation: slideUpCorner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpCorner {
  0% { opacity: 0; transform: translateY(25px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.corner-floating-widget.minimized .corner-widget-card {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateY(20px);
  pointer-events: none;
  position: absolute;
}

.corner-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.corner-widget-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.corner-widget-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.corner-widget-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.corner-widget-body {
  display: block;
  padding: 12px 14px 10px;
  text-decoration: none !important;
  color: inherit;
  transition: background 0.2s;
}

.corner-widget-body:hover {
  background: rgba(56, 189, 248, 0.04);
}

.corner-widget-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: 10px;
  background: #080a12;
}

.corner-widget-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.corner-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(2, 132, 199, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.corner-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 3px;
}

.corner-sub {
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
}

.corner-text {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.corner-widget-footer {
  padding: 0 14px 14px;
}

.corner-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: transform 0.18s ease, filter 0.18s ease;
  box-sizing: border-box;
}

.corner-cta-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  text-decoration: none !important;
}

/* Minimized Bubble Trigger (Chat-Style) */
.corner-widget-bubble {
  pointer-events: auto;
  position: relative;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: rgba(14, 18, 30, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  animation: bouncePill 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.corner-floating-widget.minimized .corner-widget-bubble {
  display: flex;
}

.corner-widget-bubble:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 28px rgba(56, 189, 248, 0.45);
}

.bubble-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
  display: block;
}

.bubble-unread-dot {
  position: absolute;
  top: 4px;
  left: 32px;
  width: 10px;
  height: 10px;
  background: #0284c7;
  border: 2px solid #0d101a;
  border-radius: 50%;
}

.bubble-label-pill {
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

@keyframes bouncePill {
  0% { transform: scale(0.7) translateY(15px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
  .corner-floating-widget {
    bottom: 74px !important;
    right: 14px !important;
  }
  body:has(.cookie-consent-banner:not([hidden]):not(.cookie-hidden)) .corner-floating-widget {
    bottom: 145px !important;
  }
  .corner-widget-card {
    width: 270px;
  }
  .bubble-label-pill {
    display: none;
  }
  .corner-widget-bubble {
    padding: 6px;
  }
}
