.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 84px;
  border-bottom: 1px solid rgba(175, 170, 170, 0.29);
}

.logo {
  display: flex;
  align-items: center;
  height: 40px;
  max-width: 190px;
  overflow: hidden;
  cursor: pointer;
}

.logo img {
  height: 140px;
  object-fit: contain;
  display: block;
}

.home-search {
  max-width: 1700px;
  margin: 80px auto 60px;
  position: relative;
}

.home-search input {
  width: 100%;
  padding: 10px 10px 5px 10px;
  margin-bottom: 10px;
  margin-right: 120px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.3px;

  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;

  outline: none;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

.home-search input::placeholder {
  color: #aaa;
  transition: opacity 0.4s ease;
}

.home-search input:focus {
  border-color: rgba(80, 140, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(80, 140, 255, 0.15);
  background: rgba(20, 20, 20, 0.95);
}

/* Hide mobile icon on desktop */
.mobile-search-icon {
  display: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0.7;
  pointer-events: none;
}


.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--red);
}

.browse-nav {
  position: relative;
}

.browse-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.browse-dropdown {
  position: absolute;
  top: 130%;
  left: 0;
  background: #111;
  border-radius: 6px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 200;
}

.browse-dropdown.show {
  display: flex;
}

.browse-dropdown a {
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.browse-dropdown a:hover {
  background: rgba(229, 9, 20, 0.15);
  color: var(--red);
}


main {
  padding: 50px 110px;
  background:
    radial-gradient(
      240% 20% at 110% 0%,
      rgba(151, 171, 166, 0.08),
      rgba(148, 60, 220, 0.45),
      rgba(7, 7, 116, 0.25) 45%,
      transparent 75%
    ),
    linear-gradient(
      to bottom,
      #0e0e11 0%,
      #0b0b0d 40%,
      #000 100%
    );

  animation: bgFade 1.2s ease-out;
}

.section {
  margin: 20px 0 50px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title img {
  height: 2em;
  object-fit: contain;
}


.row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 20px;
  min-height: 260px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

.row::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
  display: none;
}


.card {
  min-width: 170px;
  max-width: 170px;
  height: 250px;
  flex-shrink: 0;
  position: relative; 
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease;
}

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

.card img.poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}


.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}


