:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --text: #151922;
  --muted: #737b8c;
  --line: #edf0f5;
  --brand: #ff2f3b;
  --brand-dark: #e71925;
  --header: #050b16;
  --header-soft: #0b1322;
  --shadow: 0 18px 42px rgba(18, 27, 45, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, var(--header) 0%, var(--header-soft) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  width: min(1600px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(420px, 1fr) auto;
  align-items: center;
  gap: 34px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 142px;
}

.site-logo__image {
  display: block;
  width: auto;
  max-width: 154px;
  height: 42px;
  object-fit: contain;
}

.site-logo__name {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.site-nav__link {
  position: relative;
  padding: 24px 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--brand);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-search {
  width: 430px;
  height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr 58px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 47, 59, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.site-search__icon {
  width: 14px;
  height: 14px;
  margin-left: 16px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  position: relative;
}

.site-search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.75);
  transform: rotate(45deg);
}

.site-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.site-search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.site-search__button {
  width: 58px;
  height: 42px;
  border: 0;
  cursor: pointer;
  background: var(--brand);
  position: relative;
}

.site-search__button::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 12px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.site-search__button::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 27px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.site-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.site-action:hover {
  color: #fff;
}

.site-action__clock,
.site-action__star {
  width: 22px;
  height: 22px;
  position: relative;
}

.site-action__clock {
  border: 2px solid #fff;
  border-radius: 50%;
}

.site-action__clock::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 2px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
}

.site-action__clock::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 6px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.site-action__star::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 17px;
  height: 17px;
  background: #fff;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.site-footer {
  margin-top: 36px;
  padding: 34px 0 30px;
  color: #7b8496;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #293142;
}

.site-footer__brand strong {
  font-size: 18px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.site-footer__links a {
  padding: 0 16px;
  line-height: 1;
  border-right: 1px solid #d8dde7;
}

.site-footer__links a:last-child {
  border-right: 0;
}

.site-footer__links a:hover {
  color: var(--brand);
}

.site-footer__friends {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.site-footer__friends:has(div:empty) {
  display: none;
}

.site-footer__friends div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer__friends a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid #d8dde7;
  border-radius: 999px;
  color: #6d7688;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.2;
}

.site-footer__friends a:hover {
  color: var(--brand);
  border-color: rgba(37, 99, 235, .32);
  background: #eef5ff;
}

.site-footer__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 13px;
}

.home-wrap {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.home-hero {
  padding: 18px 0 12px;
  background: #fff;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(460px, 1.06fr) minmax(280px, 0.72fr) minmax(292px, 0.66fr);
  gap: 16px;
  align-items: stretch;
}

.hero-slider {
  position: relative;
  min-height: 304px;
  overflow: hidden;
  border-radius: 6px;
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slider__item,
.hero-slider__item img,
.hero-slider__shade,
.hero-slider__content {
  position: absolute;
  inset: 0;
}

.hero-slider__item {
  opacity: 0;
  visibility: hidden;
  animation: heroFade 20s infinite;
}

.hero-slider__item:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider__item:nth-child(2) {
  animation-delay: 4s;
}

.hero-slider__item:nth-child(3) {
  animation-delay: 8s;
}

.hero-slider__item:nth-child(4) {
  animation-delay: 12s;
}

.hero-slider__item:nth-child(5) {
  animation-delay: 16s;
}

.hero-slider__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.72));
}

.hero-slider__content {
  top: auto;
  padding: 0 28px 28px;
  display: grid;
  gap: 8px;
  color: #fff;
}

.hero-slider__content strong {
  max-width: 78%;
  font-size: 24px;
  line-height: 1.25;
}

.hero-slider__content em {
  max-width: 82%;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.hero-slider__content span {
  color: #ff5a61;
  font-weight: 700;
}

.hero-slider__dots {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 7px;
}

.hero-slider__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  animation: heroDot 20s infinite;
}

.hero-slider__dots span:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider__dots span:nth-child(2) {
  animation-delay: 4s;
}

.hero-slider__dots span:nth-child(3) {
  animation-delay: 8s;
}

.hero-slider__dots span:nth-child(4) {
  animation-delay: 12s;
}

.hero-slider__dots span:nth-child(5) {
  animation-delay: 16s;
}

