:root {
  --bg-primary: #0a0b10;
  --bg-secondary: #12141e;
  --bg-card: #181a27;
  --bg-card-hover: #222538;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --success: #10b981;
  --header-height: 70px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2a2d3e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

/* Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  transition: background 0.3s ease;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #c084fc;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  padding: 0;
}

.nav-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: scale(1.08);
}

.nav-search-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.search-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.45rem 1rem 0.45rem 2.2rem;
  color: #fff;
  font-size: 0.9rem;
  width: 220px;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  width: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  width: 16px;
  height: 16px;
  fill: var(--text-dim);
  pointer-events: none;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.btn-icon.spinning svg,
.btn.spinning svg,
.profile-dropdown-item.spinning svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Main Content */
.main-content {
  margin-top: var(--header-height);
  padding: 1.5rem 2rem 4rem 2rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section & Top 10 Carousel */
.hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 440px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  display: flex;
  align-items: flex-end;
  padding: 3rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease-in-out;
  transform: scale(1.02);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10, 11, 16, 0.96) 12%, rgba(10, 11, 16, 0.5) 60%, rgba(10, 11, 16, 0.25) 100%),
              linear-gradient(to right, rgba(10, 11, 16, 0.9) 20%, rgba(10, 11, 16, 0.2) 70%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.hero-badges-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.25);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.hero-badge-recent {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(239, 68, 68, 0.3));
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.hero-badge-counter {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.hero-meta .meta-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f3f4f6;
}

.hero-overview,
.hero-desc {
  font-size: 1.02rem;
  color: #d1d5db;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hero Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(18, 20, 30, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  opacity: 0;
}

.hero:hover .hero-arrow {
  opacity: 1;
}

.hero-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

/* Hero Indicators Dots */
.hero-indicators {
  position: absolute;
  bottom: 25px;
  right: 35px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot.active {
  width: 26px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  border: none;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-glow);
  transition: all 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-danger {
  background: rgba(220, 38, 38, 0.15);
  color: #ef4444;
  border: 1px solid rgba(220, 38, 38, 0.4);
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: none;
}

.btn-danger:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}

/* Sections */
.section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-count {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: normal;
}

/* Media Grids */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.media-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-glow);
}

.card-poster-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #141724;
  overflow: hidden;
}

.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media-card:hover .card-poster {
  transform: scale(1.05);
}

.poster-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #181b29, #0e101a);
  color: var(--text-dim);
  padding: 1rem;
  text-align: center;
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-progress-fill {
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.card-play-hover {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-play-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-glow);
  transform: scale(0.8);
  transition: transform 0.2s;
}

.media-card:hover .card-play-hover {
  opacity: 1;
}

.media-card:hover .card-play-icon {
  transform: scale(1);
}

.card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Modals & Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Details Modal (Movies & Series) */
.media-detail-header {
  position: relative;
  min-height: 360px;
  background: #141624;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  overflow: hidden;
}

.media-detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, var(--bg-secondary) 10%, rgba(18, 20, 30, 0.82) 55%, rgba(10, 11, 16, 0.4) 100%),
              radial-gradient(circle at 80% 30%, transparent 25%, rgba(10, 11, 16, 0.75) 100%);
}

.media-detail-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  width: 100%;
  align-items: flex-end;
}

.media-detail-poster {
  width: 155px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(139, 92, 246, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-detail-poster:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.9), 0 0 35px var(--accent-glow);
}

.media-detail-info {
  flex-grow: 1;
}

.media-detail-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.95);
}

.media-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.media-detail-meta .meta-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.meta-quality-badge {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #e2e8f0;
  font-weight: 600;
  transition: all 0.2s;
}

.genre-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.rating-badge {
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #facc15;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.media-detail-body {
  padding: 1.8rem 2.5rem 2.5rem 2.5rem;
}

.media-detail-synopsis-section {
  margin-bottom: 2.2rem;
}

.detail-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.media-detail-overview {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 900px;
}

.media-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.2rem 0 2rem;
}

/* Primary Play / Continue Button (Netflix Style) */
.detail-play-btn {
  background: #fff;
  color: #000 !important;
  border: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.72rem 1.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.detail-play-btn:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: scale(1.03);
}

.detail-play-btn svg {
  fill: #000 !important;
}

