/* ========================================
   dubDramas - Main CSS Styles
   Mobile-First Design | Estilo Netflix/Prime Video
======================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary-red: #dc2626;
  --primary-red-hover: #b91c1c;
  --primary-red-dark: #991b1b;
  --dark-bg: #000000;
  --dark-bg-secondary: #141414;
  --dark-bg-tertiary: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #737373;
  
  /* Gradients */
  --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  --gradient-overlay: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
  
  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Orbitron', 'Exo 2', 'Rajdhani', 'Space Mono', monospace;
  
  /* Spacing */
  --header-height: 60px;
  --bottom-nav-height: 70px;
  --content-padding: 16px;
  
  /* Borders & Radius */
  --border-radius: 8px;
  --border-radius-large: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.16), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.1);
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: #0a0a0a !important;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin: 0;
  line-height: 1.6;
}

/* Buttons */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
}

.btn {
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

/* ========================================
   LOADING SCREEN
======================================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  text-align: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-red);
  display: block;
  margin-bottom: 16px;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: loadingDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDots {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ========================================
   HEADER FLOATING
======================================== */
.header-floating {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px var(--content-padding);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-red);
}

.header-nav {
  display: none;
}

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

.search-btn, .profile-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-btn:hover, .profile-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.profile-avatar {
  font-size: 1.2rem;
}

/* Profile Wrapper and Dropdown Menu */
.profile-wrapper {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  min-width: 280px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 10000;
  pointer-events: none;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar-large {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid var(--primary-red);
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Prevent shrinking */
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  max-width: 50px;
  max-height: 50px;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.profile-avatar-large span {
  position: relative;
  z-index: 1;
}

.profile-info {
  flex: 1;
  overflow: hidden;
}

.profile-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-email {
  color: var(--text-secondary);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 15px;
}

.profile-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.profile-dropdown-item span:first-child {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.profile-dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.profile-dropdown-item:last-child:hover {
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary-red);
}

/* Desktop Header */
@media (min-width: 768px) {
  .header-nav {
    display: flex;
    gap: 24px;
  }
  
  .nav-btn {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
  }
  
  .nav-btn:hover, .nav-btn.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
  }
}

/* ========================================
   SEARCH OVERLAY
======================================== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-container {
  padding: 80px var(--content-padding) 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

#search-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  padding: 16px 20px;
  font-size: 1.1rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-fast);
}

#search-input:focus {
  border-color: var(--primary-red);
  background: rgba(255,255,255,0.15);
}

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

.search-close {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.search-close:hover {
  background: var(--primary-red);
}

/* ========================================
   MAIN CONTENT
======================================== */
.main-content {
  padding-top: var(--header-height);
  padding-bottom: var(--bottom-nav-height);
  min-height: 100vh;
}

/* ========================================
   FEATURED CAROUSEL
======================================== */
.featured-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.featured-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.featured-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(30px) brightness(0.4);
  transform: scale(1.2);
  transition: all 1200ms cubic-bezier(0.4, 0.0, 0.2, 1);
  z-index: -3;
  will-change: background-image, opacity;
}

.featured-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.3) 30%,
    rgba(0,0,0,0.6) 60%,
    rgba(0,0,0,0.8) 80%,
    rgba(0,0,0,0.95) 100%
  );
  z-index: -2;
}

.carousel-container {
  position: relative;
  width: 280px;
  max-width: 280px;
  height: 420px;
  margin: 0 auto;
  overflow: hidden;
  perspective: 1000px;
}

.carousel-track {
  display: flex;
  transition: transform 1200ms cubic-bezier(0.4, 0.0, 0.2, 1);
  height: 100%;
}

.featured-card {
  flex: none;
  width: 280px;
  min-width: 280px;
  height: 100%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 500ms cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateZ(0);
  will-change: transform;
}

.featured-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.featured-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.featured-card:hover .featured-card-image {
  transform: scale(1.1);
}



.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fbbf24;
}

.genre-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.genre-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-red);
  border-radius: 50%;
  margin: 0 8px;
  vertical-align: middle;
}



/* Featured External Section */
/* Seção externa removida - informações agora estão dentro do carousel */

.featured-external-info {
  text-align: center;
  max-width: 400px;
  margin: 24px auto 16px auto;
  padding: 0 16px;
  z-index: 10;
  position: relative;
  width: 100%;
}

