/* Global white theme override */
body.cine-home {
  --cine-bg: #f8fafc;
  --cine-bg-mid: #eef2f7;
  --cine-surface: #ffffff;
  --cine-line: rgba(148, 163, 184, 0.24);
  --cine-text: #111827;
  --cine-muted: #64748b;
  --cine-accent: #2563eb;
  --cine-accent-dim: rgba(37, 99, 235, 0.10);
  --cine-focus: rgba(37, 99, 235, 0.16);
  color: var(--cine-text);
  font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.10), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #eef2f7 100%);
}

body.cine-home .cine-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--cine-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.cine-home .cine-brand__name,
body.cine-home .cine-nav__link,
body.cine-home .cine-section__title,
body.cine-home .cine-card__name,
body.cine-home .film-page h1,
body.cine-home .film-page h2,
body.cine-home .film-page h3 {
  color: #111827;
}

body.cine-home .cine-brand__sub,
body.cine-home .cine-nav__item.is-active .cine-nav__link,
body.cine-home .cine-nav__link:hover {
  color: var(--cine-accent);
}

body.cine-home .cine-brand__logo {
  background: linear-gradient(145deg, #2563eb 0%, #4f46e5 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 10px 24px rgba(37, 99, 235, 0.22);
}

body.cine-home .cine-brand__logo::after {
  border-color: transparent transparent transparent #ffffff;
}

body.cine-home .cine-search__field {
  background: #f8fafc;
  border-color: var(--cine-line);
  box-shadow: none;
}

body.cine-home .cine-search__field:focus-within {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 0 3px var(--cine-focus);
}

body.cine-home .cine-search input.search-box {
  color: #111827 !important;
}

body.cine-home .cine-search input.search-box::placeholder {
  color: #94a3b8;
}

body.cine-home .cine-card,
body.cine-home .cine-section,
body.cine-home .film-page__panel,
body.cine-home .film-info,
body.cine-home .film-play,
body.cine-home .film-meta,
body.cine-home .film-summary {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--cine-line);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

body.cine-home .cine-card__meta,
body.cine-home .cine-section__more,
body.cine-home .film-meta__k,
body.cine-home .film-page p,
body.cine-home .film-summary {
  color: #64748b;
}

body.cine-home .cine-card__poster {
  background: #e2e8f0;
}

body.cine-home .cine-card__badge {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
}

body.cine-home .tab-title button,
body.cine-home .cine-tabs button {
  color: #334155;
  background: #ffffff;
  border-color: var(--cine-line);
}

body.cine-home .tab-title button.active,
body.cine-home .cine-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: transparent;
}

/* FINAL override for detail page alignment. Keep below all theme rules. */
body.cine-home.film-page .cine-nav__item,
body.cine-home.film-page .cine-nav__link {
  position: relative;
  transform: none !important;
}

body.cine-home.film-page .cine-nav__item::before,
body.cine-home.film-page .cine-nav__item::after,
body.cine-home.film-page .cine-nav__link::before,
body.cine-home.film-page .cine-nav__link::after {
  display: none !important;
  content: none !important;
}

body.cine-home.film-page .cine-nav__list {
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 12px !important;
}

body.cine-home.film-page .cine-nav__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px !important;
  border-radius: 999px;
  color: #334155 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.cine-home.film-page .cine-nav__item.is-active .cine-nav__link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
}

body.cine-home.film-page .film-page__shell {
  padding-top: 24px !important;
}

body.cine-home.film-page .film-crumb {
  margin-bottom: 18px !important;
}

