/* ============================================================
   🎬 FILM ROLL — PROFESSIONAL STYLESHEET
   Theme: Deep space violet / cinematic dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* Colours */
  --bg-base:        #08051a;
  --bg-surface:     #100c24;
  --bg-elevated:    #16112e;
  --bg-overlay:     #1e1640;

  --accent:         #7c3aed;
  --accent-hover:   #6d28d9;
  --accent-soft:    rgba(124, 58, 237, 0.15);
  --accent-glow:    rgba(124, 58, 237, 0.4);

  --highlight:      #c084fc;
  --highlight-dim:  #a855f7;

  --danger:         #e50914;
  --danger-soft:    rgba(229, 9, 20, 0.12);

  --text-primary:   #f1f0f5;
  --text-secondary: #b4aec8;
  --text-muted:     #6b6385;

  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(255,255,255,0.16);

  /* Spacing */
  --gap-xs:  6px;
  --gap-sm:  12px;
  --gap-md:  20px;
  --gap-lg:  40px;
  --gap-xl:  60px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.35);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med:  280ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-lg);
  height: 64px;
  background: rgba(8, 5, 26, 0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--highlight);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--shadow-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

/* SEARCH INPUT */
.nav-right input {
  width: 220px;
  padding: 9px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow  var(--dur-fast) var(--ease),
              width       var(--dur-med)  var(--ease);
}

.nav-right input::placeholder { color: var(--text-muted); }

.nav-right input:focus {
  width: 270px;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ============================================================
   BUTTON SYSTEM
   ============================================================ */

/* BASE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-xs);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background  var(--dur-fast) var(--ease),
              color       var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform   var(--dur-fast) var(--ease),
              box-shadow  var(--dur-fast) var(--ease);
  position: relative;
  overflow: hidden;
  user-select: none;
}

/* RIPPLE layer */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  pointer-events: none;
}
.btn:active::after { opacity: 0.06; }

.btn:active { transform: scale(0.97); }

/* --- PRIMARY (accent fill) --- */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 16px var(--accent-glow);
  transform: translateY(-1px);
}

/* --- GHOST (outline) --- */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hover);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* --- DANGER (search) --- */
.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(229, 9, 20, 0.35);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  transform: translateY(-1px);
}

/* Navbar button aliases — inherits base .btn styles */

/* Patch: plain .btn in navbar gets ghost style by default */
.nav-right .btn {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-hover);
}
.nav-right .btn:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Override specific nav buttons */
.nav-right .search-btn {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(229, 9, 20, 0.35);
}
.nav-right .search-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 400px;
  overflow: hidden;
}

/* Slider track */
.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--ease);
}

/* Each slide */
.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Blurred cinematic bg */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.45);
  transform: scale(1.08);
}

/* Sharp main image */
.hero-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Gradient overlay */
.hero-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,5,26, 0.96) 0%,
    rgba(8,5,26, 0.55) 45%,
    rgba(8,5,26, 0.10) 100%
  );
  pointer-events: none;
}

/* Hero text content */
.hero-content {
  position: absolute;
  bottom: 48px;
  left: 52px;
  max-width: 520px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.65;
}

/* Hero "Watch Now" button */
#heroBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: background var(--dur-fast) var(--ease),
              transform  var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
#heroBtn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
#heroBtn:active { transform: scale(0.97); }

/* ============================================================
   SECTION TITLES
   ============================================================ */
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--highlight);
  margin: 32px var(--gap-lg) 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  margin-left: 10px;
}

/* ============================================================
   MOVIE ROW (HORIZONTAL SCROLL)
   ============================================================ */
section { padding: 0; }

.row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px var(--gap-lg) 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.row::-webkit-scrollbar { display: none; }

/* ============================================================
   MOVIE CARD
   ============================================================ */
.movie {
  flex-shrink: 0;
  min-width: 150px;
  width: 150px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform    var(--dur-med) var(--ease),
              box-shadow   var(--dur-med) var(--ease),
              border-color var(--dur-med) var(--ease);
}

