:root {
  --netflix-red: #e50914;
  --netflix-red-hover: #b80710;
  --bg-netflix: #141414;
  --bg-card: #181818;
  --bg-card-hover: #282828;
  --text-white: #ffffff;
  --text-gray: #a3a3a3;
  --text-dim: #737373;
}

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

body.netflix-theme {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-netflix);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

/* ==================== NETFLIX TOP HEADER ==================== */
.netflix-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4%;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 10%, transparent);
  transition: background-color 0.4s ease;
}

.netflix-header.scrolled {
  background-color: var(--bg-netflix);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.netflix-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.logo-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--netflix-red);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.logo-full {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
  color: #fff;
}

.netflix-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  background: none;
  border: none;
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #b3b3b3;
}

.nav-link.active {
  color: #fff;
  font-weight: 700;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 12px;
  border-radius: 4px;
  transition: 0.3s;
}

.search-wrapper input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
  width: 180px;
  padding-left: 8px;
}

.search-wrapper input:focus {
  outline: none;
  width: 240px;
}

.clear-search-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 11px;
}

.redundancy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.5s infinite;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  background: #e50914;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

/* ==================== VIEW PANELS ==================== */
.view-panel {
  display: none;
  min-height: 100vh;
}

.view-panel.active {
  display: block;
}

/* ==================== HERO BILLBOARD ==================== */
.hero-billboard {
  position: relative;
  height: 75vh;
  min-height: 520px;
  max-height: 800px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  background-color: #000;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: brightness(0.85);
  transition: opacity 0.5s ease-in-out;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(77deg, rgba(20, 20, 20, 0.85) 0%, rgba(20, 20, 20, 0.4) 60%, transparent 100%),
    linear-gradient(180deg, transparent 50%, var(--bg-netflix) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-top-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.top10-flag {
  background: var(--netflix-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 11px;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

/* Hero Slide Navigation & Meta */
.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
  user-select: none;
}

.hero-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
  border-color: #fff;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

.hero-slide-indicators {
  position: absolute;
  bottom: 24px;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 25;
}

.hero-indicator-dot {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicator-dot.active {
  width: 28px;
  background: var(--netflix-red);
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
}

.hero-indicator-dot:hover {
  background: #ffffff;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  margin-top: -4px;
}

.meta-badge-rating {
  color: #4ade80;
  font-weight: 700;
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.meta-badge-year {
  color: #e5e5e5;
  font-weight: 600;
}

.meta-badge-type {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  color: #fff;
}

.meta-badge-hd {
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 5px;
  border-radius: 3px;
  color: #a3a3a3;
}

.hero-synopsis {
  font-size: 15px;
  line-height: 1.5;
  color: #e5e5e5;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.btn-play-netflix {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

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

.btn-info-netflix {
  background: rgba(109, 109, 110, 0.7);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.btn-info-netflix:hover {
  background: rgba(109, 109, 110, 0.45);
}

/* ==================== NETFLIX ROWS (CARROSSEL) ==================== */
.netflix-rows-container {
  position: relative;
  margin-top: -80px;
  z-index: 20;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.row-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 4%;
}

.row-header {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #e5e5e5;
  transition: color 0.2s;
}

.row-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.row-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 18px 0;
}

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

.slider-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  background: rgba(20, 20, 20, 0.6);
  border: none;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.row-slider-wrap:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: rgba(20, 20, 20, 0.9);
}

.slider-left { left: 0; }
.slider-right { right: 0; }

/* Cards inside Carousel - Tamanho Padronizado Compacto (140x200px igual ao Top 10) */
.netflix-card {
  flex: 0 0 140px;
  width: 140px;
  height: 200px;
  background: var(--bg-card);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.3s;
  flex-shrink: 0;
}

.netflix-card:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
  z-index: 25;
}

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

.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

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

.card-title-text {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-rating-tag {
  font-size: 11px;
  color: #4ade80;
  font-weight: 700;
  margin-top: 2px;
}

/* ==================== TOP 10 NETFLIX CARDS (NÚMEROS 100% VISÍVEIS) ==================== */
.top10-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 200px;
  min-width: 235px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  margin-right: 12px;
  flex-shrink: 0;
}

.top10-card:hover {
  transform: scale(1.08) translateY(-4px);
  z-index: 35;
}

.top10-rank-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 160px;
  line-height: 0.78;
  font-weight: 900;
  color: #141414;
  -webkit-text-stroke: 4px #b3b3b3;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
  position: relative;
  left: 0;
  bottom: -4px;
  z-index: 1;
  pointer-events: none;
  letter-spacing: -2px;
  min-width: 60px;
  text-align: right;
  padding-right: 0;
  transition: -webkit-text-stroke 0.2s, color 0.2s;
}

.top10-card:hover .top10-rank-num {
  -webkit-text-stroke: 4px #ffffff;
  color: #222222;
}

.top10-poster-wrap {
  position: relative;
  width: 140px;
  height: 200px;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 6px;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
  background: #1f1f1f;
  flex-shrink: 0;
}

.top10-poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.2s;
}

.top10-card:hover .top10-poster-wrap img {
  filter: brightness(1.1);
}

.top10-badge-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--netflix-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ==================== SEARCH RESULTS VIEW ==================== */
.search-results-section {
  padding: 100px 4% 40px;
  min-height: 80vh;
}

.search-results-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.search-results-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.search-results-count {
  font-size: 14px;
  color: #a3a3a3;
}

.search-results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.search-no-results {
  padding: 60px 0;
  text-align: center;
  color: #a3a3a3;
  font-size: 16px;
  width: 100%;
}

/* ==================== VIEW 2: TV AO VIVO (NETFLIX STYLE) ==================== */
.live-tv-container {
  padding-top: 70px;
  display: grid;
  grid-template-columns: 280px 1fr;
  height: 100vh;
}

.live-sidebar {
  background: #111;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
}

.live-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 6px;
}

.live-sidebar-header h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-gray);
}

