/* ============================================
   RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --netflix-red: #e50914;
  --netflix-red-dark: #b20710;
  --netflix-black: #141414;
  --netflix-dark: #1a1a1a;
  --netflix-gray: #2f2f2f;
  --netflix-light-gray: #808080;
  --netflix-text: #ffffff;
  --netflix-text-dim: #b3b3b3;
  --hero-height: 56vw;
  --max-hero: 680px;
  --header-h: 68px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--netflix-black);
  color: var(--netflix-text);
  overflow-x: hidden;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--netflix-black); }
::-webkit-scrollbar-thumb { background: var(--netflix-gray); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4a4a4a; }

/* ============================================
   LOGO
   ============================================ */
.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: var(--netflix-red);
  font-weight: 700;
}
.logo-accent {
  color: var(--netflix-text);
}

/* ============================================
   PROFILE SELECTION SCREEN
   ============================================ */
.profile-screen {
  position: fixed;
  inset: 0;
  background: var(--netflix-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(229,9,20,0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(229,9,20,0.05), transparent 50%);
}

.profile-logo {
  position: absolute;
  top: 30px;
  left: 40px;
}

.profile-logo .logo-text {
  font-size: 2rem;
}

.profile-title {
  font-size: 3.5vw;
  font-weight: 400;
  color: var(--netflix-text);
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.profile-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform var(--transition);
  animation: profileFadeIn 0.6s ease both;
}

.profile-card:nth-child(1) { animation-delay: 0.1s; }
.profile-card:nth-child(2) { animation-delay: 0.2s; }
.profile-card:nth-child(3) { animation-delay: 0.3s; }
.profile-card:nth-child(4) { animation-delay: 0.4s; }

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

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

.profile-card:hover .profile-avatar {
  box-shadow: 0 0 0 4px var(--netflix-text);
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: white;
  transition: box-shadow var(--transition);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}

.profile-name {
  font-size: 1.3rem;
  color: var(--netflix-text-dim);
  font-weight: 400;
  transition: color var(--transition);
}

.profile-card:hover .profile-name {
  color: var(--netflix-text);
}

.add-profile-btn {
  margin-top: 40px;
  background: transparent;
  border: none;
  color: var(--netflix-text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color var(--transition);
  font-family: inherit;
}

.add-profile-btn:hover {
  color: var(--netflix-text);
}

/* ============================================
   MAIN APP
   ============================================ */
.main-app {
  position: relative;
  min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  transition: background var(--transition);
}

.header.scrolled {
  background: var(--netflix-black);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

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

.header-logo .logo-text {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--netflix-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--netflix-text);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--netflix-red);
  border-radius: 2px;
}

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

/* SEARCH */
.search-container {
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0 10px;
  transition: border-color var(--transition), width var(--transition);
  overflow: hidden;
}

.search-container:focus-within {
  border-color: white;
  width: 260px;
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--netflix-text-dim);
  flex-shrink: 0;
}

.search-input {
  background: none;
  border: none;
  color: white;
  padding: 8px;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.search-input::placeholder {
  color: var(--netflix-light-gray);
}

/* Notification bell */
.header-notif {
  position: relative;
  cursor: pointer;
}

.header-notif svg {
  width: 22px;
  height: 22px;
  color: white;
}

.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--netflix-red);
  border-radius: 50%;
}

.notif-dropdown {
  position: absolute;
  top: 40px;
  right: -100px;
  width: 320px;
  background: rgba(0,0,0,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 12px 0;
  display: none;
  z-index: 200;
}

.notif-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

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

.notif-dropdown h3 {
  padding: 0 16px 8px;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 8px;
}

.notif-item {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--netflix-text-dim);
  cursor: pointer;
  transition: background var(--transition);
}

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

/* Profile dropdown */
.header-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.chevron {
  width: 14px;
  height: 14px;
  color: white;
  transition: transform var(--transition);
}

.header-profile.open .chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  width: 200px;
  background: rgba(0,0,0,0.95);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 8px 0;
  display: none;
  z-index: 200;
}

