*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth; 
}
body {
  background: #1a1a1a;
  color: #e8e8e8;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}
img  { 
  display: block; max-width: 100%; 
}
ul   { 
  list-style: none; 
}
a    { 
  text-decoration: none; color: inherit; 
}
button { 
  cursor: pointer; font-family: 'Roboto', sans-serif; 
  background: none; border: none; color: inherit;}
select { 
  font-family: 'Roboto', sans-serif; 
  background: none; border: none; color: inherit;}
.hidden {
   display: none !important; 
    background: none; border: none; color: inherit;}



.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #121212;
  border-bottom: 1px solid #333;
  height: 54px;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
}


.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-box {
  background: #f5c518;
  color: #000;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 4px 7px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.logo-full {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
}


.nav-search-wrap {
  flex: 1;
  max-width: 520px;
}

.nav-search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 6px;
  padding: 0 10px;
  height: 36px;
  gap: 8px;
}

.search-svg {
  width: 16px;
  height: 16px;
  color: #555;
  flex-shrink: 0;
}

.nav-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #111;
  font-family: 'Roboto', sans-serif;
}

.nav-search-input::placeholder { color: #999; }

.nav-clear-btn {
  background: none;
  border: none;
  padding: 3px;
  color: #888;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color 0.15s;
}
.nav-clear-btn:hover { color: #111; }


.nav-right {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #3a3a3a;
  background: #1f1f1f;
  color: #e8e8e8;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.theme-toggle:hover {
  border-color: #f5c518;
  color: #f5c518;
}

.theme-icon {
  font-size: 13px;
  line-height: 1;
}

.theme-label {
  letter-spacing: 0.2px;
}

.nav-wl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #3a3a3a;
  color: #e8e8e8;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-wl-btn:hover { border-color: #f5c518; color: #f5c518; }

.nav-wl-count {
  background: #f5c518;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.15s ease;
}



.hero {
  background: #0d0d0d;
  border-bottom: 3px solid #f5c518;
  padding: 44px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #f5c518;
  font-weight: 500;
  margin-bottom: 12px;
}
.hero-heading {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-heading em {
  font-style: normal;
  color: #f5c518;
}

.hero-sub {
  color: #999;
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}



.page-body {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;
  gap: 22px;
  align-items: flex-start;
}


.results-col {
  flex: 1;
  min-width: 0;
}

.popular-section,
.search-section {
  display: block;
}

.other-section {
  margin-top: 24px;
}

.search-section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #f5c518;
}

.section-sub {
  font-size: 13px;
  color: #999;
}

.popular-section .section-head,
.other-section .section-head {
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 12px 14px;
}

.popular-section .section-head {
  background: linear-gradient(135deg, rgba(69,194,255,0.16), rgba(69,194,255,0.03));
}

.other-section .section-head {
  background: linear-gradient(135deg, rgba(245,197,24,0.14), rgba(245,197,24,0.03));
}

.popular-section .section-title {
  color: #7ecfff;
}

.other-section .section-title {
  color: #f5c518;
}

.popular-section .movie-card {
  border-color: #234252;
  box-shadow: 0 0 0 1px rgba(126,207,255,0.12) inset;
}

.other-section .movie-card {
  border-color: #4e4122;
  box-shadow: 0 0 0 1px rgba(245,197,24,0.08) inset;
}

.popular-section .btn-card-save {
  background: #56b9ec;
  border-color: #56b9ec;
  color: #071018;
}

.popular-section .btn-card-save:hover {
  background: #3ca9de;
}

.popular-section .movie-card.saved .btn-card-save {
  color: #7ecfff;
  border-color: #56b9ec;
}

.popular-section .card-bookmark-btn:hover,
.popular-section .movie-card.saved .card-bookmark-btn {
  color: #56b9ec;
}


.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #333;
}

.results-count {
  font-size: 13px;
  color: #999;
}

.results-count strong { color: #e8e8e8; }

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 12px;
  color: #999;
}

.sort-select {
  background: #2c2c2c;
  border: 1px solid #333;
  color: #e8e8e8;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.sort-select:focus { border-color: #f5c518; }



.loader {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 20px;
  color: #999;
  font-size: 13px;
}

.loader:not(.hidden) { display: flex; }

.infinite-loader {
  margin: 14px auto 2px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #c3c3c3;
  border: 1px solid #3a3a3a;
  background: #232323;
}

.infinite-sentinel {
  width: 100%;
  height: 2px;
}

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #f5c518;
  margin: 0 3px;
  animation: dotBounce 1.2s ease infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1; }
}



