* {
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.loaded {
  opacity: 1;
}

.navbar {
  width: 100%;
  height: 50px;
  background-color: black;
  position: fixed;
  top: 0;
  z-index: 999;
}

.navbar-container {
  display: flex;
  align-items: center;
  padding: 0 50px;
  height: 100%;
  color: white;
  font-family: "Sen", sans-serif;
}

.logo {
  font-size: 30px;
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  letter-spacing: 4px;
  display: inline-block;
  position: relative; /* ← semicolon FIXED */
  text-transform: uppercase;

  /* Gold Gradient Text */
  background: linear-gradient(90deg, #d4af37, #f7e98e, #d4af37);
  background-size: 200%;
  -webkit-background-clip: text;
  color: transparent;

  /* Smooth Gold Shine Animation */
  animation: goldMove 6s linear infinite;

  text-shadow:
    0 0 10px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.2);
}

/* Moving Gold Shine */
@keyframes goldMove {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

/* Premium Gold Underline */
.logo::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #d4af37, #f7e98e, #d4af37);
  border-radius: 10px;

  animation: underlineGlow 4s infinite linear;
}

/* Underline Glow Animation */
@keyframes underlineGlow {
  0% {
    filter: brightness(0.8);
  }
  50% {
    filter: brightness(1.5);
  }
  100% {
    filter: brightness(0.8);
  }
}

.menu-container {
  flex: 6;
}

.menu-list {
  display: flex;
  list-style: none;
}

.menu-list-item {
  margin-right: 30px;
}

.menu-list-item.active {
  font-weight: bold;
}
.profile-container {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.profile-text-container {
  margin: 0 20px;
}

.profile-picture {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.toggle {
  width: 40px;
  height: 20px;
  background-color: rgb(236, 243, 242);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
}

.toggle-icon {
  color: goldenrod;
}

.toggle-ball {
  width: 18px;
  height: 18px;
  background-color: black;
  position: absolute;
  right: 1px;
  border-radius: 50%;
  cursor: pointer;
  transition: 1s ease all;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 60px;
  background: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 80px;
  transition: 0.3s;
  z-index: 998;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.left-menu-icon {
  color: gray;
  font-size: 20px;
  margin: 25px 0;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.left-menu-icon::after {
  content: attr(data-title);
  position: absolute;
  left: 50px;
  background: black;
  color: white;
  padding: 4px 8px;
  font-size: 12px;
  opacity: 0;
  white-space: nowrap;
  border-radius: 4px;
  transition: 0.3s;
}

.featured-button:hover {
  background: #3aa500;
  transform: scale(1.05);
}

.left-menu-icon:hover::after {
  opacity: 1;
}

.left-menu-icon:hover {
  color: white;
  transform: scale(1.2);
}

.left-menu-icon.active {
  color: red;
}

.container {
  background-color: #151515;
  min-height: calc(100vh - 50px);
  color: white;
  margin-top: 50px;
  position: relative;
}

.content-container {
  margin-left: 50px;
}

.featured-content {
  height: 50vh;
  padding: 50px;
  border: 2px solid red;
}

.featured-title {
  width: 200px;
}

.featured-desc {
  width: 500px;
  color: lightgray;
  margin: 30px 0;
}

.featured-button {
  background-color: #5300bf;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-weight: bold;
}

.movie-list-container {
  padding: 0 20px;
}

.movie-list-wrapper {
  position: relative;
  overflow: hidden;
}

.movie-list {
  display: flex;
  transform: translateX(0);
  transition: all 1s ease-in-out;
  height: auto;
  align-items: flex-start;
}

.movie-list-item {
  width: 250px; /* 🔥 BIG poster */
  margin-right: 22px;
  flex-shrink: 0;
  position: relative;
}

.movie-list-item:hover .movie-list-item-title,
.movie-list-item:hover .movie-list-item-desc,
.movie-list-item:hover .movie-list-item-button {
  opacity: 1;
}

.movie-list-item-title {
  background-color: #333;
  padding: 0 10px;
  font-size: 32px;
  font-weight: bold;
  position: absolute;
  top: 10%;
  left: 50px;
  opacity: 0;
  transition: 1s all ease-in-out;
}

.movie-list-item-desc {
  background-color: #333;
  padding: 10px;
  font-size: 14px;
  position: absolute;
  top: 30%;
  left: 50px;
  width: 230px;
  opacity: 0;
  transition: 1s all ease-in-out;
}

.movie-list-item-button {
  position: absolute;
  bottom: 60px;
  right: 20px;

  opacity: 1;
  padding: 8px 16px;
  background-color: #e36c17;
  color: white;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease-in-out;
}

.arrow {
  font-size: 60px;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));

  padding: 40px 15px;
  border-radius: 10px 0 0 10px;
}

.arrow:hover {
  opacity: 1;
  color: #1db954; /* Netflix green feel */
}

.container.active {
  background-color: rgb(7, 7, 7);
  color: white;
}

.movie-list-title.active {
  color: black;
}

.navbar-container.active {
  background-color: rgb(166, 240, 240);

  color: black;
}

.sidebar.active {
  background-color: rgb(199, 232, 232);
  color: #000;
}

.left-menu-icon.active {
  color: black;
}

.toggle.active {
  background-color: black;
}

.toggle-ball.active {
  background-color: white;
  transform: translateX(-20px);
}

.movie-list-item:hover {
  transform: scale(1.05);
  transition: 0.3s;
  z-index: 2;
}

.search-input {
  width: 0;
  opacity: 0;
  padding: 5px;
  margin-left: 10px;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.search-input.open {
  width: 200px;
  opacity: 1;
}

.navbar.sticky {
  background: #111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.menu-list-item {
  position: relative;
  cursor: pointer;
}

.menu-list-item::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0%;
  height: 3px;
  background: red;
  transition: 0.3s;
}

.menu-list-item.active::after {
  width: 100%;
}

.profile-container {
  position: relative;
}

.profile-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: #111;
  color: white;
  padding: 10px;
  display: none;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown p {
  margin: 8px 0;
  cursor: pointer;
}

.search-box {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.search-input {
  width: 0;
  opacity: 0;
  margin-left: 5px;
  transition: 0.4s;
}

.search-input.open {
  width: 180px;
  opacity: 1;
}

.hamburger {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: rgb(249, 242, 242);
  margin-left: 50px;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
}

.netflix-card {
  position: relative;
  overflow: hidden;
}

.netflix-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  opacity: 0;
  padding: 15px;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.netflix-hover h3 {
  font-size: 16px;
}

.no-results {
  display: none;
  text-align: center;
  font-size: 22px;
  margin: 40px 0;
  color: #bbb;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.no-results.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.poster-wrapper {
  width: 100%;
  height: 390px;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
}

.poster-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.container.active {
  background-color: white;
  color: black;
}

.trailer-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
}

.trailer-modal iframe {
  width: 80%;
  height: 70%;
  margin: 5% auto;
  display: block;
  border-radius: 12px;
}

#closeTrailer {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

.youtube-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #1db954;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  display: none;
  z-index: 9999;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.highlight {
  background: #f5c518; /* IMDb yellow */
  color: black;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.movie-list-item:has(.highlight) {
  outline: 3px solid #f5c518;
}

.fav-btn {
  background: transparent;
  border: 1px solid #fff;
  color: white;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: 0.3s;
}

.fav-btn:hover {
  background: #e50914;
  border-color: #e50914;
}

/* ===== Back to Home Button ===== */

.back-home {
  padding: 20px;
}

.back-home button {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 999px; /* pill shape */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.back-home button i {
  font-size: 13px;
}

.back-home button:hover {
  background: #e50914; /* Netflix red */
  border-color: #e50914;
  transform: translateX(-4px);
  box-shadow: 0 6px 16px rgba(229, 9, 20, 0.5);
}

.back-home button:active {
  transform: scale(0.95);
}

/* Fix white background at bottom while scrolling */
html,
body {
  background: #000 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Prevent containers from shifting */
.container,
.featured-content,
.movie-list-container {
  overflow: hidden !important;
}

/* Remove extra white space created by elements */
body * {
  max-width: 100%;
}

/* ==================== MOBILE-SPECIFIC STYLES ==================== */
/* Ultra-Smooth, Polished, & Attractive Mobile UI */

@media (max-width: 768px) {
  /* === ROOT VARIABLES === */
  :root {
    --primary-gradient: linear-gradient(135deg, #e36c17 0%, #ff8c42 100%);
    --dark-bg: #0a0a0a;
    --card-bg: #111;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-green: #1db954;
    --accent-red: #ff4444;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.7);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }

  /* === SMOOTH SCROLLING === */
  * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }

  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* === NAVBAR === */
  .navbar-container {
    padding: 0 15px;
    justify-content: space-between;
    position: relative;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--glass-border);
  }

  .logo {
    font-size: 20px;
    letter-spacing: 2.5px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(227, 108, 23, 0.3);
    transition: all 0.3s var(--transition-smooth);
  }

  .logo:active {
    transform: scale(0.95);
  }

  /* Hamburger Menu */
  .hamburger {
    order: 1;
    font-size: 22px;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    color: white;
    transition: all 0.3s var(--transition-bounce);
    border-radius: 8px;
    background: var(--glass-bg);
  }

  .hamburger:active {
    transform: rotate(90deg) scale(0.9);
    background: rgba(227, 108, 23, 0.2);
  }

  /* Hide Desktop Menu */
  .menu-container {
    display: none;
  }

  /* Search Box */
  .search-box {
    order: 2;
    margin-right: 10px;
  }

  .search-input {
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--transition-smooth);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  .search-input.open {
    width: 160px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.2);
  }

  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
  }

  .search-input:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.3);
  }

  /* Profile Container */
  .profile-container {
    order: 3;
    flex: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }

  .profile-text-container {
    display: none;
  }

  .profile-picture {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--glass-border);
    transition: all 0.4s var(--transition-bounce);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .profile-picture:active {
    border-color: var(--accent-green);
    transform: scale(0.9);
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.5);
  }

  /* Dark Mode Toggle */
  .toggle {
    width: 44px;
    height: 22px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .toggle-icon {
    color: goldenrod;
    font-size: 11px;
    z-index: 1;
  }

  .toggle-ball {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #2a2a2a 0%, #000 100%);
    position: absolute;
    right: 2px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  }

  .toggle-ball:active {
    transform: scale(0.85);
  }

  /* === SIDEBAR === */
  .sidebar {
    position: fixed;
    top: 0;
    left: -220px; /* Hidden by default */
    height: 100vh;
    width: 220px;
    background: linear-gradient(180deg, #0a0a0a 0%, #151515 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    z-index: 998;
    transition: left 0.4s var(--transition-smooth), box-shadow 0.4s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
    border-right: 1px solid var(--glass-border);
  }

  .sidebar.open {
    left: 0; /* Slides in from left */
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.8);
  }

  .sidebar.open ~ .content-container {
    margin-left: 220px;
  }

  .left-menu-icon {
    font-size: 20px;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    position: relative;
  }

  .left-menu-icon:hover {
    color: var(--accent-green);
    background: rgba(29, 185, 84, 0.1);
    transform: translateX(5px);
  }

  .left-menu-icon::after {
    left: 50px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar.open .left-menu-icon::after {
    opacity: 1;
  }

  /* === CONTENT CONTAINER === */
  .content-container {
    margin-left: 0;
    padding: 20px 15px 50px 15px;
    transition: all 0.4s var(--transition-smooth);
    min-height: 100vh;
  }

  /* Content shifts only when sidebar is open */
  .sidebar.open ~ .content-container {
    margin-left: 220px;
  }

  /* === FEATURED SECTION === */
  .featured-content {
    height: 55vh;
    padding: 35px 25px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: 30px;
    box-shadow: var(--shadow-heavy);
    animation: fadeIn 0.8s ease forwards;
  }

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

  /* Cinematic Gradient Overlay */
  .featured-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.6) 40%,
      rgba(0, 0, 0, 0.2) 70%,
      transparent 100%
    );
    z-index: 1;
  }

  /* Glowing Edge Effect */
  .featured-content::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(
      135deg,
      rgba(227, 108, 23, 0.3),
      transparent 50%,
      rgba(29, 185, 84, 0.3)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
  }

  .featured-title,
  .featured-desc,
  .featured-button {
    position: relative;
    z-index: 2;
  }

  .featured-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
  }

  .featured-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  }

  .featured-button {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(227, 108, 23, 0.4);
    transition: all 0.3s var(--transition-bounce);
    display: inline-block;
    width: fit-content;
  }

  .featured-button:active {
    transform: scale(0.95);
    box-shadow: 0 4px 15px rgba(227, 108, 23, 0.6);
  }

  /* === MOVIE LIST SECTION === */
  .movie-list-container {
    padding: 0 20px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
  }

  .movie-list-wrapper {
    position: relative;
    overflow: hidden;
    z-index: 2;
  }

  .movie-list-title {
    font-size: 22px;
    font-weight: 700;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-light);
    letter-spacing: 0.5px;
  }

  /* Movie List Scrolling */
  .movie-list {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .movie-list::-webkit-scrollbar {
    display: none;
  }

  /* Movie Cards */
  .movie-list-item {
    width: 240px;
    min-width: 240px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow-medium);
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    scroll-snap-align: start;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
    position: relative;
  }

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

  .movie-list-item:active {
    transform: scale(0.96);
  }

  .movie-list-item:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 100;
    box-shadow: var(--shadow-heavy);
  }

  /* Poster Wrapper */
  .poster-wrapper {
    width: 100%;
    height: 360px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    cursor: pointer;
    pointer-events: all;
    position: relative;
  }

  .poster-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 60%,
      rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .movie-list-item:hover .poster-wrapper::before {
    opacity: 1;
  }

  .poster-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
  }

  .movie-list-item:hover .poster-wrapper img {
    transform: scale(1.1);
  }

  /* Movie Info Overlay */
  .movie-list-item-title {
    position: absolute;
    bottom: 65px;
    left: 0;
    right: 0;
    font-size: 17px;
    font-weight: 700;
    padding: 12px 18px;
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.5)
    );
    backdrop-filter: blur(8px);
    border-radius: 0 12px 12px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s var(--transition-smooth);
    z-index: 15;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }

  .movie-list-item:hover .movie-list-item-title {
    opacity: 1;
    transform: translateX(0);
  }

  .movie-list-item-desc {
    position: absolute;
    top: 40%;
    left: 18px;
    right: 18px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    padding: 14px;
    font-size: 13px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-smooth);
    z-index: 15;
    pointer-events: none;
    line-height: 1.5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .movie-list-item:hover .movie-list-item-desc {
    opacity: 1;
    transform: translateY(0);
  }

  /* Watch Button */
  .movie-list-item-button {
    position: absolute;
    bottom: 18px;
    right: 18px;
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s var(--transition-bounce);
    z-index: 20;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(227, 108, 23, 0.4);
    opacity: 1;
  }

  .movie-list-item-button:active {
    transform: scale(0.92);
    box-shadow: 0 2px 10px rgba(227, 108, 23, 0.6);
  }

  /* Favorites Button */
  .fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    z-index: 20;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  }

  .fav-btn:active {
    transform: scale(0.9);
    background: rgba(29, 185, 84, 0.8);
    border-color: var(--accent-green);
  }

  /* Arrow Navigation */
  .arrow {
    font-size: 50px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.9),
      rgba(0, 0, 0, 0.4),
      transparent
    );
    padding: 50px 20px;
    border-radius: 16px 0 0 16px;
    pointer-events: all;
    transition: all 0.3s var(--transition-smooth);
    backdrop-filter: blur(5px);
  }

  .arrow:active {
    opacity: 1;
    transform: translateY(-50%) scale(0.95);
    background: linear-gradient(
      to left,
      rgba(227, 108, 23, 0.3),
      rgba(0, 0, 0, 0.6),
      transparent
    );
  }

  /* === PROFILE DROPDOWN === */
  .profile-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 10px 0;
    min-width: 220px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--glass-border);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.9);
    transition: all 0.4s var(--transition-bounce);
    backdrop-filter: blur(20px);
  }

  .profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: slideDown 0.4s var(--transition-bounce);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .profile-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #1a1a1a;
    filter: drop-shadow(0 -3px 5px rgba(0, 0, 0, 0.4));
  }

  .profile-dropdown p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
  }

  .profile-dropdown p:last-child {
    border-bottom: none;
    border-radius: 0 0 16px 16px;
    color: #ff6b6b;
  }

  .profile-dropdown p:first-child {
    border-radius: 16px 16px 0 0;
  }

  .profile-dropdown p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-green);
    transform: scaleY(0);
    transition: transform 0.3s var(--transition-smooth);
  }

  .profile-dropdown p:active {
    background: linear-gradient(
      90deg,
      rgba(29, 185, 84, 0.15),
      rgba(29, 185, 84, 0.05)
    );
    color: var(--accent-green);
    padding-left: 32px;
  }

  .profile-dropdown p:active::before {
    transform: scaleY(1);
  }

  .profile-dropdown p:last-child:active {
    background: linear-gradient(
      90deg,
      rgba(255, 68, 68, 0.15),
      rgba(255, 68, 68, 0.05)
    );
    color: var(--accent-red);
  }

  .profile-dropdown p:last-child:active::before {
    background: var(--accent-red);
  }

  /* Icons */
  .profile-dropdown p::after {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .profile-dropdown p:nth-child(1)::after {
    content: "\f007";
  }

  .profile-dropdown p:nth-child(2)::after {
    content: "\f004";
  }

  .profile-dropdown p:nth-child(3)::after {
    content: "\f2f5";
    color: var(--accent-red);
  }

  .profile-dropdown p:active::after {
    transform: scale(1.2);
  }

  /* === BACK TO HOME === */
  .back-home {
    padding: 20px 15px;
  }

  .back-home button {
    padding: 10px 20px;
    font-size: 14px;
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
  }

  .back-home button:active {
    transform: scale(0.95);
    background: rgba(29, 185, 84, 0.2);
    border-color: var(--accent-green);
  }

  /* === TRAILER MODAL === */
  .trailer-modal {
    backdrop-filter: blur(15px);
    animation: fadeIn 0.3s ease;
  }

  .trailer-modal iframe {
    width: 95%;
    height: 55%;
    margin: 15% auto;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
  }

  #closeTrailer {
    top: 12px;
    right: 18px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }

  #closeTrailer:active {
    transform: rotate(90deg) scale(0.9);
    background: rgba(255, 68, 68, 0.8);
  }

  /* === NO RESULTS === */
  .no-results {
    font-size: 17px;
    margin: 40px 0;
    padding: 30px 20px;
    text-align: center;
    background: var(--glass-bg);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
  }

  /* === YOUTUBE MESSAGE === */
  .youtube-message {
    position: fixed;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    animation: slideUp 0.5s ease;
  }

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

