/* ================================================================
   CLUBE VIP DOS DRAMAS — membros.css v3 — Netflix-Style
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ================================================================
   VARIABLES & RESET
   ================================================================ */
:root {
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-header: rgba(15,15,15,0.92);
  --pink: #ff2d78;
  --pink-hover: #e0195f;
  --pink-light: #ff6b9d;
  --pink-dim: rgba(255,45,120,0.15);
  --white: #ffffff;
  --text-dim: rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.45);
  --border: rgba(255,255,255,0.08);
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.7);
  --font: 'Inter', -apple-system, sans-serif;
  --header-h: 64px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: var(--font); }

/* ================================================================
   LOADING SCREEN
   ================================================================ */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.4s, visibility 0.4s;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo { font-size: 1.1rem; font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; }
.loading-logo .accent { color: var(--pink); }
.loading-spinner {
  width: 36px; height: 36px;
  border: 2px solid rgba(255,45,120,0.15);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   TOAST
   ================================================================ */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: #1e1e1e; border: 1px solid var(--border);
  color: var(--white); border-radius: var(--radius);
  padding: 0.75rem 1.1rem; font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  animation: toastIn 0.2s ease;
  max-width: 340px;
}
.toast.exit { animation: toastOut 0.25s ease forwards; }
.toast-success { border-left: 3px solid #22c55e; }
.toast-error { border-left: 3px solid var(--pink); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { to { transform: translateX(120%); opacity: 0; } }

/* ================================================================
   HEADER
   ================================================================ */
.members-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: var(--bg-header);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.members-header.transparent { background: transparent; border-bottom-color: transparent; }
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  height: 100%; padding: 0 1.5rem;
  max-width: 100%;
}
.header-logo {
  display: flex; align-items: center; gap: 0.6rem;
  flex-shrink: 0; font-weight: 900; font-size: 0.85rem;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.header-logo img { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; }
.header-logo .accent { color: var(--pink); }
.header-logo-text { display: none; }
@media (min-width: 640px) { .header-logo-text { display: inline; } }

.header-nav {
  display: none;
  align-items: center; gap: 1.5rem;
}
@media (min-width: 768px) { .header-nav { display: flex; } }
.nav-link {
  font-size: 0.875rem; font-weight: 500; color: var(--text-dim);
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }

.header-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }

.header-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.75rem; gap: 0.4rem;
  transition: background var(--transition), border-color var(--transition);
}
.header-search:focus-within {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.header-search svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.header-search input {
  background: none; border: none; color: var(--white);
  font-size: 0.85rem; width: 110px;
  transition: width var(--transition);
}
@media (min-width: 640px) { .header-search input { width: 160px; } }
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--text-muted); }

.header-user { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.header-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink) 0%, #8b5cf6 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; flex-shrink: 0;
}
.header-user-info { display: none; }
@media (min-width: 900px) {
  .header-user-info { display: flex; flex-direction: column; }
}
.header-user-email { font-size: 0.78rem; color: var(--text-dim); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user-plan { font-size: 0.68rem; font-weight: 700; color: var(--pink); text-transform: uppercase; letter-spacing: 0.05em; }
.btn-logout {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all var(--transition);
}
.btn-logout:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-logout svg { width: 14px; height: 14px; }

/* ================================================================
   HERO BANNER
   ================================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 75vh; min-height: 500px; max-height: 800px;
  overflow: hidden;
  margin-top: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transition: opacity 0.8s ease;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: opacity 0.8s ease;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,15,15,0.2) 0%,
    rgba(15,15,15,0.1) 30%,
    rgba(15,15,15,0.5) 60%,
    rgba(15,15,15,0.95) 90%,
    var(--bg) 100%
  );
}
.hero-overlay-left {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,15,15,0.85) 0%, rgba(15,15,15,0.3) 50%, transparent 100%);
}
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.5rem;
  padding-top: var(--header-h);
}
@media (min-width: 768px) { .hero-content { padding: 3rem; } }

.hero-badge-row {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem; flex-wrap: wrap;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--pink); color: white;
  font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.6rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.hero-badge-outline {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--text-dim);
  font-size: 0.68rem; font-weight: 600; padding: 0.25rem 0.6rem;
  border-radius: 4px; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  max-width: 620px;
}
.hero-synopsis {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.55;
  max-width: 480px; margin-bottom: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) { .hero-synopsis { display: none; } }
.hero-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.btn-hero-play {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--pink); color: white;
  font-size: 0.9rem; font-weight: 700; padding: 0.7rem 1.6rem;
  border-radius: 8px; transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255,45,120,0.4);
}
.btn-hero-play:hover { background: var(--pink-hover); transform: translateY(-1px); box-shadow: 0 6px 28px rgba(255,45,120,0.5); }
.btn-hero-play svg { width: 18px; height: 18px; fill: white; }
.btn-hero-info {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.12); color: white;
  font-size: 0.875rem; font-weight: 600; padding: 0.7rem 1.4rem;
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px); transition: all var(--transition);
}
.btn-hero-info:hover { background: rgba(255,255,255,0.2); }
.btn-hero-info svg { width: 16px; height: 16px; }

/* Hero dots navigation */
.hero-dots {
  position: absolute; bottom: 1rem; right: 1.5rem;
  display: flex; gap: 0.4rem; z-index: 10;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all var(--transition);
}
.hero-dot.active { background: var(--pink); width: 18px; border-radius: 3px; }

/* ================================================================
   FILTER BARS
   ================================================================ */
.filters-bar {
  position: sticky; top: var(--header-h); z-index: 400;
  background: var(--bg);
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.filter-pills {
  display: flex; gap: 0.45rem;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
}
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.38rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: all var(--transition);
  border: 1px solid var(--border);
  color: var(--text-dim);
  flex-shrink: 0;
}
.pill:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }
.pill.active {
  background: var(--pink);
  border-color: var(--pink);
  color: white;
}

