/* ================================================
   HEADER v7 + SEARCH BAR FULL WIDTH
   ================================================ */

header.fx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 10px 14px;
  margin: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(148,163,184,0.15);
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
}

.fx-prof {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.15);
  border-radius: 999px;
  cursor: pointer;
  box-sizing: border-box;
}

.fx-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0EA5E9, #6366F1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.fx-pinfo { min-width: 0; flex: 1; }

.fx-pname {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-pmeta {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.fx-pmeta .u-limit { color: #0EA5E9; font-weight: 800; }

.fx-ibtn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

/* ==== SEARCH BAR FULL WIDTH ==== */
.fx-search-wrap {
  width: 100%;
  max-width: 100%;
  padding: 14px 14px 10px;
  box-sizing: border-box;
}

.fx-search-wrap input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 1.5px solid rgba(148,163,184,0.25);
  border-radius: 16px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 2px 12px rgba(30,64,175,0.06);
  transition: all .2s;
}

.fx-search-wrap input::placeholder { color: #94a3b8; }

.fx-search-wrap input:focus {
  border-color: #0EA5E9;
  background: #fff;
  box-shadow: 0 4px 18px rgba(14,165,233,0.15), 0 0 0 4px rgba(14,165,233,0.08);
}

/* Dark mode */
body.theme-dark header.fx-header { background: rgba(15,23,42,0.9); }
body.theme-dark .fx-prof,
body.theme-dark .fx-ibtn {
  background: rgba(30,41,59,0.9);
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
body.theme-dark .fx-pname { color: #f1f5f9; }
body.theme-dark .fx-pmeta { color: #94a3b8; }
body.theme-dark .fx-search-wrap input {
  background: rgba(30,41,59,0.7);
  border-color: rgba(255,255,255,0.1);
  color: #f1f5f9;
}