.movie img {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-med) var(--ease);
}

.movie p {
  padding: 8px 10px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.55), 0 0 0 1px var(--accent);
  border-color: var(--accent);
}
.movie:hover img { transform: scale(1.04); }

/* ============================================================
   BACK BUTTON
   ============================================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 20px 20px 0;
  padding: 9px 18px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background  var(--dur-fast) var(--ease),
              color       var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform   var(--dur-fast) var(--ease);
}
.back-btn:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateX(-2px);
}
.back-btn:active { transform: scale(0.97); }

/* ============================================================
   DETAILS PAGE  (movie.html / tv.html)
   ============================================================ */
.details-container {
  display: flex;
  gap: var(--gap-lg);
  padding: 36px var(--gap-lg);
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Poster column */
.details-left {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.poster {
  width: 240px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.7), 0 0 0 1px var(--border);
  transition: transform var(--dur-med) var(--ease);
}
.poster:hover { transform: scale(1.02); }

/* Info column */
.details-right { flex: 1; min-width: 0; }

.details-right h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

/* Rating badge */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 600;
  color: #facc15;
  margin-bottom: 14px;
}

/* Genres */
.tv-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.tv-genres span {
  padding: 4px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--highlight-dim);
}

/* Meta row */
.tv-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.tv-meta-row span {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Crew info */
.crew-info {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crew-info p {
  font-size: 13.5px;
  color: var(--text-secondary);
}
.crew-info b { color: var(--text-primary); font-weight: 600; }

/* Overview / description */
.overview {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ============================================================
   FULL-WIDTH SECTION WRAPPER  (Trailer / Seasons)
   ============================================================ */
.full-section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 var(--gap-lg);
}
.full-section h2 { margin-left: 0; }

/* ============================================================
   TRAILER SECTION
   ============================================================ */
.trailer-select {
  width: 100%;
  max-width: 360px;
  padding: 9px 12px;
  margin: 12px 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow   var(--dur-fast) var(--ease);
}
.trailer-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.trailer-box {
  width: 100%;
  max-width: 860px;
  height: 440px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.trailer-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* No trailer fallback */
.no-trailer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-muted);
}
.yt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: var(--danger);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease),
              transform  var(--dur-fast) var(--ease);
}
.yt-link-btn:hover { background: #c1000f; transform: translateY(-1px); }

/* ============================================================
   SEASONS ROW
   ============================================================ */
.season-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.season-row::-webkit-scrollbar { display: none; }
.season-row .movie { min-width: 140px; width: 140px; }
.season-row .movie img { height: 210px; }

/* Season details box */
#seasonDetails { max-width: 1200px; margin: 0 auto 40px; padding: 0 var(--gap-lg); }

.season-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 16px;
}
.season-box h2 { margin: 0 0 10px; font-size: 20px; color: var(--highlight); }
.season-box p  { color: var(--text-secondary); margin-bottom: 16px; }
.season-box h3 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }

.episode-list { display: flex; flex-direction: column; gap: 8px; }
.episode-item {
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent);
}
.episode-item b { color: var(--text-primary); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.no-results {
  padding: 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================================
   SCROLLBAR (global)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-overlay); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {

  .navbar { padding: 0 20px; }
  .nav-right input { width: 160px; }
  .nav-right input:focus { width: 200px; }

  .hero { height: 60vh; }
  .hero-content { left: 28px; bottom: 32px; }
  .hero-content h1 { font-size: 28px; }

  h2 { margin-left: 20px; margin-right: 20px; }
  .row { padding-left: 20px; padding-right: 20px; }

  .details-container { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; }
  .tv-genres, .tv-meta-row { justify-content: center; }
  .crew-info { align-items: center; }

  .poster { width: 200px; }

  .trailer-box { height: 300px; }
  .full-section { padding: 0 20px; }
  #seasonDetails { padding: 0 20px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

  /* NAVBAR */
  .navbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
  }
  .nav-right { flex-wrap: wrap; gap: 8px; }
  .nav-right input { width: 100%; flex: 1 1 100%; }
  .nav-right input:focus { width: 100%; }
  .btn { flex: 1; justify-content: center; padding: 9px 12px; }

  /* HERO */
  .hero { height: 52vh; min-height: 300px; }
  .hero-content { left: 16px; bottom: 20px; max-width: 92%; }
  .hero-content h1 { font-size: 20px; }
  .hero-content p { font-size: 12px; display: none; }
  #heroBtn { font-size: 13px; padding: 9px 18px; }

  /* SECTIONS */
  h2 { font-size: 15px; margin: 22px 16px 10px; }
  .row { padding-left: 16px; padding-right: 16px; gap: 10px; }

  /* CARDS */
  .movie { min-width: 130px; width: 130px; }
  .movie img { height: 195px; }
  .movie p { font-size: 11.5px; }

  /* DETAILS */
  .details-container { padding: 20px 16px; gap: 20px; }
  .poster { width: 160px; }
  .details-right h1 { font-size: 22px; }
  .overview { font-size: 13.5px; }

  /* TRAILER */
  .trailer-box { height: 210px; }
  .trailer-select { max-width: 100%; }

  /* SEASONS */
  .season-row .movie { min-width: 118px; width: 118px; }
  .season-row .movie img { height: 176px; }
  .full-section { padding: 0 16px; }
  #seasonDetails { padding: 0 16px; }
  .season-box { padding: 20px; }

  /* BACK BUTTON */
  .back-btn { margin: 14px 16px 0; padding: 10px 16px; }
}

/* ============================================================
   RESPONSIVE — EXTRA SMALL (≤ 400px)
   ============================================================ */
@media (max-width: 400px) {
  .hero { height: 46vh; }
  .hero-content h1 { font-size: 17px; }
  .movie { min-width: 115px; width: 115px; }
  .movie img { height: 172px; }
  .poster { width: 140px; }
  .trailer-box { height: 185px; }
}

/* ============================================================
   SEARCH SUGGESTIONS & FILTERS
   ============================================================ */
.search-wrapper {
  display: flex;
  position: relative;
}

/* Autocomplete suggestion dropdown */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 270px;
  background: rgba(15, 9, 32, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.1);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px 0;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.suggestion-item:hover {
  background: rgba(124, 58, 237, 0.12);
}

.suggestion-icon {
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.7;
}

.suggestion-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-type {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filters bar on search page */
.search-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 24px 24px;
}

.search-header-row h2 {
  margin: 0 !important;
}

.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.filter-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}

.filter-select:hover {
  border-color: var(--border-hover);
}

.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

/* Responsive filters */
@media (max-width: 600px) {
  .search-header-row {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 16px 20px;
  }
  .filter-bar {
    width: 100%;
    gap: 12px;
  }
  .filter-group {
    flex: 1;
    min-width: 130px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .filter-select {
    width: 100%;
  }
}

/* =========================================
   MOBILE NAVBAR RESPONSIVE
========================================= */

@media (max-width: 768px){

  .navbar{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .logo{
    font-size: 1.4rem;
    text-align: center;
  }

  .nav-right{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }

  .search-wrapper{
    width: 100%;
  }

  #search{
    width: 100%;
    height: 48px;
    font-size: 15px;
    border-radius: 12px;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .btn{
    flex: 1;
    min-width: 100px;
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .btn span{
    display: inline-block;
  }

}

/* =========================================
   EXTRA SMALL DEVICES
========================================= */

@media (max-width: 480px){

  .navbar{
    padding: 12px;
  }

  .logo{
    font-size: 1.2rem;
  }

  .nav-right{
    gap: 8px;
  }

  .btn{
    font-size: 13px;
    height: 44px;
    min-width: 90px;
  }

  #search{
    height: 44px;
    font-size: 14px;
  }

}