/* ================================================================
   CATALOG MAIN
   ================================================================ */
.catalog-main { padding-top: 0.5rem; padding-bottom: 5rem; }

/* ================================================================
   CATALOG SECTION
   ================================================================ */
.catalog-section { padding: 1.5rem 0 0.5rem; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; margin-bottom: 0.875rem;
}
.section-title {
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.02em;
  border-left: 3px solid var(--pink);
  padding-left: 0.6rem;
}
.section-see-all {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.78rem; font-weight: 600; color: var(--pink);
  cursor: pointer; transition: opacity var(--transition);
}
.section-see-all:hover { opacity: 0.75; }
.section-see-all svg { width: 14px; height: 14px; }

/* ================================================================
   ROW WRAPPER (scroll container)
   ================================================================ */
.row-wrapper {
  position: relative; overflow: hidden;
}
.catalog-row {
  display: flex; gap: 0.6rem;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 1.5rem 0.75rem;
}
.catalog-row::-webkit-scrollbar { display: none; }
.catalog-row > * { scroll-snap-align: start; }

/* Fade right edge */
.row-wrapper::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 60px; height: 100%;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none; z-index: 1;
}

/* ================================================================
   DRAMA CARD (Portrait 2:3)
   ================================================================ */
.dorama-card {
  flex-shrink: 0;
  width: 140px;
  cursor: pointer;
  transition: transform 0.25s ease;
}
@media (min-width: 480px) { .dorama-card { width: 160px; } }
@media (min-width: 768px) { .dorama-card { width: 170px; } }
@media (min-width: 1200px) { .dorama-card { width: 185px; } }

.dorama-card:hover { transform: scale(1.04); z-index: 2; }

