/* 站点补丁：移动端自适应 / 缺失样式兜底 */

/* ══════════ 头部重设计 (nhd) ══════════ */
.nhd-header {
  position: sticky;
  top: 0;
  z-index: 60;
  --nhd-accent: #ef4444;
  --nhd-accent-2: #be123c;
  --nhd-gold: #f59e0b;
  --nhd-line: rgba(255, 255, 255, 0.08);
}

.nhd-ribbon {
  background: linear-gradient(90deg, #7f1d1d, #be123c 50%, #7f1d1d);
  border-bottom: 1px solid rgba(225, 29, 72, 0.35);
}

.nhd-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.38rem 1rem;
}

.nhd-ribbon__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nhd-gold);
  box-shadow: 0 0 8px var(--nhd-gold);
  animation: nhd-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.nhd-ribbon__text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(241, 245, 249, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes nhd-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

.nhd-bar {
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--nhd-line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nhd-header.is-scrolled .nhd-bar {
  background: rgba(8, 9, 12, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nhd-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
  min-height: 4.25rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
}

/* 品牌 */
.nhd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  order: 1;
}

.nhd-brand__mark {
  display: inline-flex;
  filter: drop-shadow(0 4px 10px rgba(225, 29, 72, 0.4));
  transition: transform 0.25s ease;
}

.nhd-brand:hover .nhd-brand__mark {
  transform: translateY(-1px) scale(1.04);
}

.nhd-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nhd-brand__name {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: 1.28rem;
  font-weight: 800;
  background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 40%, #fb7185 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nhd-brand__tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #94a3b8;
  text-transform: uppercase;
}

/* 主导航 */
.nhd-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  order: 2;
  margin-left: 0.5rem;
}

@media (min-width: 992px) {
  .nhd-nav {
    display: flex;
  }
}

.nhd-nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 0.55rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nhd-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nhd-nav__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(190, 18, 60, 0.85));
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

/* 搜索 */
.nhd-search {
  order: 3;
  display: flex;
  align-items: center;
  flex: 1 1 12rem;
  max-width: 24rem;
  min-width: 0;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nhd-line);
  border-radius: 0.7rem;
  padding: 0.15rem 0.15rem 0.15rem 0.7rem;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nhd-search:focus-within {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.nhd-search__icon {
  display: inline-flex;
  color: #94a3b8;
  flex-shrink: 0;
}

.nhd-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #f1f5f9;
  font-size: 0.9rem;
  padding: 0.5rem 0.6rem;
}

.nhd-search__input::placeholder {
  color: #64748b;
}

.nhd-search__btn {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1.05rem;
  border-radius: 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--nhd-accent), var(--nhd-accent-2));
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  transition: filter 0.18s ease;
}

.nhd-search__btn:hover {
  filter: brightness(1.08);
}

/* 操作按钮 */
.nhd-actions {
  order: 4;
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .nhd-actions {
    display: flex;
  }
}

.nhd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0 0.95rem;
  border-radius: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.nhd-btn--block {
  width: 100%;
}

.nhd-btn--vip {
  color: #3b2606;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3);
  letter-spacing: 0.03em;
}

.nhd-btn--vip:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nhd-btn--ghost {
  color: #cbd5e1;
  background: transparent;
  border: 1px solid var(--nhd-line);
}

.nhd-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.nhd-btn--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--nhd-accent), var(--nhd-accent-2));
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

.nhd-btn--solid:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* 汉堡按钮 */
.nhd-burger {
  order: 5;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.65rem;
  margin-left: auto;
  border: 1px solid var(--nhd-line);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

@media (min-width: 992px) {
  .nhd-burger {
    display: none;
  }
}

.nhd-burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #e2e8f0;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nhd-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nhd-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.nhd-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 移动端搜索排布：在窄屏时占满一行 */
@media (max-width: 991px) {
  .nhd-search {
    order: 10;
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 991px) {
  .nhd-bar__inner {
    min-height: 3.75rem;
  }
}

/* 抽屉 */
.nhd-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  visibility: hidden;
}

.nhd-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.nhd-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 7, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.nhd-drawer.is-open .nhd-drawer__backdrop {
  opacity: 1;
}

.nhd-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(20rem, 86vw);
  padding: 1.15rem 1.05rem calc(1.15rem + env(safe-area-inset-bottom, 0px));
  background: #0d0f16;
  border-left: 1px solid var(--nhd-line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-sizing: border-box;
}

.nhd-drawer.is-open .nhd-drawer__panel {
  transform: translateX(0);
}

.nhd-drawer__search {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--nhd-line);
  border-radius: 0.7rem;
  padding: 0.2rem 0.7rem;
}

.nhd-drawer__title {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
}

