:root {
  --imperial-plum: #32134f;
  --imperial-violet: #59317d;
  --imperial-lilac: #a783c7;
  --imperial-gold: #d5b879;
  --imperial-paper: #faf7f1;
}

body {
  background:
    radial-gradient(ellipse at 50% -16%, rgba(213, 184, 121, .12), transparent 38%),
    var(--imperial-paper);
}

.premium-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff9ee;
  background:
    radial-gradient(ellipse at 76% 25%, rgba(184, 140, 217, .28), transparent 33%),
    radial-gradient(ellipse at 96% 100%, rgba(213, 184, 121, .18), transparent 36%),
    linear-gradient(118deg, #21102f 0%, #3b1d57 52%, #29183c 100%);
}

.premium-home-hero::before,
.premium-home-hero::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.premium-home-hero::before {
  inset: 0;
  opacity: .26;
  background:
    radial-gradient(ellipse at 82% 21%, transparent 0 13%, rgba(239, 218, 180, .2) 13.2% 13.5%, transparent 13.8%),
    radial-gradient(ellipse at 82% 21%, transparent 0 21%, rgba(239, 218, 180, .12) 21.2% 21.5%, transparent 21.8%),
    linear-gradient(115deg, transparent 48%, rgba(255,255,255,.035) 48.2%, transparent 48.5%);
}

.premium-home-hero::after {
  width: min(45vw, 570px);
  height: min(45vw, 570px);
  right: -12%;
  top: -58%;
  border: 1px solid rgba(235, 208, 156, .22);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(235, 208, 156, .035), 0 0 0 64px rgba(235, 208, 156, .025);
}

.premium-hero-inner {
  width: min(1200px, calc(100% - 56px));
  min-height: 410px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 64px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.premium-hero-copy {
  max-width: 560px;
}

.premium-hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: #e2c995;
  font-size: 12px;
  letter-spacing: .28em;
}

.premium-hero-kicker::before {
  width: 30px;
  height: 1px;
  background: currentColor;
  content: "";
}

.premium-hero-title {
  margin: 0;
  color: #fff9ef;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(34px, 4.7vw, 58px);
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.34;
}

.premium-hero-title em {
  color: #e3c98f;
  font-style: normal;
}

.premium-hero-description {
  max-width: 430px;
  margin: 19px 0 0;
  color: rgba(255, 249, 239, .75);
  font-size: 14px;
  letter-spacing: .08em;
  line-height: 2;
}

.premium-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
}

.premium-hero-actions a {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(232, 207, 158, .7);
  border-radius: 3px;
  color: #f7ecd4;
  font-size: 12px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.premium-hero-actions a:first-child {
  background: linear-gradient(135deg, #d5b879, #b99558);
  border-color: transparent;
  color: #2a1738;
  font-weight: 600;
}

.premium-hero-actions a:hover {
  transform: translateY(-2px);
  background-color: rgba(255,255,255,.1);
}

.premium-poster-shell {
  position: relative;
  width: 100%;
  max-width: 530px;
  justify-self: end;
  padding: 9px;
  border: 1px solid rgba(230, 205, 159, .5);
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 24px 70px rgba(13, 7, 20, .34);
}

.premium-poster-shell::before,
.premium-poster-shell::after {
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  border-color: #e3c98f;
  border-style: solid;
  content: "";
  pointer-events: none;
}

.premium-poster-shell::before {
  inset: 3px auto auto 3px;
  border-width: 1px 0 0 1px;
}

.premium-poster-shell::after {
  inset: auto 3px 3px auto;
  border-width: 0 1px 1px 0;
}

.premium-poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 8.7;
  background:
    radial-gradient(ellipse at 70% 27%, rgba(228, 194, 133, .4), transparent 9%),
    radial-gradient(ellipse at 72% 27%, rgba(228, 194, 133, .14), transparent 25%),
    linear-gradient(132deg, #261337 0%, #65417c 47%, #25162f 100%);
}

.premium-poster-frame::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(18, 10, 28, .7), transparent 64%),
    radial-gradient(ellipse at 36% 82%, rgba(208, 151, 87, .24), transparent 29%);
  content: "";
  pointer-events: none;
}

.premium-poster-frame video,
.premium-poster-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.premium-poster-frame video {
  position: absolute;
  inset: 0;
}

.premium-poster-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f5e7c7;
  text-align: center;
}

.premium-poster-placeholder::before,
.premium-poster-placeholder::after {
  position: absolute;
  width: 68%;
  height: 130%;
  border: 1px solid rgba(235, 209, 164, .28);
  border-radius: 50%;
  content: "";
  transform: rotate(-24deg);
}

.premium-poster-placeholder::after {
  width: 47%;
  height: 105%;
  border-color: rgba(235, 209, 164, .15);
  transform: rotate(24deg);
}

.premium-poster-placeholder span {
  position: relative;
  z-index: 1;
  padding: 12px;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: .24em;
  text-shadow: 0 2px 18px rgba(14, 5, 24, .45);
}