.dorama-card-inner {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* Força 2:3 absoluto */
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.dorama-card-inner > img,
.dorama-card-inner > .dorama-card-placeholder,
.dorama-card-inner > .dorama-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.dorama-card-inner img {
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.dorama-card:hover .dorama-card-inner img { transform: scale(1.06); }

/* Badge corner */
.dorama-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
}
.dorama-badge span {
  display: inline-block;
  background: var(--pink);
  color: white; font-size: 0.58rem; font-weight: 800;
  padding: 2px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-legendado { background: rgba(255,45,120,0.65) !important; }
.badge-nacional { background: #22c55e !important; }

/* Lock icon for paid content */
.dorama-lock {
  position: absolute; inset: 0; z-index: 4;
  background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.3rem;
  opacity: 0; transition: opacity var(--transition);
}
.dorama-card:hover .dorama-lock { opacity: 1; }
.dorama-lock svg { width: 28px; height: 28px; color: white; }
.dorama-lock span { font-size: 0.65rem; font-weight: 700; color: white; text-align: center; padding: 0 0.5rem; }

/* Hover overlay */
.dorama-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 0.75rem 0.5rem;
  opacity: 0; transition: opacity 0.25s;
}
.dorama-card:hover .dorama-overlay { opacity: 1; }
.dorama-play-btn {
  width: 40px; height: 40px;
  background: var(--pink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 12px rgba(255,45,120,0.5);
}
.dorama-play-btn svg { width: 18px; height: 18px; fill: white; margin-left: 2px; }

/* Placeholder when no image */
.dorama-card-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); color: rgba(255,255,255,0.2);
}

/* Card title below poster */
.dorama-card-title {
  margin-top: 0.45rem;
  font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}

/* ================================================================
   TOP 10 CARDS
   ================================================================ */
.top10-row { gap: 0.25rem; }
.top10-row .dorama-card { width: 130px; }
@media (min-width: 480px) { .top10-row .dorama-card { width: 150px; } }
@media (min-width: 768px) { .top10-row .dorama-card { width: 160px; } }

.dorama-card.top10 { display: block; position: relative; }

.top10-number {
  position: absolute;
  bottom: 20px; left: -18px;
  font-size: 7rem; font-weight: 900; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.18);
  text-stroke: 2px rgba(255,255,255,0.18);
  font-style: italic;
  pointer-events: none; z-index: 2;
  letter-spacing: -0.08em;
  text-shadow: none;
  transition: -webkit-text-stroke 0.25s;
}
.dorama-card.top10:hover .top10-number {
  -webkit-text-stroke-color: rgba(255,45,120,0.4);
}
.dorama-card.top10 .dorama-card-inner,
.dorama-card.top10 .dorama-card-title {
  margin-left: 22px;
  width: calc(100% - 22px);
}

/* ================================================================
   SEARCH RESULTS
   ================================================================ */
#search-section { padding: 0 1.5rem 1.5rem; }
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem; margin-top: 1rem;
}
@media (min-width: 480px) { .search-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); } }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6rem 2rem; text-align: center; gap: 1rem;
}
.empty-state-icon { font-size: 3.5rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; }
.empty-state p { font-size: 0.875rem; color: var(--text-muted); }

/* ================================================================
   ACCESS GATE MODAL
   ================================================================ */
.gate-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: all 0.25s;
}
.gate-overlay.show { opacity: 1; visibility: visible; }
.gate-modal {
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; max-width: 420px; width: 100%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.25s;
  max-height: 90vh; overflow-y: auto;
}
.gate-overlay.show .gate-modal { transform: scale(1); }
.gate-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.gate-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.gate-subtitle { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 1.75rem; line-height: 1.55; }
.btn-gate-primary {
  display: block; width: 100%;
  background: var(--pink); color: white;
  font-size: 0.95rem; font-weight: 700; padding: 0.9rem;
  border-radius: var(--radius); text-align: center;
  transition: background var(--transition);
  margin-bottom: 0.75rem;
}
.btn-gate-primary:hover { background: var(--pink-hover); }
.btn-gate-secondary {
  display: block; width: 100%;
  font-size: 0.85rem; color: var(--text-muted); padding: 0.5rem;
  transition: color var(--transition);
}
.btn-gate-secondary:hover { color: var(--white); }

/* ================================================================
   LOGIN / ACESSO PAGE
   ================================================================ */
.login-bg {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,45,120,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(139,92,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
}
.login-card {
  background: rgba(26,26,26,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%; max-width: 420px;
  position: relative; z-index: 1;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.login-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.login-logo img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; }
.login-logo-text { font-size: 0.85rem; font-weight: 900; text-transform: uppercase; }
.login-logo-text .accent { color: var(--pink); }
.login-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; }
.login-subtitle { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 0.45rem; text-transform: uppercase; letter-spacing: 0.04em; }
.form-input {
  width: 100%; padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--white);
  font-size: 0.9rem; transition: all var(--transition);
}
.form-input:focus { outline: none; border-color: var(--pink); background: rgba(255,255,255,0.08); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input option { background: #1a1a1a; }
textarea.form-input { resize: vertical; min-height: 100px; }
.btn-login {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--pink); color: white;
  font-size: 0.95rem; font-weight: 700; padding: 0.85rem;
  border-radius: var(--radius); transition: background var(--transition);
  margin-top: 0.5rem;
}
.btn-login:hover { background: var(--pink-hover); }
.login-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0; color: var(--text-muted); font-size: 0.8rem; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-info { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; text-align: center; }
.login-info a { color: var(--pink); }
.login-error {
  display: none; align-items: center; gap: 0.5rem;
  background: rgba(255,45,120,0.1); border: 1px solid rgba(255,45,120,0.25);
  border-radius: var(--radius); padding: 0.6rem 0.75rem;
  margin-top: 0.75rem; font-size: 0.82rem; color: var(--pink-light);
}
.login-error.show { display: flex; }
.login-success {
  display: none; align-items: center; gap: 0.5rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius); padding: 0.6rem 0.75rem;
  margin-top: 0.75rem; font-size: 0.82rem; color: #86efac;
}
.login-success.show { display: flex; }
.login-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.25); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
.login-spinner.show { display: block; }