body.cine-home.film-page .film-card.film-hero {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

body.cine-home.film-page .film-hero__left {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
  padding: 24px !important;
  border-right: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-bottom: 0 !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

body.cine-home.film-page .film-hero__poster {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 18px !important;
  background: #e2e8f0 !important;
}

body.cine-home.film-page .film-hero__poster-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body.cine-home.film-page .film-hero__play {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 999px !important;
}

body.cine-home.film-page .film-hero__right {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding: 30px 34px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

body.cine-home.film-page .film-hero__title,
body.cine-home.film-page .film-hero__desc {
  text-align: center !important;
}

body.cine-home.film-page .film-hero__desc {
  max-width: 48rem !important;
  margin: 0 auto 20px !important;
}

body.cine-home.film-page .film-meta {
  max-width: 50rem !important;
  margin: 0 auto !important;
}

body.cine-home.film-page .film-meta__row {
  grid-template-columns: 5rem minmax(0, 1fr) !important;
}

body.cine-home.film-page .film-playlist {
  padding: 22px !important;
}

body.cine-home.film-page .film-playlist__grid {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 1100px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: 1fr !important;
  }

  body.cine-home.film-page .film-hero__left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-items: center !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  }

  body.cine-home.film-page .film-hero__poster {
    width: min(90vw, 360px) !important;
  }

  body.cine-home.film-page .film-hero__right {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 22px 18px 24px !important;
  }

  body.cine-home.film-page .film-hero__title,
  body.cine-home.film-page .film-hero__desc {
    text-align: left !important;
  }

  body.cine-home.film-page .film-playlist {
    padding: 14px !important;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Detail hero visual polish. */
body.cine-home.film-page .film-card.film-hero {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

body.cine-home.film-page .film-hero__right {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 34px 42px 36px !important;
}

body.cine-home.film-page .film-hero__eyebrow {
  justify-content: flex-start !important;
  margin-bottom: 14px !important;
}

body.cine-home.film-page .film-hero__eyebrow span {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}

body.cine-home.film-page .film-hero__eyebrow em {
  color: #64748b;
  font-style: normal;
  font-weight: 600;
}

body.cine-home.film-page .film-hero__title {
  max-width: 56rem;
  margin: 0 0 14px !important;
  color: #0f172a !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.06em;
  text-align: left !important;
}

body.cine-home.film-page .film-hero__desc {
  max-width: 54rem !important;
  margin: 0 0 22px !important;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 16px;
  color: #475569 !important;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  line-height: 1.8;
  text-align: left !important;
}

body.cine-home.film-page .film-meta {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 54rem !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.cine-home.film-page .film-meta__row {
  display: block !important;
  min-width: 0;
  padding: 13px 15px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

body.cine-home.film-page .film-meta__k {
  display: block;
  margin-bottom: 5px;
  color: #94a3b8 !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

body.cine-home.film-page .film-meta__v {
  display: block;
  color: #172033 !important;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-hero__right {
    padding: 26px 28px 30px !important;
  }

  body.cine-home.film-page .film-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-hero__right {
    padding: 22px 18px 24px !important;
  }

  body.cine-home.film-page .film-hero__title {
    font-size: 1.8rem !important;
  }
}

/* Cleaner footer for non-v11 templates. */
body.cine-home .cine-footer {
  margin-top: 28px;
  border-top: 0;
  padding: 0 0 max(18px, env(safe-area-inset-bottom, 0px));
  background: transparent;
}

body.cine-home .cine-footer .cine-shell {
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.72));
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

body.cine-home .cine-footer__copy,
body.cine-home .cine-footer__keys {
  color: #64748b;
  text-align: center;
}

body.cine-home .cine-footer__copy {
  font-weight: 800;
}

@media (max-width: 640px) {
  body.cine-home .cine-footer .cine-shell {
    width: min(100% - 16px, 1240px) !important;
    padding: 16px;
    border-radius: 20px;
  }
}

/* Cross-platform mobile responsive hardening. */
html,
body.cine-home {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body.cine-home {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.cine-shell,
.cine-main,
.cine-section,
.cine-grid,
.cine-card,
.cine-card__link,
.film-page__shell,
.film-card,
.film-hero,
.film-hero__left,
.film-hero__right,
.film-meta,
.film-playlist,
.film-playlist__grid,
.film-intro,
.film-rec,
.film-rec__grid {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.cine-home img,
body.cine-home video,
body.cine-home iframe,
body.cine-home svg {
  max-width: 100%;
}

body.cine-home input,
body.cine-home textarea,
body.cine-home select,
body.cine-home button,
body.cine-home .search-box {
  font-size: max(16px, 1em);
}

@media (max-width: 768px) {
  body.cine-home .cine-shell,
  body.cine-home.film-page .film-page__shell {
    width: min(100% - 16px, 1240px) !important;
  }

  body.cine-home .cine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 9px !important;
  }

  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.cine-home.film-page .film-meta {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 340px) {
  body.cine-home .cine-grid,
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile detail page spacing polish. */
body.cine-home.film-page .cine-main.film-page {
  padding-top: 16px !important;
}

body.cine-home.film-page .film-page__shell {
  padding-top: 0 !important;
}

body.cine-home.film-page .film-card.film-hero {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  body.cine-home.film-page .cine-main.film-page {
    padding-top: 10px !important;
  }

  body.cine-home.film-page .film-page__shell {
    width: min(100% - 20px, 1240px);
  }

  body.cine-home.film-page .film-card.film-hero {
    border-radius: 18px !important;
  }

  body.cine-home.film-page .film-hero__left {
    padding-top: 14px !important;
  }
}

/* FINAL content-page layout fix: must stay at file end. */
body.cine-home.film-page {
  color: #111827;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 44%, #eef2f7 100%) !important;
}

body.cine-home.film-page .cine-header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06) !important;
}

body.cine-home.film-page .cine-header__row {
  min-height: 54px;
  padding-top: 8px;
  padding-bottom: 8px;
}

body.cine-home.film-page .cine-nav {
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
}

body.cine-home.film-page .cine-nav__list {
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
}

body.cine-home.film-page .cine-nav__item {
  position: static !important;
}

body.cine-home.film-page .cine-nav__item::before,
body.cine-home.film-page .cine-nav__item::after,
body.cine-home.film-page .cine-nav__link::before,
body.cine-home.film-page .cine-nav__link::after {
  display: none !important;
  content: none !important;
}

body.cine-home.film-page .cine-nav__link {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.cine-home.film-page .cine-nav__item.is-active .cine-nav__link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
}

body.cine-home.film-page .cine-brand__name,
body.cine-home.film-page .cine-nav__link,
body.cine-home.film-page .film-hero__title,
body.cine-home.film-page .film-playlist__title,
body.cine-home.film-page .film-rec__hd {
  color: #111827;
}

body.cine-home.film-page .cine-brand__sub {
  color: #2563eb !important;
}

body.cine-home.film-page .cine-search__field {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.32) !important;
  box-shadow: none !important;
}

body.cine-home.film-page .film-page__shell {
  padding-top: 24px;
}

body.cine-home.film-page .film-crumb {
  margin-bottom: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

body.cine-home.film-page .film-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 52px rgba(15, 23, 42, 0.08) !important;
}

body.cine-home.film-page .film-card.film-hero {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: stretch;
}

body.cine-home.film-page .film-hero__backdrop {
  opacity: 0.26 !important;
  filter: blur(48px) saturate(1.05) !important;
}

body.cine-home.film-page .film-hero__backdrop::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.84), rgba(255,255,255,0.96)) !important;
}

body.cine-home.film-page .film-hero__left {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding: 24px !important;
  border-right: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: rgba(248, 250, 252, 0.72) !important;
}

body.cine-home.film-page .film-hero__poster {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 2 / 3;
  border-radius: 18px !important;
  background: #e2e8f0 !important;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
}

body.cine-home.film-page .film-hero__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.cine-home.film-page .film-hero__play {
  width: 100%;
  min-height: 46px;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  border-color: rgba(37, 99, 235, 0.24) !important;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24) !important;
}

body.cine-home.film-page .film-hero__right {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0;
  padding: 30px 34px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}

body.cine-home.film-page .film-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

body.cine-home.film-page .film-hero__eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-weight: 700;
}

body.cine-home.film-page .film-hero__eyebrow em {
  font-style: normal;
}

body.cine-home.film-page .film-hero__title {
  margin: 0 0 12px !important;
  font-size: clamp(1.55rem, 3vw, 2.35rem) !important;
  text-align: center;
}

body.cine-home.film-page .film-hero__desc {
  max-width: 48rem;
  margin: 0 auto 20px;
  color: #475569;
  line-height: 1.75;
  text-align: center;
}

body.cine-home.film-page .film-meta {
  max-width: 50rem;
  margin: 0 auto;
  border-top: 1px solid #eef2f7;
}

body.cine-home.film-page .film-meta__row {
  grid-template-columns: 5rem minmax(0, 1fr) !important;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f7 !important;
}

body.cine-home.film-page .film-meta__k {
  color: #94a3b8 !important;
  font-weight: 700;
}

body.cine-home.film-page .film-meta__v {
  color: #1f2937 !important;
}

body.cine-home.film-page .film-playlist {
  padding: 22px !important;
}

body.cine-home.film-page .film-playlist__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.cine-home.film-page .film-playlist__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

body.cine-home.film-page .film-playlist__lead {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

body.cine-home.film-page .film-playlist__first {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  font-size: 14px;
  font-weight: 700;
}

body.cine-home.film-page .film-playlist__line {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #fff;
}

body.cine-home.film-page .film-playlist__line + .film-playlist__line {
  margin-top: 14px;
}

body.cine-home.film-page .film-playlist__line-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.cine-home.film-page .film-playlist__line-h strong {
  color: #0f172a;
  font-size: 16px;
}

body.cine-home.film-page .film-playlist__line-h span {
  color: #64748b;
  font-size: 13px;
}

body.cine-home.film-page .film-playlist__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.cine-home.film-page .film-playlist__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

body.cine-home.film-page .film-playlist__grid a:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: #eff6ff;
}

body.cine-home.film-page .film-intro__bar {
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
}

body.cine-home.film-page .film-rec__poster {
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

@media (max-width: 1100px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  body.cine-home.film-page .film-playlist__head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.cine-home.film-page .film-playlist__first {
    width: 100%;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: 1fr !important;
  }

  body.cine-home.film-page .film-hero__left {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-items: center;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  }

  body.cine-home.film-page .film-hero__poster {
    width: min(90vw, 360px) !important;
  }

  body.cine-home.film-page .film-hero__play {
    max-width: min(90vw, 360px);
  }

  body.cine-home.film-page .film-hero__right {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 22px 18px 24px !important;
  }

  body.cine-home.film-page .film-hero__title,
  body.cine-home.film-page .film-hero__desc {
    text-align: left;
  }

  body.cine-home.film-page .film-hero__eyebrow {
    justify-content: flex-start;
  }

  body.cine-home.film-page .film-playlist {
    padding: 14px !important;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Content page refinement - final override */
body.cine-home.film-page .film-page__shell {
  padding-top: 22px;
}

body.cine-home.film-page .film-card {
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px rgba(15, 23, 42, 0.08);
}

body.cine-home.film-page .film-crumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

body.cine-home.film-page .film-hero {
  grid-template-columns: 270px minmax(0, 1fr);
}

body.cine-home.film-page .film-hero__left {
  padding: 26px;
  background: rgba(248, 250, 252, 0.72);
}

body.cine-home.film-page .film-hero__poster {
  border-radius: 18px;
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

body.cine-home.film-page .film-hero__play {
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.cine-home.film-page .film-hero__right {
  padding: 30px 34px 34px;
  background: rgba(255, 255, 255, 0.68);
}

body.cine-home.film-page .film-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

body.cine-home.film-page .film-hero__eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-weight: 700;
}

body.cine-home.film-page .film-hero__eyebrow em {
  font-style: normal;
}

body.cine-home.film-page .film-hero__title {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

body.cine-home.film-page .film-hero__desc {
  max-width: 48rem;
  margin: 0 auto 20px;
  color: #475569;
  line-height: 1.75;
  text-align: center;
}

body.cine-home.film-page .film-meta {
  border-top: 1px solid #eef2f7;
}

body.cine-home.film-page .film-meta__row {
  grid-template-columns: 5rem minmax(0, 1fr);
}

body.cine-home.film-page .film-meta__k {
  color: #94a3b8;
  font-weight: 700;
}

body.cine-home.film-page .film-meta__v {
  color: #1f2937;
}

body.cine-home.film-page .film-playlist {
  padding: 22px;
}

body.cine-home.film-page .film-playlist__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

body.cine-home.film-page .film-playlist__title {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body.cine-home.film-page .film-playlist__lead {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

body.cine-home.film-page .film-playlist__first {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

body.cine-home.film-page .film-playlist__line {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #fff;
}

body.cine-home.film-page .film-playlist__line + .film-playlist__line {
  margin-top: 14px;
}

body.cine-home.film-page .film-playlist__line-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body.cine-home.film-page .film-playlist__line-h strong {
  color: #0f172a;
  font-size: 16px;
}

body.cine-home.film-page .film-playlist__line-h span {
  color: #64748b;
  font-size: 13px;
}

body.cine-home.film-page .film-playlist__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.cine-home.film-page .film-playlist__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

body.cine-home.film-page .film-playlist__grid a:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: #eff6ff;
}

body.cine-home.film-page .film-intro__bar {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

body.cine-home.film-page .film-intro__body {
  max-width: none;
  color: #334155;
}

body.cine-home.film-page .film-rec {
  padding: 18px 0 20px;
}

body.cine-home.film-page .film-rec__grid {
  gap: 18px;
}

body.cine-home.film-page .film-rec__poster {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

body.cine-home.film-page .film-rec__tag {
  right: 8px;
  bottom: 8px;
  background: rgba(37, 99, 235, 0.92);
}

@media (max-width: 1100px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-hero {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  body.cine-home.film-page .film-playlist__head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.cine-home.film-page .film-playlist__first {
    width: 100%;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-hero {
    grid-template-columns: 1fr;
  }

  body.cine-home.film-page .film-hero__right {
    padding: 22px 18px 24px;
  }

  body.cine-home.film-page .film-hero__title,
  body.cine-home.film-page .film-hero__desc {
    text-align: left;
  }

  body.cine-home.film-page .film-hero__eyebrow {
    justify-content: flex-start;
  }

  body.cine-home.film-page .film-playlist {
    padding: 14px;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 480px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Content page refinement */
body.cine-home.film-page .film-page__shell {
  padding-top: 22px;
}

body.cine-home.film-page .film-card {
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px rgba(15, 23, 42, 0.08);
}

body.cine-home.film-page .film-crumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

body.cine-home.film-page .film-hero {
  grid-template-columns: 270px minmax(0, 1fr);
}

body.cine-home.film-page .film-hero__left {
  padding: 26px;
  background: rgba(248, 250, 252, 0.72);
}

body.cine-home.film-page .film-hero__poster {
  border-radius: 18px;
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

body.cine-home.film-page .film-hero__play {
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.cine-home.film-page .film-hero__play:hover {
  box-shadow:
    0 14px 30px rgba(37, 99, 235, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.cine-home.film-page .film-hero__right {
  padding: 30px 34px 34px;
  background: rgba(255, 255, 255, 0.68);
}

body.cine-home.film-page .film-hero__eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

body.cine-home.film-page .film-hero__eyebrow span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-weight: 700;
}

body.cine-home.film-page .film-hero__eyebrow em {
  font-style: normal;
}

body.cine-home.film-page .film-hero__title {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

body.cine-home.film-page .film-hero__desc {
  max-width: 48rem;
  margin: 0 auto 20px;
  color: #475569;
  line-height: 1.75;
  text-align: center;
}

body.cine-home.film-page .film-meta {
  border-top: 1px solid #eef2f7;
}

body.cine-home.film-page .film-meta__row {
  grid-template-columns: 5rem minmax(0, 1fr);
}

body.cine-home.film-page .film-meta__k {
  color: #94a3b8;
  font-weight: 700;
}

body.cine-home.film-page .film-meta__v {
  color: #1f2937;
}

.film-playlist {
  padding: 22px;
}

.film-playlist__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.film-playlist__title {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.film-playlist__lead {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.film-playlist__first {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.film-playlist__line {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: #fff;
}

.film-playlist__line + .film-playlist__line {
  margin-top: 14px;
}

.film-playlist__line-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.film-playlist__line-h strong {
  color: #0f172a;
  font-size: 16px;
}

.film-playlist__line-h span {
  color: #64748b;
  font-size: 13px;
}

.film-playlist__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.film-playlist__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.film-playlist__grid a:hover {
  color: #2563eb;
  border-color: #2563eb;
  background: #eff6ff;
}

body.cine-home.film-page .film-intro__bar {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

body.cine-home.film-page .film-intro__body {
  max-width: none;
  color: #334155;
}

body.cine-home.film-page .film-rec {
  padding: 18px 0 20px;
}

body.cine-home.film-page .film-rec__grid {
  gap: 18px;
}

body.cine-home.film-page .film-rec__poster {
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

body.cine-home.film-page .film-rec__tag {
  right: 8px;
  bottom: 8px;
  background: rgba(37, 99, 235, 0.92);
}

@media (max-width: 1100px) {
  .film-playlist__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-hero {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .film-playlist__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .film-playlist__first {
    width: 100%;
  }

  .film-playlist__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-hero {
    grid-template-columns: 1fr;
  }

  body.cine-home.film-page .film-hero__right {
    padding: 22px 18px 24px;
  }

  body.cine-home.film-page .film-hero__title,
  body.cine-home.film-page .film-hero__desc {
    text-align: left;
  }

  body.cine-home.film-page .film-hero__eyebrow {
    justify-content: flex-start;
  }

  .film-playlist {
    padding: 14px;
  }

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

@media (max-width: 480px) {
  .film-playlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/**
 * 首页 — 专业影视模板（深色影院风）
 * 仅作用于 body.cine-home，与旧页面样式隔离。
 */

html {
  -webkit-text-size-adjust: 100%;
}

body.cine-home {
  margin: 0 !important;
  overflow-x: hidden;
  max-width: 100%;
}

.cine-home,
.cine-home * {
  box-sizing: border-box;
}

.cine-home {
  --cine-gutter: max(12px, env(safe-area-inset-left, 0px));
  --cine-gutter-r: max(12px, env(safe-area-inset-right, 0px));
  --cine-bg: #06080f;
  --cine-bg-mid: #0b101c;
  --cine-surface: #121a2a;
  --cine-line: rgba(148, 163, 184, 0.12);
  --cine-text: #e8edf7;
  --cine-muted: #8b96ae;
  --cine-accent: #f0c75e;
  --cine-accent-dim: rgba(240, 199, 94, 0.14);
  --cine-focus: rgba(240, 199, 94, 0.35);

  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--cine-text);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(56, 189, 248, 0.09), transparent 52%),
    radial-gradient(ellipse 70% 50% at 100% 20%, rgba(240, 199, 94, 0.06), transparent 45%),
    linear-gradient(180deg, var(--cine-bg) 0%, var(--cine-bg-mid) 38%, #0a0f18 100%);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cine-home a {
  color: inherit;
  text-decoration: none;
}

.cine-shell {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  padding-left: var(--cine-gutter);
  padding-right: var(--cine-gutter-r);
  box-sizing: border-box;
}

/* ——— 顶栏 ——— */
.cine-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(6, 8, 15, 0.97) 0%, rgba(10, 14, 24, 0.94) 100%);
  border-bottom: 1px solid var(--cine-line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.cine-header__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}

.cine-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.cine-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, #f0c75e 0%, #c99a2e 55%, #8b6914 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  flex-shrink: 0;
}

.cine-brand__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #121a2a;
  transform: translateX(2px);
}

.cine-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cine-brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cine-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9em;
}

.cine-brand__sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--cine-accent);
  opacity: 0.85;
}

.cine-search {
  flex: 1 1 160px;
  min-width: 0;
}

.cine-search form {
  margin: 0;
}

.cine-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.cine-search__field:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(240, 199, 94, 0.35);
  box-shadow: 0 0 0 3px var(--cine-focus);
}

.cine-search__icon {
  color: var(--cine-muted);
  font-size: 14px;
}

.cine-search input.search-box {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cine-text) !important;
  font-size: 15px !important;
  padding: 10px 0 !important;
  margin: 0 !important;
  outline: none !important;
}

.cine-search input.search-box::placeholder {
  color: #6b7289;
}

/* ——— 主导航（横向，移动端可滑动） ——— */
.cine-nav {
  border-top: 1px solid var(--cine-line);
  padding-bottom: 10px;
}

.cine-nav__list {
  list-style: none;
  margin: 0;
  padding: 10px 0 2px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cine-nav__list::-webkit-scrollbar {
  display: none;
}

.cine-nav__item {
  flex: 0 0 auto;
}

.cine-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cine-muted);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.cine-nav__link:hover {
  color: var(--cine-text);
  background: rgba(255, 255, 255, 0.06);
}

.cine-nav__item.is-active .cine-nav__link {
  color: #0c0f16;
  background: linear-gradient(145deg, #f3d37a 0%, var(--cine-accent) 45%, #c99a2e 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Tab 面板铺满宽度，避免网格计算在非满宽容器里少一列 */
.cine-home .tab-box > .tab-bd {
  width: 100%;
  max-width: 100%;
}

/* ——— 主内容 ——— */
.cine-main {
  padding-top: 22px;
  padding-bottom: 48px;
  max-width: 100%;
  min-width: 0;
}

.cine-section {
  margin-bottom: 36px;
}

.cine-section__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cine-section__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cine-text);
  padding-left: 12px;
  border-left: 3px solid var(--cine-accent);
}

.cine-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cine-accent);
  white-space: nowrap;
  opacity: 0.95;
}

.cine-more:hover {
  text-decoration: underline;
}

.cine-more .fa-chevron-right {
  font-size: 11px;
  opacity: 0.85;
}

/* Tab（base.js：.tab-title > button） */
.cine-home .tab-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  max-width: 100%;
}

.cine-home .tab-title button {
  margin: 0 !important;
  padding: 8px 14px !important;
  height: auto !important;
  min-height: unset !important;
  line-height: 1.35 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--cine-muted) !important;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

.cine-home .tab-title button:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--cine-text) !important;
}

.cine-home .tab-title button.active {
  border-color: rgba(240, 199, 94, 0.45) !important;
  background: var(--cine-accent-dim) !important;
  color: var(--cine-accent) !important;
  box-shadow: 0 0 0 1px rgba(240, 199, 94, 0.15) inset !important;
}

@media (max-width: 640px) {
  .cine-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cine-tabs::-webkit-scrollbar {
    display: none;
  }

  .cine-section__head {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ——— 海报网格 ———
 * 手机端固定 3 列铺满整行；原先在 480px 起改为 4 列，在部分机型（视口 ≥480 或仅首屏 2 条）
 * 会出现「只显示两格 + 右侧一大块空」的观感，故提高升列断点。 */
.cine-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
}

@media (max-width: 639px) {
  .cine-home .cine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 640px) {
  .cine-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }
}

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

@media (min-width: 1100px) {
  .cine-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

.cine-card {
  min-width: 0;
}

.cine-card__link {
  display: block;
  color: inherit;
  transition: transform 0.2s ease;
}

.cine-card__link:hover {
  transform: translateY(-3px);
}

.cine-card__link:hover .cine-card__poster {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.cine-card__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cine-surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.cine-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cine-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0c0f16;
  background: linear-gradient(145deg, #ffe08a, var(--cine-accent));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.cine-card__info {
  padding-top: 10px;
}

.cine-card__name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--cine-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cine-card__meta {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--cine-muted);
}

/* ——— 页脚 ——— */
.cine-footer {
  border-top: 1px solid var(--cine-line);
  padding: 28px 0 max(24px, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.25);
}

.cine-footer__copy,
.cine-footer__keys {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--cine-muted);
  text-align: center;
}

.cine-footer__keys {
  margin-top: 8px;
  opacity: 0.85;
}

/* ——— 分类 / 列表页：分页（帝国 [!--show.listpage--] 默认多为 table） ——— */
.cine-section--list {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}

.cine-section__head--list .cine-section__title {
  font-size: 1.2rem;
}

.cine-list-intro {
  margin: 8px 0 0;
  max-width: 52rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cine-muted);
}

.cine-list-intro:empty {
  display: none;
}

.cine-list-stats {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--cine-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cine-list-stats strong {
  color: var(--cine-accent);
  font-weight: 700;
}

.cine-list-stats__gap {
  opacity: 0.45;
}

/* ——— 列表页：筛选条（与 ListInfo 参数 diqu / nianfen / yuyan / zimu / orderby / lei / bq） ——— */
.cine-filter {
  margin-bottom: 24px;
  padding: 2px 0 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.cine-filter__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 15px;
}

.cine-filter__row:last-child {
  margin-bottom: 0;
}

.cine-filter__lab {
  flex: 0 0 auto;
  width: 2.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(139, 150, 174, 0.72);
  padding-top: 8px;
}

.cine-filter__scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  max-width: 100%;
  overscroll-behavior-x: contain;
}

.cine-filter__scroll::-webkit-scrollbar {
  display: none;
}

.cine-filter__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(200, 208, 224, 0.88);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.cine-filter__chip:hover {
  color: var(--cine-text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

/* 选中：细金边 + 琥珀底 + 金字，避免整屏多块高亮渐变 */
.cine-filter__chip.is-active {
  color: var(--cine-accent);
  font-weight: 600;
  border-color: rgba(240, 199, 94, 0.38);
  background: rgba(240, 199, 94, 0.09);
  box-shadow:
    0 0 0 1px rgba(240, 199, 94, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.28);
}

/* ——— 排序：与筛选胶囊同一套选中逻辑，轨道轻量化 ——— */
.cine-filter__row--sort {
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.11);
}

.cine-filter__scroll--sort {
  gap: 6px;
  padding: 5px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cine-filter__chip--sort {
  flex: 1 1 0;
  min-width: 4.25rem;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(139, 150, 174, 0.88);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.cine-filter__chip--sort:hover {
  color: var(--cine-text);
  background: rgba(255, 255, 255, 0.05);
}

.cine-filter__chip--sort.is-active {
  color: var(--cine-accent);
  font-weight: 600;
  border-color: rgba(240, 199, 94, 0.35);
  background: rgba(240, 199, 94, 0.1);
  box-shadow:
    0 0 0 1px rgba(240, 199, 94, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.22);
}

.cine-filter__chip--sort.is-active:hover {
  color: var(--cine-accent);
  background: rgba(240, 199, 94, 0.12);
}

@media (max-width: 640px) {
  .cine-main {
    overflow-x: hidden;
  }

  /* 列表标题区竖排，长标题/简介不撑出屏宽 */
  .cine-section__head--list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cine-section__head--list .cine-section__title {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 手机端隐藏栏目 SEO 简介与「共 x 条 · 第 n 页」，分页仍在底部导航可见 */
  .cine-section__head--list .cine-list-intro,
  .cine-section__head--list .cine-list-stats {
    display: none;
  }

  .cine-filter__row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 13px;
  }

  .cine-filter__row--sort {
    margin-top: 2px;
    padding-top: 16px;
  }

  /* 手机端隐藏「类型 / 标签 / 地区…」左侧标题，横滑区占满宽；外层已有 aria-label="筛选与排序" */
  .cine-filter__lab {
    display: none;
  }

  /* 手机端仍为一行横滑，宽度锁在屏内，避免整页被撑开 */
  .cine-filter__scroll {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  /* 列表页：筛选条较长，明确划出「海报区」起点，避免误以为下面黑屏无内容 */
  .cine-section--list .cine-grid--list {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    width: 100%;
    position: relative;
    z-index: 1;
    clear: both;
  }

  /* 勿对筛选项使用 touch-action:pan-x 单值，会在整条上禁用纵向滑页，手机像「划不动」 */
  .cine-filter {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .cine-filter__chip {
    font-size: 12px;
    padding: 4px 11px;
    min-height: 30px;
  }

  /* 排序条保持略大字号与分段质感，仍可横滑 */
  .cine-filter__chip--sort {
    font-size: 13px;
    font-weight: 600;
    min-height: 36px;
    padding: 8px 12px;
    flex: 0 0 auto;
    min-width: 5.5rem;
  }

  .cine-filter__scroll--sort {
    flex-wrap: nowrap;
    gap: 3px;
    padding: 4px;
  }

  .cine-main {
    padding-bottom: 32px;
  }
}

.cine-pagination {
  margin-top: 22px;
  padding: 12px 8px 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
}

.cine-pagination::-webkit-scrollbar {
  display: none;
}

/* 单行横滑：内层无外壳，避免厚重卡片感 */
.cine-pagination__inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  max-width: none;
  padding: 2px 0 6px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.cine-pagination table {
  display: block;
  width: max-content;
  margin: 0;
  border-collapse: separate;
  border-spacing: 4px;
}

.cine-pagination tbody {
  display: block;
}

.cine-pagination tr {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 4px;
}

.cine-pagination td {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  vertical-align: middle;
}

/* 帝国分页常输出 ul/li，需关默认圆点 */
.cine-pagination ul,
.cine-pagination ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  width: max-content;
}

.cine-pagination li {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cine-pagination li::marker {
  content: none;
}

.cine-pagination .epages ul,
.cine-pagination .epages ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cine-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cine-muted);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.cine-pagination a:hover {
  color: var(--cine-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.cine-pagination strong,
.cine-pagination td.on a,
.cine-pagination td.on strong,
.cine-pagination .page-on,
.cine-pagination a.thisclass {
  color: var(--cine-accent);
  font-weight: 700;
  background: rgba(240, 199, 94, 0.1);
  border-color: rgba(240, 199, 94, 0.28);
  box-shadow: none;
}

.cine-pagination td strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--cine-accent);
  background: rgba(240, 199, 94, 0.1);
  border: 1px solid rgba(240, 199, 94, 0.28);
  box-shadow: none;
}

.cine-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  margin: 0 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(139, 150, 174, 0.72);
  white-space: nowrap;
  background: transparent;
  border: none;
}

@media (max-width: 640px) {
  /* 假定帝国顺序：首格、上格为首页/上一页；末两格为下一页/尾页（若模板不同可再改） */
  .cine-pagination tr td:first-child a,
  .cine-pagination ul > li:first-child a {
    position: relative;
    font-size: 0 !important;
    color: transparent !important;
    min-width: 40px;
    padding: 0;
  }

  .cine-pagination tr td:first-child a::after,
  .cine-pagination ul > li:first-child a::after {
    content: "\00ab";
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--cine-muted);
  }

  .cine-pagination tr td:nth-child(2) a,
  .cine-pagination ul > li:nth-child(2) a {
    position: relative;
    font-size: 0 !important;
    color: transparent !important;
    min-width: 40px;
    padding: 0;
  }

  .cine-pagination tr td:nth-child(2) a::after,
  .cine-pagination ul > li:nth-child(2) a::after {
    content: "\2039";
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: var(--cine-muted);
  }

  /* 仅 table 模板替换「下一页 / 尾页」：ul 列出多页时最后一格常为数字页，勿用 last-child */
  .cine-pagination tr td:nth-last-child(2) a {
    position: relative;
    font-size: 0 !important;
    color: transparent !important;
    min-width: 40px;
    padding: 0;
  }

  .cine-pagination tr td:nth-last-child(2) a::after {
    content: "\203a";
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: var(--cine-muted);
  }

  .cine-pagination tr td:last-child a {
    position: relative;
    font-size: 0 !important;
    color: transparent !important;
    min-width: 40px;
    padding: 0;
  }

  .cine-pagination tr td:last-child a::after {
    content: "\00bb";
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--cine-muted);
  }

  .cine-pagination tr td:first-child a:hover::after,
  .cine-pagination tr td:nth-child(2) a:hover::after,
  .cine-pagination tr td:nth-last-child(2) a:hover::after,
  .cine-pagination tr td:last-child a:hover::after,
  .cine-pagination ul > li:first-child a:hover::after,
  .cine-pagination ul > li:nth-child(2) a:hover::after {
    color: var(--cine-accent);
  }

  .cine-pagination a.thisclass,
  .cine-pagination td.on a {
    font-size: 13px !important;
    color: var(--cine-accent) !important;
    padding: 0 8px;
  }

  .cine-pagination a.thisclass::after,
  .cine-pagination td.on a::after {
    content: none !important;
  }

  .cine-pagination span {
    font-size: 10px;
    padding: 0 8px;
    min-height: 32px;
  }
}

/* ——— 内容页（浅色 · 分区布局）：雅致白卡 + 细腻阴影 ——— */
body.cine-home.film-page {
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(59, 130, 246, 0.06), transparent 52%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 42%, #e8edf3 100%);
  color: #0f172a;
}

.film-page.cine-main {
  padding-top: 22px;
  padding-bottom: 48px;
}

/* 顶栏：浅色门户风，与正文统一 */
.film-page .cine-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.film-page .cine-nav {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.film-page .cine-brand__name {
  color: #0f172a;
}

.film-page .cine-brand__sub {
  color: #ea580c;
  opacity: 1;
}

.film-page .cine-nav__link {
  color: #475569;
}

.film-page .cine-nav__item.is-active .cine-nav__link {
  color: #0f172a;
}

.film-page .cine-search__field {
  background: rgba(241, 245, 249, 0.95);
  border-color: rgba(148, 163, 184, 0.35);
}

.film-page .cine-search input.search-box {
  color: #0f172a !important;
}

.film-page .cine-search .cine-search__icon {
  color: #94a3b8;
}

.film-page__footer.cine-footer {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.film-page__footer .cine-footer__copy,
.film-page__footer .cine-footer__keys {
  color: #64748b;
}

.film-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px rgba(15, 23, 42, 0.07);
  margin-bottom: 18px;
  overflow: hidden;
}

.film-crumb {
  margin: 0 0 16px;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
}

.film-crumb table,
.film-crumb tbody,
.film-crumb tr {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

.film-crumb tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.film-crumb td {
  display: inline;
  padding: 0;
  border: none;
}

.film-crumb a {
  color: #475569;
  text-decoration: none;
  transition: color 0.18s ease;
}

.film-crumb a:hover {
  color: #ea580c;
}

.film-card.film-hero {
  position: relative;
  overflow: hidden;
}

.film-hero {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}

/* 封面放大虚化铺底，叠浅色罩避免喧宾夺主 */
.film-hero__backdrop {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  margin: -12%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(42px) saturate(1.15);
  transform: scale(1.12);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.film-hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(248, 250, 252, 0.88) 38%, rgba(255, 255, 255, 0.93) 100%);
}

.film-hero__left {
  display: flex;
  flex-direction: column;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  padding: 24px;
  gap: 16px;
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(165deg, rgba(248, 250, 252, 0.72) 0%, rgba(255, 255, 255, 0.45) 100%);
}

.film-hero__poster {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 100%);
  aspect-ratio: 2 / 3;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.film-hero__poster-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.film-hero__poster-link:focus-visible {
  border-radius: 12px;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.45),
    0 10px 28px rgba(15, 23, 42, 0.1);
}

.film-hero__poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-hero__play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(175deg, #fb923c 0%, #f97316 42%, #ea580c 100%);
  border: 1px solid rgba(234, 88, 12, 0.35);
  box-shadow:
    0 4px 14px rgba(234, 88, 12, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.film-hero__play:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 10px 26px rgba(234, 88, 12, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.film-hero__play i {
  font-size: 13px;
  opacity: 0.95;
}

.film-hero__right {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 1;
  padding: 28px 32px 32px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.55);
}

.film-hero__title {
  margin: 0 0 22px;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-align: center;
  color: #0f172a;
}

.film-meta {
  margin: 0;
}

.film-meta__row {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  font-size: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.film-meta__row:last-of-type {
  border-bottom: none;
}

.film-meta__k {
  margin: 0;
  color: #94a3b8;
  font-weight: 500;
  font-size: 13px;
}

.film-meta__v {
  margin: 0;
  color: #1e293b;
  line-height: 1.6;
}

.film-intro {
  padding: 0;
}

.film-intro__bar {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 48%, #2563eb 100%);
  border-bottom: 1px solid rgba(30, 64, 175, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.film-intro__body {
  padding: 26px 26px 30px;
  font-size: 15px;
  line-height: 1.88;
  color: #334155;
  word-break: break-word;
  max-width: 52rem;
}

.film-intro__body > *:first-child {
  margin-top: 0;
}

.film-intro__body p {
  margin: 0 0 1.05em;
}

.film-intro__body img,
.film-intro__body video,
.film-intro__body iframe {
  max-width: 100%;
  border-radius: 10px;
}

.film-intro__body iframe {
  border: none;
}

.film-intro__body a {
  color: #2563eb;
  text-underline-offset: 3px;
}

.film-intro__body a:hover {
  color: #1d4ed8;
}

.film-rec {
  margin-top: 8px;
  padding: 8px 0 16px;
}

.film-rec__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}

.film-rec__hd {
  margin: 0;
  flex-shrink: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.film-rec__rule {
  flex: 1;
  min-width: 0;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
}

.film-rec__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 15px;
}

.film-rec__item {
  min-width: 0;
}

.film-rec__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.film-rec__link:hover {
  transform: translateY(-2px);
}

.film-rec__link:hover .film-rec__poster {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.film-rec__poster {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #f1f5f9;
  margin-bottom: 8px;
  transition: box-shadow 0.22s ease;
}

.film-rec__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-rec__tag {
  position: absolute;
  right: 5px;
  bottom: 5px;
  z-index: 1;
  max-width: calc(100% - 10px);
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-rec__title {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.film-rec__meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .film-rec__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .film-hero {
    grid-template-columns: 208px 1fr;
  }

  .film-rec__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .film-hero {
    grid-template-columns: 1fr;
  }

  .film-hero__left {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    border-right: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    padding: 22px 16px 20px;
  }

  .film-hero__poster {
    width: min(90vw, 380px);
    max-width: 100%;
  }

  .film-hero__play {
    width: 100%;
    max-width: min(90vw, 380px);
    min-width: 0;
    align-self: center;
  }

  .film-hero__right {
    grid-column: 1;
    grid-row: 2;
    padding: 22px 18px 24px;
  }

  .film-meta__row {
    grid-template-columns: 5rem 1fr;
    font-size: 13px;
  }

  .film-intro__body {
    padding: 20px 18px 24px;
    max-width: none;
  }

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

@media (max-width: 480px) {
  .film-hero__poster {
    width: min(92vw, 360px);
  }

  .film-hero__play {
    max-width: min(92vw, 360px);
  }

  .film-rec__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Global white theme override - keep this at the end so it wins. */
body.cine-home {
  --cine-bg: #f8fafc;
  --cine-bg-mid: #eef2f7;
  --cine-surface: #ffffff;
  --cine-line: rgba(148, 163, 184, 0.24);
  --cine-text: #111827;
  --cine-muted: #64748b;
  --cine-accent: #2563eb;
  --cine-accent-dim: rgba(37, 99, 235, 0.10);
  --cine-focus: rgba(37, 99, 235, 0.16);
  color: var(--cine-text);
  background:
    radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.10), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(249, 115, 22, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #eef2f7 100%);
}

body.cine-home .cine-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--cine-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

body.cine-home .cine-brand__name,
body.cine-home .cine-nav__link,
body.cine-home .cine-section__title,
body.cine-home .cine-card__name,
body.cine-home .film-page h1,
body.cine-home .film-page h2,
body.cine-home .film-page h3 {
  color: #111827;
}

body.cine-home .cine-brand__sub,
body.cine-home .cine-nav__item.is-active .cine-nav__link,
body.cine-home .cine-nav__link:hover {
  color: var(--cine-accent);
}

body.cine-home .cine-brand__logo {
  background: linear-gradient(145deg, #2563eb 0%, #4f46e5 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 10px 24px rgba(37, 99, 235, 0.22);
}

body.cine-home .cine-brand__logo::after {
  border-color: transparent transparent transparent #ffffff;
}

body.cine-home .cine-search__field {
  background: #f8fafc;
  border-color: var(--cine-line);
  box-shadow: none;
}

body.cine-home .cine-search__field:focus-within {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 0 0 3px var(--cine-focus);
}

body.cine-home .cine-search input.search-box {
  color: #111827 !important;
}

body.cine-home .cine-search input.search-box::placeholder {
  color: #94a3b8;
}

body.cine-home .cine-card,
body.cine-home .cine-section,
body.cine-home .film-page__panel,
body.cine-home .film-info,
body.cine-home .film-play,
body.cine-home .film-meta,
body.cine-home .film-summary {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--cine-line);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

body.cine-home .cine-card__meta,
body.cine-home .cine-section__more,
body.cine-home .film-meta__k,
body.cine-home .film-page p,
body.cine-home .film-summary {
  color: #64748b;
}

body.cine-home .cine-card__poster {
  background: #e2e8f0;
}

body.cine-home .cine-card__badge {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
}

body.cine-home .tab-title button,
body.cine-home .cine-tabs button {
  color: #334155;
  background: #ffffff;
  border-color: var(--cine-line);
}

body.cine-home .tab-title button.active,
body.cine-home .cine-tabs button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border-color: transparent;
}
 
/* Detail page final alignment override. */
body.cine-home.film-page .cine-nav__item::before,
body.cine-home.film-page .cine-nav__item::after,
body.cine-home.film-page .cine-nav__link::before,
body.cine-home.film-page .cine-nav__link::after {
  display: none !important;
  content: none !important;
}

body.cine-home.film-page .cine-nav__list {
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 0 12px !important;
}

body.cine-home.film-page .cine-nav__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px !important;
  border-radius: 999px;
  color: #334155 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.cine-home.film-page .cine-nav__item.is-active .cine-nav__link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18) !important;
}

body.cine-home.film-page .film-card.film-hero {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

body.cine-home.film-page .film-hero__left {
  grid-column: 1 !important;
  grid-row: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 16px !important;
  padding: 24px !important;
  border-right: 1px solid rgba(226, 232, 240, 0.95) !important;
  border-bottom: 0 !important;
}

body.cine-home.film-page .film-hero__poster {
  width: min(100%, 220px) !important;
  max-width: none !important;
  aspect-ratio: 2 / 3 !important;
  border-radius: 18px !important;
  align-self: center;
}

body.cine-home.film-page .film-hero__play {
  width: min(100%, 220px) !important;
  align-self: center;
}

body.cine-home.film-page .film-hero__right {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding: 30px 34px !important;
}

body.cine-home.film-page .film-hero__title,
body.cine-home.film-page .film-hero__desc {
  text-align: center !important;
}

body.cine-home.film-page .film-meta {
  max-width: 50rem !important;
  margin: 0 auto !important;
}

body.cine-home.film-page .film-playlist__grid {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

@media (max-width: 1100px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-card.film-hero {
    grid-template-columns: 1fr !important;
  }

  body.cine-home.film-page .film-hero__left,
  body.cine-home.film-page .film-hero__right {
    grid-column: 1 !important;
  }

  body.cine-home.film-page .film-hero__left {
    grid-row: 1 !important;
    align-items: center !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
  }

  body.cine-home.film-page .film-hero__right {
    grid-row: 2 !important;
    padding: 22px 18px 24px !important;
  }

  body.cine-home.film-page .film-hero__poster {
    width: min(58vw, 220px) !important;
  }

  body.cine-home.film-page .film-hero__play {
    width: min(58vw, 220px) !important;
  }

  body.cine-home.film-page .film-hero__title,
  body.cine-home.film-page .film-hero__desc {
    text-align: left !important;
  }

  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  body.cine-home.film-page .film-playlist__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Detail hero visual polish. */
body.cine-home.film-page .film-card.film-hero {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

body.cine-home.film-page .film-hero__right {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 34px 42px 36px !important;
}

body.cine-home.film-page .film-hero__eyebrow {
  justify-content: flex-start !important;
  margin-bottom: 14px !important;
}

body.cine-home.film-page .film-hero__eyebrow span {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.18);
}

body.cine-home.film-page .film-hero__eyebrow em {
  color: #64748b;
  font-style: normal;
  font-weight: 600;
}

body.cine-home.film-page .film-hero__title {
  max-width: 56rem;
  margin: 0 0 14px !important;
  color: #0f172a !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.06em;
  text-align: left !important;
}

body.cine-home.film-page .film-hero__desc {
  max-width: 54rem !important;
  margin: 0 0 22px !important;
  padding: 14px 16px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 16px;
  color: #475569 !important;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  line-height: 1.8;
  text-align: left !important;
}

body.cine-home.film-page .film-meta {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 54rem !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.cine-home.film-page .film-meta__row {
  display: block !important;
  min-width: 0;
  padding: 13px 15px !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.035);
}

body.cine-home.film-page .film-meta__k {
  display: block;
  margin-bottom: 5px;
  color: #94a3b8 !important;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

body.cine-home.film-page .film-meta__v {
  display: block;
  color: #172033 !important;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.cine-home.film-page .film-hero__right {
    padding: 26px 28px 30px !important;
  }

  body.cine-home.film-page .film-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body.cine-home.film-page .film-hero__right {
    padding: 22px 18px 24px !important;
  }

  body.cine-home.film-page .film-hero__title {
    font-size: 1.8rem !important;
  }
}
