:root {
  --netflix-black: #141414;
  --netflix-dark: #0b0b0b;
  --netflix-card: #181818;
  --netflix-red: #e50914;
  --netflix-red-hover: #b81d24;
  --netflix-gold: #f59e0b;
  --netflix-gray: #808080;
  --netflix-light-gray: #e5e5e5;
  --netflix-white: #ffffff;
  
  --font-netflix: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Bebas Neue', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body.netflix-body {
  font-family: var(--font-netflix);
  background-color: var(--netflix-black);
  color: var(--netflix-white);
  line-height: 1.4;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

/* ----------------- Netflix Top Navbar ----------------- */
.netflix-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 3.5rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  transition: background-color 0.4s ease;
}

.netflix-nav.scrolled {
  background-color: rgba(20, 20, 20, 0.98);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

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

.brand-logo {
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-title);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
  color: var(--netflix-red);
  text-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.nav-links a {
  color: var(--netflix-light-gray);
  transition: var(--transition-fast);
  font-weight: 500;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--netflix-white);
  font-weight: 700;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: var(--netflix-light-gray);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-dropdown-btn:hover {
  color: #fff;
}

.nav-dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: rgba(20, 20, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
  border-radius: 4px;
  display: none;
  flex-direction: column;
  min-width: 170px;
  padding: 0.5rem 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--netflix-red);
}

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

/* Netflix Expandable Search */
.netflix-search {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.netflix-search.active {
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid rgba(229, 9, 20, 0.85);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.search-trigger-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.netflix-search input {
  width: 0;
  opacity: 0;
  background: transparent;
  border: none;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.netflix-search input::placeholder {
  color: rgba(255, 255, 255, 0.65) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.65) !important;
  font-weight: 500;
}

.netflix-search.active input {
  width: 220px;
  opacity: 1;
  padding-left: 0.5rem;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}

#searchInput {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}

#searchInput:focus {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}

#searchInput:-webkit-autofill,
#searchInput:-webkit-autofill:hover, 
#searchInput:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0px 1000px #181818 inset !important;
  box-shadow: 0 0 0px 1000px #181818 inset !important;
  caret-color: #ffffff !important;
}

.netflix-btn-nobar {
  background: linear-gradient(135deg, var(--netflix-red) 0%, #b81d24 100%);
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.35);
  white-space: nowrap;
}

.netflix-btn-nobar:hover {
  background: #ff0f1e;
  transform: scale(1.03);
}

.netflix-btn-join {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.netflix-btn-join:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.avatar-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.avatar-nick {
  font-size: 0.75rem;
  color: var(--netflix-light-gray);
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------- Netflix Billboard Hero ----------------- */
.billboard {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  max-height: 850px;
  display: flex;
  align-items: center;
}

.billboard-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 1;
  transition: background-image 0.6s ease;
}

.billboard-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 0.95) 0%,
    rgba(20, 20, 20, 0.7) 40%,
    rgba(20, 20, 20, 0.1) 80%,
    transparent 100%
  );
  z-index: 2;
}

.billboard-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--netflix-black) 10%, transparent 100%);
  z-index: 3;
}

.billboard-content {
  position: relative;
  z-index: 10;
  max-width: 620px;
  padding-left: 3.5rem;
  margin-top: 4rem;
}

.billboard-rank-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.top10-tag {
  background: var(--netflix-red);
  color: #fff;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 2px;
}

.billboard-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
}

.billboard-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.match-score {
  color: #46d369;
  font-weight: 700;
}

.year-badge, .duration-badge {
  color: #a3a3a3;
}

.age-badge {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.05rem 0.35rem;
  font-size: 0.75rem;
  color: #d2d2d2;
}

.quality-badge {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.05rem 0.35rem;
  font-size: 0.7rem;
  border-radius: 2px;
  color: #d2d2d2;
  font-weight: 600;
}

.sub-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.05rem 0.35rem;
  font-size: 0.7rem;
  border-radius: 2px;
  font-weight: 700;
}