/* ================================================================
   PLAYER PAGE
   ================================================================ */
.player-body { background: #000; }
.player-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; padding: 0 1.25rem; gap: 0.75rem;
}
.player-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.875rem; font-weight: 600; color: var(--text-dim);
  transition: color var(--transition);
}
.player-back:hover { color: var(--white); }
.player-back svg { width: 18px; height: 18px; }
.player-back-title { font-size: 0.875rem; font-weight: 700; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.player-main { padding-top: 56px; min-height: 100vh; }

.player-cover-container, .player-iframe-container {
  width: 100%; max-width: 1000px; margin: 0 auto;
  height: 85vh; /* Formato vertical gigante no mobile */
  background: #000;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
@media (min-width: 768px) {
  .player-cover-container, .player-iframe-container {
      height: auto;
      aspect-ratio: 16 / 9;
  }
}
.player-iframe-container { display: none; }
.player-iframe-container.show { display: block; }
.player-iframe-container iframe { width: 100%; height: 100%; border: none; }

/* Cover / thumbnail */
.player-cover-container {
  width: 100%; background: #000;
  position: relative; cursor: pointer;
  display: flex; justify-content: center; align-items: center;
  min-height: 55vw; max-height: 70vh; overflow: hidden;
}
.player-cover-container.hidden-player { display: none; }

.player-cover-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.player-cover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
}
.player-play-circle {
  width: 72px; height: 72px;
  background: var(--pink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 32px rgba(255,45,120,0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}
.player-cover-container:hover .player-play-circle {
  transform: scale(1.08);
  box-shadow: 0 8px 40px rgba(255,45,120,0.65);
}
.player-play-circle svg { width: 30px; height: 30px; fill: white; margin-left: 4px; }
.player-click-text { font-size: 0.875rem; font-weight: 600; color: white; }

.player-cover-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #111; color: rgba(255,255,255,0.2);
}

.player-info-box { padding: 1.5rem; }
.player-info-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.6rem; }
.player-info-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.player-meta-badge { background: var(--pink); color: white; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; }
.player-meta-item { font-size: 0.8rem; color: var(--text-dim); padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; }
.player-info-synopsis { font-size: 0.875rem; color: var(--text-dim); line-height: 1.65; }

/* Episodes list */
.player-episodes { padding: 0 1.5rem 2rem; }
.player-episodes-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.episode-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background var(--transition);
  border-radius: var(--radius);
}
.episode-item:hover { background: rgba(255,255,255,0.04); padding-left: 0.5rem; }
.episode-num { font-size: 0.8rem; font-weight: 700; color: var(--pink); min-width: 2rem; }
.episode-title { font-size: 0.875rem; font-weight: 500; }
.episode-play-icon { margin-left: auto; color: var(--text-muted); }
.episode-play-icon svg { width: 16px; height: 16px; }

/* Player CTA banner */
.player-cta-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 300;
  background: var(--pink);
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 1.5rem;
}
.cta-left { display: flex; align-items: center; gap: 0.6rem; flex: 1; }
.cta-left svg { width: 20px; height: 20px; flex-shrink: 0; }
.cta-left div { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.player-cta-btn {
  display: inline-flex; align-items: center;
  background: white; color: var(--pink);
  font-size: 0.8rem; font-weight: 800; padding: 0.45rem 1rem;
  border-radius: 20px; white-space: nowrap;
  transition: opacity var(--transition);
}
.player-cta-btn:hover { opacity: 0.9; }

/* ================================================================
   ADMIN STYLES
   ================================================================ */
.admin-body { background: var(--bg); }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #111; border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100;
}
.admin-sidebar-logo {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.admin-sidebar-logo-text { font-size: 0.78rem; font-weight: 900; text-transform: uppercase; line-height: 1.2; }
.badge-admin {
  display: inline-block;
  background: var(--pink); color: white;
  font-size: 0.55rem; font-weight: 800; padding: 1px 5px;
  border-radius: 3px; text-transform: uppercase; letter-spacing: 0.06em;
}
.admin-nav { padding: 1rem 0; flex: 1; }
.admin-nav-section { font-size: 0.65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.5rem 1rem 0.25rem; }
.admin-nav-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.65rem 1rem; margin: 0.1rem 0.5rem;
  border-radius: var(--radius); cursor: pointer;
  font-size: 0.875rem; font-weight: 500; color: var(--text-dim);
  transition: all var(--transition); text-decoration: none;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.05); color: var(--white); }
