/* Compact navigation shared by v2. Overrides the legacy mobile cascade. */
body .v2-header {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .v2-header-panel {
  position: relative;
  width: min(1560px, calc(100% - 6rem)) !important;
  min-height: 5.25rem !important;
  display: flex !important;
  flex-wrap: nowrap;
  gap: 2rem !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .v2-header .v2-logo {
  font-size: 1.65rem !important;
}

body .v2-header .v2-nav {
  order: 0;
  width: auto;
  gap: .6rem;
}

body .v2-header .v2-nav-link {
  padding: 0 .6rem;
  font-size: .86rem;
  font-weight: 600;
  color: #d4d6db;
  background: transparent;
}

body .v2-header .v2-nav-link:hover,
body .v2-header .v2-nav-link.is-active {
  color: #fff;
}

body .v2-header .v2-search-toggle {
  width: 2.75rem !important;
  height: 2.75rem !important;
  flex: 0 0 2.75rem;
  display: grid !important;
  place-items: center;
  margin-left: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
}

body .v2-header .v2-search-toggle svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  fill: none;
}

body .v2-header .v2-top-actions {
  display: flex !important;
  width: auto !important;
  margin-left: 0;
  gap: 0 !important;
}

body .v2-header .v2-avatar-button {
  width: 2.35rem !important;
  height: 2.35rem !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.08) !important;
  font-size: .85rem;
  overflow: hidden;
}

body .v2-header .v2-search {
  display: flex !important;
  position: absolute !important;
  top: calc(100% + .5rem) !important;
  left: auto !important;
  right: 0 !important;
  width: min(28rem, calc(100vw - 2rem)) !important;
  min-width: 0 !important;
  min-height: 3.25rem !important;
  margin: 0;
  padding: .35rem .65rem !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 12px !important;
  background: rgba(19, 23, 29, .76) !important;
  box-shadow: 0 18px 48px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.06) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(-8px) scale(.985) !important;
  transform-origin: top right;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s;
}

body.is-v2-search-open .v2-header .v2-search {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto !important;
}

body .v2-header .v2-search input {
  min-width: 0;
  font-weight: 600;
}

/* The form already has a close button; suppress the browser's extra cross. */
body .v2-header .v2-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

body .v2-header .v2-search-close {
  display: grid !important;
  place-items: center;
  width: 2.5rem !important;
  height: 2.5rem !important;
  flex: 0 0 2.5rem !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.5rem;
}