/* Secondary Restart / Info Button */
.detail-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.72rem 1.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.detail-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Sleek Trailer Button */
.detail-btn-trailer {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.72rem 1.15rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.detail-btn-trailer:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
}

.detail-btn-trailer svg {
  color: #ef4444;
}

/* Netflix Style Circular Quick Actions */
.detail-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  flex-shrink: 0;
  text-decoration: none;
}

.detail-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: scale(1.1);
  color: #fff;
}

.detail-icon-btn.active {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.detail-icon-btn.active.fav-active {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Cast Carousel & Grid */
.cast-section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.cast-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cast-grid {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
  scroll-behavior: smooth;
}

.cast-grid::-webkit-scrollbar {
  height: 5px;
}

.cast-grid::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.cast-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.cast-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  transition: background 0.2s;
}

.cast-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.cast-card {
  min-width: 105px;
  max-width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.cast-photo-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.5rem;
  background: #1e2130;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cast-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-photo-placeholder {
  color: var(--text-dim);
  font-size: 1.2rem;
  font-weight: 700;
}

.cast-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cast-character {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Audio & Subtitles Menu in Player */
.audio-sub-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.audio-sub-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.audio-sub-popup {
  position: absolute;
  bottom: 85px;
  right: clamp(1rem, 3vw, 2.5rem);
  background: rgba(16, 17, 26, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.8rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  z-index: 1000;
  width: 680px;
  max-width: calc(100vw - 3rem);
  animation: fadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.audio-sub-popup.hidden {
  display: none !important;
}

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

.audio-sub-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.audio-sub-col-subs {
  flex: 1.35;
}

.audio-sub-col-auto {
  flex: 1.15;
}

.audio-sub-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.45rem;
  white-space: nowrap;
}

.audio-sub-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.audio-sub-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
}

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

.audio-sub-item.active {
  background: rgba(229, 9, 20, 0.16);
  border-color: rgba(229, 9, 20, 0.45);
  color: #fff;
  font-weight: 600;
}

.audio-sub-item input[type="radio"] {
  accent-color: var(--accent);
  margin: 0;
  cursor: pointer;
}

/* Quick Watched Checkmark on Cards */
.card-watched-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  opacity: 0;
}

.media-card:hover .card-watched-btn,
.card-watched-btn.active {
  opacity: 1;
}

.card-watched-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.card-watched-btn:hover {
  transform: scale(1.15);
}


.season-section-container {
  padding: 1.4rem 2rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.season-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.season-section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.season-select-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.season-select-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.season-dropdown-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.season-dropdown-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
}

.season-dropdown-select option {
  background: #181924;
  color: #fff;
}

.season-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.season-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.5rem;
}

.season-bar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.season-toggle-watched-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.season-toggle-watched-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: #10b981;
}

.season-toggle-watched-btn.active {
  background: rgba(16, 185, 129, 0.25);
  color: #10b981;
  border-color: #10b981;
}