.featured-external-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.featured-external-genre {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.featured-external-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
  padding: 16px;
  margin-top: 8px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
  border: 2px solid transparent;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.indicator.active {
  background: var(--primary-red);
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(220, 38, 127, 0.6);
}

/* Loading States */
.carousel-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.loading-card-skeleton {
  width: 280px;
  height: 400px;
  background: linear-gradient(90deg, var(--dark-bg-secondary) 25%, var(--dark-bg-tertiary) 50%, var(--dark-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius-large);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   TOP 10 SECTION
======================================== */
.top10-section {
  position: relative;
  padding: 60px var(--content-padding) 80px var(--content-padding);
  margin-top: 40px;
  z-index: 10;
  overflow: visible;
}

.top10-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(0deg, transparent 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.section-header {
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.top10-icon {
  font-size: 1.2rem;
}

.top10-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 10;
}

.carousel-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.top10-container {
  flex: 1;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  width: 100%;
  margin: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 60px;
}

.top10-container::-webkit-scrollbar {
  display: none;
}

.top10-track {
  display: flex;
  gap: 16px;
  padding: 0 var(--content-padding);
}

.top10-card {
  flex: none;
  width: 140px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.top10-card:hover .top10-card-image {
  transform: scale(1.05);
}

.top10-card-image {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition-fast);
}

.top10-rank {
  position: absolute;
  bottom: -45px;
  right: 0px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 4px white;
  text-shadow: 0 0 15px rgba(0,0,0,0.9);
  z-index: 1001;
  pointer-events: none;
}

.top10-card-info {
  margin-top: 8px;
  padding: 0;
}

.top10-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
}

.top10-card-genre {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

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

.top10-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--primary-red);
  font-weight: 600;
}

.top10-card-year {
  color: var(--text-muted);
  font-weight: 500;
}

/* Desktop Top 10 */
@media (min-width: 768px) {
  .carousel-btn {
    display: flex;
  }
  
  .top10-container {
    overflow: hidden;
  }
  
  .top10-card {
    width: 120px;
  }
}

/* ========================================
   BOTTOM NAVIGATION
======================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  color: var(--text-muted);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--border-radius);
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-item.active {
  color: var(--primary-red);
}

.nav-item.active svg {
  fill: var(--primary-red);
}

.nav-item span {
  font-size: 0.7rem;
  font-weight: 500;
}

.nav-item svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   MODAL
======================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-content {
  background: var(--dark-bg-secondary);
  border-radius: var(--border-radius-large);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--primary-red);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: right;
}

/* Auth Modal Styles */
.auth-modal {
  max-width: 420px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-red);
  background: rgba(255, 255, 255, 0.08);
}

.form-divider {
  margin: 24px 0;
  text-align: center;
  position: relative;
}

.form-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.form-divider span {
  position: relative;
  background: var(--dark-bg-secondary);
  padding: 0 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-red);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: rgba(220, 38, 38, 0.5);
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
  margin-top: 8px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-switch a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.auth-message {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.auth-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  display: block;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  display: block;
}

.verification-message {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.verification-message strong {
  color: var(--text-primary);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet */
@media (min-width: 768px) {
  :root {
    --content-padding: 32px;
  }
  
  .carousel-container {
    width: 320px;
    max-width: 320px;
    height: 460px;
  }
  
  .featured-card {
    width: 320px;
    min-width: 320px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --content-padding: 48px;
  }
  
  .featured-section {
    height: 80vh;
    min-height: 600px;
  }
  
  .carousel-container {
    width: 350px;
    max-width: 350px;
    height: 480px;
  }
  
  .featured-card {
    width: 350px;
    min-width: 350px;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .header-content,
  .section-header,
  .top10-carousel {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   UTILITIES
======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden !important;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #ffffff;
    --text-muted: #cccccc;
  }
}

/* ========================================
   DETAILS PAGE - NEW DESIGN
======================================== */
.back-button {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-right: 10px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Background (Blurred) - ACTIVE */
.hero-background,
#details-hero-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  transition: background-image 0.8s ease-in-out !important;
  /* Fallback background while loading */
  background-color: #000 !important;
  /* Ensure it's visible */
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    rgba(0, 0, 0, 0.7) 80%,
    rgba(0, 0, 0, 0.85) 100%
  );
  /* Ensure overlay doesn't block the background image */
  pointer-events: none;
}

/* Main Details Container */
.details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 20px 40px;
  min-height: 80vh;
  position: relative;
  z-index: 100;
  max-width: 1200px;
  margin: 0 auto;
}

/* Movie/Series Card (Center) */
.movie-card {
  width: 300px !important;
  height: 450px !important;
  margin: 0 auto 30px auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.2);
  background: #1a1a1a !important;
  position: relative;
  z-index: 20;
  display: block;
  flex-shrink: 0;
  /* DEBUG: borda vermelha temporária para ver o card */
  border: 5px solid red !important;
}

.movie-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
}

.movie-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: 300px !important;
  max-height: 450px !important;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Details Info (Below Card) */
.details-info {
  text-align: center;
  max-width: 600px;
}