.profile-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--netflix-text-dim);
  cursor: pointer;
  transition: all var(--transition);
}

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  max-height: var(--max-hero);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: opacity 1s ease, background-image 0.8s ease;
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% { transform: scale(1) translateX(0); }
  100% { transform: scale(1.1) translateX(-2%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,0.9) 0%, rgba(20,20,20,0.5) 40%, transparent 70%);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent 0%, var(--netflix-black) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 4vw 100px;
  max-width: 650px;
  animation: heroSlideUp 0.8s ease both;
}

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

.hero-badge {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--netflix-red);
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--netflix-text-dim);
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--netflix-text-dim);
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 12px;
}

.btn-play, .btn-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-play {
  background: white;
  color: black;
}

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

.btn-info {
  background: rgba(109,109,110,0.7);
  color: white;
}

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

.btn-play svg, .btn-info svg {
  width: 22px;
  height: 22px;
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 180px;
  right: 4vw;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.hero-dot.active {
  background: white;
  transform: scale(1.3);
}

.hero-dot:hover {
  background: rgba(255,255,255,0.7);
}

/* ============================================
   GALLERIES
   ============================================ */
.galleries {
  position: relative;
  z-index: 5;
  padding: 0 0 40px;
  margin-top: -40px;
}

.gallery {
  margin-bottom: 35px;
}

.gallery-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 4vw;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gallery-title .explore-arrow {
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 0.85rem;
  color: var(--netflix-red);
}

.gallery-title:hover .explore-arrow {
  opacity: 1;
}

.gallery-row {
  position: relative;
  padding-left: 4vw;
  padding-right: 4vw;
}

.gallery-track {
  display: flex;
  gap: 6px;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.movie-card {
  flex-shrink: 0;
  width: 240px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  position: relative;
  background: var(--netflix-dark);
}

.movie-card:hover {
  transform: scale(1.08);
  z-index: 10;
}

.movie-card.expanded {
  z-index: 50;
}

.movie-poster {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--netflix-gray);
}

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

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

.movie-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.movie-card-meta {
  font-size: 0.75rem;
  color: var(--netflix-text-dim);
  display: flex;
  gap: 6px;
  align-items: center;
}

.match-badge {
  color: #46d369;
  font-weight: 600;
}

.movie-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--netflix-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  z-index: 2;
}

/* Gallery arrows */
.gallery-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4vw;
  background: linear-gradient(90deg, rgba(20,20,20,0.9), transparent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  transition: opacity var(--transition);
  color: white;
}

.gallery-row:hover .gallery-arrow {
  opacity: 1;
}

.gallery-arrow svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.gallery-arrow.left { left: 0; }
.gallery-arrow.right {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(20,20,20,0.9));
}

.gallery-arrow:hover svg {
  transform: scale(1.2);
}

.gallery-arrow svg {
  transition: transform var(--transition);
}

/* Top 10 badge */
.top10-number {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 7rem;
  font-weight: 900;
  line-height: 0.8;
  color: black;
  -webkit-text-stroke: 3px var(--netflix-text-dim);
  z-index: 1;
  padding: 0 8px;
}

.movie-card.top10 {
  width: 320px;
  display: flex;
  align-items: flex-end;
}

.movie-card.top10 .movie-poster-wrap {
  width: 200px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 4vw;
  background: var(--netflix-black);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--netflix-text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--netflix-text);
}

.footer-copy {
  color: var(--netflix-text-dim);
  font-size: 0.75rem;
}

/* ============================================
   VIDEO PLAYER MODAL
   ============================================ */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: playerOpen 0.4s ease;
}

@keyframes playerOpen {
  from { opacity: 0; }
  to { opacity: 1; }
}

.player-modal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.player-container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
  z-index: 1;
  animation: playerZoom 0.4s ease;
}

@keyframes playerZoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.player-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.player-close:hover {
  background: rgba(229,9,20,0.8);
}

.player-close svg {
  width: 20px;
  height: 20px;
}

