
/* === BASE COLORS === */
:root {
  --bg: #1B1813;
  --bgd: #1B181360;
  --card-bg: #2B261F;
  --text: #F4E9D8;
  --text-muted: #B8A78A;
  --accent: #D4A017;
  --accent-hover: #E8B923;
  --shadow: rgba(212, 160, 23, 0.3);
  --gradient-overlay: linear-gradient(to top, #1B1813, #1B181300, #1B1813);
  --gradient-overlay1: linear-gradient(to right, #1B1813, #1B181300);
  --gradient-overlaydetail: linear-gradient(to top, #1B1813 0%, #1B181380 30%, #1B181380 70%, #1B1813 100%);
}

body {
  background-color: var(--bg);
  color: var(--text);
  transition: 
    background-color 0.5s ease,
    color 0.5s ease,
    box-shadow 0.5s ease,
    background-image 0.8s ease;
}

/* Light Theme */
body.light {
  --bg: #F5F0E1;
  --card-bg: #E8E0CC;
  --text: #2F2A1F;
  --text-muted: #444037;
  --accent: #D4A017;
  --accent-hover: #E8B923;
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient-overlay: linear-gradient(to top, #F5F0E1, #F5F0E100, #F5F0E190);
  --gradient-overlay1: linear-gradient(to right, #F5F0E1, #F5F0E100);
  --gradient-overlaydetail: linear-gradient(to top, #F5F0E1 0%, #F5F0E180 30%, #F5F0E180 70%, #F5F0E1 100%);
}



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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1366px;
  margin: 0 auto;
  padding: 2rem 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0.5rem 1rem;
  height: 60px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: var(--accent);
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 101;
}

.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* === DROPDOWN MENU === */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 10px;
  list-style-type: none;
  padding: 10px;
  z-index: 1;
}
.st{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.search *{
  display: flex;
}
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 5px 0;
}

/* === THEME TOGGLE === */
.theme-toggle .icon i {
  font-size: 1.4rem;
  color: var(--accent);
  cursor: pointer;
}

/* === SEARCH SECTION === */
.search {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.search__input {
  font-family: inherit;
  font-size: inherit;
  background-color: var(--card-bg);
  border: 1px solid var(--text-muted);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 30px;
  width: 12em;
  transition: all ease-in-out .5s;
  margin-right: -2rem;
}

.search__input:hover, .search__input:focus {
  box-shadow: 0 0 1em var(--shadow);
  border-color: var(--accent);
}

.search__input:focus {
  outline: none;
  background-color: var(--bg);
}

.search__input::-webkit-input-placeholder {
  font-weight: 100;
  color: var(--text-muted);
}

.search__input:focus + .search__button {
  background-color: var(--bg);
}

.search__button {
  border: none;
  background-color: var(--card-bg);
  margin-top: .1em;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all ease-in-out .3s;
}

.search__button:hover {
  cursor: pointer;
  background-color: var(--accent);
  transform: scale(1.05);
}

.search__button:hover .search__icon {
  fill: var(--bg);
}

.search__icon {
  height: 1.3em;
  width: 1.3em;
  fill: var(--text-muted);
  transition: fill ease-in-out .3s;
}

/* Search container for search page */
.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-form {
  display: flex;
  justify-content: center;
}
.searchform{
  display: flex;
  gap: 1rem;
}
/* Responsive search */
@media (max-width: 768px) {
  .search__input {
    width: 10em;
  }
}

@media (max-width: 480px) {
  .search__input {
    width: 8em;
  }
}
.headline{
  text-align: center;
  padding: 1rem;
}

/* Search page styles */
.search {
  padding: 2rem 0;
}

.search-radio {
  margin-bottom: 2rem;
}

.search-radio input[type="radio"] {
  margin-right: 0.5rem;
}

.search-radio label {
  margin-right: 2rem;
  cursor: pointer;
  color: var(--text);
}

.search-radio input[type="radio"]:checked + label {
  color: var(--accent);
  font-weight: 600;
}

.result .movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .result .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}
.main{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 80px;
  margin-bottom: 70px;
}
/* === HERO SECTION === */
#hero {
  position: relative;
  color: var(--text);
  width: 100%;
  height: 70vh;
  z-index: 0;
}
.trending-badge {
  transition: all 0.5s ease;
  font-weight: bold;
  font-size: 1.2rem;
}
.over {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay1);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  color: var(--text);
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  z-index: 2;
}

.trending-badge {
  border: 1px solid #b20000;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #b20000;
  font-weight: 600;
}

.hero-text .movie-title {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 4px 4px 20px var(--bg);
}

.hero-text .movie-description {
  max-width: 80%;
  font-size: 1rem;
  line-height: 1.5;
  text-shadow: 2px 2px 5px var(--bg);
}

/* === HERO ACTIONS === */
.hero-actions {
  display: flex;
  gap: 5rem;
}

.btn-see-more {
  background: none;
  border: 1px solid var(--accent);
  padding: 0.4rem 1rem;
  color: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-see-more:hover {
  background: var(--accent);
  color: var(--bg);
}

.btn-add {
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-add:hover {
  background: var(--accent-hover);
}

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

/* === MOOD INPUT === */
.mood-input-box {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

#mood-input {
  background: #61606020;
  border: 1px solid var(--accent);
  padding: 0.7rem 1rem;
  color: var(--text);
  border-radius: 6px;
  outline: none;
  width: 300px;
}

#mood-input::placeholder {
  color: var(--text);
}

#mood-submit {
  background: var(--accent);
  border: none;
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

/* === MEDIA QUERIES === */
@media (max-width: 778px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 250px;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 0 0 10px 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 0.5rem;
    border: none;
    width: 100%;
  }

  .dropdown-menu li {
    margin: 0.25rem 0;
    padding-left: 1rem;
  }

  .hamburger-menu {
    display: flex;
  }


  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }
}

@media only screen and (max-width: 480px) {
  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: 0 0 10px 10px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 0.5rem 0;
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 0.5rem 0;
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-top: 0.5rem;
    border: none;
    width: 100%;
  }

  .dropdown-menu li {
    margin: 0.25rem 0;
    padding-left: 1rem;
  }

  .hamburger-menu {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }
}