.site-footer {
  background: #000;
  padding: 48px 20px;
  margin-top: 80px;
  border-top: 1px solid #111;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}


.footer-tagline {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #aaa;
  line-height: 1.4;
}


.footer-tagline span {
  background: linear-gradient(90deg, #ff4d4d, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}


.site-footer p {
  margin-top: 3px;
  font-size: 14px;
  color: #888;
}


.footer-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

.footer-credit {
  margin-top: 50px;
  font-size: 12px;
  color: #555;
}

.browse-dropdown.mega {
  width: 360px;
  padding: 18px;

  right: 0;
  left: auto;
  transform: translateX(-40px);

  background: linear-gradient(180deg, #0c0c0c, #000);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}


.browse-title {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

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

.browse-card {
  background: #111;
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  color: #eee;
  transition: all 0.25s ease;
  border: 1px solid #1f1f1f;
}

.browse-card span {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.browse-card p {
  font-size: 13px;
  margin: 0;
  color: #ddd;
}

.browse-card:hover {
  background: #1a1a1a;
  transform: translateY(-3px);
  border-color: #333;
}

.browse-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}

main {
  position: relative;
  
}


@keyframes mainGlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 30%;
  }
}


main::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    #000
  );
}

.view-all-btn {
  display: inline-block;
  margin-top: 12px;
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}

.view-all-btn:hover {
  color: #fff;
}

.page-loader {
  width: 100%;
  padding: 30px 16px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.page-loader.hidden {
  display: none;
}

/* WHAT SHOULD I WATCH TONIGHT*/
.watch-tonight {
  margin-bottom: 90px;
  background: #0b0b0f00;
}

.watch-tonight {
  animation: fadeUp 0.6s ease forwards;
}

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

.watch-tonight-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.watch-tonight-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  position: relative;
}

.watch-overview {
  font-size: 0.55rem;
  line-height: 1.45;
  margin: 6px 0 10px;
  color: rgba(255, 255, 255, 0.78);
}


.change-btn {
  margin-top: 18px;
  margin-bottom: 10px;
  background: none;
  border: none;
  color: #cfcfcf;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.change-btn:hover {
  opacity: 1;
}

.mood-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.mood-selector button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e6e6e6;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: 
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.15s ease;
}

.mood-selector button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.watch-results {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.watch-card {
  display: flex;
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

.watch-card img {
  width: 140px;
  object-fit: cover;
}

.watch-card-content {
  padding: 14px;
}

.watch-card-content h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.watch-card-content .meta {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Pick A or B */
.pick-one-section {
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.pick-one-subtitle{
  font-size: 0.9em;
  color: #bf410f;
}

.pick-one-container {
  display: flex;
  justify-content: center;
  gap: 156px;
  padding: 28px 0;
}

.pick-one-card {
  width: 190px;
  min-width: 190px;
  cursor: pointer;
  text-align: center;
  transition: opacity .3s ease;
}

.pick-one-poster {
  width: 160px;
  height: 225px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 2px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.pick-one-card.selected .pick-one-poster {
  border-color: #8b5cf6;
}

.pick-one-card.faded {
  opacity: .42;
}

.pick-one-info {
  margin-top: 12px;
  margin-right: 20px;
}

.pick-one-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
}

.pick-one-info span {
  font-size: 13px;
  color: #9a9a9a;
}

.pick-one-note {
  text-align: center;
  margin-top: 14px;
  color: #0b9d1c;
  font-size: 13px;
}

.pick-one-timer {
  text-align: center;
  margin-top: 4px;
  color: #777;
  font-size: 12px;
}

.hidden {
  display: none;
}

/* News section */
.homepage-news {
  padding: 36px 8px;
}

.homepage-news .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.homepage-news .section-header h2 {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.explore-news-btn {
  font-size: 13px;
  color: #8b5cf6;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.explore-news-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
}

.featured-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.featured-news-card {
  display: flex;
  gap: 26px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.featured-news-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.featured-news-card img {
  width: 96px;
  height: 138px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.featured-news-content {
  display: flex;
  flex-direction: column;
}

.featured-news-content .news-source {
  font-size: 12px;
  color: #8b5cf6;
  margin-bottom: 6px;
}

.featured-news-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 6px;
}

.featured-news-content p {
  font-size: 13px;
  color: #b3b3b3;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.security {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 14px;
}

.security a {
  color: #2f87da;            
  text-decoration: none;
  transition: color 0.2s ease;
}

.security a:hover {
  color: #ffffff;              
  text-decoration: underline;
}


/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 8px 16px;
    height: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
  }

  .logo {
    height: 28px;
    max-width: 110px;
  }

  .logo img {
    height: 70px;
    margin-left: -4px;
  }

  .nav-right {
    gap: 14px;
  }

  .nav-link,
  .browse-btn {
    font-size: 13px;
    font-weight: 500;
  }

  .nav-right .nav-link[href*="watchlist"],
  .nav-right .nav-link[href*="login"] {
    display: none;
  }

  /* Browse Dropdown */
  .browse-dropdown,
  .browse-dropdown.mega {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 400px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  }

  .browse-title {
    font-size: 13px;
    margin-bottom: 12px;
  }

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

  .browse-card {
    padding: 12px 8px;
    border-radius: 10px;
  }

  .browse-card span {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .browse-card p {
    font-size: 11px;
  }

  /* Main Content */
  main {
    padding: 20px 16px 40px;
    background:
      radial-gradient(
        240% 10% at 110% 0%,
        rgba(151, 171, 166, 0.08),
        rgba(148, 60, 220, 0.45),
        rgba(11, 11, 156, 0.25) 45%,
        transparent 75%
      ),
      linear-gradient(
        to bottom,
        #0e0e11 0%,
        #0b0b0d 40%,
        #000 100%
      );

    animation: bgFade 1.2s ease-out;
  }

  main::after {
    height: 120px;
  }

  /* Section Titles */
  .section {
    margin: 24px 0 36px;
  }

  .section-title {
    font-size: 17px;
    font-weight: 700;
    gap: 10px;
    margin-bottom: 12px;
  }

  .section-title img {
    height: 1.8em;
  }

  /* Movie Cards Row */
  .row {
    gap: 10px;
    padding: 8px 0 14px;
    min-height: 200px;
  }

  .card {
    min-width: 120px;
    max-width: 120px;
    height: 180px;
    border-radius: 10px;
  }

  .card img.poster {
    border-radius: 10px;
  }

  .card:hover {
    transform: scale(1.02);
  }

  .view-all-btn {
    font-size: 13px;
    margin-top: 8px;
  }

  /* Watch Tonight Section */
  .watch-tonight {
    margin-bottom: 60px;
    padding: 0 4px;
  }

  .watch-tonight-inner {
    padding: 0 12px;
  }

  .watch-tonight-title {
    font-size: 1.2rem;
    margin-bottom: 18px;
  }

  .watch-tonight-title::after {
    width: 210px;
    height: 2.5px;
    margin-top: 8px;
  }

  .watch-overview {
    font-size: 0.55rem;
    line-height: 1.5;
  }

  .watch-results {
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
  }

  .watch-card {
    max-width: 100%;
    border-radius: 12px;
  }

  .watch-card img {
    width: 110px;
    min-width: 110px;
  }

  .watch-card-content {
    padding: 12px;
    
  }

  .watch-card-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .watch-card-content .meta {
    font-size: 0.8rem;
  }


  /* Pick One Section */
  .pick-one-section {
    padding: 20px 12px;
  }

  .pick-one-subtitle {
    font-size: 0.85em;
  }

  .pick-one-container {
    gap: 30px;
    padding: 20px 0;
    flex-wrap: wrap;
  }

  .pick-one-card {
    width: 140px;
    min-width: 140px;
  }

  .pick-one-poster {
    width: 140px;
    height: 210px;
    border-radius: 12px;
  }

  .pick-one-info {
    margin-top: 10px;
    margin-right: 0;
  }

  .pick-one-info h4 {
    font-size: 13px;
  }

  .pick-one-info span {
    font-size: 12px;
  }

  .pick-one-note {
    margin-top: 12px;
    font-size: 12px;
  }

  .pick-one-timer {
    font-size: 11px;
  }

  /* Homepage News Section */
  .homepage-news {
    padding: 28px 12px;
  }

  .homepage-news .section-header {
    margin-bottom: 14px;
  }

  .homepage-news .section-header h2 {
    font-size: 18px;
  }

  .explore-news-btn {
    font-size: 12px;
    padding: 5px 8px;
  }

  .featured-news-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-news-card {
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    display: grid;
  }

  .featured-news-card img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }

  .featured-news-content .news-source {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .featured-news-content h4 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .featured-news-content p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* Footer */
  .site-footer {
    padding: 36px 16px;
    margin-top: 60px;
  }

  .footer-tagline {
    font-size: 13px;
    line-height: 1.5;
  }

  .site-footer p {
    font-size: 12px;
    margin-top: 4px;
  }

  .footer-sub {
    font-size: 11px;
    margin-top: 5px;
  }

  .footer-credit {
    margin-top: 40px;
    font-size: 11px;
  }

  /* Page Loader */
  .page-loader {
    padding: 24px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 8px 12px;
    height: 60px;
    position: relative;
  }

  .logo {
    height: 28px;
    max-width: 120px;
  }

  .logo img {
    height: 85px;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-link,
  .browse-btn {
    font-size: 12px;
  }

  .search-icon {
    left: 14px;
    font-size: 14px;
  }

  main {
    padding: 30px 12px 32px;
  }

  .section {
    margin: 20px 0 30px;
  }

  .section-title {
    font-size: 15px;
    gap: 8px;
  }

  .card {
    min-width: 110px;
    max-width: 110px;
    height: 165px;
  }

  .watch-tonight-title {
    font-size: 0.8rem;
  }

  .mood-selector button {
    padding: 8px 14px;
    font-size: 12px;
  }

  .pick-one-card {
    width: 130px;
    min-width: 130px;
  }

  .pick-one-poster {
    width: 130px;
    height: 195px;
  }
}

@media (max-width: 768px) {
  .security {
    flex-direction: row;
    gap: 12px;
    padding: 16px 0;
    font-size: 13px;
  }

  .security a {
    padding:  0;
  }
}

/* 3-dot menu button for mobile */
@media (max-width: 768px) {
  .browse-btn {
    font-size: 0;            
    padding: 8px 17px;
    position: relative;
  }

  .browse-btn::after {
    content: "⋮";           
    font-size: 17px;
    color: #ffffff96;
    font-weight: 600;
    line-height: 1;
  }
}

/* Search Bar for mobile */
@media (max-width: 1024px) {
  .home-search {
    position: absolute;
    right: 26px;     /* beside 3 dots */
    top: -85%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
  }

  .mobile-search-icon {
    display: block;
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
  }

  .mobile-search-icon:hover {
    opacity: 1;
  }

  .home-search input {
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    height: 36px;
    background: rgba(18, 18, 18, 0.98);
    color: #fff;
    font-size: 15px;
    transition: all 0.35s ease;
    margin: 0;
    position: absolute;
    right: 0;
    top: 0;
  }

.home-search:focus-within {
  position: fixed;
  left: 16px;
  right: 16px;
  top: 12px;
  z-index: 1000;
}

.home-search:focus-within input {
  width: 100%;
  opacity: 1;
  padding: 0 18px 0 42px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: static;
  box-sizing: border-box;
}

.home-search:focus-within .mobile-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  opacity: 0.7;
}


  .search-icon {
    display: none;
  }
}

/* Tablet/Mobile (768px) */
@media (max-width: 768px) {
  .mobile-search-icon {
    width: 19px;
    height: 19px;
  }

  .home-search input {
    height: 34px;
  }

  .home-search:focus-within {
    top: 9px;
  }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
  .mobile-search-icon {
    width: 18px;
    height: 18px;
  }

.home-search input {
    height: 40px;
    font-size: 11px;
  }

  .home-search:focus-within {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .home-search:focus-within input {
    width: 100%;
    padding: 0 14px 0 38px;
    border-radius: 20px;
    box-sizing: border-box;
  }
}

/* MOOD SELECTOR */

@media (max-width: 768px) {
  /* Hide the first mood selector */
  #moodSelector {
    display: none !important;
  }

  .change-btn {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #ffffffe7;
    text-align: left;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
  }

  .change-btn::after {
    content: "↻";
    font-size: 15px;
  }

  #changePanel .mood-selector {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(15, 15, 20, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    backdrop-filter: blur(10px);
  }

  #changePanel .mood-selector button {
    width: 100%;
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e8e8e8;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
  }

  #changePanel .mood-selector button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  #changePanel .mood-selector button:hover::before {
    opacity: 1;
  }

  #changePanel .mood-selector button + button {
    border-top: none;
    margin-top: 0;
  }

  #changePanel .mood-selector button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
  }

  #changePanel .mood-selector button:active {
    transform: scale(0.98);
  }

  #changePanel .mood-selector button[data-mood="surprise"] {
    grid-column: 1 / -1;
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    padding: 14px 10px;
  }
}

