/* ==========================================================================
   NeonFilmyCab — header.css
   Sticky compact cinematic header + mobile drawer + search overlay
   ========================================================================== */

.fmc-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(6, 7, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 255, .10);
  transition: box-shadow .25s ease, background .25s ease;
}
.fmc-header.is-stuck { box-shadow: 0 10px 34px rgba(0, 0, 0, .55); background: rgba(6, 7, 14, .94); }

.fmc-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 14px;
}

.fmc-logo { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.fmc-logo__mark {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #00d9ff 100%);
  box-shadow: 0 0 18px rgba(124, 58, 237, .5), 0 0 26px rgba(0, 217, 255, .25);
}
.fmc-logo__name {
  font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fmc-logo__name b {
  background: linear-gradient(92deg, #00d9ff, #a855f7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.fmc-nav { display: none; margin-left: 8px; }
.fmc-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.fmc-nav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--fmc-muted); padding: 9px 13px; border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.fmc-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.fmc-nav a.is-active { color: var(--fmc-cyan); background: rgba(0, 217, 255, .10); }

.fmc-header__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.fmc-icon-btn {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 255, .16);
  color: #dfe4ff; transition: all .2s ease;
}
.fmc-icon-btn:hover { background: rgba(0, 217, 255, .14); color: var(--fmc-cyan); border-color: rgba(0, 217, 255, .45); }
.fmc-burger { display: grid; }

/* ---------- Mobile drawer ---------- */

.fmc-drawer {
  position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none;
}
.fmc-drawer.is-open { visibility: visible; pointer-events: auto; }
.fmc-drawer__scrim {
  position: absolute; inset: 0; background: rgba(3, 4, 9, .7);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s ease;
}
.fmc-drawer.is-open .fmc-drawer__scrim { opacity: 1; }
.fmc-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 340px);
  background: linear-gradient(180deg, #0c0f1e, #080a14);
  border-left: 1px solid var(--fmc-line-strong);
  padding: 18px; overflow-y: auto;
  transform: translateX(102%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .6);
}
.fmc-drawer.is-open .fmc-drawer__panel { transform: none; }
.fmc-drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.fmc-drawer__label { font-size: 11px; letter-spacing: .18em; color: var(--fmc-dim); font-weight: 800; margin: 18px 4px 8px; font-family: var(--font-display); }
.fmc-drawer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fmc-drawer ul a {
  display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #dfe4ff;
  transition: background .2s ease, color .2s ease;
}
.fmc-drawer ul a:hover, .fmc-drawer ul a.is-active { background: rgba(0, 217, 255, .10); color: var(--fmc-cyan); }
.fmc-drawer ul a svg { color: var(--fmc-purple); }
.fmc-drawer__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 2px 30px; }
.fmc-chip {
  font-size: 12.5px; font-weight: 700; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--fmc-line-strong); color: var(--fmc-muted);
  transition: all .2s ease;
}
.fmc-chip:hover { color: var(--fmc-cyan); border-color: rgba(0, 217, 255, .5); background: rgba(0, 217, 255, .08); }

/* ---------- Search overlay ---------- */

.fmc-search-overlay {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: start center;
  padding: 12vh 16px 16px; visibility: hidden; pointer-events: none;
  background: rgba(3, 4, 9, .82); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s ease;
}
.fmc-search-overlay.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.fmc-search-overlay__box {
  width: min(100%, 640px);
  background: linear-gradient(180deg, #10142a, #0a0d1a);
  border: 1px solid var(--fmc-line-strong); border-radius: 18px; padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 40px rgba(0, 217, 255, .12);
  transform: translateY(-14px); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.fmc-search-overlay.is-open .fmc-search-overlay__box { transform: none; }
.fmc-search-form { display: flex; gap: 10px; }
.fmc-search-form input {
  flex: 1; min-width: 0; background: rgba(255, 255, 255, .05);
  border: 1px solid var(--fmc-line-strong); border-radius: 12px;
  padding: 13px 16px; color: #fff; font-size: 16px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fmc-search-form input::placeholder { color: var(--fmc-dim); }
.fmc-search-form input:focus { border-color: var(--fmc-cyan); box-shadow: 0 0 0 3px rgba(0, 217, 255, .18); }
.fmc-search-overlay__hint { margin: 12px 2px 8px; font-size: 11px; letter-spacing: .16em; color: var(--fmc-dim); font-weight: 800; font-family: var(--font-display); }
.fmc-search-overlay__chips { display: flex; flex-wrap: wrap; gap: 8px; }

body.fmc-lock { overflow: hidden; }
