/* MovieBop public site styles, one file (2026-12-04). Merged in cascade order from styles.css, cinema.css,
   brand-moviebop-v1/brand.css, moviebop-catalog-v1.css, moviebop-search-sticky-v1.css, recommendation-heat-v1.css
   and watch-v1.css (floating assistant, heat badge and card CTA rules dropped); new rules at the end. */

/* ---- styles.css ---- */
:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f3ec;
  color: #171412;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: #f7f3ec;
}

body {
  margin: 0;
  background: #f7f3ec;
  color: #171412;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
.sheet-panel:focus-visible {
  outline: 3px solid #0a6f75;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  width: min(100%, 1180px);
  min-height: 68px;
  margin: 0 auto;
  padding: 14px 16px 0;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.action-button,
.copy-link-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d9d1c6;
  border-radius: 6px;
  background: #fffdf9;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
}

.action-button {
  padding: 0 12px;
}

.action-button img,
.copy-link-button img,
.sheet-close img,
.search-field img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.action-button:hover,
.copy-link-button:hover {
  border-color: #9f9487;
  background: #ffffff;
}

.action-feedback {
  min-height: 20px;
  margin: 4px 0 0;
  color: #5f554c;
  font-size: 0.8125rem;
  text-align: right;
}

.page-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 10px 16px 48px;
}

.intro {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #b9232f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.guidance {
  max-width: 50ch;
  margin: 14px 0 0;
  color: #5f554c;
  font-size: 0.975rem;
  line-height: 1.55;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  max-width: 680px;
  margin-top: 24px;
}

.search-input-wrap {
  position: relative;
  min-width: 0;
}

.search-field {
  display: flex;
  min-width: 0;
  height: 48px;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #cfc5b9;
  border-radius: 6px;
  background: #fffdf9;
}

.search-field:focus-within {
  border-color: #171412;
  box-shadow: 0 0 0 1px #171412;
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #171412;
}

.search-field input::placeholder {
  color: #8b8177;
}

.search-history-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #cfc5b9;
  border-radius: 6px;
  background: #fffdf9;
  box-shadow: 0 12px 28px rgb(45 34 25 / 0.16);
}

.search-history-panel[hidden] {
  display: none;
}

.search-history-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid #e4ddd4;
  color: #675d54;
  font-size: 0.78rem;
  font-weight: 750;
}

.search-history-clear {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a91925;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.search-history-list {
  max-height: 352px;
  overflow-y: auto;
}

.search-history-item {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #eee8df;
  background: transparent;
  color: #171412;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  overflow-wrap: anywhere;
}

.search-history-item:last-child {
  border-bottom: 0;
}

.search-history-item:hover,
.search-history-item:focus-visible,
.search-history-clear:hover,
.search-history-clear:focus-visible {
  background: #f2ece3;
}

.search-button,
.recovery-button {
  min-height: 48px;
  border: 1px solid #a91925;
  border-radius: 6px;
  background: #b9232f;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.search-button {
  min-width: 88px;
  padding: 0 16px;
}

.search-button:hover,
.recovery-button:hover {
  background: #9f1e28;
}

.field-error {
  min-height: 22px;
  max-width: 680px;
  margin: 6px 0 0;
  color: #9f1e28;
  font-size: 0.875rem;
  font-weight: 650;
}

.catalog {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ded6cc;
}

.catalog-toolbar {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.sort-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  width: 164px;
  min-width: 164px;
  padding: 3px;
  border: 1px solid #d2c9bd;
  border-radius: 6px;
  background: #eee8df;
}

.sort-button {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: #62584f;
  font-size: 0.8125rem;
  font-weight: 800;
}

.sort-button.is-selected {
  background: #171412;
  color: #ffffff;
}

.catalog-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: #675d54;
  font-size: 0.85rem;
}

.catalog-recovery {
  min-height: 0;
}

.catalog-recovery:not(:empty) {
  margin: 8px 0 16px;
}

.catalog-more {
  display: flex;
  justify-content: center;
  padding: 24px 0 8px;
}

.catalog-more[hidden] {
  display: none;
}

.more-button {
  min-width: 148px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #171412;
  border-radius: 6px;
  background: #171412;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.more-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.recovery-button {
  min-height: 40px;
  padding: 0 14px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  transition: opacity 140ms ease;
}

.poster-grid.is-refreshing {
  opacity: 0.76;
}

.poster-card,
.poster-skeleton {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: #dfd7cc;
}

.poster-card {
  border: 1px solid #cfc5b9;
  color: #ffffff;
  box-shadow: 0 4px 14px rgb(45 34 25 / 0.1);
}