.premium-poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 225, .8);
  border-radius: 50%;
  background: rgba(29, 16, 43, .42);
  color: #fff8e9;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(5px);
}

.premium-poster-play::before {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  content: "";
}

.premium-poster-caption {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 13px;
  left: 15px;
  color: rgba(255, 249, 239, .9);
  font-size: 11px;
  letter-spacing: .12em;
}

.premium-poster-controls {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 4px 0;
  color: #f0e2c6;
  font-size: 11px;
  letter-spacing: .08em;
}

.premium-poster-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.premium-poster-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(242, 226, 196, .42);
  cursor: pointer;
}

.premium-poster-dots button[aria-current="true"] {
  width: 22px;
  border-radius: 8px;
  background: var(--imperial-gold);
}

.premium-poster-nav {
  display: flex;
  gap: 7px;
}

.premium-poster-nav button {
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid rgba(235, 209, 164, .36);
  border-radius: 50%;
  background: transparent;
  color: #f6ecd8;
  cursor: pointer;
}

.premium-poster-nav button:hover {
  background: rgba(255,255,255,.1);
}

.premium-poster-caption:empty,
.premium-poster-controls:empty {
  display: none;
}

@media (max-width: 760px) {
  .premium-hero-inner {
    width: min(100% - 32px, 560px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 34px 0 29px;
  }

  .premium-hero-copy {
    text-align: center;
  }

  .premium-hero-kicker,
  .premium-hero-actions {
    justify-content: center;
  }

  .premium-hero-description {
    margin-inline: auto;
  }

  .premium-poster-shell {
    max-width: 500px;
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .premium-hero-title {
    font-size: clamp(30px, 8vw, 39px);
  }

  .premium-hero-description {
    font-size: 12px;
  }

  .premium-poster-shell {
    padding: 6px;
  }

  .premium-poster-frame {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-hero-actions a {
    transition: none;
  }
}

.site-header {
  background: rgba(43, 24, 61, .97);
  border-bottom-color: rgba(222, 195, 143, .28);
}

.site-header .brand-seal {
  border-color: var(--imperial-gold);
  color: var(--imperial-gold);
}

.site-header .brand-name,
.site-header .project-nav a,
.site-header .nav-toggle {
  color: #f8f0e2;
}

.site-header .brand-sub {
  color: #c8b7d2;
}

.site-header .project-nav a:after {
  background: var(--imperial-gold);
}

.site-header .project-nav a:hover,
.site-header .project-nav a.active,
.site-header .project-nav .nav-store {
  color: #e6ca91 !important;
}

.site-header .nav-store .tao-mark {
  color: #fff;
}

.premium-home-hero.home-carousel {
  height: clamp(360px, 45vh, 460px);
  min-height: 0;
  background: none;
}

.premium-home-hero .carousel-viewport,
.premium-home-hero .carousel-track {
  height: 100%;
}

.premium-home-hero .carousel-slide {
  display: block;
  height: 100%;
  background: transparent;
}

.premium-home-hero .premium-hero-inner {
  width: min(1180px, calc(100% - 84px));
  height: 100%;
  min-height: 0;
  padding: 28px 0;
}

.premium-home-hero .premium-hero-copy {
  padding: 0;
}

.premium-home-hero .premium-hero-copy::after {
  display: none;
}

.premium-home-hero .premium-hero-description {
  max-width: 460px;
  margin-top: 15px;
  color: rgba(255, 249, 239, .76);
  font-size: 13px;
}

.premium-home-hero .premium-hero-kicker {
  margin-bottom: 13px;
}

.premium-home-hero .premium-hero-actions {
  margin-top: 21px;
}

.premium-poster-shell {
  width: min(100%, 490px);
}

.premium-poster-frame video {
  object-fit: cover;
}

.premium-poster-caption {
  text-shadow: 0 1px 8px rgba(20, 10, 30, .7);
}

.premium-poster-play {
  padding: 0;
  cursor: pointer;
}

.premium-home-hero .carousel-control {
  width: 34px;
  height: 34px;
  border-color: rgba(226, 201, 143, .55);
  border-radius: 50%;
  background: rgba(27, 14, 39, .38);
  color: #f1dcaf;
}

.premium-home-hero .carousel-control:hover,
.premium-home-hero .carousel-control:focus-visible {
  border-color: var(--imperial-gold);
  background: rgba(213, 184, 121, .19);
}

.premium-home-hero .carousel-prev {
  left: 12px;
}

.premium-home-hero .carousel-next {
  right: 12px;
}

.premium-home-hero .carousel-dots {
  bottom: 12px;
}

.site-footer {
  background: #2b183d;
}

@media (max-width: 900px) and (min-width: 761px) {
  .premium-home-hero.home-carousel {
    height: 380px;
  }

  .premium-home-hero .premium-hero-inner {
    width: calc(100% - 76px);
    padding: 23px 0;
    gap: 30px;
  }

  .premium-home-hero .premium-hero-title {
    font-size: clamp(29px, 4vw, 40px);
  }

  .premium-home-hero .premium-hero-description {
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  .site-header .project-nav {
    background: #2b183d;
    border-bottom-color: rgba(222, 195, 143, .28);
  }

  .premium-home-hero.home-carousel {
    height: auto;
  }

  .premium-home-hero .carousel-viewport,
  .premium-home-hero .carousel-track {
    height: auto;
  }

  .premium-home-hero .carousel-slide {
    height: auto;
    min-height: 0;
  }

  .premium-home-hero .premium-hero-inner {
    width: min(100% - 36px, 560px);
    height: auto;
    padding: 32px 0 45px;
    gap: 22px;
  }

  .premium-home-hero .premium-hero-copy {
    text-align: center;
  }

  .premium-home-hero .premium-hero-description {
    margin-inline: auto;
  }

  .premium-home-hero .premium-hero-title {
    font-size: clamp(32px, 8vw, 43px);
  }

  .premium-home-hero .premium-hero-actions {
    flex-direction: row;
  }

  .premium-home-hero .carousel-control {
    top: auto;
    bottom: 50%;
    transform: translateY(50%);
  }

  .premium-home-hero .carousel-prev {
    left: 6px;
  }

  .premium-home-hero .carousel-next {
    right: 6px;
  }

  .premium-home-hero .carousel-dots {
    bottom: 16px;
  }
}

@media (max-width: 430px) {
  .premium-home-hero .premium-hero-inner {
    width: calc(100% - 30px);
    padding-top: 26px;
  }

  .premium-home-hero .premium-hero-title {
    font-size: clamp(29px, 8vw, 36px);
  }

  .premium-home-hero .premium-hero-actions {
    gap: 8px;
  }

  .premium-home-hero .premium-hero-actions a {
    min-height: 39px;
    padding-inline: 12px;
    font-size: 10px;
  }
}

/* A restrained 3D treatment for the hero poster: layered frame, depth and soft motion. */
.premium-home-hero .premium-hero-inner {
  perspective: 1400px;
  perspective-origin: 68% 48%;
}

.premium-poster-shell {
  position: relative;
  transform: perspective(1100px) rotateY(-7deg) rotateX(2deg) translateZ(0);
  transform-style: preserve-3d;
  animation: poster-float 7s ease-in-out infinite;
  box-shadow:
    0 32px 68px rgba(10, 4, 18, .4),
    18px 16px 0 -9px rgba(219, 192, 142, .2),
    29px 25px 0 -18px rgba(219, 192, 142, .13);
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), box-shadow .55s ease;
}

.premium-poster-shell:hover {
  animation-play-state: paused;
  transform: perspective(1100px) rotateY(-2deg) rotateX(0) translate3d(-5px, -5px, 24px);
  box-shadow:
    0 42px 78px rgba(10, 4, 18, .48),
    18px 16px 0 -9px rgba(219, 192, 142, .24),
    29px 25px 0 -18px rgba(219, 192, 142, .16);
}

.premium-poster-frame {
  transform: translateZ(13px);
  transform-style: preserve-3d;
}

.premium-poster-frame::after {
  position: absolute;
  z-index: 1;
  top: 12%;
  right: 14%;
  width: clamp(84px, 10vw, 142px);
  aspect-ratio: 1;
  border: 1px solid rgba(244, 224, 183, .42);
  border-radius: 50%;
  box-shadow:
    0 0 0 11px rgba(244, 224, 183, .05),
    0 0 32px rgba(233, 196, 129, .2),
    inset 0 0 24px rgba(244, 224, 183, .1);
  content: "";
  pointer-events: none;
  transform: translateZ(18px);
}

.premium-poster-frame video,
.premium-poster-frame img,
.premium-poster-placeholder {
  transform: translateZ(2px) scale(1.025);
}

.premium-poster-caption,
.premium-poster-controls {
  transform: translateZ(25px);
}

.premium-poster-controls {
  transform: translateZ(17px);
}

.premium-home-hero .carousel-control {
  transform-style: preserve-3d;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.premium-home-hero .carousel-control:hover {
  transform: translateY(-2px) translateZ(8px);
}

@keyframes poster-float {
  0%, 100% {
    transform: perspective(1100px) rotateY(-7deg) rotateX(2deg) translate3d(0, 0, 0);
  }
  50% {
    transform: perspective(1100px) rotateY(-5deg) rotateX(1deg) translate3d(0, -5px, 8px);
  }
}

@media (max-width: 760px) {
  .premium-home-hero .premium-hero-inner {
    perspective: none;
  }

  .premium-poster-shell {
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
    animation-duration: 8s;
  }

  .premium-poster-shell:hover {
    transform: perspective(1000px) rotateY(0) translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-poster-shell {
    animation: none;
    transform: none;
    transition: none;
  }

  .premium-poster-shell:hover,
  .premium-home-hero .carousel-control:hover {
    transform: none;
  }
}
/* Keep carousel controls' original centering transform; add depth independently. */
:where([class*="slide"] button:hover, [class*="carousel"] button:hover, [class*="slider"] button:hover) {
  translate: 0 -2px 8px;
}