@media (max-width: 480px) {
  #changePanel .mood-selector {
    padding: 6px;
    gap: 6px;
    border-radius: 12px;
  }

  #changePanel .mood-selector button {
    padding: 11px 8px;
    font-size: 11px;
    border-radius: 8px;
  }

  #changePanel .mood-selector button[data-mood="surprise"] {
    padding: 13px 8px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .browse-nav {
    display: none;
  }
}

/* FEATURED TRAILERS SECTION */
.featured-trailers {
  max-width: 1300px;
  margin: 20px auto 80px;
  padding: 0 30px;
}

.featured-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #ffffff;
}

/* Horizontal row */
.trailer-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-behavior: smooth;
  overflow-y: hidden;    
  scrollbar-width: none;
}

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

.trailer-card {
  min-width: 420px;
  max-width: 420px;
  color: #000;
  background-color: #eadfdf00;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trailer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}

.trailer-thumb {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.trailer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play button */
.trailer-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
}

.trailer-play span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(19, 16, 16, 0.594);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 90px;
  color: #fff;
}

/* Content */
.trailer-info {
  padding: 16px;
}

.trailer-info h3 {
  font-size: 18px;
  margin-bottom: 6px;
  color: #fff;
}

.trailer-info p {
  font-size: 14px;
  color: #b5b5b5;
  line-height: 1.5;
}

