.hero {
  position: relative;
  height: min(78vh, 680px);
  min-height: 520px;
  overflow: hidden;
}

.hero-track {
  position: absolute;
  inset: 0;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s var(--ease-out);
  will-change: opacity;
}

.hero-slide.is-on {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-img--wide {
  display: block;
}

.hero-img--tall {
  display: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 38%, transparent 66%),
    linear-gradient(transparent 42%, var(--bg) 100%);
}

.hero-in {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav-h) + 56px) var(--pad) 0;
  max-width: 560px;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent-soft);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-in h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--txt-2);
  margin-bottom: 14px;
}

.hero-meta .s,
.dt-meta .s {
  color: var(--gold);
  font-weight: 800;
}

.dot {
  width: 3px;
  height: 3px;
  background: var(--mute);
  border-radius: 50%;
}

.hero-in .tags {
  margin-bottom: 16px;
}

.hero-in p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--txt-2);
  margin-bottom: 22px;
}

.hero-btns {
  display: flex;
  gap: 12px;
}

.hero-dots {
  position: absolute;
  left: var(--pad);
  bottom: 28px;
  z-index: 6;
  display: flex;
  gap: 7px;
}

.hero-dots i {
  width: 22px;
  height: 3px;
  background: color-mix(in srgb, var(--flesh) 25%, transparent);
  border-radius: 2px;
  cursor: pointer;
  display: block;
}

.hero-dots i.is-on {
  background: var(--accent);
  width: 34px;
}

.rows {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding-bottom: 60px;
}

.filters {
  padding: 20px var(--pad);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.frow {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.frow > b {
  font-size: 13px;
  color: var(--mute);
  font-weight: 500;
  width: 44px;
  flex: none;
  padding-top: 5px;
}

.sortbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px var(--pad) 0;
  font-size: 13px;
  color: var(--dim);
}

.sortbar .right {
  margin-left: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 16px;
  padding: 20px var(--pad) 46px;
}

.grid > * {
  min-width: 0;
}

.gcard {
  cursor: pointer;
}

.gcard h3 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gcard p {
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
}

.dt-hero {
  position: relative;
  height: min(66vh, 520px);
  min-height: 380px;
}

.dt-hero .poster--hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 96%, transparent) 6%, color-mix(in srgb, var(--bg) 62%, transparent) 45%, transparent 75%),
    linear-gradient(transparent 40%, var(--bg) 98%);
}

.dt-in {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  bottom: 36px;
  right: var(--pad);
  display: flex;
  gap: 26px;
  align-items: flex-end;
}

.dt-poster {
  flex: 0 0 168px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dt-txt {
  max-width: 640px;
  padding-bottom: 6px;
  min-width: 0;
}

.dt-txt h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.dt-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--txt-2);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dt-meta .s {
  font-size: 20px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 8px;
  padding: 5px 10px 5px 8px;
  line-height: 1;
  color: var(--flesh);
  background: color-mix(in srgb, var(--accent) 28%, var(--raise));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--dew) 35%, transparent),
    0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.tag i {
  font-style: normal;
  font-size: 13px;
}

.tag--sweet {
  background: color-mix(in srgb, var(--blossom) 28%, var(--raise));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blossom) 50%, transparent), 0 0 16px color-mix(in srgb, var(--blossom) 18%, transparent);
  color: #ffe6dc;
}

.tag--rise {
  background: color-mix(in srgb, var(--gold) 26%, var(--raise));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 16px color-mix(in srgb, var(--gold) 16%, transparent);
  color: #ffe7b0;
}