.admin-nav-item.active { background: var(--pink-dim); color: var(--pink); }
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-sidebar-footer { padding: 0.75rem; border-top: 1px solid var(--border); }
.btn-admin-logout {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; padding: 0.6rem 0.75rem;
  border-radius: var(--radius); color: var(--text-muted);
  font-size: 0.82rem; font-weight: 500;
  transition: all var(--transition);
}
.btn-admin-logout:hover { background: rgba(255,45,120,0.1); color: var(--pink); }

.admin-main { margin-left: 240px; flex: 1; padding: 2rem; }
.admin-page-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.4rem; }
.admin-page-subtitle { font-size: 0.875rem; color: var(--text-dim); margin-bottom: 2rem; }

/* Dashboard Stats */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 1024px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: #151515; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.stat-card-icon {
  width: 36px; height: 36px;
  background: var(--pink-dim); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--pink);
}
.stat-card-icon svg { width: 18px; height: 18px; }
.stat-card-value { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; }
.stat-card-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

/* Admin Table */
.admin-table-wrapper {
  background: #151515; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem;
}
.admin-table-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-table-header h3 { font-size: 0.95rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead tr { border-bottom: 1px solid var(--border); }
.admin-table th { padding: 0.7rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.admin-table td { padding: 0.85rem 1rem; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table tbody tr:last-child td { border-bottom: none; }

.table-dorama-cell { display: flex; align-items: center; gap: 0.75rem; }
.table-dorama-cover { width: 40px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.table-dorama-cover-placeholder { width: 40px; height: 60px; background: #222; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #444; flex-shrink: 0; }
.table-dorama-title { font-weight: 600; font-size: 0.875rem; }
.table-dorama-genre { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Table Actions */
.table-actions { display: flex; gap: 0.35rem; }
.btn-icon {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-icon svg { width: 14px; height: 14px; }
.btn-edit { color: var(--text-dim); border-color: var(--border); }
.btn-edit:hover { color: var(--white); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
.btn-delete { color: var(--pink); border-color: rgba(255,45,120,0.2); }
.btn-delete:hover { background: rgba(255,45,120,0.12); }
.btn-episodes { color: #a78bfa; border-color: rgba(167,139,250,0.2); }
.btn-episodes:hover { background: rgba(167,139,250,0.1); }

/* Badge pills in table */
.badge-pill { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; }
.badge-dublado { background: rgba(255,45,120,0.15); color: var(--pink-light); border: 1px solid rgba(255,45,120,0.25); }
.badge-legendado { background: rgba(167,139,250,0.12); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.2); }
.badge-published { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.badge-draft { background: rgba(250,204,21,0.12); color: #fde047; border: 1px solid rgba(250,204,21,0.2); }
.badge-paid { background: rgba(255,45,120,0.12); color: var(--pink-light); border: 1px solid rgba(255,45,120,0.2); }
.badge-free { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }

/* Admin Toolbar */
.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.admin-search-bar {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 0.8rem; flex: 1; max-width: 320px;
}
.admin-search-bar svg { width: 15px; height: 15px; color: var(--text-muted); flex-shrink: 0; }
.admin-search-bar input { background: none; border: none; color: var(--white); font-size: 0.875rem; width: 100%; }
.admin-search-bar input:focus { outline: none; }
.btn-admin-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--pink); color: white;
  font-size: 0.875rem; font-weight: 700; padding: 0.55rem 1.1rem;
  border-radius: var(--radius); transition: background var(--transition);
  white-space: nowrap;
}
.btn-admin-primary:hover { background: var(--pink-hover); }
.btn-admin-primary svg { width: 16px; height: 16px; }

/* Empty state in table */
.admin-empty { padding: 3rem; text-align: center; color: var(--text-muted); }
.admin-empty svg { width: 40px; height: 40px; margin: 0 auto 0.75rem; opacity: 0.3; }
.admin-empty p { font-size: 0.875rem; }

/* ================================================================
   MODALS
   ================================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: all 0.2s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: #1a1a1a; border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 640px; max-height: 90vh;
  overflow-y: auto; display: flex; flex-direction: column;
  transform: scale(0.94); transition: transform 0.2s;
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.5rem 1.5rem 0.75rem; position: sticky; top: 0;
  background: #1a1a1a; border-bottom: 1px solid var(--border); z-index: 1;
}
.modal-title { font-size: 1.1rem; font-weight: 800; }
.modal-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }
.modal-close {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 1.25rem 1.5rem; flex: 1; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.modal-grid-full { grid-column: 1 / -1; }
.modal-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 0.6rem;
  position: sticky; bottom: 0; background: #1a1a1a;
}
.btn-cancel {
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--border); transition: all var(--transition);
}
.btn-cancel:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-save {
  padding: 0.6rem 1.4rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 700; background: var(--pink); color: white;
  transition: background var(--transition);
}
.btn-save:hover { background: var(--pink-hover); }
.btn-save:disabled { opacity: 0.6; cursor: not-allowed; }

/* Form cover preview */
.cover-preview-box { display: flex; gap: 1rem; align-items: flex-start; margin-top: 0.75rem; }
.cover-preview-thumb {
  width: 80px; height: 120px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--border);
  display: none;
}
.cover-preview-thumb.show { display: block; }

/* Multi-select chips for categories */
.chips-container {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.5rem 0.6rem; min-height: 42px; cursor: pointer;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--pink-dim); border: 1px solid rgba(255,45,120,0.3);
  color: var(--pink-light); border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.6rem;
  cursor: pointer; transition: all var(--transition);
}
.chip:hover { background: var(--pink); color: white; border-color: var(--pink); }
.chip.selected { background: var(--pink); color: white; border-color: var(--pink); }
.chip-remove { font-size: 0.75rem; font-weight: 900; opacity: 0.7; }

/* Toggle switches */
.toggle-row { display: flex; align-items: center; gap: 0.75rem; }
.toggle-label { font-size: 0.875rem; font-weight: 500; }
.toggle-switch { position: relative; width: 40px; height: 22px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 20px;
  background: rgba(255,255,255,0.1); cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%; background: white;
  left: 3px; top: 3px; transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--pink); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ================================================================
   MEMBERS PAGE (for members management in admin)
   ================================================================ */
.member-status-active { color: #86efac; }
.member-status-expired { color: var(--pink-light); }

/* ================================================================
   CATEGORIES MANAGEMENT (admin section)
   ================================================================ */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.category-item {
  background: #151515; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.category-drag-handle { color: var(--text-muted); cursor: grab; }
.category-name { font-size: 0.875rem; font-weight: 600; flex: 1; }
.btn-cat-delete { color: var(--pink); padding: 0.2rem; border-radius: 4px; transition: background var(--transition); }
.btn-cat-delete:hover { background: rgba(255,45,120,0.12); }
.add-category-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.add-category-form input { flex: 1; }
.btn-add-cat {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: var(--pink); color: white;
  font-size: 0.82rem; font-weight: 700; padding: 0.55rem 1rem;
  border-radius: var(--radius); white-space: nowrap;
}
.btn-add-cat:hover { background: var(--pink-hover); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 767px) {
  .admin-sidebar { width: 220px; transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: none; }
  .admin-main { margin-left: 0; padding: 1rem; }
  .modal-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 55vh; min-height: 320px; }
  .top10-number { font-size: 5rem; left: -14px; }
  .top10-row .dorama-card { width: 120px; }
}
@media (max-width: 479px) {
  .dorama-card { width: 130px; }
  .catalog-row { gap: 0.5rem; padding: 0.25rem 1rem 0.75rem; }
  .section-header { padding: 0 1rem; }
  .hero-content { padding: 1.5rem 1rem; }
}

/* ================================================================
   DRAG-TO-SCROLL CURSOR
   ================================================================ */
.catalog-row { cursor: grab; user-select: none; }
.catalog-row.dragging { cursor: grabbing; }

/* ================================================================
   PWA INSTALL BANNER
   ================================================================ */
.pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 1rem; right: 1rem;
  z-index: 8500;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255,45,120,0.3);
  border-radius: 16px;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,45,120,0.1);
  transition: bottom 0.5s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 500px;
  margin: 0 auto;
}
.pwa-install-banner.show { bottom: 1.25rem; }

.pwa-banner-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  animation: pwa-bounce 2s ease-in-out infinite;
}
@keyframes pwa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.pwa-banner-text strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: white;
  white-space: nowrap;
}
.pwa-banner-text span {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pwa-banner-btn {
  background: linear-gradient(135deg, #ff2d78, #8b5cf6);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255,45,120,0.4);
}
.pwa-banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255,45,120,0.5);
}

.pwa-banner-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.pwa-banner-close svg { width: 14px; height: 14px; }
.pwa-banner-close:hover { color: white; background: rgba(255,255,255,0.08); }

/* ================================================================
   PWA INSTALL MODAL
   ================================================================ */
.pwa-modal {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.pwa-modal.show { opacity: 1; visibility: visible; }

.pwa-modal-box {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34,1.2,0.64,1);
}
.pwa-modal.show .pwa-modal-box { transform: translateY(0); }

@media (min-width: 540px) {
  .pwa-modal { align-items: center; padding: 1.5rem; }
  .pwa-modal-box {
    border-radius: 20px;
    max-height: 85vh;
    transform: scale(0.92) translateY(20px);
  }
  .pwa-modal.show .pwa-modal-box { transform: scale(1) translateY(0); }
}

.pwa-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky; top: 0;
  background: #111827; z-index: 1;
}
.pwa-modal-title {
  display: flex; align-items: center; gap: 0.75rem;
}
.pwa-modal-title > span { font-size: 1.75rem; }
.pwa-modal-title strong { display: block; font-size: 1rem; font-weight: 800; }
.pwa-modal-title small { display: block; font-size: 0.72rem; color: rgba(255,255,255,0.45); margin-top: 0.1rem; }

.pwa-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.pwa-modal-close svg { width: 16px; height: 16px; }
.pwa-modal-close:hover { color: white; background: rgba(255,255,255,0.08); }

/* OS Tabs */
.pwa-tabs {
  display: flex; gap: 0.5rem;
  padding: 1rem 1.25rem 0;
}
.pwa-tab-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem; font-weight: 700;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.pwa-tab-btn:hover { color: white; border-color: rgba(255,255,255,0.15); }
.pwa-tab-btn.active {
  background: linear-gradient(135deg, rgba(255,45,120,0.2), rgba(139,92,246,0.2));
  border-color: rgba(255,45,120,0.4);
  color: white;
}

/* Steps container */
.pwa-steps { display: none; padding: 1.25rem; }
.pwa-steps.active { display: block; }
.pwa-steps-intro {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.pwa-steps-intro strong { color: white; }

/* Individual step */
.pwa-step {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.875rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 0.6rem;
}
.pwa-step:last-of-type { margin-bottom: 1rem; }

.pwa-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2d78, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 900;
  color: white; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,45,120,0.4);
}

