/* =====================================================
   RennanFlix — CSS Principal (Estilo Netflix)
   ===================================================== */

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

/* ── Variáveis ──────────────────────────────────── */
:root {
  --red:        #E50914;
  --red-dark:   #B20710;
  --red-glow:   rgba(229, 9, 20, 0.4);
  --bg:         #141414;
  --bg2:        #1a1a1a;
  --bg3:        #222222;
  --bg-card:    #181818;
  --text:       #FFFFFF;
  --text-muted: #999999;
  --text-dim:   #5f5f5f;
  --border:     #333333;
  --nav-height: 68px;
  --radius:     6px;
  --radius-lg:  12px;
  --transition: 0.2s ease;
  --shadow-card: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.8);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #141414;
  color: #FFFFFF;
  overflow-x: hidden;
  width: 100%;
  min-height: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea, select {
  font-family: inherit;
  background: #222222;
  color: #FFFFFF;
  border: 2px solid #333333;
  border-radius: 6px;
  padding: 10px 14px;
  transition: border-color 0.2s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #999999;
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }

/* ── Navbar ─────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  transition: background 0.4s ease;
}
#navbar.scrolled,
#navbar.solid { background: #141414; }
#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.4s;
}
#navbar.scrolled::before { opacity: 0; }

.nav-logo {
  color: #E50914;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-right: 40px;
  flex-shrink: 0;
}
.nav-logo span { color: #FFFFFF; }

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: 0.85rem;
  color: #999999;
  transition: color 0.2s ease;
  font-weight: 500;
}
.nav-links a:hover,
.nav-links a.active { color: #FFFFFF; }

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

.nav-search-btn {
  background: none;
  color: #FFFFFF;
  font-size: 1.1rem;
  padding: 4px;
  transition: color 0.2s ease;
}
.nav-search-btn:hover { color: #E50914; }

.nav-search-bar {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: #222 !important;
  border: 1px solid #444;
  padding: 4px 12px;
  border-radius: 4px;
  width: 240px !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.nav-search-bar input {
  background: none;
  border: none;
  color: #FFFFFF !important;
  font-size: 0.95rem;
  width: 100%;
  padding: 4px 0;
}
.nav-search-bar input::placeholder { color: #aaa; }

.nav-profile {
  position: relative;
  cursor: pointer;
}
.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  transition: opacity 0.2s ease;
}
.nav-avatar:hover { opacity: 0.75; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px); right: 0;
  background: rgba(20,20,20,0.96);
  border: 1px solid #333333;
  border-radius: 6px;
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}
.nav-profile:hover .nav-dropdown,
.nav-profile:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 10px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #333333;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: #999999;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover, .dropdown-item:focus { background: #222222; color: #FFFFFF; outline:none; }
.dropdown-item .icon { font-size: 1rem; width: 18px; }
.dropdown-divider { height: 1px; background: #333333; margin: 6px 0; }

/* ── Hero Banner ────────────────────────────────── */
#hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 860px;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 0.8s ease;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20,20,20,0.9) 0%,
    rgba(20,20,20,0.6) 40%,
    rgba(20,20,20,0.1) 70%,
    transparent 100%
  ),
  linear-gradient(
    to top,
    #141414 0%,
    transparent 40%
  );
}
.hero-content {
  position: absolute;
  bottom: 20%;
  left: 4%;
  max-width: 520px;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E50914;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 2px 2px 12px rgba(0,0,0,0.5);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.hero-meta .year { color: #999999; }
.hero-meta .rating {
  border: 1px solid #999999;
  color: #999999;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
}
.hero-meta .duration { color: #999999; }
.hero-meta .hd-badge {
  background: #333333;
  color: #999999;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Botões ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-play {
  background: #FFFFFF;
  color: #000;
}
.btn-play:hover, .btn-play:focus { background: rgba(255,255,255,0.8); outline: 3px solid #888; }
.btn-info {
  background: rgba(109,109,110,0.7);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
}
.btn-info:hover, .btn-info:focus { background: rgba(109,109,110,0.5); outline: 3px solid #888; }
.btn-red {
  background: #E50914;
  color: #fff;
}
.btn-red:hover, .btn-red:focus { background: #B20710; outline: 3px solid rgba(229,9,20,0.5); }
.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #999999;
}
.btn-ghost:hover, .btn-ghost:focus { border-color: #FFFFFF; outline: none; }
.btn-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(42,42,42,0.6);
  border: 2px solid rgba(255,255,255,0.5);
  color: #FFFFFF;
  font-size: 1rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.btn-icon:hover { background: rgba(255,255,255,0.15); border-color: #FFFFFF; transform: scale(1.08); }

/* ── Carrousels / Linhas ───────────────────────── */
.content-area {
  padding: 0 4%;
  padding-bottom: 60px;
  margin-top: -120px;
  position: relative;
  z-index: 2;
}
.row {
  margin-bottom: 40px;
  position: relative;
}
.row-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #FFFFFF;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.row-title .explore-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #54b9c5;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.row:hover .explore-link {
  opacity: 1;
  transform: translateX(0);
}

.slider-wrapper {
  position: relative;
}
.slider-btn {
  position: absolute;
  top: 0;
  height: 100%;
  width: 48px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,20,20,0.5);
  color: #FFFFFF;
  font-size: 1.8rem;
  transition: opacity 0.2s ease;
  opacity: 0;
  border: none;
  cursor: pointer;
}
.slider-wrapper:hover .slider-btn { opacity: 1; }
.slider-btn.prev { left: 0; border-radius: 4px 0 0 4px; }
.slider-btn.next { right: 0; border-radius: 0 4px 4px 0; }
.slider-btn:hover { background: rgba(20,20,20,0.9); }

.cards-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cards-track::-webkit-scrollbar { display: none; }

/* ── Card de Vídeo ──────────────────────────────── */
.video-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 6px;
  overflow: visible;
  position: relative;
  cursor: pointer;
  background: #181818; /* Ensure bg to avoid transparency issues */
  scroll-snap-align: start;
}
.video-card:focus {
  outline: 4px solid #E50914 !important;
  z-index: 100;
}
.cards-track:hover .video-card { transform: scale(0.95); }
.video-card:hover, .video-card:focus {
  transform: scale(1.1);
  z-index: 100 !important;
  outline: 4px solid #E50914 !important;
}
.video-card:first-child:hover, .video-card:first-child:focus { transform: scale(1.1) translateX(4%); }
.video-card:last-child:hover, .video-card:last-child:focus  { transform: scale(1.1) translateX(-4%); }

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 6px;
  background: #222222;
  display: block;
}
.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  overflow: hidden;
}
.card-thumb-title {
  font-size: clamp(0.55rem, 1.2vw, 0.8rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  letter-spacing: 0.2px;
}
/* Thumbnail de episódio sem imagem */
.ep-thumb-title {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
  overflow: hidden;
}
.card-progress-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 0 0 6px 6px;
}
.card-progress-fill {
  height: 100%;
  background: #E50914;
  border-radius: inherit;
  transition: width 0.3s;
}

.card-hover-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9) !important;
  border-radius: 0 0 6px 6px;
  padding: 8px;
  opacity: 1 !important;
  z-index: 101;
}
/*.video-card:hover .card-hover-info, .video-card:focus .card-hover-info { opacity: 1; pointer-events: auto; }*/