.cat-pill {
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

.live-search-input-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.live-search-input-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.live-search-input-box input:focus {
  outline: none;
}

.live-cat-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-cat-item {
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-gray);
  cursor: pointer;
  transition: 0.15s;
}

.live-cat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.live-cat-item.active {
  background: var(--netflix-red);
  color: #fff;
  font-weight: 700;
}

.live-channels-section {
  padding: 20px 32px;
  overflow-y: auto;
}

.live-channels-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.live-channels-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
}

.sub-text {
  font-size: 13px;
  color: var(--text-dim);
}

.live-search-channel-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
}

.live-search-channel-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  width: 100%;
}

.live-search-channel-box input:focus {
  outline: none;
}

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

.channel-card-netflix {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.channel-card-netflix:hover {
  background: var(--bg-card-hover);
  border-color: var(--netflix-red);
  transform: translateY(-4px);
}

.channel-card-logo {
  width: 48px;
  height: 48px;
  background: #000;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.channel-card-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.channel-card-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== VIEWS 3 & 4: CATALOG GRIDS ==================== */
.catalog-page {
  padding: 90px 4% 40px;
}

.catalog-header {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.catalog-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cat-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}

.cat-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cat-pill-btn.active {
  background: var(--netflix-red);
  color: #fff;
  border-color: var(--netflix-red);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 140px);
  gap: 16px;
  padding-bottom: 60px;
}

/* ==================== FULLSCREEN THEATER VIDEO PLAYER ==================== */
.netflix-player-theater {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.player-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1020;
}

.player-back-btn:hover {
  background: var(--netflix-red);
}

.theater-video-wrapper {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-buffering {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}

.player-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1020;
}

.player-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.playing-type-pill {
  background: var(--netflix-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
}

.playing-stream-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.player-right-btns {
  display: flex;
  gap: 12px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.netflix-modal {
  background: #181818;
  border-radius: 10px;
  max-width: 860px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-close-x {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: background 0.2s, transform 0.2s;
}

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

/* Modal Netflix Rich View */
.modal-rich-header {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center top;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: flex;
  align-items: flex-end;
  padding: 28px 32px;
}

.modal-header-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.1) 0%, rgba(24, 24, 24, 0.7) 60%, #181818 100%);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.modal-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
}

.modal-play-cta-btn {
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  align-self: flex-start;
}

.modal-play-cta-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.03);
}

.modal-body-container {
  padding: 24px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.modal-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-genre-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
}

.modal-synopsis-text {
  font-size: 15px;
  line-height: 1.6;
  color: #d1d5db;
}

.modal-two-columns {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.loading-spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
}

.netflix-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: var(--netflix-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ==================== NEXT EPISODE TOAST (NETFLIX) ==================== */
.next-episode-toast {
  position: absolute;
  bottom: 90px;
  right: 40px;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  z-index: 1030;
  animation: slideUp 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.next-ep-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.next-ep-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--netflix-red);
  letter-spacing: 1px;
}

#nextEpTitle {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.next-countdown-desc {
  font-size: 12px;
  color: #a3a3a3;
}

.next-ep-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cancel-next {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Continue Watching Progress Bar on Cards */
.continue-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 30;
}

.continue-progress-fill {
  height: 100%;
  background: var(--netflix-red);
}

.badge-continue-progress {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 30;
}

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

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
  .netflix-header {
    height: 60px;
    padding: 0 16px;
  }
  .header-left {
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .header-left::-webkit-scrollbar {
    display: none;
  }
  .logo-full {
    display: none;
  }
  .logo-n {
    font-size: 32px;
  }
  .netflix-nav {
    gap: 12px;
    white-space: nowrap;
  }
  .nav-link {
    font-size: 13px;
  }
  .search-wrapper {
    display: none;
  }
  .redundancy-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
  .redundancy-badge span:last-child {
    display: none;
  }

  /* Hero Billboard on Mobile */
  .hero-billboard {
    height: 52vh;
    min-height: 380px;
    padding: 0 16px;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-synopsis {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .btn-play-netflix {
    padding: 10px 20px;
    font-size: 14px;
  }
  .btn-info-netflix {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Carousels on Mobile (Touch swipe like Netflix Mobile) */
  .netflix-rows-container {
    margin-top: -30px;
    gap: 24px;
  }
  .row-section {
    padding: 0 16px;
  }
  .row-header {
    font-size: 16px;
  }
  .slider-btn {
    display: none; /* Mobile uses native touch swipe */
  }
  .row-track {
    padding: 8px 0;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .netflix-card {
    flex: 0 0 115px;
    min-width: 115px;
    border-radius: 4px;
  }

  /* Live TV on Mobile */
  .live-tv-container {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }
  .live-sidebar {
    height: 160px;
  }
  .live-channels-section {
    padding: 16px;
  }
  .live-channels-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .live-search-channel-box {
    width: 100%;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }

  /* Modals on Mobile */
  .netflix-modal {
    margin: 10px;
  }
  .netflix-modal > div {
    grid-template-columns: 1fr !important;
  }
}
