/* DOCK — shelves + local player (no bottom app nav). */
:root {
  --bg: #12151c;
  --bg-darker: #0b0d12;
  --bg-darkest: #171b24;
  --tt: #f3f5f8;
  --tt-darker: #aeb6c4;
  --tt-darkest: #7b8494;
  --bdc: #222833;
  --bsh: 0 10px 28px rgba(0, 0, 0, 0.45);
  --bsh-lighter: 0 4px 14px rgba(0, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --accent: #38bdf8;
  --accent-darker: #0ea5e9;
  --accent-2: #a78bfa;
  --ui-bg: #0b0d12;
}

body {
  background: radial-gradient(900px 400px at 50% -10%, rgba(56, 189, 248, 0.12), transparent 60%), var(--bg-darker);
  padding-bottom: 24px;
}

/* ——— Header + search (fix absolute theme search) ——— */
.header {
  background: rgba(11, 13, 18, 0.94);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(12px);
}
.header-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px !important;
  gap: 14px;
  min-height: 64px;
  align-items: center !important;
}
.header__menu {
  display: flex !important;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.header__menu > li > a {
  display: inline-flex !important;
  align-items: center;
  height: auto !important;
  padding: 8px 12px !important;
  border-radius: 10px;
  color: var(--tt-darker);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  opacity: 1 !important;
}
.header__menu > li > a:hover,
.header__menu a.is-active {
  color: #041018 !important;
  background: var(--accent);
}
.logo__title {
  font-weight: 800;
  letter-spacing: 0.08em;
}
.logo__title span { color: var(--accent); }

.header__logo .brand-logo,
.footer__logo .brand-logo,
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.footer__logo .brand-logo { height: 28px; }

.header__search {
  position: relative !important;
  width: 260px !important;
  margin-left: auto !important;
  margin-top: 0 !important;
  flex-shrink: 0;
  align-self: center !important;
}
.header__search form {
  margin: 0;
  display: block;
  height: 40px;
}
.header__search-box {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(56, 189, 248, 0.28) !important;
  background: #171b24 !important;
  overflow: hidden;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
.header__search input,
.header__search input:focus {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  line-height: 38px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 14px !important;
  text-transform: none !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.header__search input::placeholder {
  color: var(--tt-darkest) !important;
  opacity: 1 !important;
  text-transform: none !important;
  font-size: 13px !important;
}
.header__search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.header__search .search-btn,
.header__search .header__btn-filter {
  position: static !important;
  right: auto !important;
  top: auto !important;
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(56, 189, 248, 0.18) !important;
  border-radius: 0 !important;
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--accent) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer;
  box-sizing: border-box !important;
}
.header__btn-filter { display: none !important; }

/* ——— Hero splash: text card + poster ——— */
.big-slider {
  margin: 12px 12px 20px !important;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.12);
  background: #0b0d12;
}
.bs1.dock-hero,
.dock-hero {
  min-height: 380px !important;
  display: flex !important;
  align-items: stretch !important;
  position: relative;
}
#heroBg {
  position: absolute !important;
  inset: 0;
  background-size: cover !important;
  background-position: center top !important;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.45;
}
#heroBg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 13, 18, 0.96) 0%, rgba(11, 13, 18, 0.82) 42%, rgba(11, 13, 18, 0.55) 100%),
    linear-gradient(0deg, rgba(11, 13, 18, 0.75) 0%, transparent 45%) !important;
}
.dock-hero__row.bs1__desc,
.bs1__desc.dock-hero__row {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  height: auto !important;
  min-height: 380px;
}
.dock-hero__card.bs1__desc-in,
.bs1__desc-in.dock-hero__card {
  flex: 1 1 auto;
  max-width: min(520px, 100%) !important;
  width: 100%;
  padding: 22px !important;
  padding-right: 22px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 10px;
  border-radius: 18px;
  background: rgba(17, 21, 30, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  opacity: 1 !important;
  transform: none !important;
}
.dock-hero__poster {
  flex: 0 0 auto;
  width: min(220px, 32vw);
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #171b24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.dock-hero__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bs1__desc .item__title,
.bs1__desc .rand__title {
  font-size: clamp(26px, 4vw, 40px) !important;
  line-height: 1.12 !important;
  white-space: normal !important;
  margin: 0 !important;
  text-transform: none !important;
  color: #f5f8fc !important;
  text-shadow: none !important;
}
.bs1__desc .rand__subtitle,
.bs1__desc .pmovie__original-title,
.bs1__desc .pmovie__real-rating {
  color: #9ad8ff !important;
  white-space: normal !important;
}
.bs1__desc .rand__text,
.bs1__desc .item__text {
  margin: 0 !important;
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  color: #d7dee8 !important;
}
.bs1__desc .rand__btns {
  margin-top: 8px;
  gap: 8px;
  flex-wrap: wrap;
}
.bs2-box { display: none !important; }

.btn,
.item__btn-watch.btn {
  background: var(--accent) !important;
  color: #041018 !important;
  border-radius: 12px;
  font-weight: 800;
}
.item__btn-trailer.btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border-radius: 12px;
  min-width: 42px;
}

/* Horizontal shelves */
.sect { margin-bottom: 8px; }
.sect__title {
  font-size: 15px !important;
  letter-spacing: 0.04em;
}
.carousel-poster {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 12px !important;
  padding: 4px 4px 16px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.carousel-poster > .poster {
  width: 148px !important;
  min-width: 148px !important;
  margin: 0 !important;
  scroll-snap-align: start;
  border-radius: 14px !important;
  background: var(--bg-darkest);
}
.poster__img { border-radius: 14px 14px 0 0; }
.poster .item__title {
  text-transform: none !important;
  font-size: 12px !important;
}

.local-filters {
  margin: 0 12px 16px !important;
  padding: 8px 10px !important;
  background: rgba(23, 27, 36, 0.9);
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.12);
}
.local-filters.is-compact .filters-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.local-filters.is-compact .chips-type {
  margin-bottom: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.local-filters.is-compact .chips {
  gap: 6px;
}
.local-filters.is-compact .filter-more .chips {
  flex-wrap: wrap;
  overflow-x: visible;
}
.local-filters.is-compact .chip {
  flex: 0 0 auto;
  padding: 5px 10px;
  font-size: 12px;
}
.local-filters .filters-toggle {
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  color: #9ad7f0;
  padding: 5px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.local-filters .filters-toggle small {
  opacity: 0.85;
  margin-left: 4px;
}
.local-filters.is-expanded .filters-toggle {
  border-color: rgba(56, 189, 248, 0.65);
  color: #041018;
  background: var(--accent);
}
.local-filters .filter-more {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}
.local-filters .filter-more[hidden] {
  display: none !important;
}
.local-filters.is-compact .filter-row {
  margin-bottom: 8px;
}
.local-filters.is-compact .filter-row:last-child {
  margin-bottom: 0;
}
.local-filters .chip {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  color: #cfd6e0;
}
.local-filters .chip.active,
.local-filters .chip:hover {
  border-color: rgba(56, 189, 248, 0.55);
  color: #041018;
  background: var(--accent);
}

.footer {
  display: block !important;
  margin: 8px 12px 0;
  padding: 12px 4px 4px;
  color: var(--tt-darkest);
  font-size: 12px;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}
.tpl-dock { display: none !important; }
.site-desc {
  margin: 8px 12px 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(23, 27, 36, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.1);
}

/* ——— Watch: player clean, no overlay text ——— */
body[data-page="watch"] .pmovie {
  display: flex;
  flex-direction: column;
}
body[data-page="watch"] .local-player-block {
  order: -1;
  margin-top: 0;
}
body[data-page="watch"] .pmovie__header {
  order: 0;
  margin-top: 16px;
}
body[data-page="watch"] .pmovie__poster-holder {
  display: none;
}
body[data-page="watch"] .pmovie__message {
  display: none !important;
}

.local-player {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding-top: 0 !important;
  background: #000;
  overflow: hidden;
  position: relative;
}
/* Kill centered overlay from shell-base (.local-player > p) */
.local-player > p,
.local-player .player-hint {
  display: none !important;
  position: static !important;
  inset: auto !important;
  z-index: 0 !important;
}
.local-player .vs-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--tt-darkest);
  font-size: 14px;
  background: #0b0d12;
}
.local-player .vs-voice {
  position: relative !important;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--tt-darker);
  font-size: 13px;
  background: rgba(17, 21, 30, 0.98);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.local-player .vs-voice select {
  flex: 1;
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: #0b0d12;
  color: var(--tt);
  padding: 6px 8px;
}
.local-player .vs-iframe,
.local-player iframe {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  border: 0 !important;
  background: #000;
  z-index: 1 !important;
}
.local-watch-meta .tag.accent {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--accent);
}

@media (max-width: 900px) {
  .header__menu { display: none !important; }
  .header__search { width: min(220px, 42vw) !important; }
  .dock-hero__poster { width: min(160px, 34vw); }
  .bs1.dock-hero,
  .dock-hero,
  .dock-hero__row { min-height: 300px !important; }
}
@media (max-width: 700px) {
  .dock-hero__row.bs1__desc,
  .bs1__desc.dock-hero__row {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 14px !important;
  }
  .dock-hero__poster {
    width: 140px;
    align-self: center;
  }
  .bs1.dock-hero,
  .dock-hero,
  .dock-hero__row { min-height: 0 !important; }
  .carousel-poster > .poster {
    width: 120px !important;
    min-width: 120px !important;
  }
}