.tag--old {
  background: color-mix(in srgb, #7d6b4a 34%, var(--raise));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e6d3a4 35%, transparent);
  color: #f0e2c0;
}

.tag--dark {
  background: color-mix(in srgb, #5a6aa8 30%, var(--raise));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #b8c4ff 30%, transparent);
  color: #dce3ff;
}

.tag--fmt {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.tag--hot {
  background: linear-gradient(135deg, #ffcf6b, var(--gold));
  color: var(--gold-ink);
  box-shadow: 0 0 16px color-mix(in srgb, var(--gold) 35%, transparent);
}

.poster-tags {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: calc(100% - 16px);
}

.poster-tags .tag {
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 5px;
}

.gcard .tags,
.res .tags,
.play-title + .tags {
  margin: 8px 0 0;
}

.gcard .tag,
.res .tag {
  font-size: 11px;
  padding: 4px 8px;
}

.syn {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--txt-2);
  margin-bottom: 20px;
}

.dt-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sec {
  padding: 34px var(--pad);
}

.sec-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.sec-hd h2 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
}

.sec-hd .right {
  margin-left: auto;
  font-size: 13px;
  color: var(--dim);
}

.tabs {
  display: flex;
  gap: 6px;
}

.tab {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--txt-2);
  background: var(--surface);
}

.tab.is-on {
  background: var(--raise);
  color: var(--txt);
  font-weight: 600;
}

.eps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ep {
  cursor: pointer;
  min-width: 0;
}

.ep .poster {
  position: relative;
}

.ep .pl {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: opacity 0.2s ease;
  z-index: 4;
}

.ep:hover .pl {
  opacity: 1;
}

.ep .no,
.ep .dur {
  position: absolute;
  bottom: 8px;
  z-index: 4;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.65);
  padding: 2px 7px;
  border-radius: 4px;
}

.ep .no {
  left: 8px;
}

.ep .dur {
  right: 8px;
}

.ep h4 {
  font-size: 13.5px;
  margin-top: 9px;
  font-weight: 600;
}

.ep p {
  font-size: 12px;
  color: var(--dim);
  margin-top: 4px;
  line-height: 1.55;
}

.ep-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ep-num {
  width: 52px;
  height: 38px;
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--txt-2);
  position: relative;
}

.ep-num.is-on {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.casts {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cast {
  flex: 0 0 84px;
  text-align: center;
}

.cast .ph {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 9px;
}

.cast .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.cast span {
  font-size: 11.5px;
  color: var(--dim);
}

.play-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-areas: "player side" "body side";
  gap: 0 20px;
  align-items: start;
  padding: 18px var(--pad) 24px;
}

.player-col {
  grid-area: player;
  display: flex;
  justify-content: center;
}

.play-body {
  grid-area: body;
}

.side {
  grid-area: side;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  align-self: start;
}

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--r);
  overflow: hidden;
  touch-action: manipulation;
  cursor: pointer;
}

.player video,
.player .poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player .center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 6;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s var(--ease-out), visibility 0.22s linear;
}

.player:not(.is-paused) .center {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player .center button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid color-mix(in srgb, var(--flesh) 80%, transparent);
  display: grid;
  place-items: center;
  color: var(--flesh);
  backdrop-filter: blur(6px);
  transition: transform 100ms ease-out;
}

.player .center button:active {
  transform: scale(0.92);
}

.player .ico-pause {
  display: none;
}

.player:not(.is-paused) .ctrl .ico-play {
  display: none;
}

.player:not(.is-paused) .ctrl .ico-pause {
  display: inline-flex;
}

.seek {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 44px;
  z-index: 9;
  display: flex;
  align-items: center;
  height: 22px;
  padding: 0 16px;
  cursor: pointer;
  touch-action: none;
  pointer-events: auto;
}

.seek .rail {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--flesh) 22%, transparent);
  pointer-events: none;
}

.seek .buf,
.seek .cur {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 3px;
}

.seek .buf {
  width: 0;
  background: color-mix(in srgb, var(--flesh) 32%, transparent);
}

.seek .cur {
  width: 0;
  background: var(--accent);
}

.seek .cur::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}

.player:not(.is-paused):not(.is-chrome) .seek {
  bottom: 0;
  height: 16px;
  padding: 0;
  align-items: flex-end;
}

.player:not(.is-paused):not(.is-chrome) .seek .rail {
  height: 3px;
  border-radius: 0;
}

.player:not(.is-paused):not(.is-chrome) .seek .cur::after {
  display: none;
}

.ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out);
}

.player.is-chrome .ctrl,
.player.is-paused .ctrl {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .player:hover .ctrl {
    opacity: 1;
    pointer-events: auto;
  }

  .player:hover .seek {
    bottom: 44px;
    height: 22px;
    padding: 0 16px;
    align-items: center;
  }

  .player:hover .seek .rail {
    height: 4px;
    border-radius: 3px;
  }

  .player:hover .seek .cur::after {
    display: block;
  }
}

