/* Banner + search bar on /movies/ and /tv-shows/ (hub-banner.js). Slides copy the homepage banner look. */
#hubTop { display:flex; flex-direction:column; gap:1.25rem; }
    .hub-fx { position:relative; border-radius:24px; overflow:hidden; isolation:isolate; background:#0b0b12; border:1px solid rgba(255,255,255,.12); box-shadow:0 24px 60px rgba(0,0,0,.55),0 0 60px rgba(99,102,241,.12); height:clamp(380px,40vw,500px); }
    .hub-fx[hidden] { display:none; }
    .hub-fx-label { position:absolute; z-index:6; top:16px; left:18px; display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:9999px; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); color:#e9d5ff; font-size:.68rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; pointer-events:none; }
    .hub-fx-label i { width:7px; height:7px; border-radius:50%; background:#a855f7; box-shadow:0 0 10px #a855f7; animation:hub-fx-pulse 2s ease-in-out infinite; }
    @keyframes hub-fx-pulse { 50% { opacity:.35; transform:scale(.75); } }

    .hub-fx-sk { position:absolute; inset:0; background:linear-gradient(110deg,#0d0d16 30%,#1a1430 50%,#0d0d16 70%); background-size:200% 100%; animation:hub-fx-shimmer 1.4s linear infinite; }
    @keyframes hub-fx-shimmer { to { background-position:-200% 0; } }

    .hub-fx-slide { position:absolute; inset:0; display:block; color:inherit; text-decoration:none; opacity:0; visibility:hidden; transition:opacity .8s ease, visibility 0s linear .8s; -webkit-tap-highlight-color:transparent; }
    .hub-fx-slide.on { opacity:1; visibility:visible; transition:opacity .8s ease, visibility 0s; z-index:2; }
    .hub-fx-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 22%; transform:scale(1.07); transition:transform 7s ease-out; }
    .hub-fx-slide.on .hub-fx-img { transform:scale(1); }
    .hub-fx-slide::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,rgba(5,4,12,.92) 0%,rgba(5,4,12,.6) 38%,rgba(5,4,12,.05) 72%), linear-gradient(0deg,rgba(5,4,12,.9) 0%,rgba(5,4,12,0) 48%); }
    .hub-fx-slide.noimg { background:linear-gradient(135deg,#1b1033,#0b0b12 60%,#2a1250); }

    .hub-fx-info { position:absolute; z-index:3; left:0; bottom:0; max-width:620px; padding:0 3.25rem 4.2rem; display:flex; flex-direction:column; gap:.7rem; transform:translateY(14px); opacity:0; transition:transform .8s cubic-bezier(.16,1,.3,1) .15s, opacity .8s ease .15s; }
    .hub-fx-slide.on .hub-fx-info { transform:none; opacity:1; }
    .hub-fx-badges { display:flex; flex-wrap:wrap; gap:.5rem; }
    .hub-fx-type, .hub-fx-new { padding:4px 11px; border-radius:9999px; font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
    .hub-fx-type { background:rgba(168,85,247,.25); border:1px solid rgba(168,85,247,.55); color:#e9d5ff; }
    .hub-fx-type.tv { background:rgba(99,102,241,.25); border-color:rgba(99,102,241,.6); color:#c7d2fe; }
    .hub-fx-new { background:rgba(52,211,153,.16); border:1px solid rgba(52,211,153,.5); color:#6ee7b7; }
    .hub-fx-title { font-size:clamp(1.6rem,3.6vw,2.7rem); line-height:1.1; font-weight:800; letter-spacing:-.025em; color:#fff; text-wrap:balance; text-shadow:0 2px 20px rgba(0,0,0,.5); }
    .hub-fx-meta { display:flex; flex-wrap:wrap; align-items:center; gap:.45rem .9rem; color:rgba(255,255,255,.78); font-size:.88rem; }
    .hub-fx-rate { display:inline-flex; align-items:center; gap:.3rem; padding:.3rem .7rem; border-radius:9999px; background:rgba(0,0,0,.65); border:1px solid rgba(255,255,255,.18); font-weight:700; line-height:1; white-space:nowrap; }
    .hub-fx-rate small { font-weight:500; font-size:.72rem; color:rgba(255,255,255,.6); }
    .hub-fx-meta .hub-fx-sep { width:3px; height:3px; border-radius:50%; background:rgba(255,255,255,.45); }
    .hub-fx-ov { color:rgba(255,255,255,.78); font-size:.95rem; line-height:1.55; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; max-width:56ch; }
    .hub-fx-cta { align-self:flex-start; display:inline-flex; align-items:center; gap:.5rem; margin-top:.3rem; padding:.62rem 1.2rem; border-radius:9999px; font-size:.86rem; font-weight:700; color:#fff; background:linear-gradient(135deg,#6366f1,#a855f7); box-shadow:0 6px 24px rgba(99,102,241,.4); transition:transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease; }
    @media (hover:hover) {
      .hub-fx-slide:hover .hub-fx-cta { transform:translateY(-2px); box-shadow:0 10px 30px rgba(99,102,241,.6); }
    }
    .hub-fx-slide:focus-visible { outline:2px solid #c4b5fd; outline-offset:-4px; }

    .hub-fx-nav { position:absolute; z-index:6; right:22px; bottom:20px; display:flex; align-items:center; gap:10px; pointer-events:none; }
    .hub-fx-dots { display:flex; align-items:center; gap:7px; padding:8px 12px; border-radius:9999px; background:rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.14); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); pointer-events:auto; }
    .hub-fx-dot { position:relative; width:9px; height:9px; padding:0; border:0; border-radius:9999px; background:rgba(255,255,255,.35); cursor:pointer; overflow:hidden; transition:width .4s cubic-bezier(.16,1,.3,1), background .3s ease; }
    .hub-fx-dot::before { content:""; position:absolute; inset:-10px; }
    .hub-fx-dot:hover { background:rgba(255,255,255,.65); }
    .hub-fx-dot.on { width:30px; background:rgba(255,255,255,.28); }
    .hub-fx-dot i { position:absolute; inset:0; transform-origin:left; transform:scaleX(0); background:#fff; border-radius:inherit; }
    .hub-fx-dot.on i { animation:hub-fx-fill var(--hub-fx-dur,6500ms) linear forwards; }
    .hub-fx.paused .hub-fx-dot.on i { animation-play-state:paused; }
    .hub-fx.static .hub-fx-dot.on i { animation:none; transform:scaleX(1); }
    @keyframes hub-fx-fill { to { transform:scaleX(1); } }
    .hub-fx-dot:focus-visible, .hub-fx-arr:focus-visible { outline:2px solid #c4b5fd; outline-offset:3px; }
    .hub-fx-arr { pointer-events:auto; width:36px; height:36px; display:grid; place-items:center; border-radius:50%; border:1px solid rgba(255,255,255,.16); background:rgba(0,0,0,.5); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); color:#fff; cursor:pointer; transition:background .25s ease, transform .25s ease; }
    .hub-fx-arr svg { width:17px; height:17px; }
    .hub-fx-arr:hover { background:rgba(168,85,247,.55); transform:scale(1.08); }
    @media (hover:none) { .hub-fx-arr { display:none; } }

    @media (max-width:640px) {
      .hub-fx { height:460px; border-radius:20px; }
      .hub-fx-label { top:12px; left:12px; }
      .hub-fx-slide::before { background:linear-gradient(0deg,rgba(5,4,12,.96) 0%,rgba(5,4,12,.7) 45%,rgba(5,4,12,.1) 80%); }
      .hub-fx-info { padding:0 1.15rem 4.1rem; gap:.55rem; }
      .hub-fx-ov { -webkit-line-clamp:2; font-size:.88rem; }
      .hub-fx-meta .hub-fx-sep { display:none; }
      .hub-fx-nav { right:0; left:0; bottom:16px; justify-content:center; }
    }

/* promo-style badges are not used on the hub pages, but the shared slide markup may carry them */
.hub-fx-badges { display:flex; flex-wrap:wrap; gap:.5rem; }

/* ---------- search bar under the banner ---------- */
.hub-search { position:relative; display:flex; align-items:center; gap:.6rem; padding:.35rem .4rem .35rem 1.1rem; border-radius:9999px; background:rgba(18,18,28,.7); border:1px solid rgba(255,255,255,.12); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); transition:border-color .25s ease, box-shadow .25s ease; }
.hub-search:focus-within { border-color:rgba(139,92,246,.6); box-shadow:0 0 0 4px rgba(139,92,246,.15); }
.hub-search svg { flex:none; width:18px; height:18px; color:#a78bfa; }
.hub-search input { flex:1; min-width:0; background:transparent; border:0; outline:0; color:#f5f5f7; font-size:1rem; padding:.7rem 0; }
.hub-search input::placeholder { color:#86868b; }
.hub-search input::-webkit-search-cancel-button { display:none; }
.hub-search button { flex:none; border:0; cursor:pointer; padding:.6rem 1.2rem; border-radius:9999px; font-size:.85rem; font-weight:700; color:#fff; background:linear-gradient(135deg,#6366f1,#a855f7); }
.hub-search button.hub-clear { background:rgba(255,255,255,.1); color:#e5e7eb; }
.hub-search button[hidden] { display:none; }
.hub-search button:focus-visible { outline:2px solid #c4b5fd; outline-offset:2px; }

/* ---------- search results ---------- */
#hubResults[hidden] { display:none; }
.hub-res-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:.5rem; margin-bottom:1rem; }
.hub-res-head h2 { font-size:1.25rem; font-weight:800; color:#fff; letter-spacing:-.01em; }
.hub-res-head span { font-size:.8rem; color:#86868b; }
.hub-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
@media (min-width:640px) { .hub-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1024px) { .hub-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:1.5rem; } }
.hub-note { font-size:.9rem; color:#a1a1aa; }