.poster-card:hover .poster-image {
  transform: scale(1.018);
}

.poster-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 160ms ease;
}

.poster-topline {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.code-badge,
.view-badge {
  min-width: 0;
  max-width: calc((100% - 5px) / 2);
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 0.625rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.code-badge {
  border: 1px solid rgb(23 20 18 / 0.24);
  background: #f4c84a;
  color: #171412;
  font-weight: 900;
}

.view-badge {
  background: rgb(18 15 13 / 0.78);
  color: #ffffff;
  font-weight: 700;
  text-align: right;
}

.poster-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  display: -webkit-box;
  padding: 10px;
  overflow: hidden;
  background: rgb(18 15 13 / 0.78);
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.poster-skeleton {
  border: 1px solid #d5ccc0;
  background: #e7e0d6;
}

.poster-skeleton::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 12px;
  left: 10px;
  height: 42px;
  border-radius: 4px;
  background: #d5ccc0;
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes skeleton-pulse {
  from { opacity: 0.52; }
  to { opacity: 1; }
}

.instruction-sheet[hidden] {
  display: none;
}

.instruction-sheet {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  align-items: end;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(23 20 18 / 0.62);
}

.sheet-panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 24px);
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  overflow: auto;
  border-radius: 8px 8px 0 0;
  background: #fffdf9;
  box-shadow: 0 -14px 38px rgb(23 20 18 / 0.22);
}

.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #d9d1c6;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.sheet-kicker {
  margin: 0 52px 8px 0;
  color: #b9232f;
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sheet-panel h2 {
  max-width: 22ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1.08;
}

.sheet-panel p:not(.sheet-kicker) {
  max-width: 52ch;
  margin: 14px 0 0;
  color: #5f554c;
  line-height: 1.55;
}

.copy-link-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border-color: #171412;
  background: #f4c84a;
}

.sheet-feedback {
  min-height: 22px;
  margin: 8px 0 0;
  color: #4b433c;
  font-size: 0.875rem;
  font-weight: 700;
}

.sheet-open {
  overflow: hidden;
}

