/* PakTV Ghar — unified top controls + responsive, accessible search bar.
   Loaded last to override legacy desktop/sidebar header positioning. */
.topbar{
  position:sticky;
  top:76px;
  z-index:30;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  column-gap:clamp(14px,2vw,30px);
  width:100%;
  height:74px;
  min-height:74px;
  padding:11px clamp(20px,3.6vw,66px);
  background:#0b0c13ee;
  border-bottom:1px solid #ffffff1d;
  box-shadow:0 10px 34px #0007;
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px)
}
.content-area>.topbar{position:sticky;z-index:30}
.topbar-search{grid-column:1;min-width:0;display:flex;justify-content:center;align-items:center}
.topbar-search .search-shell{
  margin:0;
  width:100%;
  max-width:660px;
  min-width:0;
  height:49px;
  flex:1;
  display:flex;
  gap:12px;
  align-items:center;
  padding:0 15px;
  border:1px solid #ffffff30;
  border-radius:12px;
  background:linear-gradient(135deg,#21222e,#191b25);
  color:#c2c3d0;
  box-shadow:inset 0 1px #ffffff0c,0 3px 13px #0003;
  cursor:text;
  transition:border-color .2s,background .2s,box-shadow .2s
}
.topbar-search .search-shell:hover{background:linear-gradient(135deg,#292a38,#1b1d27);border-color:#ffffff52}
.topbar-search .search-shell:focus-within{
  border-color:#ff7085;
  box-shadow:0 0 0 4px #ff5e7821,0 9px 28px #0005
}
.topbar-search .search-icon{display:grid;place-items:center;flex:none;color:#ff8896}
.topbar-search #searchInput{
  padding:0;
  min-width:0;
  height:100%;
  width:100%;
  flex:1;
  border:0;
  background:transparent;
  outline:0;
  box-shadow:none;
  font-size:14px;
  font-weight:550;
  color:#fff
}
.topbar-search #searchInput::placeholder{color:#9fa0ae}
.topbar-search .search-shortcut{
  display:grid;
  place-items:center;
  flex:none;
  min-width:25px;
  height:25px;
  border-radius:6px;
  border:1px solid #ffffff2f;
  background:#ffffff0a;
  color:#c9c9d2;
  font-size:14px;
  font-weight:800;
  line-height:1
}
.topbar-actions{
  grid-column:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  flex:none;
  min-width:0
}
.topbar .header-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  gap:9px;
  margin:0;
  padding:0 13px;
  min-width:47px;
  height:45px;
  border-radius:11px;
  border:1px solid #ffffff2c;
  background:#ffffff0d;
  color:#e9e8f0;
  font-size:12px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:none;
  transition:background .17s,border-color .17s,transform .17s
}
.topbar .header-action svg{width:19px;height:19px;flex:none;color:#e9e9f1}
.topbar .header-action:hover{transform:translateY(-1px);border-color:#ff84929d;background:#ff667521}
.topbar .header-action:focus-visible{outline:3px solid #ffa1b3;outline-offset:2px}
.topbar .header-favourites svg{color:#ffa7b0}
.topbar .header-privacy svg{color:#c4c9e0}
.topbar .header-language{
  border-color:#ff748354;
  background:linear-gradient(135deg,#ff67731d,#22212b 85%);
  color:#f4eef2
}
.topbar .header-language svg{color:#ffafbc}
.topbar .mobile-brand{display:none}
@media(min-width:931px) and (max-width:1200px){
  .topbar{column-gap:16px;padding-inline:clamp(17px,2vw,28px)}
  .topbar-actions{gap:7px}
  .topbar .header-action{padding-inline:11px}
  .topbar .header-favourites .header-action-label,
  .topbar .header-privacy .header-action-label{display:none}
}
@media(max-width:930px){
  .topbar,.content-area>.topbar{
    top:0;
    height:auto;
    min-height:116px;
    padding:10px 17px 12px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:43px 47px;
    column-gap:12px;
    row-gap:9px
  }
  .topbar .mobile-brand{
    display:flex;
    grid-row:1;
    grid-column:1;
    width:max-content;
    max-width:100%;
    align-items:center;
    gap:9px;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis
  }
  .topbar .mobile-brand strong{font-size:17px;letter-spacing:-.04em;white-space:nowrap;display:block}
  .topbar-search{grid-column:1/-1;grid-row:2;width:100%;justify-content:stretch}
  .topbar-search .search-shell{max-width:none;height:47px}
  .topbar-actions{grid-row:1;grid-column:2;gap:7px}
  .topbar .header-action{height:42px;min-width:42px;padding-inline:10px;border-radius:10px}
  .topbar .header-action-label{display:none}
  .topbar .header-action svg{width:20px;height:20px}
  .topbar-search #searchInput{font-size:16px}
}
@media(max-width:540px){
  .topbar,.content-area>.topbar{
    padding:8px 12px 10px;
    min-height:108px;
    grid-template-rows:41px 44px;
    row-gap:7px;
    column-gap:8px
  }
  .topbar .mobile-brand{gap:7px}
  .topbar .mobile-brand strong{display:block;font-size:15px}
  .topbar .mobile-brand .brand-icon{width:32px;height:32px;font-size:16px;border-radius:9px}
  .topbar-actions{gap:6px}
  .topbar .header-action{min-width:39px;height:39px;padding-inline:9px}
  .topbar .header-action svg{width:18px;height:18px}
  .topbar-search .search-shell{height:44px;padding-inline:12px;gap:9px}
  .topbar-search #searchInput{font-size:16px}
  .topbar-search .search-shortcut{display:none}
}
@media(max-width:345px){
  .topbar .mobile-brand strong{font-size:13px}
  .topbar .mobile-brand .brand-icon{width:29px;height:29px}
  .topbar-actions{gap:5px}
  .topbar .header-action{min-width:37px;height:38px;padding-inline:8px}
}
@media(prefers-reduced-motion:reduce){
  .topbar .header-action,.topbar-search .search-shell{transition:none}
  .topbar .header-action:hover{transform:none}
}