.trailer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trailer-modal.hidden {
  display: none;
}

.trailer-modal-content {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.trailer-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-trailer {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 768px) {

  .featured-trailers {
    margin: 8px 0 26px;
    padding: 0 14px;
  }

  .featured-title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .trailer-card {
    min-width: 72%;
    max-width: 72%;
    border-radius: 8px;
  }

  .trailer-thumb {
    height: 160px;
  }

  .trailer-info {
    padding: 12px 14px 14px;
  }

  .trailer-info h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .trailer-info p {
    font-size: 11px;
    line-height: 1.4;
    color: #bdbdbdad;
  }

  .trailer-play span {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .trailer-modal-content {
    width: 94%;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {

  .featured-trailers {
    padding: 0 19px;
  }

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

  .trailer-card {
    min-width: 82%;
    max-width: 82%;
  }

  .trailer-thumb {
    height: 145px; 
  }

  .trailer-info h3 {
    font-size: 13px;
  }

  .trailer-info p {
    font-size: 9px;
  }
}

@media (max-width: 1024px) {
  .nav-avatar {
    display: none !important;
  }
}

/* APP LOADER */
#app-loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease;
}

#app-loader img {
  width: 90px;
  height: 90px;
}

/* Hide animation */
#app-loader.hide {
  opacity: 0;
  pointer-events: none;
}