/* ===== CAROUSEL DOTS ===== */
.hero-carousel-indicators {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
  background: var(--accent);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== LAYOUT ===== */
.container {
  width: 90%;
  max-width: 1366px;
  margin: 0 auto;
  padding: 2rem 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

/* ===== CAROUSEL WRAPPER ===== */
.carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 2rem;
  padding-bottom: 1rem;
  scrollbar-width: none; /* Firefox */
  top: 200px;
}

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

/* ===== CAROUSEL BUTTONS ===== */
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.carousel-btn {
  background-color: var(--card-bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.carousel-btn:hover {
  background-color: var(--accent);
  color: var(--bg);
}

/* ===== MOVIE & ACTOR CARD SHARED STYLE ===== */
.movie-card,
.actor-card {
  flex: 0 0 auto;
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #222;

  background: var(--card-bg);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover,
.actor-card:hover {
  box-shadow: 0 8px 10px var(--shadow);
  border-color: var(--accent);
}

/* ===== POSTER IMAGE ===== */
.poster {
  position: relative;
  width: 100%;
  height: 100%;
}

.poster img {
  width: 100%;
  display: block;
  filter: brightness(90%);
  transition: filter 0.3s ease;
}

.movie-card:hover .poster img,
.actor-card:hover .poster img {
  filter: brightness(100%);
}

/* ===== DESCRIPTION OVERLAY ===== */
.description-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90%;
  background: linear-gradient(to top, var(--bg), transparent);
  color: var(--text);
  padding: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.movie-card:hover .description-overlay,
.actor-card:hover .description-overlay {
  opacity: 1;
  transform: translateY(0%);
}

/* ===== INFO BOXES ===== */
.movie-info,
.actor-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.movie-title,
.actor-name {
  font-size: 1.2rem;
  font-weight: 600;
}

.meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rating {
  color: #f5c518;
  font-weight: 600;
}

.description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.see-more {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.movie-card, .actor-card {
  cursor: pointer;
}
.see-more:hover {
  color: var(--accent-hover);
}

.see-more .arrow {
  transition: transform 0.2s ease;
}

.see-more:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 778px) {
  .hero-actions{
    flex-direction: column;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }
}
@media only screen and (max-width: 480px) {
  *{
    max-width: 480px;
  }
  .hero-actions{
    flex-direction: column;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 0.95rem;
  }  /* Styles for smaller smartphones */
}

.detail {

  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--text);
}

.detail-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.3);
  z-index: 0;
}

.containerr {
  z-index: 1; /* above backdrop */
  background: var(--gradient-overlaydetail);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.img {
  width: 300px;
  height: 500px;
  overflow: hidden;
  border-radius: 50px;
}

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

.texts {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  width: 600px;

  overflow-y: auto;
  color: var(--text);
}
.taglist{
  border: 1px solid var(--accent);
  padding: 3px 6px;
  border-radius: 20px;
}
.title{
  font-size: 2.5rem;
}
.tags{
  display: flex;
  gap: 1.2rem; 
  list-style: none;
}
.texts p, .texts ul {
  font-size: 0.9em;
}

.casts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding-left: 0;
}

#full-cast-list {
  display: none;
  margin-top: 10px;
  list-style: none;
  max-height: 150px;
  overflow-y: auto;
  padding-left: 0;
  border-top: 1px solid var(--accent);
}

#full-cast-list li {
  padding: 4px 0;
  font-size: 0.9em;
  border-bottom: 1px solid var(--accent);
}

#full-cast-list li:last-child {
  border-bottom: none;
}

#toggle-full-cast {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
}
.details{
  margin-top: 1rem
}
.custom-alert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #2ecc71;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}
.custom-alert.show {
  opacity: 1;
  pointer-events: auto;
}