/* ==================== EXTRA SMALL MOBILE (<480px) ==================== */

@media (max-width: 480px) {
  .logo {
    font-size: 17px;
    letter-spacing: 2px;
  }

  .featured-content {
    height: 45vh;
    padding: 25px 18px;
    border-radius: 20px;
  }

  .featured-title {
    font-size: 24px;
  }

  .featured-desc {
    font-size: 13px;
  }

  .featured-button {
    padding: 10px 22px;
    font-size: 14px;
  }

  .movie-list-item {
    width: 200px;
    min-width: 200px;
  }

  .poster-wrapper {
    height: 300px;
  }

  .movie-list-item-button {
    padding: 8px 16px;
    font-size: 12px;
    bottom: 15px;
    right: 15px;
  }

  .arrow {
    font-size: 40px;
    padding: 40px 15px;
  }

  .sidebar {
    left: -200px; /* Hidden by default on small screens */
    width: 200px;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar.open ~ .content-container {
    margin-left: 200px;
  }

  .profile-dropdown {
    min-width: 200px;
    right: -5px;
  }

  .profile-dropdown::before {
    right: 18px;
  }

  .profile-dropdown p {
    font-size: 14px;
    padding: 14px 20px;
  }

  .profile-picture {
    width: 32px;
    height: 32px;
  }

  .toggle {
    width: 40px;
    height: 20px;
  }

  .toggle-ball {
    width: 16px;
    height: 16px;
  }

  .search-input.open {
    width: 130px;
  }

  .movie-list-title {
    font-size: 19px;
  }
}

/* ==================== LANDSCAPE MODE (Mobile) ==================== */

@media (max-width: 768px) and (orientation: landscape) {
  .featured-content {
    height: 75vh;
  }

  .trailer-modal iframe {
    width: 85%;
    height: 75%;
    margin: 8% auto;
  }

  .navbar {
    height: 50px;
  }

  .sidebar {
    padding-top: 60px;
  }

  .content-container {
    padding: 15px 15px 40px 15px;
  }
}

/* ==================== TOUCH IMPROVEMENTS ==================== */

@media (hover: none) and (pointer: coarse) {
  .movie-list-item-button,
  .fav-btn,
  .left-menu-icon,
  .hamburger,
  .profile-picture {
    -webkit-tap-highlight-color: transparent;
  }

  .movie-list-item:hover {
    transform: none;
  }

  .arrow:hover {
    opacity: 0.8;
  }

  .movie-list-item-button:active,
  .featured-button:active {
    transform: scale(0.94);
  }

  /* Better touch feedback */
  * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }

  input,
  textarea {
    -webkit-user-select: text;
    user-select: text;
  }
}

/* ==================== PERFORMANCE OPTIMIZATIONS ==================== */

@media (max-width: 768px) {
  .movie-list-item,
  .featured-content,
  .sidebar,
  .profile-dropdown {
    will-change: transform;
  }

  .poster-wrapper img {
    will-change: transform;
  }

  /* Hardware acceleration */
  .movie-list-item,
  .arrow,
  .hamburger,
  .profile-picture,
  .toggle-ball {
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

/* ==================== LOADING ANIMATIONS ==================== */

@media (max-width: 768px) {
  @keyframes shimmer {
    0% {
      background-position: -200% 0;
    }
    100% {
      background-position: 200% 0;
    }
  }

  .loading-skeleton {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0%,
      rgba(255, 255, 255, 0.1) 50%,
      rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
}

/* ==================== ACCESSIBILITY ==================== */

@media (max-width: 768px) {
  /* Focus visible for keyboard navigation */
  *:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
    border-radius: 4px;
  }

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