.nhd-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nhd-drawer__link {
  padding: 0.72rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.nhd-drawer__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.nhd-drawer__link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.85), rgba(190, 18, 60, 0.8));
}

.nhd-drawer__auth {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--nhd-line);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.nhd-drawer__auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

@media (prefers-reduced-motion: reduce) {
  .nhd-ribbon__dot,
  .nhd-brand__mark,
  .nhd-drawer__panel,
  .nhd-burger span {
    animation: none !important;
    transition: none !important;
  }
}

/* 页脚对齐目标站：堆叠布局 + 行内导航链接 */
body.body-tpl-noir .noir-footer.wythy-footer .wythy-footer__lower {
  background: var(--noir-bg, #0a0b0f);
  border-top: 1px solid var(--noir-line, #232838);
  margin-top: 0;
  padding-top: 1.75rem;
}

body.body-tpl-noir .noir-footer .wythy-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 1.25rem;
}

body.body-tpl-noir .noir-footer .wythy-footer__sitename {
  color: var(--noir-text, #e2e8f0);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
}

body.body-tpl-noir .noir-footer .wythy-footer__tagline {
  color: var(--noir-muted, #94a3b8);
}

body.body-tpl-noir .noir-footer .wythy-footer__col-title {
  color: #6b6fd4;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

body.body-tpl-noir .noir-footer .wythy-footer__links--inline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

body.body-tpl-noir .noir-footer .wythy-footer__links a {
  color: #5c6370 !important;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

body.body-tpl-noir .noir-footer .wythy-footer__links a:hover {
  color: var(--noir-accent-hover, #f43f5e) !important;
}

body.body-tpl-noir .noir-footer .wythy-footer__disclaimer,
body.body-tpl-noir .noir-footer .wythy-footer__copy {
  color: #5c6370;
  font-size: 0.8125rem;
  line-height: 1.7;
}

body.body-tpl-noir .noir-footer .wythy-footer__bar {
  border-top-color: var(--noir-line, #232838);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

/* ABABSEO 飞机标记 —— 无胶囊、无链接、会飞 */
.ababseo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  cursor: default;
}

.ababseo-mark__plane {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f59e0b;
  animation: ababseo-fly 3.6s ease-in-out infinite;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.45));
}

.ababseo-mark__plane svg {
  transform: rotate(-8deg);
}

.ababseo-mark__trail {
  position: absolute;
  right: 100%;
  top: 50%;
  width: 22px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.75));
  border-radius: 2px;
  opacity: 0;
  animation: ababseo-trail 3.6s ease-in-out infinite;
}

.ababseo-mark__text {
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  background: linear-gradient(90deg, #f59e0b, #ef4444 55%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ababseo-glow 3.6s ease-in-out infinite;
}

@keyframes ababseo-fly {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(6px, -6px) rotate(4deg);
  }
  50% {
    transform: translate(12px, 0) rotate(0deg);
  }
  75% {
    transform: translate(6px, -5px) rotate(-3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes ababseo-trail {
  0%,
  100% {
    opacity: 0;
    width: 10px;
  }
  50% {
    opacity: 1;
    width: 26px;
  }
}

@keyframes ababseo-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ababseo-mark__plane,
  .ababseo-mark__trail,
  .ababseo-mark__text {
    animation: none;
  }
  .ababseo-mark__trail {
    opacity: 0.6;
  }
}

/* 「发现好片」三栏白卡片 —— 对齐目标站截图 */
.noir-discover-strip,
.wythy-footer__strip.noir-discover-strip {
  margin: 2rem 0 1.5rem;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__strip-title {
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 1.1rem;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.85rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  padding: 1.2rem 1.25rem 1.3rem;
  min-height: 100%;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card--tips {
  background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%) !important;
  border-color: #fde68a !important;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-h {
  color: #ea580c !important;
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-lead {
  color: #6b7280 !important;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-link {
  color: #1f2937 !important;
  font-weight: 600;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-link:hover {
  color: #ea580c !important;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-meta {
  color: #9ca3af !important;
  font-size: 0.75rem;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__tip-list {
  color: #4b5563 !important;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  flex: 1;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__tip-list strong {
  color: #374151 !important;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-actions {
  display: flex;
  margin-top: auto;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-cta--block {
  display: flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 0.65rem 1rem !important;
  border-radius: 0.55rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  text-decoration: none;
}

body.body-tpl-noir .noir-discover-strip .wythy-footer__text-card-cta--block:hover {
  filter: brightness(1.06);
}

@media (max-width: 899px) {
  .noir-discover-strip .wythy-footer__card-grid {
    grid-template-columns: 1fr !important;
  }
}

.wythy-section-card__hint {
  margin: 0 0 0.75rem;
  color: var(--muted, #64748b);
  font-size: var(--fs-sm, 0.875rem);
}

.wythy-section-card__more {
  margin-left: auto;
  color: var(--gold, #0d9488);
  text-decoration: none;
  font-size: var(--fs-sm, 0.875rem);
  white-space: nowrap;
}

.yygk-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted, #64748b);
}

.video-el {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.noir-404 {
  padding: 4rem 1rem;
  text-align: center;
}

.noir-404 h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 10vw, 4rem);
}

/* 防止横向溢出 */
html,
body {
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* 播放器在窄屏全宽 */
@media (max-width: 767px) {
  .nj-play-player,
  .yygk2-play-player {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .nj-page-wrap,
  .yygk-catpage__inner,
  .wythy-home-main .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .wythy-header__brand-text {
    font-size: 0.95rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .noir-hero__title,
  .wythy-home-hero__title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.25 !important;
  }

  .noir-hero__lead,
  .wythy-home-hero__lead {
    font-size: 0.9rem !important;
  }

  .yygk-cat-grid,
  .yygk-cat-grid--search {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .yygk-vcard__desc,
  .yygk-vcard__actors {
    display: none;
  }

  .wythy-footer__card-grid {
    grid-template-columns: 1fr !important;
  }

  .wythy-why__grid {
    grid-template-columns: 1fr !important;
  }

  .cn-portal-genres,
  .cn-portal-sort,
  .noir-scroll-x {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .cn-portal-genres::-webkit-scrollbar,
  .cn-portal-sort::-webkit-scrollbar,
  .noir-scroll-x::-webkit-scrollbar {
    display: none;
  }

  .cn-portal-genres__btn,
  .cn-portal-sort button {
    flex: 0 0 auto;
  }

  .nj-play-head__h1 {
    font-size: 1.25rem !important;
  }

  .nj-play-meta,
  .yygk2-play-meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
  }
}

@media (max-width: 420px) {
  .yygk-cat-grid,
  .yygk-cat-grid--search {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .yygk-vcard__stats {
    font-size: 0.75rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .yygk-cat-grid,
  .yygk-cat-grid--search {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ── 播放页影院式重设计 ── */
body.body-tpl-noir .play-cinema.noir-play-stage {
  position: relative;
  border: 1px solid var(--noir-line, #232838) !important;
  border-radius: 1.1rem !important;
  background: var(--noir-surface, #12141c) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
  overflow: hidden;
}

body.body-tpl-noir .play-cinema.noir-play-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #f59e0b 45%, #a855f7);
  z-index: 2;
  pointer-events: none;
}

body.body-tpl-noir .play-cinema__screen {
  background: linear-gradient(180deg, #07080c 0%, #12141c 100%) !important;
  border-bottom: 1px solid var(--noir-line, #232838) !important;
  padding: 1rem 1.15rem 1.35rem !important;
}

body.body-tpl-noir .play-cinema__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

body.body-tpl-noir .play-cinema__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.04em;
}

body.body-tpl-noir .play-cinema__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: play-live-pulse 1.8s ease-out infinite;
}

@keyframes play-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

body.body-tpl-noir .play-cinema__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

body.body-tpl-noir .play-cinema__badge {
  padding: 0.2rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.body-tpl-noir .play-cinema__badge--quality {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
}

body.body-tpl-noir .play-cinema__frame {
  border-radius: 0.85rem !important;
  border: 2px solid rgba(225, 29, 72, 0.28) !important;
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
}

body.body-tpl-noir .play-cinema__body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0;
}

body.body-tpl-noir .play-cinema__aside {
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  background: var(--noir-surface-2, #171a24);
  border-right: 1px solid var(--noir-line, #232838);
}

body.body-tpl-noir .play-cinema__poster-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.body-tpl-noir .play-cinema__poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

body.body-tpl-noir .play-cinema__score-card {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  min-width: 3.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.55rem;
  text-align: center;
  background: rgba(10, 11, 15, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.45);
  backdrop-filter: blur(6px);
}

body.body-tpl-noir .play-cinema__score {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  color: #fbbf24;
}

body.body-tpl-noir .play-cinema__score-label {
  margin: 0.15rem 0 0;
  font-size: 0.65rem;
  color: #94a3b8;
}

body.body-tpl-noir .play-cinema__stats {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

body.body-tpl-noir .play-cinema__stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

body.body-tpl-noir .play-cinema__stats li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.body-tpl-noir .play-cinema__stats strong {
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.8125rem;
}

body.body-tpl-noir .play-cinema__main {
  min-width: 0;
}

body.body-tpl-noir .play-cinema__head {
  background: var(--noir-surface-2, #171a24) !important;
  border-bottom: 1px solid var(--noir-line, #232838) !important;
  padding: 1.2rem 1.35rem 1.1rem !important;
}

body.body-tpl-noir .play-cinema__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f43f5e;
}

body.body-tpl-noir .play-cinema__title {
  margin: 0 0 0.75rem !important;
  font-family: "Noto Serif SC", "Noto Sans SC", serif !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: #f8fafc !important;
}

body.body-tpl-noir .play-cinema__meta {
  margin-bottom: 0.75rem !important;
  color: #94a3b8 !important;
}

body.body-tpl-noir .play-cinema__meta-score {
  color: #fbbf24 !important;
  font-weight: 800 !important;
}

body.body-tpl-noir .play-cinema__tags {
  margin-bottom: 1rem !important;
}

body.body-tpl-noir .play-cinema__tags span {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  border-radius: 0.4rem !important;
  padding: 0.25rem 0.6rem !important;
}

body.body-tpl-noir .play-cinema__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.body-tpl-noir .play-cinema__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 0.55rem;
  border: 1px solid var(--noir-line, #232838);
  background: var(--noir-surface, #12141c);
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

body.body-tpl-noir .play-cinema__action:hover {
  border-color: #e11d48;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.08);
}

body.body-tpl-noir .play-cinema__action--primary {
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #be123c);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

body.body-tpl-noir .play-cinema__action--primary:hover {
  color: #fff;
  filter: brightness(1.06);
}

body.body-tpl-noir .play-cinema__episodes {
  background: var(--noir-surface, #12141c) !important;
  border-bottom: 1px solid var(--noir-line, #232838) !important;
  padding: 1.1rem 1.35rem 1.25rem !important;
}

body.body-tpl-noir .play-cinema__episodes .nj-play-section__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem !important;
  padding-left: 0.65rem;
  border-left: 3px solid #f59e0b !important;
  color: #f8fafc !important;
  font-family: "Noto Serif SC", "Noto Sans SC", serif !important;
}

body.body-tpl-noir .play-cinema__ep-total {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

body.body-tpl-noir .play-cinema__ep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
  gap: 0.45rem;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 0.15rem;
}

body.body-tpl-noir .play-cinema__ep {
  min-height: 2.1rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid var(--noir-line, #232838);
  background: var(--noir-surface-2, #171a24);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}

body.body-tpl-noir .play-cinema__ep:hover {
  border-color: #e11d48;
  color: #fda4af;
}

body.body-tpl-noir .play-cinema__ep.is-active {
  border-color: #e11d48;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(190, 18, 60, 0.12));
  color: #fff;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22);
}

body.body-tpl-noir .play-cinema__block {
  padding: 1.15rem 1.35rem !important;
  background: var(--noir-surface, #12141c);
  border-bottom: 1px solid var(--noir-line, #232838) !important;
}

body.body-tpl-noir .play-cinema__block:last-child {
  border-bottom: none !important;
}

body.body-tpl-noir .play-cinema__block .nj-play-block__h {
  margin-bottom: 0.65rem !important;
  padding-left: 0.65rem;
  border-left: 3px solid #e11d48;
  color: #f8fafc !important;
  font-family: "Noto Serif SC", "Noto Sans SC", serif !important;
}

body.body-tpl-noir .play-cinema__block .nj-play-block__p {
  color: #94a3b8 !important;
  line-height: 1.75 !important;
}

body.body-tpl-noir .play-cinema__note {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.55rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #fde68a;
  font-size: 0.8125rem;
  line-height: 1.6;
}

body.body-tpl-noir .play-cinema__note strong {
  color: #fbbf24;
}

body.body-tpl-noir .play-cinema__cast-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin: 0;
}

body.body-tpl-noir .play-cinema__cast-list dt {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

body.body-tpl-noir .play-cinema__cast-list dd {
  margin: 0;
  font-size: 0.875rem;
  color: #e2e8f0;
  line-height: 1.55;
}

body.body-tpl-noir .play-cinema__related {
  margin-top: 1.75rem;
}

@media (max-width: 899px) {
  body.body-tpl-noir .play-cinema__body {
    grid-template-columns: 1fr;
  }

  body.body-tpl-noir .play-cinema__aside {
    display: none;
  }

  body.body-tpl-noir .play-cinema__head,
  body.body-tpl-noir .play-cinema__episodes,
  body.body-tpl-noir .play-cinema__block {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.body-tpl-noir .play-cinema__cast-list {
    grid-template-columns: 1fr;
  }

  body.body-tpl-noir .play-cinema__ep-grid {
    grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
    max-height: 180px;
  }
}

@media (max-width: 767px) {
  body.body-tpl-noir .play-cinema__screen {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.body-tpl-noir .play-cinema__frame {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
  }

  body.body-tpl-noir .play-cinema__topbar {
    padding: 0 0.85rem;
  }
}