.card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.card-action-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(42,42,42,0.8);
  color: #FFFFFF;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.card-action-btn:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.1); }
.card-action-btn.play-btn {
  background: #FFFFFF;
  color: #000;
  border-color: #FFFFFF;
  font-size: 0.9rem;
}
.card-action-btn.play-btn:hover { background: rgba(255,255,255,0.8); }

.card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  margin-bottom: 4px;
}
.card-match { color: #46d369; font-weight: 700; }
.card-year  { color: #999999; }
.card-rating {
  border: 1px solid #999999;
  color: #999999;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 0.65rem;
}
.card-type-badge {
  background: #333333;
  color: #999999;
  padding: 0 5px;
  border-radius: 2px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card-genres {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #999999;
  flex-wrap: wrap;
}
.card-genres .dot { width: 4px; height: 4px; border-radius: 50%; background: #333333; }

/* ── Seção de Destaque (tipo "Top 10") ──────────── */
.top10-card {
  position: relative;
}
.top10-number {
  position: absolute;
  left: -20px;
  bottom: -8px;
  font-size: 5rem;
  font-weight: 900;
  color: #141414;
  -webkit-text-stroke: 3px #333333;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
  user-select: none;
}

/* ── Badge de tipo ──────────────────────────────── */
.type-badge {
  display: inline-block;
  background: #E50914;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
}

/* ── Tela de Carregamento ───────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-logo {
  font-size: 3rem;
  font-weight: 900;
  color: #E50914;
  letter-spacing: -2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.loading-bar {
  width: 200px;
  height: 3px;
  background: #333333;
  border-radius: 3px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  background: #E50914;
  border-radius: 3px;
  animation: loadProgress 1.5s ease infinite;
}
@keyframes loadProgress {
  0%   { width: 0%  ; margin-left: 0; }
  50%  { width: 60% ; margin-left: 0; }
  100% { width: 0%  ; margin-left: 100%; }
}

/* ── Modal de Detalhes ──────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: #181818;
  border-radius: 12px;
  width: 100%;
  max-width: 860px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #222222;
  color: #FFFFFF;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
}
.modal-close:hover { background: #E50914; }

.modal-hero {
  position: relative;
  aspect-ratio: 16/6;
  background: #1a1a1a;
  overflow: hidden;
}
.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #181818 0%, transparent 60%);
}
.modal-hero-actions {
  position: absolute;
  bottom: 20px;
  left: 24px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.modal-body { padding: 24px; }
.modal-details {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
}
.modal-body-main { flex: 2; min-width: 0; }
.modal-aside { flex: 1; min-width: 0; }
.modal-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.modal-match { color: #46d369; font-weight: 700; }
.modal-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}
.modal-aside { font-size: 0.82rem; }
.modal-aside p { margin-bottom: 8px; color: #999999; }
.modal-aside span { color: #FFFFFF; }

/* Episódios no modal */
.episodes-section { margin-top: 24px; }
.episodes-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.season-select {
  background: #222222;
  border: 1px solid #333333;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.episode-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
  cursor: pointer;
}
.episode-item:hover, .episode-item:focus { background: #333 !important; outline: 3px solid #E50914 !important; }
.ep-number { width: 40px; flex-shrink: 0; }
.ep-thumb { width: 160px; flex-shrink: 0; position: relative; }
.ep-info { flex: 1; min-width: 0; }
.ep-duration { width: 80px; text-align: right; }
.episode-item:hover, .episode-item:focus { background: #222222; outline: none; }
.ep-number {
  font-size: 1.3rem;
  font-weight: 300;
  color: #999999;
  text-align: center;
}
.ep-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background: #1a1a1a;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
}
.ep-progress-fill {
  height: 100%;
  background: #E50914;
}
.ep-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
  font-size: 1.5rem;
}
.episode-item:hover .ep-play-overlay { opacity: 1; }
.ep-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.ep-info p { font-size: 0.8rem; color: #999999; line-height: 1.4; }
.ep-duration { font-size: 0.8rem; color: #999999; white-space: nowrap; }

/* ── Página de Busca ────────────────────────────── */
.search-page {
  padding: 68px 4% 60px;
  min-height: 100vh;
}
.search-header { margin-bottom: 30px; }
.search-query {
  font-size: 1rem;
  color: #999999;
  margin-bottom: 20px;
}
.search-query strong { color: #FFFFFF; }
.search-grid {
  display: block;
  overflow: hidden;
  padding: 20px;
}
.search-card { 
  float: left;
  margin: 10px;
  cursor: pointer; 
  border-radius: 6px; 
  overflow: hidden; 
  background: #1a1a1a !important;
  width: 200px;
  border: 4px solid transparent;
}
.search-card:focus {
  border-color: #E50914 !important;
  outline: none;
}
.search-card-thumb {
  width: 100%;
  display: block;
}
.search-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF !important;
  padding: 10px;
  background: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: #999999;
}
.no-results .emoji { font-size: 4rem; margin-bottom: 16px; }
.no-results h2 { font-size: 1.2rem; color: #FFFFFF; margin-bottom: 8px; }

/* ── Perfis ─────────────────────────────────────── */
.profiles-page {
  min-height: 100vh;
  background: #141414;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.profiles-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 40px;
  text-align: center;
}
.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 800px;
  margin-bottom: 40px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: all 0.2s;
  border: 3px solid transparent;
}
.profile-card:hover .profile-avatar, .profile-card:focus .profile-avatar {
  border-color: #FFFFFF;
  transform: scale(1.05);
}
.profile-card.selected .profile-avatar {
  border-color: #FFFFFF;
}
.profile-name {
  font-size: 0.9rem;
  color: #999999;
  transition: color 0.2s ease;
}
.profile-card:hover .profile-name, .profile-card:focus .profile-name { color: #FFFFFF; }
.profile-card:focus { outline: none; }

.add-profile {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  background: transparent;
  border: 2px solid #333333;
  color: #999999;
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}
.add-profile:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* ── Login ──────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://assets.nflxext.com/ffe/siteui/vlv3signinui/d714c96a-a72f-4f14-8aa4-2ffcb3bcc f/BR-pt-20240226-popsignuptwoscreen-perspective_alpha_website_small.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.login-card {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.75);
  border-radius: 12px;
  padding: 48px;
  width: 100%;
  max-width: 450px;
  backdrop-filter: blur(4px);
}
.login-logo {
  color: #E50914;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 28px;
  text-align: center;
}
.login-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: #999999;
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input {
  width: 100%;
  background: #222222;
  border: 2px solid #333333;
  color: #FFFFFF;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}
.form-group input:focus { border-color: #999999; }
.form-group input::placeholder { color: #5f5f5f; }
.login-btn {
  width: 100%;
  background: #E50914;
  color: #fff;
  padding: 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s ease;
}
.login-btn:hover { background: #B20710; }
.login-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.login-error {
  background: rgba(229,9,20,0.15);
  border: 1px solid #E50914;
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }

/* ── Utilitários ────────────────────────────────── */
.hidden  { display: none !important; }
.flex    { display: flex; }
.center  { display: flex; align-items: center; justify-content: center; }
.text-muted { color: #999999; }
.text-red   { color: #E50914; }
.text-green { color: #46d369; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-auto { margin-top: auto; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ── Toast Notificações ─────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #1a1a1a;
  border-left: 4px solid #E50914;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 320px;
}
.toast.show   { transform: translateX(0); }
.toast.success { border-color: #46d369; }
.toast.info    { border-color: #54b9c5; }

/* ── TV Focus Mode ──────────────────────────────── */
.tv-mode * { cursor: none !important; }
.tv-focus {
  outline: 3px solid #E50914 !important;
  outline-offset: 3px;
  transform: scale(1.08) !important;
  box-shadow: 0 0 0 6px rgba(229, 9, 20, 0.4) !important;
  z-index: 200 !important;
}
.tv-focus-subtle {
  outline: 2px solid rgba(255,255,255,0.8) !important;
  outline-offset: 2px;
}

/* ── Responsividade ─────────────────────────────── */
@media (max-width: 1200px) {
  .video-card { width: 180px; }
}
@media (max-width: 900px) {
  .video-card { width: 160px; }
  .hero-title { font-size: 2rem; }
  .modal-details { flex-direction: column !important; }
  .episode-item { flex-direction: column !important; align-items: flex-start !important; }
  .ep-duration { display: none; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .video-card { width: 130px; }
  .hero { height: 70vh; }
  .hero-content { left: 5%; right: 5%; max-width: none; }
  .content-area { padding: 0 3%; margin-top: -80px; }
  .login-card { padding: 32px 24px; }
  .profiles-grid { gap: 16px; }
  .profile-avatar { width: 90px; height: 90px; font-size: 2.2rem; }
  .episode-item { grid-template-columns: 1fr; }
  .ep-number, .ep-thumb { display: none; }
}
@media (max-width: 400px) {
  .video-card { width: 110px; }
  .btn { padding: 8px 16px; font-size: 0.9rem; }
}