@keyframes heroFade {
  0%,
  4% {
    opacity: 0;
    visibility: hidden;
  }
  6%,
  20% {
    opacity: 1;
    visibility: visible;
  }
  24%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes heroDot {
  0%,
  4% {
    background: rgba(255, 255, 255, 0.45);
  }
  6%,
  20% {
    background: #ff3d4f;
  }
  24%,
  100% {
    background: rgba(255, 255, 255, 0.45);
  }
}

.home-panel {
  min-height: 304px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.home-panel__head,
.section-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-panel__head h2,
.section-headline h2,
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.home-panel__head h2 span,
.section-headline h2 span,
.section-title span {
  display: none;
}

.home-panel__head a,
.section-headline a {
  color: #7b8496;
  font-size: 13px;
}

.today-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.today-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.today-item img {
  width: 54px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
}

.today-item span,
.rank-item span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.today-item strong,
.rank-item strong {
  overflow: hidden;
  color: #202635;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-item em,
.rank-item em {
  overflow: hidden;
  color: #80889a;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-item b {
  color: #8a93a5;
  font-size: 12px;
  font-weight: 500;
}

.today-panel .today-item:nth-child(n+7) {
  display: none;
}

.home-page .home-poster-grid .poster-card:nth-child(n+13) {
  display: none;
}

.rank-tabs {
  display: flex;
  gap: 18px;
  margin: 16px 0 12px;
  color: #535c6e;
  font-size: 13px;
  white-space: nowrap;
}

.rank-tabs .is-active {
  color: var(--brand);
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 8px;
  counter-reset: rank-item;
}

.rank-item {
  display: grid;
  grid-template-columns: 22px 44px 1fr auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  counter-increment: rank-item;
}

.rank-list--plain .rank-item {
  grid-template-columns: 44px minmax(0, 1fr);
}

.rank-item b {
  color: var(--brand);
  font-size: 16px;
}

.rank-item b::before {
  content: counter(rank-item);
}

.rank-item img {
  width: 44px;
  height: 52px;
  border-radius: 4px;
  object-fit: cover;
}

.rank-item i {
  min-width: 0;
  overflow: hidden;
  color: #ff5a00;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-link-list {
  display: grid;
  gap: 10px;
}

.text-link-list a {
  display: grid;
  gap: 2px;
  overflow: hidden;
  color: #202635;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-link-list a span,
.text-link-list a em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-link-list a em {
  color: #8993a6;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.text-link-list a:hover {
  color: var(--brand);
}

.channel-strip,
.home-section {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.section-title.compact {
  margin-bottom: 10px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.channel-card {
  min-height: 56px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 6px;
  background: #fbfcff;
}

.channel-card::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6871, #ff2835);
}

.channel-card__icon {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff6871, #ff2835);
}

.channel-card strong {
  font-size: 15px;
}

.channel-card em {
  color: #8790a2;
  font-size: 12px;
  font-style: normal;
}

.section-headline {
  margin-bottom: 14px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.poster-card {
  min-width: 0;
}

.poster-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: #e9edf5;
}

.poster-card__cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poster-card__cover span,
.poster-card__cover b {
  position: absolute;
  z-index: 1;
  color: #fff;
}

.poster-card__cover span {
  left: 8px;
  top: 8px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
}

.poster-card__cover b {
  right: 8px;
  bottom: 6px;
  color: #ffb13a;
  font-size: 16px;
}

.poster-card h3 {
  margin: 9px 0 5px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poster-card p {
  margin: 3px 0;
  overflow: hidden;
  color: #727b8d;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.topic-card {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 18px;
  overflow: hidden;
  border-radius: 6px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12)),
    linear-gradient(135deg, #1e293b, #64748b);
}

.topic-card strong,
.topic-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-card span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.placeholder-card {
  outline: 1px dashed rgba(255, 255, 255, 0.32);
  outline-offset: -6px;
}

@media (max-width: 1180px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 12px 0;
  }

  .site-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .site-search {
    width: min(520px, 100%);
  }

  .home-hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-panel {
    grid-column: 1 / -1;
  }

  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .channel-grid,
  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 24px, 1320px);
  }

  .site-header__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
  }

  .site-nav__link {
    padding: 10px 0 12px;
    font-size: 15px;
  }

  .site-actions {
    order: 2;
    gap: 12px;
  }

  .site-search {
    flex: 1;
    min-width: 210px;
  }

  .site-action span:last-child {
    display: none;
  }

  .home-wrap {
    width: min(100% - 24px, 1320px);
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 230px;
  }

  .channel-grid,
  .poster-grid,
  .topic-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-tabs {
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    width: min(100% - 20px, 1320px);
    min-height: 0;
    gap: 8px 10px;
    padding: 10px 0 8px;
  }

  .site-logo {
    min-width: 0;
  }

  .site-logo__mark {
    width: 38px;
    height: 38px;
  }

  .site-logo__name {
    font-size: 19px;
  }

  .site-actions {
    width: 100%;
    gap: 8px;
  }

  .site-search {
    width: 100%;
    height: 36px;
    grid-template-columns: 32px 1fr 50px;
  }

  .site-search__button {
    width: 50px;
    height: 36px;
  }

  .site-search__button::before {
    left: 17px;
    top: 9px;
  }

  .site-search__button::after {
    left: 30px;
    top: 24px;
  }

  .site-nav {
    gap: 14px;
    padding-top: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav__link {
    padding: 8px 0 9px;
    font-size: 14px;
  }

  .site-footer,
  .breadcrumb,
  .page-column .side-col {
    display: none;
  }
}

/* ysseo02 full-page pass */
.page-shell {
  padding-top: 18px;
}

.two-col-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
}

.breadcrumb {
  margin: 0 0 18px;
  color: #606a7d;
  font-size: 14px;
}

.category-hero--plain {
  margin-bottom: 20px;
  padding: 10px 0 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.category-hero--plain h1 {
  color: #f32937;
  font-size: 38px;
  font-weight: 900;
}

.category-hero--plain p {
  max-width: 980px;
  margin-top: 10px;
  color: #596274;
  font-size: 16px;
  line-height: 1.8;
}

.category-tabs--line {
  gap: 28px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

.category-tabs--line a {
  min-height: auto;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d4658;
  font-size: 15px;
  position: relative;
}

.category-tabs--line a.is-active,
.category-tabs--line a:hover {
  color: #f32937;
  background: transparent;
}

.category-tabs--line a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: #f32937;
  transform: translateX(-50%);
}

.filter-panel--wide {
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-color: #e7ebf2;
  box-shadow: 0 12px 30px rgba(18, 27, 45, 0.035);
}

.filter-panel--wide .filter-row {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
}

.filter-panel--wide .filter-row strong {
  color: #111827;
}

.filter-panel--wide .filter-row div {
  gap: 10px 24px;
}

.filter-panel--wide .filter-row a {
  padding: 5px 11px;
  color: #4b5565;
  font-size: 14px;
}

.filter-panel--wide .filter-row a.is-active {
  color: #f32937;
  background: #fff1f2;
}

.list-toolbar--column {
  margin: 0 0 14px;
  padding: 0 4px;
}

.list-toolbar--column strong {
  font-size: 18px;
  font-weight: 900;
}

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

.poster-grid--list .poster-card {
  padding: 10px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fff;
}

.poster-grid--list .poster-card__cover {
  aspect-ratio: 16 / 9;
}

.side-card {
  border-color: #e8edf5;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 27, 45, 0.035);
}

.side-card h2 {
  color: #111827;
  font-weight: 900;
}

.small-tabs {
  gap: 16px;
  margin-top: -2px;
}

.type-chip-grid,
.hot-keyword-grid {
  min-height: 160px;
}

.detail-hero--movie {
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-hero--movie .detail-cover {
  width: 310px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
}

.detail-hero--movie .detail-info h1 {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 900;
}

.detail-hero--movie .detail-info h1 span {
  color: #f32937;
  background: #ffe7ea;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #cbd3df;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0 1px;
}

.stars button.is-active,
.stars button:hover {
  color: #ff7a00;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 26px;
  margin-top: 10px;
}

.detail-actions .primary-btn {
  min-width: 150px;
  height: 46px;
  border-radius: 999px;
  font-size: 17px;
}

.detail-actions button {
  height: 46px;
  min-width: 110px;
  border-radius: 999px;
}

.line-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.line-tabs span {
  min-width: 112px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: #f4f6f9;
  color: #2d3748;
  font-weight: 800;
}

.line-tabs span.is-active {
  background: #ff3040;
  color: #fff;
}

.episode-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.episode-grid a {
  min-height: 38px;
  border-color: #e6ebf3;
  border-radius: 6px;
  font-weight: 800;
}

.actor-strip {
  min-height: 92px;
}

.mini-poster-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.side-col .mini-poster-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-poster-row a {
  position: relative;
}

.mini-poster-row b {
  position: absolute;
  right: 6px;
  bottom: 25px;
  color: #ff7a00;
}

.play-layout {
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 26px;
}

.player-box {
  border-radius: 8px;
  background: #050b16;
}

.player-shell,
.dplayer-stage {
  min-height: 560px;
}

.player-message {
  min-height: 560px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.play-info--light {
  margin-top: 16px;
  padding: 0 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  color: #111827;
  background: transparent;
}

.play-info--light h1 {
  color: #111827;
  font-size: 28px;
  font-weight: 900;
}

.play-info--light h1 span {
  margin-left: 18px;
  color: #f32937;
  font-size: 16px;
}

.play-info--light p {
  max-width: 880px;
  color: #596274;
  line-height: 1.8;
}

.play-actions {
  align-content: start;
  justify-content: end;
}

.play-actions a,
.play-actions button {
  min-width: 96px;
  border-radius: 8px;
}

.play-actions a:nth-child(2) {
  border-color: #ff3040;
  color: #fff;
  background: #ff3040;
}

.play-side-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edf0f5;
}

.play-side-tabs span {
  padding-bottom: 13px;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  position: relative;
}

.play-side-tabs span.is-active {
  color: #f32937;
}

.play-side-tabs span.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: #f32937;
  transform: translateX(-50%);
}

.line-tabs--pills span {
  min-width: 78px;
}

.side-episode-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stats-list p {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  color: #596274;
}

.stats-list b,
.side-card h2 i {
  color: #ff5a00;
  font-style: normal;
}

.search-hero--clean {
  padding: 8px 0 20px;
  color: #111827;
  background: transparent;
}

.search-hero--clean h1 {
  color: #111827;
  font-size: 34px;
  font-weight: 900;
}

.search-hero--clean h1 span {
  color: #f32937;
}

.search-hero--clean p {
  max-width: 700px;
  color: #596274;
}

.search-hero--clean .search-large {
  margin-left: auto;
  margin-top: -62px;
  border-color: #dfe5ef;
  background: #fff;
}

.search-hero--clean .search-large input {
  color: #111827;
}

.result-grid--two {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-card {
  position: relative;
  grid-template-columns: 160px minmax(0, 1fr);
  padding: 14px;
}

.result-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #f32937;
  font-weight: 900;
}

.result-card h2 span {
  padding: 3px 7px;
  border-radius: 5px;
  color: #f32937;
  background: #ffe7ea;
  font-size: 12px;
}

.result-card > b {
  position: absolute;
  right: 16px;
  top: 18px;
  color: #ff5a00;
  font-size: 18px;
}

.page-rank .category-hero--plain h1 {
  color: #111827;
}

.hot-rank-card {
  padding: 18px 22px;
}

.rank-poster {
  position: relative;
  counter-increment: rank-poster;
}

.rank-poster > i {
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #ff3040;
  font-style: normal;
  font-weight: 900;
}

.poster-grid--rank {
  counter-reset: rank-poster;
}

.rank-poster > i::before {
  content: counter(rank-poster);
}

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

.page-topic .topic-hero--banner {
  min-height: 330px;
  display: flex;
  align-items: end;
  padding: 38px;
  background:
    linear-gradient(90deg, rgba(3, 9, 19, 0.84), rgba(3, 9, 19, 0.14)),
    linear-gradient(135deg, #111827, #475569);
}

.topic-hero--banner h1 {
  font-size: 38px;
  font-weight: 900;
}

.topic-hero--banner p {
  max-width: 760px;
  font-size: 17px;
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.topic-summary .tag-cloud {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  min-height: auto;
  margin-top: 12px;
}

.topic-summary .tag-cloud span {
  padding: 7px 16px;
  border-radius: 999px;
  background: #f4f6f9;
}

.placeholder-list {
  display: grid;
  gap: 12px;
}

.placeholder-list p {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: #4b5565;
}

.placeholder-list b {
  color: #ff3040;
  font-size: 18px;
}

.placeholder-list i {
  color: #ff5a00;
  font-style: normal;
  font-weight: 900;
}

.auth-page {
  min-height: calc(100vh - 76px);
  padding: 52px 0 34px;
  align-content: start;
}

.auth-card--wide {
  width: min(1080px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.auth-card--wide .auth-form,
.auth-card--wide .auth-benefits {
  padding: 48px 56px;
}

.auth-card--wide .auth-benefits {
  border-top: 0;
  border-left: 1px solid #edf0f5;
}

.auth-form h1 {
  text-align: center;
  font-size: 30px;
  font-weight: 900;
}

.auth-form > p {
  text-align: center;
}

.auth-form input {
  min-height: 52px;
  border-radius: 6px;
  font-size: 15px;
}

.auth-form button {
  min-height: 54px;
  border-radius: 6px;
  font-size: 18px;
}

.auth-row {
  display: flex;
  justify-content: space-between;
  color: #596274;
}

.third-login {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  color: #596274;
  text-align: center;
}

.auth-benefits h2 {
  margin-top: 0;
  font-size: 24px;
}

.auth-benefits p {
  display: grid;
  gap: 4px;
  margin: 22px 0;
}

.auth-benefits p b {
  color: #111827;
  font-size: 17px;
}

.auth-illustration {
  min-height: 150px;
}

.auth-feature-strip {
  width: min(1280px, calc(100% - 48px));
  grid-template-columns: repeat(4, 1fr);
  border-top: 0;
  margin-top: 28px;
}

.auth-feature-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 27, 45, 0.045);
}

.user-page {
  grid-template-columns: 220px minmax(0, 1fr);
  padding-top: 22px;
}

.user-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
}

.user-sidebar a {
  padding: 14px 16px;
  border-radius: 8px;
  color: #596274;
  font-size: 17px;
  font-weight: 800;
}

.user-sidebar a.is-active {
  color: #f32937;
  background: #fff3f4;
}

.profile-card--wide {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
  text-align: left;
}

.profile-card--wide .avatar {
  width: 110px;
  height: 110px;
  margin: 0;
}

.profile-card--wide h1 span {
  padding: 3px 9px;
  border-radius: 999px;
  color: #8a5300;
  background: #fff0cc;
  font-size: 13px;
}

.profile-stats {
  grid-template-columns: repeat(4, 110px);
}

.profile-stats span {
  display: grid;
  gap: 4px;
  text-align: center;
}

.profile-stats b {
  color: #111827;
  font-size: 20px;
}

.vip-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  margin: 18px 0;
  background: linear-gradient(135deg, #fff2d9, #ffe3ad);
}

.vip-card button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #111827;
  font-weight: 900;
}

.user-dashboard {
  grid-template-columns: 1fr 1fr;
}

.account-security {
  grid-column: 1 / -1;
}

.account-security div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.account-security span {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-weight: 900;
}

@media (max-width: 1280px) {
  .two-col-layout,
  .play-layout {
    grid-template-columns: 1fr;
  }

  .side-col,
  .play-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .poster-grid--list,
  .poster-grid--rank {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .result-grid--two,
  .auth-card--wide {
    grid-template-columns: 1fr;
  }

  .auth-card--wide .auth-benefits {
    border-left: 0;
    border-top: 1px solid #edf0f5;
  }
}

@media (max-width: 760px) {
  .category-hero--plain h1,
  .search-hero--clean h1,
  .topic-hero--banner h1 {
    font-size: 28px;
  }

  .poster-grid--list,
  .poster-grid--rank,
  .result-grid--two,
  .rank-columns--five,
  .user-page,
  .user-dashboard,
  .side-col,
  .play-side,
  .detail-meta-grid,
  .play-info--light,
  .auth-feature-strip,
  .account-security div {
    grid-template-columns: 1fr;
  }

  .detail-hero--movie {
    grid-template-columns: 1fr;
  }

  .detail-hero--movie .detail-cover {
    width: 100%;
    max-width: 320px;
  }

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

  .search-hero--clean .search-large {
    margin: 16px 0 0;
  }

  .player-shell,
  .dplayer-stage,
  .player-message {
    min-height: 260px;
  }

  .auth-card--wide .auth-form,
  .auth-card--wide .auth-benefits {
    padding: 28px 22px;
  }

  .profile-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ysseo02 visual pass: header + homepage */
body {
  background: #f8fafc;
}

.site-header {
  position: sticky;
  min-height: 76px;
  background: #030913;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 22px rgba(3, 9, 19, 0.16);
}

.site-header__inner {
  width: min(1580px, calc(100% - 48px));
  min-height: 76px;
  grid-template-columns: 164px minmax(420px, 1fr) auto;
  gap: 34px;
}

.site-logo {
  min-width: 164px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.site-logo__mark {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff404a, #ef1f2c);
  position: relative;
}

.site-logo__mark::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
}

.site-logo .site-logo__image {
  display: block;
  width: auto;
  max-width: 154px;
  height: 42px;
  object-fit: contain;
}

.site-logo .site-logo__name {
  display: block;
  overflow: hidden;
  color: #ff2f3d;
  max-width: 170px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  gap: 34px;
}

.site-nav__link {
  padding: 28px 0 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 900;
}

.site-nav__link.is-active::after {
  bottom: 8px;
  width: 18px;
  height: 3px;
}

.site-actions {
  gap: 28px;
}

.site-search {
  width: 470px;
  height: 44px;
  grid-template-columns: 44px 1fr 64px;
  border: 1px solid rgba(255, 47, 59, 0.7);
  background: rgba(8, 15, 27, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.site-search__input {
  font-size: 15px;
}

.site-search__button {
  width: 64px;
  height: 44px;
  background: linear-gradient(135deg, #ff3845, #ff1f2d);
}

.site-action {
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.home-wrap {
  width: min(1580px, calc(100% - 48px));
}

.home-hero {
  padding: 16px 0 0;
  background: #fff;
}

.home-hero__grid {
  grid-template-columns: minmax(620px, 1.12fr) minmax(330px, 0.76fr) minmax(350px, 0.72fr);
  gap: 14px;
}

.hero-slider {
  min-height: 374px;
  border-radius: 6px;
}

.hero-slider__content {
  padding: 0 26px 28px;
  gap: 9px;
}

.hero-slider__content strong {
  max-width: 80%;
  font-size: 24px;
  font-weight: 900;
}

.hero-slider__content em {
  max-width: 88%;
  font-size: 15px;
}

.hero-slider__content span {
  color: #fff;
  font-weight: 900;
}

.hero-slider__content span::first-letter {
  color: var(--brand);
}

.home-panel {
  min-height: 374px;
  padding: 16px 18px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(18, 27, 45, 0.035);
}

.home-panel__head h2,
.section-headline h2,
.section-title {
  font-size: 18px;
  font-weight: 900;
}

.home-panel__head h2 span,
.section-headline h2 span,
.section-title span {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background: #ff3040;
  font-size: 12px;
  font-weight: 900;
}

.today-list {
  gap: 9px;
  margin-top: 13px;
}

.today-item {
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 11px;
}

.today-item img {
  width: 64px;
  height: 48px;
}

.today-item strong,
.rank-item strong {
  font-weight: 900;
}

.today-item small {
  max-width: 84px;
  overflow: hidden;
  color: #737b8c;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-tabs {
  gap: 20px;
  margin: 15px 0 14px;
}

.rank-tabs span {
  padding-bottom: 7px;
}

.rank-tabs .is-active {
  position: relative;
}

.rank-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  transform: translateX(-50%);
}

.rank-list {
  gap: 9px;
}

.rank-item {
  grid-template-columns: 22px 50px 1fr auto;
  gap: 10px;
}

.rank-item img {
  width: 50px;
  height: 58px;
}

.rank-item b {
  font-size: 15px;
}

.rank-item:nth-child(n + 4) b {
  color: #7b8496;
}

.rank-item i {
  color: #ff5a00;
  font-size: 14px;
}

.channel-strip {
  margin-top: 14px;
  padding: 14px 18px;
}

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

.channel-card {
  min-height: 70px;
  grid-template-columns: 46px 1fr;
  padding: 12px 26px;
  background: #fff;
}

.channel-card:hover {
  box-shadow: 0 12px 30px rgba(255, 47, 59, 0.12);
}

.channel-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.channel-card strong {
  font-size: 16px;
  font-weight: 900;
}

.home-section {
  margin-top: 14px;
  padding: 17px 18px 20px;
}

.section-headline {
  margin-bottom: 15px;
}

.home-poster-grid,
.poster-grid {
  gap: 22px;
}

.home-poster-grid .poster-card__cover {
  aspect-ratio: 16 / 10;
}

.poster-card__cover {
  border-radius: 6px;
}

.poster-card__cover span {
  left: 7px;
  top: 7px;
  background: rgba(5, 11, 22, 0.82);
}

.poster-card__cover b {
  right: 9px;
  bottom: 7px;
  color: #ff7a00;
  font-size: 16px;
}

.poster-card h3 {
  margin-top: 10px;
  color: #192132;
  font-size: 15px;
  font-weight: 900;
}

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

.topic-card {
  min-height: 70px;
  padding: 14px 22px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(3, 9, 19, 0.76), rgba(3, 9, 19, 0.18)),
    linear-gradient(135deg, #0f172a, #64748b);
}

@media (max-width: 1280px) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .site-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .home-hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .rank-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header__inner,
  .home-wrap {
    width: min(100% - 24px, 1580px);
  }

  .site-logo {
    min-width: 150px;
  }

  .site-search {
    width: 100%;
  }

  .hero-slider,
  .home-panel {
    min-height: 260px;
  }

  .today-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .today-item small {
    display: none;
  }

  .channel-grid,
  .topic-grid,
  .home-poster-grid,
  .poster-grid {
    grid-template-columns: 1fr 1fr;
  }

}

.page-shell {
  padding: 18px 0 0;
}

.two-col-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.main-col,
.side-col {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #7b8496;
  font-size: 13px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.category-hero,
.detail-hero,
.content-box,
.side-card,
.auth-card,
.user-sidebar,
.user-main {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 27, 45, 0.04);
}

.category-hero {
  padding: 22px 24px;
  margin-bottom: 14px;
}

.category-hero h1,
.detail-info h1,
.auth-card h1,
.topic-hero h1,
.profile-card h1 {
  margin: 0;
  color: #141a28;
  font-size: 26px;
  line-height: 1.3;
}

.category-hero p,
.topic-hero p,
.plain-text,
.content-box p {
  color: #667085;
  line-height: 1.8;
}

.category-hero p {
  margin: 8px 0 0;
}

.category-tabs,
.rank-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.category-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dfe5ef;
  border-radius: 999px;
  color: #3a4354;
  background: #fff;
  font-weight: 700;
}

.category-tabs a:hover,
.category-tabs a.is-active {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.filter-panel {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.filter-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.filter-row strong {
  padding-top: 6px;
}

.filter-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row a {
  padding: 5px 10px;
  border-radius: 999px;
  color: #566174;
}

.filter-row a:hover,
.filter-row a.is-active {
  color: var(--brand);
  background: #fff0f1;
}

.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 14px;
}

.list-toolbar strong {
  font-size: 20px;
}

.list-toolbar span {
  color: #8a93a5;
}

.poster-grid--list {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.poster-grid--rank {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.side-card {
  padding: 16px;
  margin-bottom: 16px;
}

.side-card h2,
.content-box h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.tag-cloud,
.placeholder-block,
.hot-keywords {
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed #ccd4e2;
  border-radius: 6px;
  color: #8993a6;
  background: #fbfcff;
  text-align: center;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pager a {
  min-width: 38px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7dde8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
}

.pager a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.detail-hero {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
  margin-bottom: 16px;
}

.detail-cover {
  width: 230px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
  background: #e9edf5;
}

.detail-info {
  min-width: 0;
}

.detail-info h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.detail-info h1 span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand);
  background: #fff0f1;
  font-size: 13px;
}

.detail-info p {
  margin: 8px 0;
  color: #596274;
  line-height: 1.7;
}

.detail-info b {
  color: #263044;
  margin-right: 6px;
}

.detail-score {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-score strong {
  color: #ff8a00;
  font-size: 30px;
  line-height: 1;
}

.detail-score span {
  color: #8993a6;
}

.page-detail .detail-hero--movie {
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 22px;
}

.page-detail .detail-hero--movie .detail-cover {
  width: 310px;
  height: 410px;
  max-width: 100%;
  object-fit: cover;
}

.page-detail .detail-hero--movie .detail-info {
  min-width: 0;
  padding-top: 6px;
}

.page-detail .detail-hero--movie .detail-info h1 {
  margin-bottom: 16px;
  line-height: 1.25;
}

.page-detail .detail-hero--movie .detail-meta-grid {
  gap: 12px 44px;
  margin-top: 18px;
}

.page-detail .detail-hero--movie .detail-meta-grid p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-actions,
.play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-btn,
.detail-actions button,
.play-actions a,
.play-actions button,
.auth-form button,
.input-with-btn button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  color: #263044;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn,
.auth-form button,
.input-with-btn button {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.primary-btn:hover,
.auth-form button:hover,
.input-with-btn button:hover {
  background: var(--brand-dark);
}

.content-box {
  padding: 18px 22px;
  margin-bottom: 16px;
}

.episode-grid,
.side-episode-grid,
.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.episode-grid a,
.side-episode-grid a,
.download-grid a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 6px 12px;
  overflow: hidden;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  background: #f4f6f9;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #10233f;
}

.episode-grid a:hover,
.side-episode-grid a:hover,
.download-grid a:hover {
  border-color: #8fb8ff;
  background: #eef5ff;
}

.player-source-grid button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  padding: 6px 14px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  background: #f4f6f9;
  color: #10233f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.player-source-grid button:hover,
.player-source-grid button.is-active {
  border-color: #ff3045;
  background: #ff3045;
  color: #fff;
}

.episode-title {
  min-width: 0;
  overflow: hidden;
  color: var(--brand);
  font-weight: 700;
  text-overflow: ellipsis;
}

.page-detail .episode-title,
.page-play .episode-title {
  color: #111827;
}

.media-line-section h2 {
  color: #111827;
  font-size: 20px;
}

.page-play .episode-grid a.is-current .episode-title,
.page-play .side-episode-grid a.is-current .episode-title {
  color: var(--brand);
}

.episode-grid a:hover .episode-title,
.side-episode-grid a:hover .episode-title,
.download-grid a:hover .episode-title {
  color: #2563eb;
}

.line-tabs,
.actor-strip {
  margin-bottom: 14px;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mini-poster-row a {
  min-width: 0;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  background: #e9edf5;
}

.mini-poster-row span {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-poster-row em {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #8993a6;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.player-box {
  overflow: hidden;
  border-radius: 6px;
  background: #080d16;
}

.player-placeholder {
  min-height: 560px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: #101827;
}

.play-info {
  padding: 16px 20px;
  color: #fff;
  background: #111827;
}

.play-info h1 {
  margin: 0 0 6px;
  font-size: 22px;
}

.play-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.stats-list {
  display: grid;
  gap: 10px;
}

.stats-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #667085;
}

.search-hero,
.topic-hero {
  padding: 24px;
  margin-bottom: 16px;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #293449);
}

.search-hero h1 {
  margin: 0 0 14px;
  font-size: 26px;
}

.search-large {
  display: grid;
  grid-template-columns: 1fr 96px;
  max-width: 620px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.search-large input {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search-large input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-large button {
  border: 0;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}

.result-grid {
  display: grid;
  gap: 12px;
}

.result-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.result-card img {
  width: 150px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
}

.result-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.result-card p {
  margin: 6px 0;
  color: #667085;
}

.rank-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.topic-hero h1,
.topic-hero p {
  color: #fff;
}

.auth-page {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 34px 0;
}

.auth-card {
  width: min(520px, calc(100% - 24px));
  padding: 28px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: #343d50;
  font-weight: 800;
}

.auth-form input,
.input-with-btn input {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dfe5ef;
  border-radius: 6px;
  outline: 0;
}

.auth-form input:focus,
.input-with-btn input:focus {
  border-color: var(--brand);
}

.input-with-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.auth-benefits,
.auth-feature-strip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #667085;
}

.auth-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.auth-feature-strip span {
  padding: 10px;
  border-radius: 6px;
  background: #f8fafc;
  text-align: center;
}

.user-page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.user-sidebar,
.user-main {
  padding: 18px;
}

.profile-card {
  text-align: center;
}

.avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff9aa0);
}

.profile-stats,
.user-dashboard {
  display: grid;
  gap: 12px;
}

.profile-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}

.profile-stats span,
.user-dashboard a,
.vip-card {
  padding: 12px;
  border-radius: 6px;
  background: #f8fafc;
}

.user-dashboard {
  grid-template-columns: repeat(3, 1fr);
}

.vip-card {
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .two-col-layout,
  .play-layout,
  .user-page {
    grid-template-columns: 1fr;
  }

  .side-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .poster-grid--list,
  .poster-grid--rank {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-top: 12px;
  }

  .side-col,
  .detail-hero,
  .rank-columns,
  .result-card,
  .user-dashboard {
    grid-template-columns: 1fr;
  }

  .page-detail .detail-hero--movie {
    grid-template-columns: 1fr;
  }

  .page-detail .detail-hero--movie .detail-cover {
    width: min(260px, 100%);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .page-detail .detail-hero--movie .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .detail-cover,
  .result-card img {
    width: 100%;
    max-width: 260px;
  }

  .poster-grid--list,
  .poster-grid--rank,
  .episode-grid,
  .download-grid,
  .auth-feature-strip {
    grid-template-columns: 1fr 1fr;
  }

  .player-placeholder {
    min-height: 260px;
  }

  .search-large,
  .input-with-btn {
    grid-template-columns: 1fr;
    border-radius: 6px;
  }
}

/* play page sizing pass */
.page-play .home-wrap {
  width: min(1320px, calc(100% - 48px));
}

.page-play .play-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
}

.page-play .player-box {
  overflow: hidden;
  border-radius: 8px;
  background: #050b16;
}

.page-play .player-shell {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.page-play .dplayer-stage,
.page-play .player-stage,
.page-play .player-message,
.page-play .player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.page-play .player-iframe {
  border: 0;
  background: #050b16;
}

.page-play .player-message {
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.page-play .player-message.is-hidden {
  display: none;
}

.rating-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 14px;
  color: #7f8a9b;
  font-size: 13px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.rating-stars button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e4e9f2;
  background: #fff;
  color: #7f8a9b;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
}

.rating-stars button:hover,
.rating-stars button.is-active {
  background: #f32937;
  border-color: #f32937;
  color: #fff;
}

.compact-rating {
  margin-top: 8px;
}

.compact-rating .rating-stars button {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.play-comment-card .placeholder-block {
  min-height: 138px;
  display: grid;
  place-items: center;
}

.site-comments {
  display: grid;
  gap: 16px;
}

.comment-form {
  display: grid;
  gap: 10px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: #12263a;
  background: #fff;
}

.comment-form textarea {
  min-height: 92px;
  resize: vertical;
}

.comment-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.comment-form button,
.site-comment button {
  border: 0;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
}

.comment-list,
.site-comment-thread {
  display: grid;
  gap: 12px;
}

.site-comment {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.site-comment.is-reply {
  border-top: 0;
  border-left: 3px solid #dbeafe;
  padding: 10px 0 10px 12px;
}

.site-comment__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.site-comment__meta strong {
  color: #0f172a;
}

.site-comment p {
  margin: 8px 0;
}

.site-comment-replies {
  display: grid;
  gap: 8px;
  margin-left: 18px;
}

.comment-empty {
  color: #64748b;
}

@media (max-width: 1180px) {
  .page-play .play-layout {
    grid-template-columns: 1fr;
  }

  .page-play .play-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .page-play .home-wrap {
    width: min(100% - 24px, 1320px);
  }

  .page-play .play-side,
  .page-play .play-info--light {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-footer,
  .breadcrumb,
  .page-column .side-col {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    gap: 4px 8px;
    padding: 6px 0 5px;
  }

  .site-actions {
    margin-top: -2px;
  }

  .site-search {
    height: 34px;
  }

  .site-search__button {
    height: 34px;
  }

  .site-search__button::before {
    top: 8px;
  }

  .site-search__button::after {
    top: 23px;
  }

  .site-nav {
    gap: 12px;
    margin-top: -3px;
    padding-top: 0;
  }

  .site-nav__link {
    padding: 6px 0 7px;
  }
}

@media (max-width: 760px) {
  .home-hero {
    padding: 12px 0;
  }

  .home-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-slider {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hero-slider__content {
    padding: 0 14px 14px;
    gap: 4px;
  }

  .hero-slider__content strong {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.25;
  }

  .hero-slider__content span {
    font-size: 12px;
  }

  .home-hero .rank-panel {
    display: none;
  }

  .today-panel {
    min-height: 0;
    padding: 12px;
  }

  .today-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }

  .today-panel .today-item:nth-child(n+7) {
    display: grid;
  }

  .today-item {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 6px;
  }

  .today-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }

  .today-item strong {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .today-item small {
    display: none;
  }

  .home-page .channel-strip {
    display: none;
  }

  .home-page .home-poster-grid .poster-card:nth-child(n+13) {
    display: block;
  }
}

@media (max-width: 760px) {
  .page-detail .detail-hero--movie .detail-cover,
  .detail-cover {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 760px) {
  .page-column .category-hero--plain,
  .page-list .category-hero--plain,
  .page-topic .category-hero--plain {
    display: none;
  }

  .page-column .category-tabs--line {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 10px 0 2px;
    overflow-x: auto;
    border-bottom: 0;
    scrollbar-width: none;
  }

  .page-column .category-tabs--line::-webkit-scrollbar {
    display: none;
  }

  .page-column .category-tabs--line a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid #dfe5ef;
    border-radius: 999px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    white-space: nowrap;
  }

  .page-column .category-tabs--line a.is-active,
  .page-column .category-tabs--line a:hover {
    border-color: #ff2f45;
    background: #fff1f2;
    color: #ff2f45;
  }

  .page-column .category-tabs--line a.is-active::after {
    display: none;
  }

  .page-column .filter-panel--wide {
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 12px;
    overflow: hidden;
    border-radius: 8px;
  }

  .page-column .filter-panel--wide .filter-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
  }

  .page-column .filter-panel--wide .filter-row strong {
    padding-top: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .page-column .filter-panel--wide .filter-row div {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
  }

  .page-column .filter-panel--wide .filter-row div::-webkit-scrollbar {
    display: none;
  }

  .page-column .filter-panel--wide .filter-row a {
    flex: 0 0 auto;
    padding: 5px 10px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* site ads */
.site-ad-zone {
  width: min(1200px, calc(100% - 32px));
  margin: 12px auto 0;
}

.site-ad-zone--top {
  display: grid;
  gap: 8px;
}

.site-ad-stack,
.site-ad-grid {
  min-width: 0;
}

.site-ad-stack:empty,
.site-ad-grid:empty {
  display: none;
}

.site-ad-stack--pc {
  display: grid;
  gap: 8px;
}

.site-ad-item {
  position: relative;
  min-width: 0;
}

.site-ad-close {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  pointer-events: auto;
  touch-action: manipulation;
}

.site-ad-close:hover {
  background: transparent;
}

.site-ad-zone.is-closed,
.site-ad-stack.is-closed,
.site-ad-grid.is-closed,
.site-ad-item.is-closed {
  display: none !important;
}

.site-ad-stack--pc > a,
.site-ad-stack--pc > img,
.site-ad-stack--pc .site-ad-item,
.site-ad-stack--pc .site-ad-item > a,
.site-ad-stack--pc .site-ad-item > img {
  display: block;
  width: 100%;
  height: 85px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f7;
}

.site-ad-stack--pc img,
.site-ad-stack--pc .site-ad-item img {
  width: 100%;
  height: 85px;
  object-fit: cover;
}

.site-ad-grid--app {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.site-ad-grid--app > a,
.site-ad-grid--app > img,
.site-ad-grid--app .site-ad-item,
.site-ad-grid--app .site-ad-item > a,
.site-ad-grid--app .site-ad-item > img {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f7;
}

.site-ad-grid--app img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-ad-zone--footer-mobile {
  display: none;
}

@media (max-width: 760px) {
  .site-ad-zone {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .site-ad-zone--top {
    position: static;
  }

  .site-ad-stack--pc {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
  }

  .site-ad-stack--pc > a,
  .site-ad-stack--pc > img,
  .site-ad-stack--pc .site-ad-item,
  .site-ad-stack--pc .site-ad-item > a,
  .site-ad-stack--pc .site-ad-item > img {
    height: 40px;
    border-radius: 4px;
  }

  .site-ad-stack--pc img,
  .site-ad-stack--pc .site-ad-item img {
    height: 40px;
    object-fit: contain;
  }

  .site-ad-grid--app {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .site-ad-zone--footer-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: block;
    width: 100%;
    margin: 0;
    padding: 4px 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 20px rgba(15, 23, 42, .12);
  }

  .site-ad-stack--mobile {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
  }

  .site-ad-stack--mobile > a,
  .site-ad-stack--mobile > img,
  .site-ad-stack--mobile .site-ad-item,
  .site-ad-stack--mobile .site-ad-item > a,
  .site-ad-stack--mobile .site-ad-item > img {
    display: block;
    width: 100%;
    height: 40px;
    overflow: hidden;
    border-radius: 4px;
    background: #eef2f7;
  }

  .site-ad-stack--mobile img,
  .site-ad-stack--mobile .site-ad-item img {
    width: 100%;
    height: 40px;
    object-fit: contain;
  }

  .site-ad-close {
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    font-size: 16px;
    line-height: 1;
  }
}