body .v2-header .v2-search-dropdown {
  position: absolute;
  inset: calc(100% + .5rem) 0 auto !important;
  width: 100% !important;
  max-height: min(30rem, calc(100dvh - 11rem));
  border-color: rgba(255,255,255,.16);
  background: rgba(19, 23, 29, .86);
  box-shadow: 0 20px 52px rgba(0,0,0,.32);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.v2-header :is(button, a, summary):focus-visible {
  outline: 2px solid #87ffbb;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body .v2-header-panel {
    width: calc(100% - 2.5rem) !important;
    min-height: 4rem !important;
    gap: .75rem !important;
  }

  body .v2-header .v2-logo {
    font-size: 1.4rem !important;
  }

  body .v2-mobile-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body:not(.v2-cinema-home) .v2-shell {
    padding-top: 4.7rem !important;
  }

  body .v2-header .v2-search {
    width: min(28rem, calc(100vw - 2.5rem)) !important;
    transform-origin: top right;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .v2-header .v2-search {
    transition-duration: .01ms;
  }
}

/* Avoid continuously sampling the page and playing video through the sticky header. */
.v2-header, .v2-header-panel, .v2-cinema-home .v2-header::before { backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
.v2-cinema-home .v2-header::before { background:#101214!important; }

/* One translucent surface, without blur or gradient layers. */
body .v2-header{background:transparent!important;padding:8px 0!important}
body .v2-header::before{content:none!important;display:none!important}
body .v2-header .v2-header-panel{background:rgba(20,22,24,.84)!important;border:1px solid #ffffff10!important;border-radius:12px!important;padding:0 18px!important;min-height:72px!important;box-sizing:border-box}
@media(max-width:760px){body .v2-header{padding:6px 0!important}body .v2-header .v2-header-panel{width:calc(100% - 16px)!important;min-height:56px!important;padding:0 12px!important;border-radius:9px!important}}

@media(max-width:760px){body .v2-mobile-bar{display:none!important}body .v2-shell{padding-bottom:1rem!important}}

body .v2-header .v2-top-actions{gap:.65rem!important;align-items:center}
.v2-notifications{position:relative;flex-shrink:0}
body .v2-header .v2-notification-toggle{position:relative;width:32px;height:36px;display:grid;place-items:center;border:0;background:none;color:#c9d0cd;padding:0;cursor:pointer}
.v2-notification-toggle svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.v2-notification-dot{position:absolute;top:4px;right:4px;width:7px;height:7px;background:#ef6267;border:1px solid #171a1c;border-radius:50%}
.v2-notification-panel{position:absolute;right:-48px;top:calc(100% + 15px);width:340px;max-width:calc(100vw - 28px);border:1px solid #ffffff1c;border-radius:10px;background:#15181a;z-index:180;overflow:hidden;color:#ecf1ee}
.v2-notification-panel[hidden],.v2-notification-dot[hidden],.v2-notification-all[hidden]{display:none!important}
.v2-notification-panel header{display:flex;align-items:center;justify-content:space-between;padding:1rem;border-bottom:1px solid #ffffff0d;font-size:.9rem}.v2-notification-panel header span{font-size:.75rem;color:#b2c2b8}
.v2-notification-items{max-height:min(420px,60vh);overflow-y:auto}.v2-notification-empty{margin:0;padding:1.5rem 1rem;font-size:.8rem;text-align:center;color:#a7b4ac}
.v2-notification-row{display:flex;gap:.7rem;padding:1rem;border-bottom:1px solid #ffffff0a}.v2-notification-avatar{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:9px;background:#27372d;color:#b6efcc;text-decoration:none;overflow:hidden}.v2-notification-avatar img{width:100%;height:100%;object-fit:cover}.v2-notification-row>div{min-width:0}.v2-notification-row>div>a{color:#ecf1ee;text-decoration:none;font-size:.8rem;font-weight:600;overflow-wrap:anywhere}.v2-notification-row p{margin:.25rem 0 .65rem;font-size:.73rem;color:#a8b5ad;line-height:1.4}
.v2-notification-actions{display:flex;gap:.4rem}.v2-notification-actions button{border:1px solid #ffffff15;border-radius:5px;background:#252b27;color:#c8d5cd;font:inherit;font-size:.7rem;padding:.4rem .6rem;cursor:pointer}.v2-notification-actions button[data-action=accept]{background:#b7efce;color:#102017;border-color:#b7efce}.v2-notification-actions button:disabled{opacity:.5;cursor:wait}.v2-notification-all{display:block;text-align:center;padding:.8rem;color:#b3d6c0;text-decoration:none;font-size:.75rem}
@media(max-width:760px){body .v2-header .v2-top-actions{gap:.35rem!important}.v2-notification-panel{position:fixed;top:72px;right:14px;width:min(340px,calc(100vw - 28px))}}

/* Keep all header actions in one evenly spaced group. */
body .v2-header .v2-top-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important;flex-shrink:0}
body .v2-header .v2-top-actions .v2-search-toggle{width:36px!important;height:38px!important;flex:0 0 36px;margin:0!important}
body .v2-header .v2-top-actions .v2-search-toggle svg{width:21px!important;height:21px!important}
body .v2-header .v2-top-actions .v2-notification-toggle{width:36px;height:38px}
body .v2-header .v2-top-actions .v2-user-menu{display:flex;align-items:center;margin:0;padding:0}
body .v2-header .v2-top-actions .v2-avatar-button{display:grid;place-items:center;margin:0!important;flex-shrink:0}
@media(max-width:760px){body .v2-header .v2-top-actions{gap:5px!important}}

body .v2-header .v2-top-actions{height:38px!important;gap:8px!important}
body .v2-header .v2-top-actions .v2-search-toggle,body .v2-header .v2-top-actions .v2-notification-toggle{display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;height:38px!important;flex:0 0 38px!important;margin:0!important;padding:0!important;color:#e8ecea!important;line-height:0!important}
body .v2-header .v2-top-actions .v2-search-toggle svg,body .v2-header .v2-top-actions .v2-notification-toggle svg{display:block!important;width:22px!important;height:22px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.5!important;stroke-linecap:round;stroke-linejoin:round;transform:none!important;margin:0!important}
body .v2-header .v2-top-actions .v2-notifications,body .v2-header .v2-top-actions .v2-user-menu{height:38px!important;display:flex!important;align-items:center!important;line-height:0}
body .v2-header .v2-top-actions .v2-avatar-button{width:38px!important;height:38px!important;box-sizing:border-box;line-height:normal}
.v2-notification-panel{line-height:normal}
@media(max-width:760px){body .v2-header .v2-top-actions{gap:5px!important}}

body .v2-header .v2-avatar-button{position:relative!important;overflow:hidden!important}
body .v2-header .v2-avatar-button img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;display:block!important;border-radius:50%;margin:0!important}