.details-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.details-genres {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.details-meta {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  margin-bottom: 25px !important;
  font-size: 1.1rem !important;
  color: var(--text-secondary) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

.meta-separator {
  color: var(--accent-primary) !important;
  font-weight: bold !important;
  margin: 0 5px !important;
}

.meta-rating, 
.meta-year, 
.meta-views {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

.details-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Synopsis Section */
.synopsis-section {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 0;
  margin: 20px 0;
  position: relative;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.synopsis-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.synopsis-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: justify;
  margin: 0;
}

/* Cast Section (Horizontal Compact) */
.cast-section {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 0;
  margin: 20px 0;
  position: relative;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cast-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cast-horizontal-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-primary) transparent;
}

.cast-horizontal-list::-webkit-scrollbar {
  height: 6px;
}

.cast-horizontal-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.cast-horizontal-list::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 3px;
}

.cast-card {
  flex: 0 0 180px;
  height: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cast-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cast-photo {
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  max-width: 45px !important;
  max-height: 45px !important;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(220, 38, 38, 0.5);
}

.cast-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.actor-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.character-name {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.actor-bio, .birth-date {
  display: none;
}

/* Seasons Section */
.seasons-section {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px 0;
  margin: 20px 0;
}

.seasons-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.season-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.season-header {
  background: var(--accent-primary);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.season-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.season-toggle {
  font-size: 1.5rem;
  color: var(--text-primary);
  transition: transform 0.3s ease;
}

.season-item.expanded .season-toggle {
  transform: rotate(180deg);
}

.episodes-list {
  display: none;
  padding: 20px;
}

.season-item.expanded .episodes-list {
  display: block;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.episode-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.episode-number {
  background: var(--accent-primary);
  color: var(--text-primary);
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.episode-info {
  flex: 1;
}

.episode-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.episode-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 8px 0;
}

.episode-viewers {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.episode-live-count {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Section Titles */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .details-container {
    padding: 100px 15px 30px;
  }
  
  .movie-card {
    width: 220px !important;
    height: 320px !important;
    margin: 0 auto 20px auto;
  }
  
  .movie-card img {
    max-width: 220px !important;
    max-height: 320px !important;
  }
  
  .details-title {
    font-size: 2rem;
  }
  

  
  .cast-card {
    flex: 0 0 180px !important;
    height: 60px !important;
  }
  
  .cast-photo {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  /* Profile dropdown fixes for mobile */
  .profile-dropdown {
    min-width: 260px;
    max-width: 90vw;
  }
  
  .profile-dropdown-header {
    padding: 16px;
  }
  
  .profile-avatar-large {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
  }
  
  .profile-avatar-large img {
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    min-height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
  }
  
  .profile-name {
    font-size: 15px;
  }
  
  .profile-email {
    font-size: 12px;
  }
}

.details-section {
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
}

.details-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.details-hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(0,0,0,0.3) 0%, 
    rgba(0,0,0,0.7) 70%, 
    var(--bg-primary) 100%);
}

.details-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  padding: 40px var(--content-padding);
  margin-top: 30vh;
}

.details-poster {
  flex-shrink: 0;
}

.details-poster img {
  width: 300px;
  height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.details-info {
  flex: 1;
  padding-top: 20px;
}

.details-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.2;
}

/* Removed duplicate - using main definition above */
.details-meta-removed {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.details-separator {
  color: var(--accent-primary);
}

.details-status.on-air {
  color: var(--accent-primary);
  font-weight: 600;
}

.details-status.finished {
  color: var(--text-secondary);
}

.details-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.genre-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.details-synopsis {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
}

.details-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.cast-section {
  padding: 40px var(--content-padding);
  background: rgba(255, 255, 255, 0.02);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cast-card {
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.2s;
}

.cast-card:hover {
  transform: translateY(-4px);
}

.cast-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cast-info {
  padding: 15px;
}

.cast-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.cast-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.similar-section {
  padding: 40px var(--content-padding);
}

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

.similar-card {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  background: rgba(255, 255, 255, 0.05);
}

.similar-card:hover {
  transform: translateY(-4px);
}

.similar-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.similar-card-info {
  padding: 15px;
}

.similar-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.similar-card-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.no-similar {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 40px;
}

/* Mobile responsiveness for details */
@media (max-width: 768px) {
  .details-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 20px;
  }
  
  .details-poster img {
    width: 200px;
    height: 300px;
  }
  
  .details-title {
    font-size: 2rem;
  }
  
  .details-actions {
    justify-content: center;
  }
  
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }
  
  .similar-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}

/* ========================================
   GENRE SECTIONS
======================================== */
.genres-section {
  padding: 20px 0 40px 0;
  margin-top: -35px;
}

.genre-section {
  margin: 8px 0;
  padding: 0 var(--content-padding);
}

.genre-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: lowercase;
}

.genre-carousel {
  position: relative;
}

.genre-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.genre-container::-webkit-scrollbar {
  display: none;
}

.genre-track {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.genre-card {
  flex: none;
  width: 140px;
  cursor: pointer;
  transition: var(--transition-fast);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.genre-card:hover .genre-card-image {
  transform: scale(1.05);
}

.genre-card-image {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform var(--transition-fast);
}

/* ========================================
   ADDITIONAL DETAILS SECTIONS
======================================== */

/* Seasons Section */
.seasons-section {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 0;
  margin: 20px 0;
  position: relative;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seasons-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Similar Content Section */
.similar-section {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 0;
  margin: 20px 0;
  position: relative;
  z-index: 50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.similar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Ensure main content has proper background */
.main-content {
  position: relative;
  z-index: 10;
}

/* Body background for details pages */
body:has(.hero-background) {
  background: #000 !important;
  overflow-x: hidden;
}

/* Alternative selector for better browser support */
.details-page body,
body.details-page {
  background: #000 !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}