.clipboard-proxy {
  position: fixed;
  top: -1000px;
  left: -1000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (min-width: 640px) {
  .site-header {
    padding-inline: 24px;
  }

  .page-shell {
    padding: 18px 24px 64px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .sheet-panel {
    width: min(520px, calc(100% - 32px));
    margin: 0 auto 20px;
    border-radius: 8px;
  }
}

@media (min-width: 920px) {
  .page-shell {
    padding-top: 28px;
  }

  .intro {
    max-width: 820px;
  }

  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .instruction-sheet {
    align-items: center;
  }
}

@media (min-width: 1240px) {
  .poster-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .site-header,
  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .action-button {
    padding: 0 9px;
    font-size: 0.78rem;
  }

  .action-button img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 479px) {
  .search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-button {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
  }

  .sort-button {
    min-width: 0;
    padding: 6px;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- cinema.css ---- */
:root { color-scheme: dark; background: #090909; color: #f5f5f5; font-family: Arial, Helvetica, sans-serif; }
html { background: #090909; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: #090909; color: #f5f5f5; }
* { letter-spacing: 0; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, .sheet-panel:focus-visible { outline-color: #ff4757; }
[hidden] { display: none !important; }
.site-header { position: relative; z-index: 3; display: flex; align-items: center; gap: 44px; width: min(100%, 1440px); min-height: 82px; padding: 0 48px; }
.wordmark { color: #f2283c; font-family: Impact, 'Arial Narrow', Arial, sans-serif; font-size: 32px; font-weight: 900; text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand-dot { color: #fff; }
.site-nav { display: flex; align-items: center; gap: 30px; height: 82px; }
.site-nav a { display: inline-flex; align-items: center; height: 100%; color: #a0a0a4; text-decoration: none; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.site-nav .nav-active { color: #fff; border-color: #ee2639; }
.site-nav a:hover { color: #fff; }
.top-actions { margin-left: auto; gap: 10px; flex-wrap: nowrap; }
.action-button, .copy-link-button { color: #eee; border: 1px solid #38383c; background: #151516; border-radius: 4px; font-size: 12px; font-weight: 600; }
.action-button { min-height: 38px; }
.action-button:hover, .copy-link-button:hover { background: #29292c; border-color: #68686d; }
.action-button img, .copy-link-button img, .sheet-close img, .search-field img, .icon-button img, .hero-browse img, .catalog-toolbar h2 img, .sort-button img { filter: invert(1); }
.action-feedback { position: absolute; top: 100%; right: 48px; color: #ddd; font-size: 12px; background: #171719; margin: 0; min-height: 0; }
.action-feedback:empty { display: none; }
.action-feedback:not(:empty) { padding: 8px 12px; }
.cinema-hero { position: relative; min-height: 490px; max-width: 1600px; margin: auto; isolation: isolate; overflow: hidden; background: #101012; }
.hero-art { position: absolute; inset: 0; z-index: -3; display: block; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.hero-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(90deg, #090909 0%, rgb(9 9 9 / .95) 22%, rgb(9 9 9 / .5) 51%, rgb(9 9 9 / .04) 78%), linear-gradient(0deg, #090909, transparent 38%); }
.hero-content { width: min(100%, 1440px); margin: 0 auto; padding: 75px 48px 90px; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #c6c6cb; font-size: 11px; font-weight: 700; letter-spacing: 0; margin: 0 0 18px; text-transform: uppercase; }
.red-line { width: 24px; height: 2px; background: #f2283c; }
h1 { max-width: 550px; font-family: Arial, Helvetica, sans-serif; font-size: 48px; font-weight: 800; line-height: 1.06; text-wrap: balance; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0 0; color: #dedee1; font-size: 12px; font-weight: 600; }
#hero-code { padding: 5px 8px; background: #e82639; border-radius: 3px; color: white; }
.meta-dot { width: 3px; height: 3px; background: #aaa; border-radius: 50%; }
.hero-tagline { color: #b9b9c1; font-size: 14px; margin: 17px 0 0; line-height: 1.5; }
.hero-browse { display: inline-flex; gap: 13px; align-items: center; margin-top: 27px; min-height: 42px; padding: 0 17px; border-radius: 4px; background: #e82639; color: white; font-size: 12px; font-weight: 700; text-decoration: none; pointer-events: auto; }
.hero-browse:hover { background: #ff354a; }
.hero-browse img { width: 16px; height: 16px; }
.hero-bottom { width: min(100%, 1440px); padding: 0 48px 18px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-caption { font-size: 10px; font-weight: 600; color: #828287; }
.hero-controls { display: flex; align-items: center; gap: 13px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #444448; border-radius: 50%; background: #121214; cursor: pointer; }
.icon-button:hover { background: #333337; }
.icon-button img { width: 15px; height: 15px; }
.hero-dots { display: flex; gap: 5px; }
.hero-dot { width: 24px; height: 32px; border: 0; padding: 0; cursor: pointer; background: transparent; display: grid; align-items: center; }
.hero-dot::after { content: ''; height: 3px; background: #5b5b60; border-radius: 2px; }
.hero-dot[aria-pressed='true']::after { background: #ee2639; }
.hero-counter { color: #aaaab1; font-size: 11px; font-variant-numeric: tabular-nums; }
.page-shell { width: min(100%, 1440px); padding: 0 48px 28px; }
.discovery-search { display: grid; grid-template-columns: 1fr minmax(0, 1.3fr); column-gap: 40px; padding: 28px 0 20px; border-bottom: 1px solid #29292c; scroll-margin-top: 20px; }
.search-heading .eyebrow { margin: 0 0 8px; color: #d1414e; font-size: 10px; }
.search-heading h2 { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.search-form { margin: 0; max-width: none; align-self: center; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search-field { height: 46px; border: 1px solid #36363b; background: #171719; border-radius: 4px; }
.search-field input { color: #fff; font-size: 14px; }
.search-field input::placeholder { color: #9b9ba3; }
.search-field:focus-within { border-color: #e82639; box-shadow: 0 0 0 1px #e82639; }
.search-field img { opacity: .65; }
.search-button, .recovery-button { min-height: 46px; border: 1px solid #e82639; background: #e82639; border-radius: 4px; font-size: 13px; }
.search-button { min-width: 88px; width: auto; padding: 0 18px; }
.search-button:hover, .recovery-button:hover { background: #ff354a; }
.field-error { grid-column: 2; margin: 4px 0 0; min-height: 0; color: #ff7b89; }
.field-error:empty { display: none; }
.search-history-panel { border-color: #414146; background: #1d1d21; box-shadow: 0 12px 28px #0008; border-radius: 4px; }
.search-history-header { border-color: #34343a; color: #c4c4cd; }
.search-history-clear { color: #ff7b89; }
.search-history-item { border-color: #34343a; color: #f6f6f8; }
.search-history-item:hover, .search-history-item:focus-visible, .search-history-clear:hover, .search-history-clear:focus-visible { background: #303036; }
.catalog { margin: 0; border-top: 0; padding-top: 25px; }
.catalog-toolbar { min-height: 48px; flex-direction: row; align-items: center; gap: 16px; }
.catalog-toolbar h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.3; }
.catalog-toolbar h2 img { width: 20px; height: 20px; opacity: .85; }
.section-dot { width: 5px; height: 5px; border-radius: 50%; background: #f2283c; }
.sort-control { display: flex; gap: 4px; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; border-radius: 0; }
.sort-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 82px; min-height: 38px; padding: 0 12px; color: #aaaab2; border: 1px solid transparent; border-radius: 4px; font-size: 12px; }
.sort-button img { width: 14px; height: 14px; opacity: .7; }
.sort-button.is-selected { background: #271318; color: #ff6070; border-color: #6e2631; }
.sort-button:hover { background: #232326; }
.catalog-status { color: #909098; font-size: 11px; margin: 5px 0 14px; min-height: 15px; }
.poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; margin-top: 0; }
.poster-card, .poster-skeleton { aspect-ratio: 2 / 3; background: #1c1c20; border-radius: 6px; }
.poster-card { border: 1px solid #29292e; box-shadow: none; transition: border-color 160ms ease, transform 160ms ease; }
.poster-card:hover { border-color: #b82d3b; transform: translateY(-3px); }
.poster-image { object-fit: cover; }
.poster-topline { top: 9px; left: 9px; right: 9px; }
.code-badge { background: #e82639; color: #fff; border: 1px solid #ff5666; font-weight: 700; }
.view-badge { background: #080809d9; color: #f3f3f5; font-weight: 500; }
.poster-title { height: auto; min-height: 70px; max-height: 115px; padding: 30px 13px 15px; background: linear-gradient(transparent, rgb(0 0 0 / .85) 45%, #080809); font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.25; font-weight: 700; -webkit-line-clamp: 3; }
.poster-skeleton { border-color: #29292f; }
.poster-skeleton::after { background: #303037; }
.more-button { background: #202024; border-color: #3c3c43; border-radius: 4px; font-size: 13px; }
.more-button:hover { background: #303036; border-color: #74747d; }
.catalog-more { padding: 35px 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #29292d; margin-top: 18px; padding: 30px 0 10px; }
.site-footer .wordmark { font-size: 23px; }
.site-footer > span { color: #888891; font-size: 11px; }
.site-footer > a:last-child { color: #a8a8b0; text-decoration: none; font-size: 11px; }
.sheet-backdrop { background: #000b; }
.sheet-panel { background: #19191e; border: 1px solid #37373e; box-shadow: 0 20px 80px #0009; }
.sheet-panel h2 { font-family: Arial, Helvetica, sans-serif; font-size: 24px; }
.sheet-panel p:not(.sheet-kicker) { color: #b9b9c2; }
.sheet-kicker { color: #ff6070; }
.sheet-close { background: #25252a; border-color: #44444c; }
.copy-link-button { background: #e82639; border-color: #e82639; }
.sheet-feedback { color: #ddd; }
@media (min-width: 1440px) { .cinema-hero { min-height: 510px; } }
@media (max-width: 1100px) {
  .site-header, .page-shell { padding-left: 30px; padding-right: 30px; }
  .hero-content { padding: 65px 30px 70px; }
  .hero-bottom { padding-left: 30px; padding-right: 30px; }
  .site-header { gap: 30px; }
  .site-nav { gap: 20px; }
  h1 { font-size: 42px; max-width: 470px; }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 14px; }
}
@media (max-width: 700px) {
  .site-header { min-height: 68px; gap: 16px; padding: 0 20px; }
  .wordmark { font-size: 27px; }
  .site-nav { display: none; }
  .action-button { min-height: 36px; padding: 0 10px; gap: 6px; font-size: 11px; }
  .action-button img { width: 15px; height: 15px; }
  .cinema-hero { min-height: 410px; }
  .hero-content { padding: 155px 20px 24px; }
  h1 { max-width: 420px; font-size: 32px; line-height: 1.08; }
  .hero-shade { background: linear-gradient(0deg, #090909 0%, rgb(9 9 9 / .84) 35%, rgb(9 9 9 / .15) 80%); }
  .hero-image { object-position: center 25%; }
  .hero-content .eyebrow { margin-bottom: 12px; font-size: 10px; }
  .hero-meta { margin-top: 13px; font-size: 11px; }
  .hero-tagline { display: none; }
  .hero-browse { margin-top: 16px; min-height: 38px; font-size: 11px; }
  .hero-bottom { padding: 0 20px 12px; }
  .hero-caption { font-size: 8px; }
  .hero-controls { gap: 7px; }
  .hero-counter { display: none; }
  .page-shell { padding: 0 20px 24px; }
  .discovery-search { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 22px 0; }
  .search-heading .eyebrow { display: none; }
  .search-heading h2 { font-size: 18px; }
  .field-error { grid-column: 1; margin: 0; }
  .catalog { padding-top: 18px; }
  .catalog-toolbar h2 { font-size: 17px; }
  .catalog-toolbar h2 img, .section-dot { display: none; }
  .sort-button { min-width: 58px; padding: 0 8px; font-size: 11px; min-height: 36px; }
  .sort-button img { display: none; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
  .poster-title { font-size: 12px; padding: 25px 9px 10px; min-height: 60px; }
  .site-footer { flex-wrap: wrap; gap: 20px; padding-top: 24px; }
  .site-footer > span { order: 3; width: 100%; }
}
@media (max-width: 479px) {
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-title { font-size: 13px; }
  .hero-content { padding-top: 135px; }
  .hero-bottom { gap: 8px; }
  .top-actions { gap: 6px; }
  #share-button { width: 36px; padding: 0; }
  #share-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 359px) {
  .site-header, .page-shell { padding-left: 14px; padding-right: 14px; }
  .hero-content { padding-left: 14px; padding-right: 14px; }
  .hero-bottom { padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 28px; }
  .catalog-toolbar { gap: 8px; }
  .catalog-toolbar h2 { font-size: 15px; }
  .hero-caption { max-width: 90px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .poster-card { transition: none; } }

/* ---- brand-moviebop-v1/brand.css ---- */
/* MovieBop identity — scoped to existing brand links. */
.wordmark.moviebop-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 27px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; }
.moviebop-brand .brand-icon { width: 42px; height: 42px; display: block; flex: 0 0 auto; }
.site-footer .wordmark.moviebop-brand { font-size: 21px; gap: 8px; }
.site-footer .moviebop-brand .brand-icon { width: 32px; height: 32px; }
@media (max-width: 700px) { .wordmark.moviebop-brand { font-size: 22px; gap: 7px; letter-spacing: -.8px; } .moviebop-brand .brand-icon { width: 34px; height: 34px; } }
@media (max-width: 359px) { .site-header { gap: 8px; } .site-header .wordmark.moviebop-brand { font-size: 19px; gap: 5px; } .site-header .moviebop-brand .brand-icon { width: 28px; height: 28px; } }

/* ---- moviebop-catalog-v1.css ---- */
/* MovieBop: search-first catalog. */
:root, html, body { background: #0d0e12; color: #f5f5f7; font-family: Arial, Helvetica, sans-serif; }
.site-header { max-width: 1120px; min-height: 80px; padding: 18px 32px; justify-content: space-between; border-bottom: 1px solid #23242c; }
.site-header .moviebop-brand { font-size: 24px; gap: 9px; }
.site-header .brand-icon { width: 36px; height: 36px; }
.header-label { color: #9698a5; font-size: 12px; }
.page-shell { max-width: 1120px; padding: 0 32px 24px; }
.discovery-search { display: block; max-width: 700px; margin: 0 auto; padding: 48px 0 36px; border: 0; text-align: center; }
.search-heading h1 { max-width: none; margin: 0; font-size: 36px; line-height: 1.15; letter-spacing: -1.2px; font-family: inherit; font-weight: 750; }
.search-heading p { color: #a5a7b3; font-size: 14px; line-height: 1.6; margin: 12px 0 24px; }
.search-form { margin: 0; max-width: none; gap: 10px; text-align: left; }
.search-input-wrap { min-width: 0; }
.search-field { height: 58px; border: 1px solid #42444f; background: #191b22; border-radius: 10px; padding: 0 17px; }
.search-field input { font-size: 16px; }
.search-field input::placeholder { color: #a3a5b1; }
.search-button { height: 58px; min-width: 110px; border-radius: 10px; font-size: 15px; background: #ee2946; border-color: #ee2946; }
.search-history-panel { text-align: left; z-index: 10; border-radius: 10px; }
.field-error { text-align: left; margin-top: 10px; font-size: 13px; }
.catalog { padding-top: 24px; margin-top: 0; border-top: 1px solid #292b34; }
.catalog-toolbar { min-height: 40px; }
.catalog-toolbar h2 { font-size: 19px; font-weight: 700; }
.sort-control { gap: 3px; }
.sort-button { min-height: 38px; border-radius: 7px; }
.sort-button.is-selected { background: #29202a; color: #ff8da0; border-color: #54313d; }
.catalog-status { font-size: 12px; color: #9194a2; margin: 10px 0 20px; }
.poster-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 28px 18px; }
.poster-card { display: flex; flex-direction: column; aspect-ratio: auto; border: 0; background: transparent; border-radius: 9px 9px 0 0; text-decoration: none; overflow: hidden; box-shadow: none; }
.poster-card:hover { transform: translateY(-2px); }
.poster-image { height: auto; aspect-ratio: 2 / 3; border-radius: 9px; object-fit: cover; background: #1d1f28; }
.poster-card:hover .poster-image { transform: none; }
.poster-topline { position: static; display: block; padding: 12px 0 0; }
.code-badge { display: inline-block; max-width: 100%; background: transparent; border: 0; padding: 0; color: #ff738b; font-size: 14px; font-weight: 750; line-height: 1.4; }
.code-badge::before { content: 'NO. '; font-size: 10px; font-weight: 600; color: #999dab; }
.view-badge { display: none; }
.poster-title { position: static; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 0; height: auto; max-height: none; overflow: hidden; padding: 5px 0 0; margin: 0; background: transparent; color: #f1f2f6; font: 600 14px/1.45 Arial, sans-serif; }
.poster-card::after { content: 'Open in app ↗'; color: #9397a6; font-size: 11px; margin-top: 7px; }
.poster-skeleton { aspect-ratio: 2 / 3; background: #1d1f28; border-radius: 9px; }
.catalog-more { padding: 30px 0; }
.more-button { border-radius: 8px; }
.site-footer { margin-top: 42px; padding: 22px 0 0; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer .moviebop-brand { font-size: 17px; }
.site-footer .moviebop-brand .brand-icon { width: 27px; height: 27px; }
.footer-note { color: #8d909f; font-size: 11px; margin: 0; }
.top-actions { margin-left: auto; gap: 8px; }
.action-button { border-color: #30333e; border-radius: 7px; font-size: 11px; min-height: 36px; background: transparent; }
.action-feedback { position: static; width: 100%; font-size: 12px; }
.action-feedback:empty { display: none; }
@media (max-width: 900px) { .poster-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 700px) {
 .site-header { min-height: 68px; padding: 14px 20px; }
 .site-header .moviebop-brand { font-size: 22px; }
 .header-label { font-size: 11px; }
 .page-shell { padding: 0 20px 24px; }
 .discovery-search { padding: 30px 0 28px; }
 .search-heading h1 { font-size: 28px; letter-spacing: -.8px; }
 .search-heading p { margin: 10px 0 20px; font-size: 13px; }
 .search-form { gap: 8px; }
 .search-field { height: 54px; padding: 0 12px; }
 .search-button { height: 54px; min-width: 86px; padding: 0 14px; font-size: 14px; }
 .catalog { padding-top: 20px; }
 .catalog-toolbar h2 { font-size: 18px; }
 .poster-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 14px; }
 .site-footer { gap: 15px; }
 .site-footer .top-actions { margin-left: auto; }
 .footer-note { order: 3; width: 100%; }
}
@media (max-width: 479px) { .poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .poster-title { font-size: 13px; } .catalog-status { margin-bottom: 17px; } }
@media (max-width: 359px) { .site-header { padding: 14px 16px; } .page-shell { padding: 0 16px 22px; } .header-label { display: none; } .search-heading h1 { font-size: 26px; } .search-field img { display: none; } .search-button { min-width: 76px; } .site-footer .top-actions { width: 100%; margin-left: 0; justify-content: flex-start; } }

/* ---- moviebop-search-sticky-v1.css ---- */
/* Compact sticky search; keep the heading outside the sticky surface. */
html { scroll-padding-top: 140px; }
.search-heading { max-width: 700px; margin: 0 auto; padding: 48px 0 0; text-align: center; }
.search-heading p { margin-bottom: 14px; }
.search-heading h1 { animation: search-glow 3s ease-in-out infinite; }
.search-heading strong { color: #ff9cad; font-weight: 700; }
.discovery-search {
  position: sticky; top: 0; z-index: 10;
  max-width: none; margin: 0 -16px 20px; padding: 12px 16px;
  padding-top: max(12px, env(safe-area-inset-top));
  border: 1px solid #ffffff12; border-radius: 0 0 16px 16px;
  background: rgba(13, 14, 18, .94);
  box-shadow: 0 12px 28px #00000020;
}
@supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
  .discovery-search { background: rgba(13, 14, 18, .76); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.discovery-search .search-form, .discovery-search .field-error { max-width: 700px; margin-left: auto; margin-right: auto; }
.discovery-search .field-error:empty { display: none; }
.search-field { animation: search-border 3s ease-in-out infinite; }
.search-field:focus-within { animation: none; border-color: #ff738b; box-shadow: 0 0 0 3px #ee294620; }
.page-shell:focus-within .search-heading h1 { animation: none; }
.search-history-list { max-height: min(240px, 40dvh); }
@keyframes search-glow {
  0%, 100% { color: #f5f5f7; text-shadow: 0 0 0 transparent; }
  50% { color: #ffb4c1; text-shadow: 0 0 24px #ee294638; }
}
@keyframes search-border {
  0%, 100% { border-color: #42444f; }
  50% { border-color: #bc5063; }
}
@media (max-width: 700px) {
  .search-heading { padding-top: 30px; }
  .search-heading p { margin-bottom: 10px; }
  .discovery-search { margin: 0 -12px 16px; padding-left: 12px; padding-right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-heading h1, .search-field { animation: none; }
}

/* ---- recommendation-heat-v1.css ---- */
.poster-card { position: relative; }

/* ---- watch-v1.css ---- */
/* Clear app destination and a single primary action. */
.poster-card::after { content: none; }
.watch-info { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.watch-brand { display: flex; align-items: center; gap: 7px; color: #f0f1f5; font-size: 13px; font-weight: 600; }
.watch-brand img { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; flex-shrink: 0; background: #22232d; }
.watch-install-note { color: #b7bbc9; font-size: 11px; line-height: 1.5; font-weight: 400; }
.poster-card { height: 100%; }
.drama-landing-mode .search-heading,.drama-landing-mode .discovery-search,.drama-landing-mode .catalog { display: none !important; }
.watch-landing { display: grid; grid-template-columns: minmax(180px,300px) minmax(0,1fr); gap: 44px; max-width: 920px; margin: 40px auto 0; align-items: start; }
.watch-hero-poster { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; box-shadow: 0 18px 55px #0005; }
.watch-hero-content { min-width: 0; }
.watch-eyebrow { font-size: 10px; letter-spacing: 2px; color: #a6aabc; margin: 0 0 22px; }
.watch-code { color: #ff8ba2; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.watch-landing h1 { font: 750 32px/1.17 Arial,sans-serif; letter-spacing: -.6px; margin: 8px 0 18px; color: #fafaff; }
.watch-landing .watch-brand { font-size: 17px; }.watch-landing .watch-brand img { width: 32px; height: 32px; border-radius: 8px; }
.watch-landing .watch-install-note { font-size: 13px; }
.watch-intro { font-size: 15px; line-height: 1.6; color: #dddfea; margin: 24px 0 16px; }
.watch-primary { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 18px; border-radius: 10px; background: #ee2946; color: #fff; text-decoration: none; font-size: 17px; font-weight: 750; text-align: center; box-shadow: 0 8px 28px #ee294625; }
.watch-primary:hover { background: #ff3f5b; }.watch-primary:focus-visible,.watch-browse:focus-visible { outline: 3px solid #ffc0cb; outline-offset: 4px; }
.watch-disclosure { color: #999eb0; font-size: 12px; line-height: 1.6; margin: 12px 0 20px; }
.watch-help { border-top: 1px solid #2a2d39; padding-top: 16px; color: #b4b9c9; font-size: 13px; line-height: 1.6; }
.watch-help summary { cursor: pointer; color: #e2e5ee; }.watch-help input { width: 100%; background: #1c1e28; color: white; padding: 10px; border: 1px solid #474d61; }
.watch-copy { background: #252836; color: #fff; border: 1px solid #454b60; border-radius: 8px; padding: 10px 14px; cursor: pointer; font: inherit; }
.watch-browse { display: inline-block; color: #b2b8cc; text-decoration: underline; font-size: 13px; padding: 18px 0 8px; }.landing-status { grid-column: 1/-1; color: #d6d9e3; padding: 30px 0; }
.drama-landing-mode .site-footer { padding-bottom: 20px; }
@media(max-width:700px){.watch-landing{grid-template-columns:112px minmax(0,1fr);gap:20px;margin-top:26px;}.watch-landing h1{font-size:24px;}.watch-eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:10px;}.watch-hero-content{display:contents;}.watch-eyebrow{display:none;}.watch-hero-poster{grid-column:1;grid-row:1/4;}.watch-code{grid-column:2;margin:0;align-self:end;}.watch-landing h1{grid-column:2;margin:0;align-self:center;}.watch-landing .watch-info{grid-column:2;margin:0;}.watch-landing .watch-brand{font-size:14px;}.watch-landing .watch-brand img{width:26px;height:26px;}.watch-landing .watch-install-note{font-size:11px;}.watch-intro,.watch-primary,.watch-disclosure,.watch-help,.watch-browse{grid-column:1/-1;margin:0;}.watch-intro{margin-top:4px;font-size:14px;}.watch-primary{width:100%;font-size:16px;}.watch-disclosure{margin-top:-10px;}.watch-browse{padding:0 0 8px;}}

/* ---- new (2026-12-04): card app line, best match, paste inside the search box, suggestions ---- */
/* Cards open the drama's page; a card shows only the cover, code, title and the app. */
.poster-card .card-app { margin-top: 7px; gap: 6px; color: #a3a7b6; font-size: 11px; font-weight: 600; }
.poster-card .card-app img { width: 18px; height: 18px; border-radius: 5px; }
.poster-card .card-app span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Exact code match: the drama and its app action, right under the search box. */
.best-match-slot { max-width: 700px; margin: 0 auto 24px; }
.best-match-slot[hidden], .drama-landing-mode .best-match-slot { display: none !important; }
.best-match { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 20px; padding: 16px; border: 1px solid #ee294666; border-radius: 14px; background: linear-gradient(160deg, #221a22, #15161c 70%); box-shadow: 0 14px 40px #00000059; }
.best-match-poster { display: block; }
.best-match-poster img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 9px; background: #1d1f28; }
.best-match-body { min-width: 0; display: flex; flex-direction: column; }
.best-match-eyebrow { margin: 0; color: #ff8ba2; font-size: 12px; font-weight: 700; letter-spacing: .4px; }
.best-match h3 { margin: 6px 0 0; color: #fafaff; font: 750 21px/1.25 Arial, sans-serif; letter-spacing: -.3px; }
.best-match .watch-info { margin-top: 10px; }
.best-match .watch-primary { margin-top: 16px; min-height: 52px; font-size: 16px; }
.best-match .watch-disclosure { margin: 10px 0 0; font-size: 11px; }

/* Paste sits inside the search box while it is empty. */
.search-paste { flex: 0 0 auto; height: 34px; padding: 0 12px; border: 1px solid #397d85; border-radius: 8px; background: #13282e; color: #91e7ed; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.search-paste:hover { background: #20414a; }
.search-paste:focus-visible { outline: 2px solid #91e7ed; outline-offset: 2px; }
.search-paste:disabled { opacity: .6; cursor: wait; }
.search-field:has(input:not(:placeholder-shown)) .search-paste { display: none; }
.paste-status { max-width: 700px; margin: 10px auto 0; color: #a8b0c0; font-size: 13px; line-height: 1.5; text-align: left; }
.paste-choices { display: flex; flex-wrap: wrap; gap: 8px; max-width: 700px; margin: 8px auto 0; }
.paste-status:empty, .paste-choices:empty { display: none; }
.search-paste-choice { min-height: 40px; padding: 8px 14px; border: 1px solid #397d85; border-radius: 10px; background: #13282e; color: #91e7ed; font: inherit; font-weight: 700; cursor: pointer; }
.search-paste-choice:hover { background: #20414a; }

/* Nothing found: the nearest codes, then "Show all dramas". */
.catalog-recovery:not(:empty) { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.search-suggestions p { margin: 0 0 8px; color: #d4d7e2; font-size: 14px; }
.search-suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.search-suggestion { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid #54313d; border-radius: 10px; background: #1f1820; color: #f1f2f6; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.search-suggestion strong { color: #ff8da0; font-size: 15px; }
.search-suggestion span { overflow: hidden; max-width: 240px; color: #c9ccd8; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion:hover { background: #2a1f2a; }
.search-suggestion:focus-visible { outline: 2px solid #ffc0cb; outline-offset: 3px; }

/* Searching: the sort bar steps aside; with only the exact match there is nothing to list under it. */
.catalog.is-search .catalog-toolbar { display: none; }
.catalog.is-exact-only { display: none; }

@media (max-width: 700px) {
  .best-match { grid-template-columns: 96px minmax(0, 1fr); gap: 10px 14px; padding: 12px; }
  .best-match-body { display: contents; }
  .best-match-poster { grid-column: 1; grid-row: 1 / 4; }
  .best-match-eyebrow, .best-match h3, .best-match .watch-info { grid-column: 2; margin: 0; }
  .best-match-eyebrow { align-self: end; font-size: 11px; }
  .best-match h3 { font-size: 17px; }
  .best-match .watch-primary, .best-match .watch-disclosure { grid-column: 1 / -1; margin: 0; }
  .best-match .watch-primary { margin-top: 4px; }
  .search-paste { height: 32px; padding: 0 10px; font-size: 12px; }
  .search-suggestion span { max-width: 160px; }
}