.ctrl-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--txt);
  cursor: default;
}

.ctrl-row button {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.ctrl-row .t {
  color: var(--txt-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ctrl-row .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 6px;
}

.play-title h1 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
}

.play-title span {
  font-size: 13px;
  color: var(--dim);
}

.play-ops {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--txt-2);
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.side-hd {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.side-hd .right {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
  font-weight: 400;
}

.side-list {
  max-height: 520px;
  overflow-y: auto;
}

.side-item {
  display: flex;
  gap: 11px;
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line-soft);
}

.side-item.is-on h4 {
  color: var(--accent-soft);
}

.side-item .poster {
  width: 112px;
  flex: none;
  border-radius: 8px;
}

.side-item h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.side-item p {
  font-size: 11.5px;
  color: var(--dim);
}

.search-hero {
  padding: 40px var(--pad) 10px;
}

.sbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  max-width: 720px;
}

.sbox input {
  flex: 1;
  font-size: 16px;
}

.sbox .go {
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.hotwrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 26px var(--pad) 40px;
  max-width: 980px;
}

.hot h3,
.hist h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.hot h3 .right,
.hist h3 .right {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
  font-weight: 400;
}

.hotlist {
  display: grid;
  gap: 2px;
}

.hotitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 4px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.hotitem .n {
  width: 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.hotitem:nth-child(-n + 3) .n {
  color: var(--accent);
}

.hotitem .up {
  margin-left: auto;
  font-size: 11px;
  color: var(--mute);
}

.fire {
  font-size: 11px;
  background: #2a1814;
  color: var(--blossom);
  border-radius: 3px;
  padding: 1px 5px;
}

.res-tabs {
  display: flex;
  gap: 24px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.res-tabs button {
  padding: 12px 0;
  color: var(--dim);
  position: relative;
}

.res-tabs button.is-on {
  color: var(--txt);
  font-weight: 600;
}

.res-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.res-list {
  padding: 20px var(--pad) 50px;
  display: grid;
  gap: 18px;
}

.res {
  display: flex;
  gap: 16px;
  cursor: pointer;
}

.res .poster {
  width: 96px;
  flex: none;
}

.res h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.res h3 mark {
  background: none;
  color: var(--accent-soft);
}

.res .m {
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 8px;
}

.res p {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.7;
  max-width: 70ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.res .go {
  margin-left: auto;
  align-self: center;
  flex: none;
  background: var(--accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.zt-hero {
  position: relative;
  height: min(58vh, 440px);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
}

.zt-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 50% 45%, transparent, color-mix(in srgb, var(--bg) 82%, transparent) 70%),
    linear-gradient(transparent 45%, var(--bg) 97%);
}

.zt-in {
  position: relative;
  z-index: 3;
  max-width: 620px;
  padding: 0 24px;
}

.zt-in .k {
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}

.zt-in h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.1;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.zt-in p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--txt-2);
}

.zt-in .by {
  margin-top: 20px;
  font-size: 12px;
  color: var(--mute);
}

.zt-note {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px var(--pad) 10px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--txt-2);
  border-left: 2px solid var(--accent);
}

.zt-list {
  padding: 20px var(--pad) 60px;
  display: grid;
  gap: 20px;
  max-width: calc(1080px + var(--pad) * 2);
  margin: 0 auto;
  width: 100%;
}

.zt-item {
  display: grid;
  grid-template-columns: 56px 200px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface), var(--bg-deep));
  border: 1px solid var(--line-soft);
  cursor: pointer;
}

.zt-item .rk {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  font-style: normal;
  color: #3c4a3e;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.zt-item h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.zt-item .m {
  font-size: 12.5px;
  color: var(--dim);
  margin-bottom: 10px;
}

.zt-item p {
  font-size: 13px;
  color: var(--txt-2);
  line-height: 1.75;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 22px 16px;
  padding: 20px var(--pad) 46px;
}

.vip-banner {
  margin: 20px var(--pad) 0;
  padding: 22px 24px;
  border-radius: var(--r);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--gold) 18%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vip-banner h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  font-style: normal;
}

.vip-banner p {
  color: var(--dim);
  font-size: 13px;
  margin-top: 6px;
}