.episodes-list {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.episode-card {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  position: relative;
}

.episode-card:hover {
  background: rgba(168, 85, 247, 0.08);
  border-color: rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.episode-still-wrapper {
  position: relative;
  width: 170px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #11131f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.episode-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.episode-card:hover .episode-still {
  transform: scale(1.05);
}

.episode-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.25s ease;
}

.episode-card:hover .episode-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.episode-info {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.episode-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.episode-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 28px;
}

.episode-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.episode-overview {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-watched-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.episode-watched-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border-color: #10b981;
  transform: scale(1.1);
}

.episode-watched-btn.active {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.episode-download-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.episode-download-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Fullscreen Custom Video Player */
.player-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.player-container.hidden {
  display: none;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-ui {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.player-ui.idle {
  opacity: 0;
  cursor: none;
}

.player-ui * {
  pointer-events: auto;
}

.player-top {
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.player-back-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.player-back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.player-title-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.player-title-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.player-center-play {
  align-self: center;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s;
}

.player-center-play.visible {
  opacity: 1;
  transform: scale(1);
}

.player-bottom {
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.player-progress-container {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 1.2rem;
  transition: height 0.15s;
}

.player-progress-container:hover {
  height: 12px;
}

.player-progress-filled {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  position: relative;
}

.player-progress-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.15s;
}

.player-progress-container:hover .player-progress-handle {
  opacity: 1;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-left-controls, .player-right-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.control-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.1s;
}

.control-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.player-time {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}

/* Settings Form */
.settings-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  max-width: 600px;
  margin: 2rem auto;
}

.empty-state svg {
  margin-bottom: 1rem;
  color: var(--text-dim);
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.toast {
  background: #1e1b4b;
  border: 1px solid var(--accent);
  color: #fff;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  .nav-left {
    gap: 1rem;
  }
  .nav-links {
    gap: 0.5rem;
  }
  .search-input {
    width: 140px;
  }
  .search-input:focus {
    width: 180px;
  }
  .hero {
    height: 320px;
    padding: 1.5rem;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .main-content {
    padding: 1rem;
  }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }
}

/* ==========================================================
   NOVA BARRA DE FILTROS, GÊNEROS E ORDENAÇÃO
   ========================================================== */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.8rem;
  background: rgba(18, 20, 30, 0.6);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.toolbar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.toolbar-left-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.genre-select-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.filter-status-group {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.status-filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.status-filter-btn:hover {
  color: #fff;
}

.status-filter-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

.sort-select-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-select-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.catalog-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.catalog-select option {
  background: #181824;
  color: #fff;
}

.genres-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.2rem;
}

.genre-pill {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

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

.genre-pill.active {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  border-color: #a855f7;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

/* ==========================================================
   PERFIS DE USUÁRIO (ESTILO NETFLIX AUTÊNTICO)
   ========================================================== */

/* Header Profile Button & Dropdown */
.profile-header-wrapper {
  position: relative;
}

.profile-header-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.profile-header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.profile-arrow-icon {
  transition: transform 0.2s;
}

.profile-header-btn.active .profile-arrow-icon {
  transform: rotate(180deg);
}

.profile-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.profile-header-name {
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Profile Dropdown Menu */
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  padding: 0.6rem 0;
  z-index: 1000;
  animation: dropdownFadeIn 0.18s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
}

.profile-dropdown-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.dropdown-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-badges-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-tag {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-admin {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
}

.badge-kids {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 0;
}

.profile-dropdown-quick-switch {
  display: flex;
  flex-direction: column;
}

.profile-quick-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  width: 100%;
  color: #c0c0c0;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

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

.profile-quick-name {
  font-size: 0.88rem;
  font-weight: 500;
  flex-grow: 1;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: none;
  width: 100%;
  color: #e5e5e5;
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

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

.profile-dropdown-item svg {
  color: #999;
  flex-shrink: 0;
  transition: color 0.15s;
}

.profile-dropdown-item:hover svg {
  color: #fff;
}

/* ==========================================================
   TELA CHEIA NETFLIX: "QUEM ESTÁ ASSISTINDO?"
   ========================================================== */
.netflix-profile-overlay {
  position: fixed;
  inset: 0;
  background: #141414;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem;
  animation: fadeIn 0.25s ease-out;
}

.netflix-profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 960px;
  width: 100%;
}

.netflix-brand-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
}

.netflix-profile-title {
  font-size: 3rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2.8rem;
  letter-spacing: -0.5px;
}

@media (max-width: 600px) {
  .netflix-profile-title {
    font-size: 2rem;
    margin-bottom: 1.8rem;
  }
}

.netflix-profiles-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.2rem;
}

.netflix-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.netflix-avatar-box {
  width: 135px;
  height: 135px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  border: 3px solid transparent;
  transition: transform 0.2s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.netflix-profile-card:hover .netflix-avatar-box {
  transform: scale(1.05);
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.netflix-profile-card.active-current .netflix-avatar-box {
  border-color: var(--accent);
}

.netflix-card-name {
  font-size: 1.15rem;
  color: #808080;
  font-weight: 500;
  transition: color 0.2s;
  max-width: 135px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.netflix-profile-card:hover .netflix-card-name {
  color: #fff;
}

.netflix-card-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Manage Profiles Mode Overlays */
.netflix-avatar-manage-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.netflix-manage-pencil {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, background 0.2s;
}

.netflix-profile-card:hover .netflix-manage-pencil {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

/* Add Profile Card */
.netflix-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.netflix-add-avatar-box {
  width: 135px;
  height: 135px;
  border-radius: 8px;
  border: 2px dashed #404040;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #808080;
  font-size: 3.5rem;
  transition: all 0.2s;
}

.netflix-add-card:hover .netflix-add-avatar-box {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.netflix-add-card:hover .netflix-card-name {
  color: #fff;
}

/* ==========================================================
   DISPONÍVEL EM BREVE (STATUS COMING SOON)
   ========================================================== */
.badge-coming-soon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 3;
}

.media-card.coming-soon .media-card-poster,
.media-card.coming-soon .card-poster {
  filter: brightness(0.82) grayscale(0.2);
  transition: filter 0.3s ease;
}

.media-card.coming-soon:hover .media-card-poster,
.media-card.coming-soon:hover .card-poster {
  filter: brightness(1) grayscale(0);
}

.btn-coming-soon {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  cursor: default !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
}

.coming-soon-notice {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}
.netflix-profile-actions {
  margin-top: 3.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.netflix-remember-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  cursor: pointer;
  color: #a3a3a3;
  font-size: 0.95rem;
  transition: color 0.2s;
  user-select: none;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.netflix-remember-checkbox:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.netflix-remember-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.netflix-btn-action {
  border: 1px solid #808080;
  background: transparent;
  color: #808080;
  font-size: 1.1rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.75rem 2.2rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  font-weight: 500;
}

.netflix-btn-action:hover {
  border-color: #fff;
  color: #fff;
}

.netflix-btn-action.done-state {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 700;
}

.netflix-btn-action.done-state:hover {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
}

/* ==========================================================
   MODAL DE EDIÇÃO DE PERFIL COM PALETA DE AVATARES
   ========================================================== */
#profileEditModal {
  z-index: 10005 !important;
}

#settingsModal {
  z-index: 10005 !important;
}

.profile-edit-content {
  max-width: 640px;
  padding: 2.2rem;
}

.profile-edit-body {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1.5rem;
  text-align: left;
}

.profile-avatar-preview-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 3px solid #fff;
}

.avatar-choose-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.avatars-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.avatar-choice-item {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.avatar-choice-item:hover {
  transform: scale(1.1);
}

.avatar-choice-item.selected {
  border-color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

.profile-admin-settings {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-top: 0.5rem;
}

.profile-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-color);
}

.profile-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Avatar Palettes Colors */
.av-red { background: linear-gradient(135deg, #e50914, #b20710); }
.av-blue { background: linear-gradient(135deg, #0071eb, #004fb0); }
.av-yellow { background: linear-gradient(135deg, #f5c518, #e0a800); color: #111 !important; }
.av-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.av-purple { background: linear-gradient(135deg, #8e44ad, #6c3483); }
.av-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.av-pink { background: linear-gradient(135deg, #fd79a8, #e84393); }
.av-cyan { background: linear-gradient(135deg, #00cec9, #0984e3); }
.av-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.av-dark { background: linear-gradient(135deg, #374151, #111827); }

/* ==========================================================
   TRAILER MODAL
   ========================================================== */
.trailer-modal-content {
  max-width: 900px;
  background: #000;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.trailer-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.trailer-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.btn-trailer {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-trailer:hover {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ==========================================================
   TRANSMISSÃO PARA TV (CAST MODAL)
   ========================================================== */
.cast-modal-content {
  max-width: 480px;
}

.cast-url-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--accent);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-family: monospace;
  font-size: 1.1rem;
  color: #a855f7;
  letter-spacing: 0.5px;
  user-select: all;
  margin-top: 0.5rem;
}

/* ==========================================================
   PLAYER SELECTS (QUALIDADE E VELOCIDADE)
   ========================================================== */
.player-select {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.player-select:hover {
  background: rgba(255, 255, 255, 0.2);
}

.player-select option {
  background: #181824;
  color: #fff;
}

/* ==========================================================
   NOVAS MELHORIAS (FAVORITOS, SPOTLIGHT, PULAR ABERTURA, VOZ NÍTIDA, KIDS)
   ========================================================== */

/* Navbar Shortcut Hint */
.nav-kbd-hint {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-muted);
  pointer-events: none;
  font-weight: 600;
  text-transform: uppercase;
}

/* Subtitle Sync Controls in Audio/Sub Popup */
.sub-sync-box {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sub-sync-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sub-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.btn-sub-sync {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sub-sync:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.sub-sync-val {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  min-width: 44px;
  text-align: center;
}

.btn-sub-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.2rem;
}

.btn-sub-reset:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Floating Skip Intro Button */
.player-skip-intro {
  position: absolute;
  bottom: 85px;
  right: 30px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(18, 20, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.player-skip-intro:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.03);
}

/* Floating Next Episode Prompt (Auto-Play) */
.player-next-prompt {
  position: absolute;
  bottom: 85px;
  right: 30px;
  z-index: 100;
  background: rgba(18, 20, 30, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.6);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.85);
  animation: slideInUp 0.3s ease;
}

.player-next-card {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.next-prompt-thumb {
  width: 85px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #11131f;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.next-label-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.next-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.next-prompt-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.next-prompt-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #ec4899);
  transition: width 1s linear;
}

.skip-kbd {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: inherit;
  margin-left: 6px;
  font-weight: 800;
}

.sub-size-box {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-size-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.btn-sub-size {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sub-size.active {
  background: var(--accent);
  border-color: var(--accent);
}

.player-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

.player-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.player-toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.inline-kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.player-shortcuts-hint {
  margin-top: 1.2rem;
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.player-shortcuts-hint kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1px 5px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
}

/* Custom Subtitles Styling */
video::cue {
  background-color: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95);
}

.player-container.sub-small video::cue {
  font-size: 1.25rem;
}

.player-container.sub-normal video::cue {
  font-size: 1.75rem;
}

.player-container.sub-large video::cue {
  font-size: 2.35rem;
}

/* Shortcuts Modal */
.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  color: var(--text-main);
}

.shortcut-row kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

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

.player-next-info .next-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.player-next-info .next-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0.3rem 0 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-next-actions {
  display: flex;
  gap: 0.6rem;
}

/* Voice Boost Button Active State */
.control-btn.active {
  color: #a855f7 !important;
  background: rgba(168, 85, 247, 0.25);
  border-radius: 50%;
}

/* Spotlight Command Palette */
.spotlight-content {
  background: rgba(16, 17, 24, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 92%;
  max-width: 660px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.25);
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.spotlight-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  gap: 0.9rem;
}

.spotlight-search-icon {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  flex-shrink: 0;
}

.spotlight-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  font-size: 1.12rem;
  color: #fff;
  outline: none;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.spotlight-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.spotlight-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #bbb;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.spotlight-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.05);
}

.spotlight-results {
  max-height: 440px;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.spotlight-results::-webkit-scrollbar {
  width: 5px;
}

.spotlight-results::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.spotlight-results::-webkit-scrollbar-track {
  background: transparent;
}

.spotlight-results::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.spotlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  position: relative;
}

.spotlight-item:hover, .spotlight-item.selected {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  border-left-color: var(--accent);
  transform: translateX(3px);
}

.spotlight-poster-wrapper {
  position: relative;
  width: 46px;
  height: 66px;
  flex-shrink: 0;
}

.spotlight-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  background: #151722;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-coming-pill {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: #eab308;
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  border-radius: 3px;
  padding: 1px 0;
}

.spotlight-details {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spotlight-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.spotlight-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.spotlight-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.spotlight-tag {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.spotlight-tag-movie {
  background: rgba(229, 9, 20, 0.18);
  color: #ff6b6b;
  border: 1px solid rgba(229, 9, 20, 0.35);
}

.spotlight-tag-series {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.spotlight-meta-pill {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.spotlight-rating-pill {
  color: #f5c518;
  font-weight: 600;
}

.spotlight-genre-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spotlight-arrow {
  color: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.spotlight-item:hover .spotlight-arrow,
.spotlight-item.selected .spotlight-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

.spotlight-footer {
  padding: 0.75rem 1.4rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.spotlight-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.spotlight-footer kbd {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
  color: #eee;
  font-weight: 600;
  font-size: 0.7rem;
}

/* Clickable Cast Cards */
.cast-card.clickable {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cast-card.clickable:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.3);
  border: 1px solid var(--accent);
}

/* Card Favorite Button */
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
}

.media-card:hover .card-fav-btn,
.card-fav-btn.active {
  opacity: 1;
}

.card-fav-btn.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.card-fav-btn:hover {
  transform: scale(1.15);
  background: #ef4444;
  color: #fff;
}

/* Actor Filter Banner */
.actor-filter-banner {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), rgba(30, 27, 75, 0.4));
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.actor-filter-banner span {
  font-size: 1rem;
  color: #fff;
}

.actor-filter-banner strong {
  color: var(--accent);
}

/* Kids Badge */
.kids-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* ==========================================================
   GAVETA DE EPISÓDIOS E TEMPORADAS DENTRO DO PLAYER
   ========================================================== */
.player-episodes-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: rgba(12, 14, 24, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.85);
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.episodes-drawer-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-header-left {
  flex-grow: 1;
  min-width: 0;
}

.drawer-series-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.drawer-series-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.drawer-season-select {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.drawer-season-select option {
  background: #181824;
  color: #fff;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}

.drawer-close-btn:hover {
  background: #ef4444;
}

.drawer-episodes-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.drawer-ep-item {
  display: flex;
  gap: 0.9rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  align-items: center;
}

.drawer-ep-item:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.4);
}

.drawer-ep-item.active {
  background: rgba(168, 85, 247, 0.25);
  border-color: var(--accent);
}

.drawer-ep-thumb {
  width: 90px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  background: #181824;
  flex-shrink: 0;
}

.drawer-ep-info {
  flex-grow: 1;
  min-width: 0;
}

.drawer-ep-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-ep-num {
  color: var(--accent);
  margin-right: 4px;
}

.drawer-ep-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.drawer-tag-playing {
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.drawer-tag-watched {
  color: #10b981;
  font-weight: 600;
}

/* Series Details Modal: Episode in-progress highlight */
.episode-card.in-progress {
  border-color: var(--accent) !important;
  background: rgba(168, 85, 247, 0.08) !important;
}

.tag-in-progress {
  font-size: 0.68rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .episode-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .episode-still-wrapper {
    width: 100%;
    height: 180px;
  }
}

/* ==========================================================
   NETFLIX ROW SLIDERS & RECOMMENDATIONS
   ========================================================== */
.netflix-row-section {
  position: relative;
  margin-bottom: 2.2rem;
  padding: 0 0.5rem;
}

.netflix-row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0 0.5rem;
}

.netflix-row-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.netflix-row-container {
  position: relative;
}

.netflix-slider-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0.6rem 0.5rem 1.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.netflix-slider-track::-webkit-scrollbar {
  display: none;
}

.netflix-slider-track .media-card {
  flex: 0 0 190px;
  width: 190px;
  max-width: 190px;
}

@media (max-width: 768px) {
  .netflix-slider-track .media-card {
    flex: 0 0 145px;
    width: 145px;
    max-width: 145px;
  }
}

.netflix-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 80px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  border-radius: 6px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  opacity: 0;
  backdrop-filter: blur(8px);
}

.netflix-row-container:hover .netflix-slider-arrow {
  opacity: 1;
}

.netflix-slider-arrow:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.netflix-slider-arrow.left {
  left: 0;
}

.netflix-slider-arrow.right {
  right: 0;
}

/* Similar Titles in Modal */
.similar-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* ==========================================================
   NETFLIX PROFILE PIN SYSTEM & UNLOCK MODAL
   ========================================================== */
#profilePinModal {
  z-index: 10006 !important;
}

.profile-pin-modal-content {
  max-width: 420px;
  padding: 2.5rem 2rem;
  background: rgba(18, 20, 28, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95);
  text-align: center;
}

.profile-pin-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-pin-avatar-wrap {
  position: relative;
  margin-bottom: 1.2rem;
}

.pin-lock-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #181924;
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.profile-pin-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}

.profile-pin-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.profile-pin-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pin-input-box {
  position: relative;
  width: 100%;
  max-width: 260px;
}

.pin-entry-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 1rem;
  font-size: 1.4rem;
  letter-spacing: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.pin-entry-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.pin-error-text {
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
}

.profile-pin-actions {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  max-width: 260px;
  margin-top: 0.5rem;
}

.profile-pin-actions .btn {
  flex: 1;
}

.profile-pin-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-pin-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.btn-pin-eye:hover {
  opacity: 1;
}

.netflix-avatar-lock {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

#seasonTabs {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#seasonTabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
