/* ============================================================
   NAVBAR-SHARED — self-contained Netflix navbar for all pages
   (works without global.css — defines its own variables)
   ============================================================ */

:root {
  --black: #141414;
  --dark: #1a1a1a;
  --red: #E50914;
  --red-hover: #f40612;
  --white: #fff;
  --muted: #b3b3b3;
  --subtle: #6d6d6d;
  --z-navbar: 9999;
}

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 4%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 10%, rgba(0,0,0,0));
  transition: background-color 0.4s ease;
  box-sizing: border-box;
}

.navbar.scrolled {
  background: var(--black);
}

.navbar-logo {
  display: flex;
  align-items: center;
  margin-right: 30px;
  cursor: pointer;
  user-select: none;
}

.navbar-logo span {
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-link {
  color: #e5e5e5;
  font-size: 15px;
  margin-left: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
  font-weight: 400;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
  background: none;
  border: none;
  padding: 0;
}

.navbar-link:hover { color: var(--muted); }

.navbar-link.active {
  color: var(--white);
  font-weight: 500;
  cursor: default;
}

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

.navbar-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
}

.navbar-icon:hover { opacity: 0.7; }

.navbar-icon svg {
  width: 20px;
  height: 20px;
}

.navbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c94b4b, #4b134f);
  cursor: pointer;
}

/* Notification dot */
.navbar-notif-dot {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}

/* Sound toggle button */
.navbar-sound-btn {
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #e5e5e5;
  background: none;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: opacity .2s;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
}
.navbar-sound-btn:hover { opacity: .8; }
.navbar-sound-btn .navbar-sound-off { display: none; }
.navbar-sound-btn.off { color: var(--red); border-color: rgba(229,9,20,.4); }
.navbar-sound-btn.off .navbar-sound-on { display: none; }
.navbar-sound-btn.off .navbar-sound-off { display: block; }

/* Mobile responsive */
@media (max-width: 768px) {
  .navbar { height: 56px; padding: 0 3%; }
  .navbar-links { display: flex; gap: 12px; }
  .navbar-link { margin-left: 0; font-size: 14px; }
  .navbar-logo { margin-right: 12px; }
  .navbar-right { gap: 10px; }
  .navbar-icon svg { width: 17px; height: 17px; }
  .navbar-sound-btn { padding: 4px 6px; }
  .navbar-sound-label { display: none; }
  .navbar-avatar { display: none; }
  .brand-last { display: none; }
  .navbar-logo span { font-size: 1.05rem; }
  .navbar-sound-btn { padding: 4px 6px; }
  .navbar-sound-btn svg { width: 16px; height: 16px; }
}

/* ============================================================
   SITE-WIDE SEARCH + NOTIFICATIONS DROPDOWNS (site-ui.js)
   ============================================================ */
.ff-dd {
  position: fixed;
  top: 70px;
  right: calc(4% + 40px);
  z-index: 10000;
  background: #181818;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  width: 380px;
  max-width: calc(100vw - 24px);
  max-height: min(60vh, 500px);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,.8);
  box-sizing: border-box;
}
.ff-dd.open { opacity: 1; pointer-events: auto; }
.ff-dd-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  background: #181818;
}
.ff-dd-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: none;
  font-family: 'Nunito Sans', 'Helvetica Neue', Arial, sans-serif;
}
.ff-dd-input::placeholder { color: #666; }
.ff-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background .15s;
}
.ff-dd-item:hover { background: rgba(255,255,255,.05); }
.ff-dd-cat {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--red);
  background: rgba(229,9,20,.12);
  border: 1px solid rgba(229,9,20,.3);
  border-radius: 3px;
  padding: 2px 6px;
  text-transform: uppercase;
}
.ff-dd-title { font-size: 13px; color: #ddd; line-height: 1.35; }
.ff-dd-empty { padding: 20px 16px; color: #777; font-size: 13px; text-align: center; }
.ff-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .15s;
}
.ff-notif-item:hover { background: rgba(255,255,255,.03); }
.ff-notif-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.ff-notif-text { font-size: 13px; color: #ccc; line-height: 1.4; }
.ff-notif-time { font-size: 11px; color: #666; margin-top: 2px; }

@media (max-width: 768px) {
  .ff-dd { top: 58px; right: 12px; width: calc(100vw - 24px); }
}