.player-video-area {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Skeleton loading */
.player-skeleton {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.skeleton-loader {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

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

/* Player overlay (title info) */
.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.8) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 40px;
  z-index: 4;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.player-details {
  max-width: 500px;
}

.player-details h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.player-meta {
  font-size: 0.9rem;
  color: var(--netflix-text-dim);
  margin-bottom: 10px;
}

.player-desc {
  font-size: 0.95rem;
  color: var(--netflix-text-dim);
  text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
  line-height: 1.4;
}

/* Player controls */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 30px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  z-index: 5;
  transition: opacity 0.3s ease;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), color var(--transition);
}

.control-btn:hover {
  color: var(--netflix-text-dim);
  transform: scale(1.1);
}

.control-btn svg {
  width: 24px;
  height: 24px;
}

.progress-bar-container {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  transition: height 0.15s ease;
}

.progress-bar-container:hover {
  height: 8px;
}

.progress-bar {
  height: 100%;
  background: var(--netflix-red);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--netflix-red);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.progress-bar-container:hover .progress-thumb {
  opacity: 1;
}

.player-time {
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 80px;
}

/* ============================================
   DETAIL MODAL
   ============================================ */
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px;
  overflow-y: auto;
  animation: playerOpen 0.3s ease;
}

.detail-modal::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: -1;
}

.detail-container {
  width: 100%;
  max-width: 900px;
  background: var(--netflix-dark);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  animation: playerZoom 0.4s ease;
  margin-bottom: 40px;
}

.detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
  color: white;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-close svg { width: 18px; height: 18px; }
.detail-close:hover { background: rgba(229,9,20,0.8); }

.detail-banner {
  position: relative;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}

.detail-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,26,26,1) 100%);
}

.detail-banner-content {
  position: absolute;
  bottom: 30px;
  left: 40px;
  right: 40px;
}

.detail-banner-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.btn-play-small, .btn-add, .btn-like {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-play-small {
  background: white;
  color: black;
}
.btn-play-small:hover { background: rgba(255,255,255,0.8); }

.btn-add, .btn-like {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(109,109,110,0.6);
  color: white;
}

.btn-add:hover, .btn-like:hover {
  border-color: white;
}

.btn-add svg, .btn-like svg { width: 18px; height: 18px; }

.detail-body {
  display: flex;
  gap: 30px;
  padding: 0 40px 30px;
}

.detail-main { flex: 1.5; }

.detail-match {
  color: #46d369;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 10px;
}

.detail-year, .detail-rating, .detail-seasons {
  font-size: 0.9rem;
  color: var(--netflix-text-dim);
  margin-right: 12px;
}

.detail-rating {
  border: 1px solid var(--netflix-text-dim);
  padding: 1px 6px;
  border-radius: 2px;
}

.detail-description {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--netflix-text);
}

.detail-sidebar { flex: 1; }

.detail-meta-block {
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--netflix-text-dim);
}

.meta-label {
  color: var(--netflix-light-gray);
  display: block;
  margin-bottom: 2px;
}

.detail-similar {
  padding: 0 40px 40px;
}

.detail-similar h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.similar-card {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--netflix-gray);
  transition: transform var(--transition);
}

.similar-card:hover {
  transform: scale(1.03);
}

.similar-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

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

.similar-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.similar-card-match {
  color: #46d369;
  font-size: 0.75rem;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(229,9,20,0.95);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-content { padding-bottom: 60px; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 0.9rem; }
  .btn-play, .btn-info { padding: 8px 18px; font-size: 0.95rem; }
  .movie-card { width: 160px; }
  .profile-avatar { width: 100px; height: 100px; font-size: 2rem; }
  .profile-title { font-size: 2rem; }
  .detail-body { flex-direction: column; padding: 0 20px 20px; }
  .detail-similar { padding: 0 20px 30px; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-banner-content h1 { font-size: 1.6rem; }
  .search-container:focus-within { width: 180px; }
  .hero-dots { display: none; }
  .player-overlay { padding: 30px 20px; }
  .player-details h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .movie-card { width: 130px; }
  .hero-title { font-size: 1.6rem; }
  .hero-description { display: none; }
  .profile-grid { gap: 15px; }
  .profile-avatar { width: 80px; height: 80px; font-size: 1.5rem; }
  .player-controls { gap: 8px; padding: 12px 15px; }
  .player-time { font-size: 0.75rem; min-width: 60px; }
}