.pwa-step-info {
  flex: 1; min-width: 0;
}
.pwa-step-info strong {
  display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.2rem;
}
.pwa-step-info span {
  display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.45;
}

.pwa-step-icon {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
  display: flex; align-items: center;
}

/* Result box */
.pwa-result {
  display: flex; align-items: flex-start; gap: 0.75rem;
  background: linear-gradient(135deg, rgba(255,45,120,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(255,45,120,0.2);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.pwa-result > span { font-size: 1.5rem; flex-shrink: 0; }
.pwa-result p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.btn-gate-secondary:hover { background: rgba(255,255,255,0.05); }

/* Séries acessíveis no gate do catálogo */
.gate-access-box { margin-top: 1.25rem; padding: 1rem; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; text-align: left; }
.gate-access-title { font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.gate-series-list { display: flex; flex-direction: column; gap: .4rem; }
.gate-series-link { display: flex; align-items: center; gap: .5rem; background: rgba(255,45,120,.12); border: 1px solid rgba(255,45,120,.25); color: #ff2d78; padding: .55rem .75rem; border-radius: 8px; font-weight: 700; font-size: .8rem; text-decoration: none; transition: background .15s; }
.gate-series-link:hover { background: rgba(255,45,120,.25); }
.gate-access-loading { font-size: .8rem; color: rgba(255,255,255,.4); text-align: center; padding: .5rem 0; }