.billboard-synopsis {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #e5e5e5;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.billboard-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Netflix Buttons */
.netflix-play-btn {
  background: var(--netflix-white);
  color: #000;
  border: none;
  padding: 0.65rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

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

.netflix-info-btn {
  background: rgba(109, 109, 110, 0.7);
  color: #fff;
  border: none;
  padding: 0.65rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

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

.netflix-nobar-btn {
  background: linear-gradient(135deg, var(--netflix-red) 0%, #b81d24 100%);
  color: #fff;
  border: none;
  padding: 0.65rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

.netflix-nobar-btn:hover {
  background: #ff0f1e;
  transform: scale(1.03);
}

.billboard-side-badge {
  position: absolute;
  right: 0;
  bottom: 25%;
  z-index: 10;
  background: rgba(51, 51, 51, 0.6);
  border-left: 3px solid #dcdcdc;
  padding: 0.35rem 1.5rem 0.35rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ----------------- Netflix Rows & Carousel ----------------- */
.netflix-rows-container {
  position: relative;
  z-index: 20;
  margin-top: -6rem;
  padding-bottom: 5rem;
}

.netflix-row-section {
  margin-bottom: 2.75rem;
  position: relative;
}

.row-header {
  padding: 0 3.5rem;
  margin-bottom: 0.75rem;
}

.row-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #e5e5e5;
  transition: color 0.2s;
}

.row-title:hover {
  color: #fff;
}

.row-slider-wrapper {
  position: relative;
  width: 100%;
}

.row-slider {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding: 1.5rem 3.5rem;
  margin: -1.5rem 0;
}

.row-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Netflix Slider Arrow Buttons */
.slider-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  background: rgba(20, 20, 20, 0.5);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}

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

.slider-arrow:hover {
  background: rgba(20, 20, 20, 0.85);
  color: var(--netflix-red);
}

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

/* Standard Netflix Movie Card */
.netflix-card {
  flex: 0 0 calc((100% - (5 * 0.5rem)) / 6);
  min-width: 200px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--netflix-card);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s;
}

.netflix-card:hover {
  transform: scale(1.18);
  z-index: 50;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.netflix-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.netflix-card-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  transition: opacity 0.25s ease;
}

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

.card-title-mini {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta-mini {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

.card-action-mini {
  display: flex;
  gap: 0.35rem;
}

.mini-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
}

.mini-btn.play {
  background: #fff;
  color: #000;
  border: none;
}

.mini-btn:hover {
  border-color: #fff;
  transform: scale(1.1);
}

/* ========================================================
   NETFLIX HOVER MINI PLAYBACK PORTAL CARD
   ======================================================== */
.netflix-hover-card {
  position: absolute;
  z-index: 9999;
  background: #181818;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(0.2, 0, 0, 1), opacity 0.22s ease;
  display: flex;
  flex-direction: column;
}

.netflix-hover-card.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: auto;
}

.hover-card-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.hover-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

.hover-card-img.fade {
  opacity: 0;
}

.hover-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.hover-card-video-controls {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 12;
}

.hover-sound-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

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

.hover-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.hover-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--netflix-red);
  transition: width 0.15s linear;
}

.hover-card-body {
  padding: 0.85rem 1rem 1.1rem 1rem;
  background: #181818;
  display: flex;
  flex-direction: column;
}

.hover-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hover-actions-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hover-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(42, 42, 42, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.85rem;
}

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

.hover-btn.hover-play-btn {
  background: #fff;
  color: #000;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
}

.hover-btn.hover-play-btn:hover {
  background: #e6e6e6;
  transform: scale(1.1);
}

.hover-more-btn {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

.hover-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-meta-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.hover-genres-line {
  font-size: 0.72rem;
  color: #a3a3a3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------- TOP 10 NETFLIX GIANT NUMBERS ----------------- */
.top10-slider .top10-item {
  flex: 0 0 calc((100% - (4 * 1rem)) / 5);
  min-width: 230px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s;
}

.top10-slider .top10-item:hover {
  transform: scale(1.12);
  z-index: 50;
}

.top10-rank-num {
  font-family: var(--font-title);
  font-size: 10rem;
  line-height: 0.8;
  font-weight: 900;
  color: #000;
  -webkit-text-stroke: 4px #595959;
  letter-spacing: -0.05em;
  margin-right: -2rem;
  z-index: 2;
  user-select: none;
}

.top10-poster-wrap {
  flex: 1;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--netflix-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

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

/* ----------------- Search Grid Section ----------------- */
.search-grid-section {
  padding: 6rem 3.5rem 5rem 3.5rem;
}

.search-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.search-grid-header h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* High Contrast Empty State when searching */
.search-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.search-empty-state .empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.search-empty-state .empty-title {
  color: #ffffff !important;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.search-empty-state .empty-desc {
  color: #d1d5db !important;
  font-size: 0.95rem;
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.search-empty-state .btn-reset-search {
  background: linear-gradient(135deg, var(--netflix-red) 0%, #b81d24 100%);
  color: #ffffff !important;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.45);
}

.search-empty-state .btn-reset-search:hover {
  background: #ff0f1e;
  transform: scale(1.04);
}

.netflix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.grid-card {
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--netflix-card);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------- Netflix More Info Modal ----------------- */
.netflix-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.netflix-modal-card {
  background: #181818;
  border-radius: 8px;
  max-width: 850px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.netflix-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.netflix-modal-close:hover {
  background: #252525;
}

.modal-hero-banner {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.modal-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #181818 0%, rgba(24, 24, 24, 0.4) 60%, transparent 100%);
}

.modal-hero-info {
  position: relative;
  z-index: 10;
}

.modal-hero-info h2 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.modal-hero-btns {
  display: flex;
  gap: 0.85rem;
}

.modal-details-container {
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.modal-meta-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.modal-synopsis-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d2d2d2;
  margin-bottom: 1.5rem;
}

.modal-servers-block {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.servers-label {
  display: block;
  font-size: 0.8rem;
  color: var(--netflix-gold);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.server-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.server-btn {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.server-btn.active, .server-btn:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  font-weight: 700;
}

.modal-right-details {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-right-details strong {
  color: #a3a3a3;
}

.modal-right-details span {
  color: #e5e5e5;
}

/* Dialog card for Join & Create Custom */
.netflix-dialog-card {
  background: #181818;
  border-radius: 8px;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.netflix-dialog-card.modal-md {
  max-width: 600px;
}

.modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.modal-header p {
  color: var(--netflix-gray);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: #333;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  outline: none;
  font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus {
  border-color: #fff;
  background: #444;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ----------------- Profile Modal & Bio-Mutant Avatars ----------------- */
.modal-profile {
  max-width: 680px;
  width: 100%;
}

.profile-modal-header {
  margin-bottom: 1.5rem;
}

.profile-modal-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.profile-modal-header p {
  color: var(--netflix-gray);
  font-size: 0.85rem;
}

.profile-editor-layout {
  display: flex;
  gap: 1.75rem;
}

.profile-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 140px;
  flex-shrink: 0;
  padding-top: 0.5rem;
}

.preview-avatar-glow {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: rgba(229, 9, 20, 0.1);
  border: 2px solid var(--netflix-red);
  box-shadow: 0 0 24px rgba(229, 9, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.preview-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.preview-avatar-tag {
  font-size: 0.75rem;
  color: #e5e5e5;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}

.profile-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.avatar-selection-section {
  margin-top: 0.5rem;
}

.avatar-grid-label {
  font-size: 0.82rem;
  color: #ddd;
  font-weight: 600;
  margin-bottom: 0.65rem;
  display: block;
}

.bio-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.35rem;
  scrollbar-width: thin;
}

.bio-avatar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.4rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bio-avatar-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.bio-avatar-card.active {
  border-color: var(--netflix-red);
  background: rgba(229, 9, 20, 0.15);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.4);
}

.bio-card-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
}

.bio-card-title {
  font-size: 0.68rem;
  color: #d4d4d4;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bio-card-kanji {
  font-size: 0.6rem;
  color: var(--netflix-red);
  font-weight: 700;
}

.profile-actions {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .profile-editor-layout {
    flex-direction: column;
    align-items: center;
  }
  .bio-avatar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------- Nobar Watch Party Room View ----------------- */
.room-view {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #000;
  position: relative;
  z-index: 300;
}

/* ----------------- Netflix Modern Minimalist Watch Party Header ----------------- */
.netflix-room-header {
  height: 62px;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 350;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.room-nav-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.netflix-room-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.netflix-room-back:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(-2px);
}

.room-brand-mark {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--netflix-red);
  letter-spacing: 0.06em;
  line-height: 1;
  flex-shrink: 0;
}

.room-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.room-movie-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
}

.room-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  flex-shrink: 0;
  user-select: none;
}

.room-code-badge .pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.room-code-badge .pill-text {
  color: #f59e0b;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.room-code-badge strong {
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

/* High-Contrast Salin Link Undangan Button */
.room-share-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #e50914 0%, #b81d24 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
}

.room-share-badge-btn:hover {
  background: #ff0f1e !important;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 22px rgba(229, 9, 20, 0.65);
  border-color: #ffffff !important;
}

.room-share-badge-btn:active {
  transform: translateY(0) scale(0.98);
}

.room-share-badge-btn .share-icon {
  font-size: 0.92rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.room-share-badge-btn .share-text {
  color: #ffffff !important;
  font-weight: 800 !important;
}

.room-share-badge-btn.copied {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Backwards compatibility for any legacy share button */
.room-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #e50914 0%, #b81d24 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  user-select: none;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.45);
}

.room-pill-badge:hover {
  background: #ff0f1e !important;
  transform: translateY(-1px) scale(1.03);
}

.room-pill-badge .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.room-pill-badge .pill-text {
  color: #fff !important;
  font-weight: 700;
}

.room-pill-badge strong {
  color: #fff !important;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.copy-svg {
  color: #fff !important;
  transition: color 0.2s;
}

@media (max-width: 992px) {
  .netflix-room-header {
    height: 56px;
    padding: 0 1rem;
    gap: 0.85rem;
  }
  .room-movie-name {
    max-width: 200px;
    font-size: 0.88rem;
  }
}

@media (max-width: 768px) {
  .netflix-room-header {
    height: 52px;
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .room-brand-mark, .room-divider {
    display: none;
  }
  .room-movie-name {
    max-width: 140px;
    font-size: 0.82rem;
  }
  .room-share-badge-btn .share-text {
    display: none;
  }
  .room-share-badge-btn {
    padding: 0.35rem 0.65rem;
  }
  .room-specular-control .control-label {
    display: none;
  }
}

.room-nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.room-live-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #d1d5db;
  font-weight: 500;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.room-control-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d1d5db;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.room-control-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.room-control-pill.host-only {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #fca5a5;
}

.room-leave-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.room-leave-btn:hover {
  background: var(--netflix-red);
  border-color: var(--netflix-red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
}

.room-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.player-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
}

.player-server-banner {
  background: rgba(18, 18, 18, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  z-index: 5;
}

.server-banner-label {
  font-size: 0.68rem;
  color: #888;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.server-pill-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.server-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.server-pill.active {
  background: var(--netflix-red);
  color: #fff;
  font-weight: 700;
  border-color: var(--netflix-red);
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.video-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.main-video {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 180px);
  object-fit: contain;
}

.embed-player {
  width: 100%;
  height: 100%;
  min-height: 480px;
  max-height: calc(100vh - 180px);
  border: none;
  background: #000;
}

/* Floating reactions animation */
.reaction-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.floating-emoji {
  position: absolute;
  bottom: 20px;
  font-size: 2.5rem;
  animation: floatUp 2.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.6) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-160px) scale(1.3) rotate(15deg); opacity: 0.9; }
  100% { transform: translateY(-380px) scale(1) rotate(-10deg); opacity: 0; }
}

.sync-toast {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid var(--netflix-gold);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
  z-index: 20;
  pointer-events: none;
  animation: fadeInOut 2s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  20% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

.player-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 1rem;
}

.reaction-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reaction-label {
  font-size: 0.75rem;
  color: #888;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.reaction-btn:hover {
  background: rgba(229, 9, 20, 0.2);
  border-color: var(--netflix-red);
  transform: scale(1.08);
}

.custom-video-drawer {
  background: #111;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem;
}

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

.drawer-content {
  display: flex;
  gap: 0.5rem;
}

.drawer-content input {
  flex: 1;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Chat Column */
.chat-column {
  width: 360px;
  background: #141414;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.chat-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-tab-buttons {
  display: flex;
}

.chat-tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: none;
  border: none;
  color: var(--netflix-gray);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}

.chat-tab-btn.active {
  color: var(--netflix-red);
  border-bottom-color: var(--netflix-red);
  background: rgba(229, 9, 20, 0.05);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.nickname-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: var(--netflix-gray);
}

.edit-nick-btn {
  background: none;
  border: none;
  color: var(--netflix-gold);
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chat-notice {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  padding: 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #fbbf24;
  line-height: 1.4;
}

.chat-bubble {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  gap: 0.2rem;
}

.chat-bubble.mine { align-self: flex-end; }
.chat-bubble.other { align-self: flex-start; }

.bubble-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #777;
}

.sender-name {
  font-weight: 700;
  color: var(--netflix-gold);
}

.host-badge-small {
  background: var(--netflix-red);
  color: #fff;
  font-size: 0.6rem;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  font-weight: 800;
}

.bubble-body {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
}

.chat-bubble.mine .bubble-body {
  background: var(--netflix-red);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-bubble.other .bubble-body {
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
}

.chat-system-msg {
  align-self: center;
  font-size: 0.72rem;
  color: #666;
  font-style: italic;
  padding: 0.2rem 0;
}

.chat-form {
  display: flex;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
  background: #141414;
}

.chat-form input {
  flex: 1;
  background: #252525;
  border: 1px solid #444;
  color: #fff;
  padding: 0.55rem 0.85rem;
  border-radius: 4px;
  outline: none;
  font-size: 0.85rem;
}

.chat-form input:focus {
  border-color: #fff;
}

.send-btn {
  background: var(--netflix-red);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.send-btn:hover {
  background: #ff0f1e;
}

.users-panel {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--netflix-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #111;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.chat-mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: contain;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

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

.toast {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--netflix-red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.9);
  font-size: 0.875rem;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ----------------- Netflix Footer ----------------- */
.netflix-footer {
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 3.5rem 3rem 3.5rem;
  color: var(--netflix-gray);
  font-size: 0.825rem;
}

.footer-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

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

.footer-links-grid a:hover {
  text-decoration: underline;
  color: #ccc;
}

.footer-copy {
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* ----------------- Responsive ----------------- */
@media (max-width: 992px) {
  .netflix-nav {
    padding: 0.85rem 1.5rem;
  }
  .billboard-content {
    padding-left: 1.5rem;
  }
  .billboard-title {
    font-size: 2.5rem;
  }
  .row-header {
    padding: 0 1.5rem;
  }
  .row-slider {
    padding: 1.5rem 1.5rem;
  }
  .netflix-card {
    flex: 0 0 calc((100% - (3 * 0.5rem)) / 4);
  }
  .top10-slider .top10-item {
    flex: 0 0 calc((100% - (2 * 1rem)) / 3);
  }
  .modal-details-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile navigation */
  }
  .billboard-title {
    font-size: 2rem;
  }
  .netflix-card {
    flex: 0 0 calc((100% - (1 * 0.5rem)) / 2);
    min-width: 160px;
  }
  .top10-slider .top10-item {
    flex: 0 0 calc((100% - (1 * 1rem)) / 2);
    min-width: 180px;
  }
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