.error-box {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #f08080;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.error-box:not(.hidden) { display: block; }



.landing-wrap {
  position: relative;
}

.ghost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  opacity: 0.15;
}

.ghost-card {
  aspect-ratio: 2/3;
  background: #242424;
  border-radius: 4px;
  animation: pulse 2s ease infinite;
}
.ghost-card:nth-child(2) { animation-delay: .3s; }
.ghost-card:nth-child(3) { animation-delay: .6s; }
.ghost-card:nth-child(4) { animation-delay: .2s; }
.ghost-card:nth-child(5) { animation-delay: .5s; }
.ghost-card:nth-child(6) { animation-delay: .4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

.landing-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.landing-icon { font-size: 48px; }
.landing-cta h2 { font-size: 20px; font-weight: 700; color: #fff; }
.landing-cta p  { font-size: 14px; color: #999; }


.no-results {
  text-align: center;
  padding: 70px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.no-results h2 { font-size: 18px; font-weight: 700; }
.no-results p  { color: #999; font-size: 14px; }



.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}


.movie-card {
  background: #242424;
  border-radius: 4px;
  border: 1px solid #333;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: fadeUp 0.3s ease both;
  position: relative;
}

.movie-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.55);
  border-color: #555;
}

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


.card-poster-wrap {
  position: relative;
  aspect-ratio: 2/3;
  background: #111;
  overflow: hidden;
}
.movie-card, .card-poster{
  width: 100%;
  height: 100%;
  border-radius: 25px 25px 25px 25px;
}
.card-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.movie-card:hover .card-poster { transform: scale(1.04); }

.no-poster-box {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #666;
  font-size: 12px;
  background: #1a1a1a;
}
.no-poster-box span { font-size: 32px; }


.card-bookmark-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  border: none;
  color: #999;
  width: 34px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}
.card-bookmark-btn:hover { color: #f5c518; background: rgba(0,0,0,0.92); }
.movie-card.saved .card-bookmark-btn { color: #f5c518; background: rgba(0,0,0,0.88); }


.card-body {
  padding: 10px 11px 12px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-year {
  font-size: 12px;
  color: #999;
  margin-bottom: 9px;
}


.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,197,24,.14);
  border: 1px solid rgba(245,197,24,.25);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.rating-star { color: #f5c518; font-size: 11px; }
.rating-val  { font-size: 12px; font-weight: 700; color: #f5c518; }
.rating-max  { font-size: 10px; color: #666; }


.card-actions {
  display: flex;
  gap: 6px;
}

.btn-card-details {
  flex: 1;
  padding: 6px 4px;
  background: none;
  border: 1px solid #3a3a3a;
  border-radius: 3px;
  color: #e8e8e8;
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
}
.btn-card-details:hover { border-color: #f5c518; color: #f5c518; }

.btn-card-save {
  flex: 1;
  padding: 6px 4px;
  background: #f5c518;
  border: 1px solid #f5c518;
  border-radius: 3px;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, opacity 0.15s;
  text-align: center;
}
.btn-card-save:hover { background: #d4a81a; }
.movie-card.saved .btn-card-save {
  background: transparent;
  color: #f5c518;
}



.wl-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 6px;
  position: sticky;
  top: calc(54px + 14px);
  max-height: calc(100vh - 54px - 28px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.wl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  background: #1f1f1f;
  z-index: 2;
}

.wl-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.wl-count {
  background: #f5c518;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transition: transform 0.2s ease;
}


.wl-empty-state {
  padding: 28px 16px;
  color: #999;
  font-size: 13px;
  text-align: center;
  line-height: 1.7;
}
.wl-hint { font-size: 12px; color: #666; margin-top: 4px; }


.wl-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.wl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid #333;
  transition: background 0.12s;
  animation: fadeUp 0.2s ease both;
}
.wl-item:hover { background: #2e2e2e; }

.wl-thumb {
  width: 34px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  background: #2c2c2c;
}
.wl-thumb-ph {
  width: 34px;
  height: 48px;
  border-radius: 2px;
  background: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.wl-item-info { flex: 1; min-width: 0; }

.wl-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.wl-item-year { font-size: 11px; color: #999; }

.wl-item-del {
  background: none;
  border: none;
  color: #666;
  font-size: 15px;
  padding: 4px 5px;
  border-radius: 3px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.12s, background 0.12s;
}
.wl-item-del:hover { color: #e74c3c; background: rgba(231,76,60,0.1); }


.wl-actions {
  padding: 12px 14px;
  border-top: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #1f1f1f;
  position: sticky;
  bottom: 0;
}

.btn-random {
  width: 100%;
  padding: 9px;
  background: #f5c518;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s, transform 0.1s;
}
.btn-random:hover { background: #d4a81a; transform: scale(1.01); }

.btn-remove-all {
  width: 100%;
  padding: 7px;
  background: none;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #999;
  font-size: 12px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-remove-all:hover { color: #e74c3c; border-color: #e74c3c; }



.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  background: #2c2c2c;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, border-color 0.15s;
  z-index: 3;
}
.close-btn:hover { color: #fff; border-color: #777; }



.detail-modal {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: popUp 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

@keyframes popUp {
  from { opacity:0; transform: scale(0.9) translateY(16px); }
  to   { opacity:1; transform: scale(1)   translateY(0); }
}


.detail-skeleton {
  display: flex;
  gap: 24px;
  padding: 28px;
}
.sk-poster {
  width: 160px;
  height: 240px;
  border-radius: 4px;
  background: #2c2c2c;
  flex-shrink: 0;
  animation: shimmer 1.4s ease infinite;
}
.sk-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 6px;
}
.sk-bar {
  height: 14px;
  border-radius: 4px;
  background: #2c2c2c;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0%,100% { opacity:.35; }
  50%      { opacity:.7; }
}


.detail-body {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.detail-poster {
  width: 200px;
  min-height: 290px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px 0 0 6px;
}

.detail-info {
  flex: 1;
  min-width: 240px;
  padding: 26px 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #f5c518;
  text-transform: uppercase;
}

.detail-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}


.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: #2c2c2c;
  border: 1px solid #3a3a3a;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 12px;
  color: #999;
}


.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.score-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #2c2c2c;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  padding: 8px 14px;
  min-width: 80px;
}

.score-source {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}

.score-val {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #f5c518;
}


.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.genre-tag {
  border: 1px solid #3a3a3a;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  color: #999;
  transition: border-color 0.12s, color 0.12s;
}
.genre-tag:hover { border-color: #f5c518; color: #f5c518; }

.detail-plot {
  font-size: 14px;
  color: #ccc;
  line-height: 1.7;
}


.detail-crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10x;
}

.crew-role  { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #666; font-weight: 600; }
.crew-name  { font-size: 13px; color: #fff; font-weight: 500; }


.btn-add-wl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  background: #f5c518;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
  align-self: flex-start;
  margin-top: 4px;
}
.btn-add-wl:hover { background: #d4a81a; }
.btn-add-wl.is-saved {
  background: transparent;
  border: 1px solid #f5c518;
  color: #f5c518;
}



.random-modal {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 32px 28px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: popUp 0.25s cubic-bezier(0.34,1.56,0.64,1) both;
}

.random-label {
  font-size: 13px;
  color: #999;
  font-weight: 500;
  margin-bottom: 16px;
}

.random-poster {
  width: 150px;
  height: 222px;
  object-fit: cover;
  border-radius: 4px;
  margin: 0 auto 16px;
  border: 2px solid #f5c518;
  box-shadow: 0 0 20px rgba(245,197,24,0.2);
}

.random-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.random-year { color: #999; font-size: 13px; margin-bottom: 18px; }

.btn-random-again {
  padding: 8px 20px;
  background: #f5c518;
  border: none;
  border-radius: 6px;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s;
}
.btn-random-again:hover { background: #d4a81a; }



.mob-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 89;
}
.mob-backdrop:not(.hidden) { display: block; }


.site-footer {
  border-top: 1px solid #333;
  background: #121212;
  margin-top: 28px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #f5c518;
}

.footer-text {
  color: #999;
  font-size: 13px;
}

.footer-copy {
  color: wheat;
  font-size: 12px;
}

body[data-theme="light"] {
  background: #f4f2ed;
  color: #1f1f1f;
}

body[data-theme="light"] .navbar {
  background: #efe9dd;
  border-bottom-color: #cdbfa8;
}
body[data-theme="light"] .nav-logo .logo-box {
  background: #f5c518;
  color: #000;
}
body[data-theme="light"] .hero-heading{
  color: #1b1b1b;
}

body[data-theme="light"] .logo-full {
  color: #171717;
}

body[data-theme="light"] .theme-toggle {
  background: #fbf9f4;
  color: #2c2c2c;
  border-color: #cbbda4;
}

body[data-theme="light"] .theme-toggle:hover {
  border-color: #a7801f;
  color: #8c6a17;
}

body[data-theme="light"] .nav-search-box {
  background: #fbf9f4;
  border: 1px solid #d6cab5;
}

body[data-theme="light"] .search-svg,
body[data-theme="light"] .nav-clear-btn {
  color: #6f6450;
}

body[data-theme="light"] .nav-clear-btn:hover {
  color: #2a2a2a;
}

body[data-theme="light"] .nav-search-input {
  color: #1f1f1f;
}

body[data-theme="light"] .nav-search-input::placeholder {
  color: #8b816f;
}

body[data-theme="light"] .nav-wl-btn {
  border-color: #bcae95;
  color: #2c2c2c;
}

body[data-theme="light"] .nav-wl-btn:hover {
  border-color: #a7801f;
  color: #8c6a17;
}

body[data-theme="light"] .hero {
  background: linear-gradient(165deg, #f6f1e6 0%, #ebe2d1 70%, #e0d0b0 100%);
  border-bottom-color: #b78a24;
}

body[data-theme="light"] .hero-sub,
body[data-theme="light"] .section-sub,
body[data-theme="light"] .results-count,
body[data-theme="light"] .sort-label,
body[data-theme="light"] .landing-cta p,
body[data-theme="light"] .no-results p,
body[data-theme="light"] .wl-empty-state,
body[data-theme="light"] .wl-item-year,
body[data-theme="light"] .random-label,
body[data-theme="light"] .random-year,
body[data-theme="light"] .footer-text {
  color: #635844;
}

body[data-theme="light"] .results-bar {
  border-bottom-color: #cdbfa8;
}

body[data-theme="light"] .results-count strong,
body[data-theme="light"] .section-title,
body[data-theme="light"] .landing-cta h2,
body[data-theme="light"] .card-title,
body[data-theme="light"] .wl-title,
body[data-theme="light"] .wl-item-title,
body[data-theme="light"] .detail-title,
body[data-theme="light"] .crew-name,
body[data-theme="light"] .random-title {
  color: #1b1b1b;
}

body[data-theme="light"] .sort-select {
  background: #fbf9f4;
  border-color: #cbbda4;
  color: #2b2b2b;
}

body[data-theme="light"] .sort-select:focus {
  border-color: #9f781d;
}

body[data-theme="light"] .loader {
  color: #6a5c45;
}

body[data-theme="light"] .infinite-loader {
  color: #5f5646;
  border-color: #ccbda2;
  background: #f4eddf;
}

body[data-theme="light"] .error-box {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.35);
  color: #a8291d;
}

body[data-theme="light"] .ghost-card {
  background: #ddd4c3;
}

body[data-theme="light"] .movie-card {
  background: #fbf8f2;
  border-color: #d4c8b4;
}

body[data-theme="light"] .popular-section .section-head,
body[data-theme="light"] .other-section .section-head {
  border-color: #d7c7ae;
}

body[data-theme="light"] .popular-section .section-head {
  background: linear-gradient(140deg, rgba(64,146,191,0.22), rgba(64,146,191,0.06));
}

body[data-theme="light"] .other-section .section-head {
  background: linear-gradient(140deg, rgba(188,147,47,0.2), rgba(188,147,47,0.06));
}

body[data-theme="light"] .popular-section .section-title {
  color: #2f6d95;
}

body[data-theme="light"] .other-section .section-title {
  color: #8c6a17;
}

body[data-theme="light"] .popular-section .movie-card {
  border-color: #7fb3d1;
  box-shadow: 0 0 0 1px rgba(64,146,191,0.18) inset;
}

body[data-theme="light"] .other-section .movie-card {
  border-color: #c8ab72;
  box-shadow: 0 0 0 1px rgba(188,147,47,0.1) inset;
}

body[data-theme="light"] .popular-section .btn-card-save {
  background: #5faed9;
  border-color: #5faed9;
  color: #06131d;
}

body[data-theme="light"] .popular-section .btn-card-save:hover {
  background: #499ecb;
}

body[data-theme="light"] .popular-section .movie-card.saved .btn-card-save {
  color: #2f6d95;
  border-color: #4a97c2;
}

body[data-theme="light"] .popular-section .card-bookmark-btn:hover,
body[data-theme="light"] .popular-section .movie-card.saved .card-bookmark-btn {
  color: #2f6d95;
}

body[data-theme="light"] .movie-card:hover {
  box-shadow: 0 10px 26px rgba(78, 58, 24, 0.2);
  border-color: #bda27a;
}

body[data-theme="light"] .card-poster-wrap {
  background: #ece3d2;
}

body[data-theme="light"] .no-poster-box {
  background: #ece3d2;
  color: #786b56;
}

body[data-theme="light"] .card-bookmark-btn {
  background: rgba(253, 247, 236, 0.92);
  color: #786b56;
}

body[data-theme="light"] .card-bookmark-btn:hover,
body[data-theme="light"] .movie-card.saved .card-bookmark-btn {
  background: rgba(250, 241, 225, 0.98);
  color: #9b771c;
}

body[data-theme="light"] .btn-card-details {
  border-color: #cbbda4;
  color: #2d2d2d;
}

body[data-theme="light"] .btn-card-details:hover {
  border-color: #a7801f;
  color: #8c6a17;
}

body[data-theme="light"] .movie-card.saved .btn-card-save,
body[data-theme="light"] .btn-add-wl.is-saved {
  color: #8c6a17;
  border-color: #9f781d;
}

body[data-theme="light"] .wl-sidebar,
body[data-theme="light"] .wl-head,
body[data-theme="light"] .wl-actions,
body[data-theme="light"] .detail-modal,
body[data-theme="light"] .random-modal {
  background: #f8f4ec;
  border-color: #d4c7b2;
}

body[data-theme="light"] .wl-head,
body[data-theme="light"] .wl-item,
body[data-theme="light"] .wl-actions {
  border-color: #d9ccb8;
}

body[data-theme="light"] .wl-item:hover {
  background: #efe6d7;
}

body[data-theme="light"] .wl-thumb,
body[data-theme="light"] .wl-thumb-ph {
  background: #e6dccb;
}

body[data-theme="light"] .wl-hint,
body[data-theme="light"] .rating-max,
body[data-theme="light"] .score-source,
body[data-theme="light"] .crew-role {
  color: #8a7d68;
}

body[data-theme="light"] .wl-item-del {
  color: #8d7e67;
}

body[data-theme="light"] .overlay {
  background: rgba(57, 43, 22, 0.56);
}

body[data-theme="light"] .close-btn {
  background: #f3ebde;
  border-color: #c8bba5;
  color: #6f614b;
}

body[data-theme="light"] .close-btn:hover {
  color: #1f1f1f;
  border-color: #967027;
}

body[data-theme="light"] .sk-poster,
body[data-theme="light"] .sk-bar,
body[data-theme="light"] .chip,
body[data-theme="light"] .score-box {
  background: #ece3d2;
  border-color: #d5c7b1;
}

body[data-theme="light"] .chip,
body[data-theme="light"] .genre-tag {
  color: #635844;
}

body[data-theme="light"] .genre-tag {
  border-color: #c8baa2;
}

body[data-theme="light"] .genre-tag:hover {
  border-color: #a7801f;
  color: #8c6a17;
}

body[data-theme="light"] .detail-plot {
  color: #41392d;
}

body[data-theme="light"] .random-poster {
  border-color: #bc932f;
  box-shadow: 0 0 16px rgba(188, 147, 47, 0.2);
}

body[data-theme="light"] .btn-remove-all {
  border-color: #bcae95;
  color: #5c513f;
}

body[data-theme="light"] .btn-remove-all:hover {
  border-color: #b63726;
  color: #b63726;
}

body[data-theme="light"] .site-footer {
  border-top-color: #cdbfa8;
  background: #efe9dd;
}

body[data-theme="light"] .footer-copy {
  color: #7a6d58;
}





@media (max-width: 900px) {
  .wl-sidebar {
    position: fixed;
    top: 54px;
    right: 0;
    height: calc(100vh - 54px);
    border-radius: 0;
    border-right: none;
    border-top: none;
    border-bottom: none;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 90;
    max-height: none;
  }
  .wl-sidebar.open { transform: translateX(0); }
  .page-body { padding: 16px 12px; }
}

@media (min-width: 901px) {
  .nav-wl-btn { display: none; }
  .mob-backdrop { display: none !important; }
}
@media (max-width: 500px) {
  .hero { padding: 30px 14px 26px; }
  .movies-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-full { display: none; }

  .detail-body { flex-direction: column; }
  .detail-poster {
    width: 100%;
    min-height: auto;
    max-height: 200px;
    border-radius: 6px 6px 0 0;
  }
  .detail-info { padding: 18px 16px; }
  .detail-title { font-size: 22px; }

  .wl-sidebar { width: 100%; }

  .theme-label { display: none; }

  .theme-toggle {
    padding: 6px 8px;
    min-width: 34px;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}