:root {
  --clone-layout-lock: 1;
}

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

html,body,#root,.page-shell,.site-header,.site-header-inner,.detail-layout,.detail-main,.detail-poster,.player-wrap,.movie-grid,.filter-panel,.filter-row {
  min-width:0;
  max-width:100%;
}

body,.page-shell {
  overflow-x:hidden;
}

.site-header {
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

.site-header-inner {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:12px;
}

.site-header-inner>.header-search {
  flex:0 0 256px;
  width:256px;
  min-width:256px;
  max-width:256px;
}

.detail-main h1,.movie-card h3 {
  letter-spacing:normal;
}

.movie-card,.movie-card:hover,.hero-poster-card,.hero-poster-card:hover {
  transform:none;
}

.movie-cover,.detail-poster,.player-wrap {
  position:relative;
  overflow:hidden;
}

.movie-cover img,.detail-poster img,.hero-poster-card img {
  display:block;
  width:100%;
  max-width:100%;
  height:100%;
  -webkit-object-fit:cover;
  -o-object-fit:cover;
  object-fit:cover;
}

.player-wrap {
  width:100%;
}

.player-wrap video,.video-el,.movie-player {
  display:block;
  width:100%!important;
  max-width:100%!important;
  height:auto;
  aspect-ratio:16 / 9;
  -webkit-object-fit:contain;
  -o-object-fit:contain;
  object-fit:contain;
}

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

.filter-row,.tag-row,.hero-actions,.breadcrumb,.footer-links {
  display:flex;
  flex-wrap:wrap;
  min-width:0;
}

.auth-card,.login-card,.register-card,form {
  max-width:100%;
  min-width:0;
}

@media (min-width: 1280px) {
  .movie-grid {
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

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

@media (max-width: 1100px) {
  .movie-grid,.category-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}

@media (max-width: 1023px) {
  .nav-row,.header-search {
    display:none;
  }
  .mobile-toggle {
    display:inline-flex;
  }
  .movie-grid,.category-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .detail-layout,.filter-panel,.search-panel {
    grid-template-columns:1fr;
  }
  .hero h1,.hero h2,.detail-main h1,.hero [data-hero-h1] {
    font-size:clamp(28px,8vw,40px);
    line-height:1.25;
  }
}

@media (max-width: 640px) {
  .movie-grid,.category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .page-shell,.section-block,.content-card,.detail-main {
    padding-left:12px;
    padding-right:12px;
  }
  .hero,.page-hero,.player-wrap,.movie-card {
    border-radius:16px;
  }
}

:root {
  --primary: #b86580;
  --secondary: #bd4300;
  --accent: #c285cf;
  --dark: #241117;
  --slate: #533932;
  --muted: #896b63;
  --line: #efe4e7;
  --soft: #fcf9fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(36,17,23,.12);
  --shadow-soft: 0 12px 30px rgba(36,17,23,.08);
  --radius: 20px;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

body {
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;
  color:var(--dark);
  background:linear-gradient(#fcf9fa,#ffffff 46%,#fcf1f4);
  line-height:1.6;
}

a {
  color:inherit;
  text-decoration:none;
}

img {
  display:block;
  max-width:100%;
}

button,input {
  font:inherit;
}

.site-header {
  position:sticky;
  top:0;
  z-index:50;
  background:linear-gradient(90deg,#bd4300,#b86580 52%,#9e6aa4);
  box-shadow:#bd430038 0 12px 34px;
}

.nav-wrap {
  width:min(1200px,100% - 32px);
  height:68px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#ffffff;
  font-weight:800;
  letter-spacing:.02em;
}

.brand-mark {
  width:36px;
  height:36px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#ffffff2e;
  box-shadow:#ffffff47 0 0 0 1px inset;
  transition:transform .25s;
}

.brand:hover .brand-mark {
  transform:scale(1.08) rotate(4deg);
}

.brand-text {
  font-size:24px;
}

.desktop-nav {
  display:flex;
  align-items:center;
  gap:30px;
}

.nav-link {
  color:#ffffffdb;
  font-weight:650;
  position:relative;
  padding:23px 0;
  transition:color .2s;
}

.nav-link:after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:14px;
  height:3px;
  border-radius:999px;
  background:#ffffff;
  transform:scaleX(0);
  transform-origin:center center;
  transition:transform .2s;
}

.nav-link:hover,.nav-link.active {
  color:#ffffff;
}

.nav-link:hover:after,.nav-link.active:after {
  transform:scaleX(1);
}

.menu-toggle {
  display:none;
  width:42px;
  height:42px;
  border:0px;
  border-radius:14px;
  background:#ffffff24;
  cursor:pointer;
}

.menu-toggle span {
  display:block;
  width:20px;
  height:2px;
  margin:5px auto;
  border-radius:99px;
  background:#ffffff;
}

.mobile-nav {
  display:none;
  width:min(1200px,100% - 32px);
  margin:0 auto;
  padding:0 0 18px;
}

.mobile-nav.open {
  display:grid;
  gap:10px;
}

.mobile-link {
  color:#ffffff;
  padding:10px 12px;
  border-radius:12px;
  background:#ffffff1a;
}

main {
  min-height:60vh;
}

.hero-carousel {
  position:relative;
  min-height:620px;
  overflow:hidden;
  color:#ffffff;
  background:#241117;
}

.hero-slide {
  position:absolute;
  inset:0;
  opacity:0;
  transform:scale(1.02);
  pointer-events:none;
  transition:opacity .7s,transform .7s;
}

.hero-slide.active {
  opacity:1;
  transform:scale(1);
  pointer-events:auto;
}

.hero-slide:before {
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--hero-image);
  background-size:cover;
  background-position:center center;
  filter:blur(16px) saturate(1.08);
  transform:scale(1.08);
  opacity:.36;
}

.hero-slide:after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 25%,rgba(194,133,207,.5),transparent 32%),linear-gradient(90deg,#241117f2,#241117b8 48%,#24111761);
}

.hero-backdrop {
  position:absolute;
  inset:0;
  background:linear-gradient(#2411171f,#2411178c);
}

.hero-content {
  position:relative;
  z-index:2;
  width:min(1200px,100% - 32px);
  min-height:620px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0px,1fr) 340px;
  align-items:center;
  gap:56px;
  padding:72px 0 82px;
}

.eyebrow,.section-kicker {
  display:inline-flex;
  align-items:center;
  width:-moz-fit-content;
  width:fit-content;
  gap:8px;
  margin-bottom:14px;
  color:#ffbbe0;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-copy h1,.hero-copy [data-hero-h1] {
  margin:0;
  max-width:760px;
  font-size:clamp(42px,6vw,72px);
  line-height:1.02;
  letter-spacing:-.04em;
}

.hero-copy p {
  max-width:720px;
  margin:22px 0 0;
  color:#ffffffd6;
  font-size:18px;
}

.hero-tags,.tag-row {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.hero-tags {
  margin-top:22px;
}

.hero-tags span,.tag-row span {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.hero-tags span {
  padding:7px 11px;
  color:#ffe9f6;
  background:#b8658057;
  box-shadow:#ffbbe04d 0 0 0 1px inset;
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}

.primary-btn,.ghost-btn,.section-more,.quick-search button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:14px;
  font-weight:800;
  transition:transform .2s,box-shadow .2s,background .2s;
}

.primary-btn {
  padding:0 22px;
  color:#ffffff;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  box-shadow:#b8658057 0 16px 28px;
}

.ghost-btn {
  padding:0 22px;
  color:#ffffff;
  background:#ffffff24;
  box-shadow:#ffffff3d 0 0 0 1px inset;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}

.primary-btn:hover,.ghost-btn:hover,.section-more:hover,.quick-search button:hover {
  transform:translateY(-2px);
}

.hero-poster {
  display:block;
  position:relative;
  border-radius:28px;
  overflow:hidden;
  transform:rotate(2deg);
  box-shadow:#0000006b 0 28px 80px;
}

.hero-poster img {
  width:100%;
  aspect-ratio:3 / 4;
  -o-object-fit:cover;
  object-fit:cover;
}

.hero-poster:after {
  content:"";
  position:absolute;
  inset:0;
  box-shadow:#ffffff2e 0 0 0 1px inset;
  border-radius:inherit;
}

.hero-dots {
  position:absolute;
  z-index:5;
  left:50%;
  bottom:30px;
  transform:translate(-50%);
  display:flex;
  align-items:center;
  gap:10px;
}

.hero-dot {
  width:11px;
  height:11px;
  border:0px;
  border-radius:99px;
  background:#ffffff6b;
  cursor:pointer;
  transition:width .2s,background .2s;
}

.hero-dot.active {
  width:32px;
  background:#ffffff;
}

.search-band,.content-section,.filter-panel,.detail-content {
  width:min(1200px,100% - 32px);
  margin-left:auto;
  margin-right:auto;
}

.search-band {
  display:grid;
  grid-template-columns:minmax(0px,1fr) minmax(300px,520px);
  align-items:center;
  gap:28px;
  margin-top:-52px;
  position:relative;
  z-index:6;
  padding:30px;
  border-radius:24px;
  color:#ffffff;
  background:linear-gradient(90deg,#bd4300,#b86580,#9e6aa4);
  box-shadow:var(--shadow);
}

.search-band span {
  color:#ffe9f6;
  font-weight:800;
}

.search-band h2 {
  margin:6px 0 0;
  font-size:clamp(24px,3vw,34px);
  line-height:1.2;
}

.quick-search {
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
}

.quick-search input,.filter-search input {
  width:100%;
  border:0px;
  outline:0px;
  border-radius:14px;
  color:var(--dark);
  background:#ffffff;
  box-shadow:#b69a9347 0 0 0 1px inset;
}

.quick-search input {
  min-height:50px;
  padding:0 16px;
}

.quick-search button {
  border:0px;
  padding:0 22px;
  color:#241117;
  background:#ffffff;
  cursor:pointer;
}

.content-section {
  padding:66px 0 0;
}

.section-head {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}

.section-head h2 {
  margin:0;
  color:#241117;
  font-size:clamp(26px,3vw,38px);
  line-height:1.15;
  letter-spacing:-.03em;
}

.section-more {
  flex:0 0 auto;
  min-height:40px;
  padding:0 16px;
  color:#ffffff;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
}

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

.category-card {
  position:relative;
  overflow:hidden;
  min-height:220px;
  border-radius:22px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#ffffff;
  background:#241117;
  box-shadow:var(--shadow-soft);
}

.category-card img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  -o-object-fit:cover;
  object-fit:cover;
  opacity:.46;
  transform:scale(1.04);
  transition:transform .3s,opacity .3s;
}

.category-card:after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(transparent,#241117eb);
}

.category-card span,.category-card p {
  position:relative;
  z-index:2;
}

.category-card span {
  font-size:20px;
  font-weight:850;
}

.category-card p {
  margin:8px 0 0;
  color:#ffffffc7;
  font-size:13px;
}

.category-card:hover img {
  transform:scale(1.12);
  opacity:.58;
}

.movie-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0px,1fr));
  gap:22px;
}

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

.movie-card {
  overflow:hidden;
  border-radius:var(--radius);
  background:#ffffff;
  box-shadow:var(--shadow-soft);
  transition:transform .22s,box-shadow .22s;
}

.movie-card:hover {
  transform:translateY(-6px);
  box-shadow:var(--shadow);
}

.poster-link {
  position:relative;
  display:block;
  overflow:hidden;
  background:#efe4e7;
}

.poster-link img {
  width:100%;
  aspect-ratio:2 / 3;
  -o-object-fit:cover;
  object-fit:cover;
  transition:transform .35s;
}

.movie-card:hover .poster-link img {
  transform:scale(1.08);
}

.card-play {
  position:absolute;
  left:14px;
  bottom:14px;
  padding:7px 11px;
  border-radius:999px;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
  background:#b86580eb;
  box-shadow:#b865804d 0 10px 20px;
}

.card-body {
  padding:16px;
}

.card-meta {
  min-height:20px;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.movie-card h2 {
  margin:7px 0 6px;
  color:#241117;
  font-size:18px;
  line-height:1.25;
}

.movie-card.compact h2 {
  font-size:16px;
}

.movie-card p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.tag-row {
  margin-top:12px;
}

.tag-row span {
  padding:5px 9px;
  color:#9c4345;
  background:#fee8ee;
}

.rank-section {
  padding-top:72px;
}

.rank-list {
  display:grid;
  grid-template-columns:repeat(3,minmax(0px,1fr));
  gap:14px;
}

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

.rank-row {
  display:grid;
  grid-template-columns:46px 58px minmax(0px,1fr);
  gap:14px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  background:#ffffff;
  box-shadow:var(--shadow-soft);
  transition:transform .2s,box-shadow .2s;
}

.rank-row:hover {
  transform:translate(4px);
  box-shadow:var(--shadow);
}

.rank-number {
  color:#b86580;
  font-size:22px;
  font-weight:900;
  text-align:center;
}

.rank-row img {
  width:58px;
  height:78px;
  border-radius:12px;
  -o-object-fit:cover;
  object-fit:cover;
}

.rank-info {
  min-width:0px;
}

.rank-info strong,.rank-info em {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.rank-info strong {
  color:#241117;
  font-size:16px;
}

.rank-info em {
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
  font-style:normal;
}

.page-hero {
  color:#ffffff;
  background:radial-gradient(circle at 18% 20%,rgba(255,187,224,.35),transparent 28%),linear-gradient(90deg,#a03b00,#b86580,#7f5582);
}

.page-hero>div {
  width:min(1200px,100% - 32px);
  margin:0 auto;
  padding:86px 0 72px;
}

.page-hero h1,.page-hero [data-hero-h1] {
  margin:0;
  font-size:clamp(38px,5vw,62px);
  line-height:1.08;
  letter-spacing:-.04em;
}

.page-hero p {
  max-width:760px;
  margin:18px 0 0;
  color:#ffffffd6;
  font-size:18px;
}

.filter-panel {
  display:grid;
  gap:16px;
  margin-top:28px;
  padding:22px;
  border-radius:22px;
  background:#ffffff;
  box-shadow:var(--shadow-soft);
}

.filter-search input {
  min-height:52px;
  padding:0 16px;
  background:#fcf9fa;
}

.filter-buttons {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.filter-buttons button {
  border:0px;
  border-radius:999px;
  padding:9px 14px;
  color:#82393d;
  font-weight:800;
  background:#fee8ee;
  cursor:pointer;
}

.filter-buttons button.active,.filter-buttons button:hover {
  color:#ffffff;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
}

.category-overview-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0px,1fr));
  gap:22px;
}

.category-overview {
  display:grid;
  grid-template-columns:190px minmax(0px,1fr);
  gap:22px;
  align-items:center;
  padding:20px;
  border-radius:24px;
  background:#ffffff;
  box-shadow:var(--shadow-soft);
  transition:transform .2s,box-shadow .2s;
}

.category-overview:hover {
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}

.category-covers {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}

.category-covers img {
  width:100%;
  aspect-ratio:1 / 1;
  border-radius:14px;
  -o-object-fit:cover;
  object-fit:cover;
}

.category-overview span {
  color:var(--primary);
  font-weight:850;
}

.category-overview h2 {
  margin:6px 0 8px;
  font-size:26px;
}

.category-overview p {
  margin:0;
  color:var(--muted);
}

.detail-hero {
  position:relative;
  width:min(1200px,100% - 32px);
  margin:42px auto 0;
  display:grid;
  grid-template-columns:320px minmax(0px,1fr);
  gap:42px;
  align-items:center;
  padding:34px;
  border-radius:32px;
  color:#ffffff;
  overflow:hidden;
  background:radial-gradient(circle at 16% 18%,rgba(253,152,202,.36),transparent 30%),linear-gradient(135deg,#241117,#653742 52%,#7f5582);
  box-shadow:var(--shadow);
}

.detail-poster img {
  width:100%;
  aspect-ratio:2 / 3;
  -o-object-fit:cover;
  object-fit:cover;
  border-radius:24px;
  box-shadow:#00000052 0 28px 70px;
}

.breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:#ffd6ed;
  font-weight:750;
}

.detail-info h1 {
  margin:16px 0 14px;
  font-size:clamp(34px,5vw,58px);
  line-height:1.06;
  letter-spacing:-.04em;
}

.detail-line {
  max-width:760px;
  color:#ffffffd6;
  font-size:18px;
}

.detail-meta {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0 0;
}

.detail-meta span {
  padding:8px 12px;
  border-radius:999px;
  color:#fee8ee;
  background:#ffffff1f;
}

.detail-tags {
  margin-bottom:26px;
}

.player-section {
  width:min(1100px,100% - 32px);
  margin:46px auto 0;
}

.player-shell {
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:#110307;
  box-shadow:var(--shadow);
}

.movie-video {
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  background:#110307;
}

.play-cover {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  gap:14px;
  border:0px;
  color:#ffffff;
  text-align:center;
  background:linear-gradient(#1103072e,#110307b8);
  cursor:pointer;
}

.play-cover.hidden {
  display:none;
}

.play-icon {
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  padding-left:5px;
  border-radius:999px;
  font-size:36px;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  box-shadow:#b865806b 0 18px 40px;
}

.play-cover strong {
  max-width:min(760px,100% - 48px);
  font-size:clamp(22px,4vw,38px);
}

.detail-content {
  display:grid;
  grid-template-columns:minmax(0px,1fr) minmax(0px,.78fr);
  gap:24px;
  padding-top:42px;
}

.story-card {
  padding:30px;
  border-radius:24px;
  background:#ffffff;
  box-shadow:var(--shadow-soft);
}

.accent-card {
  background:linear-gradient(135deg,#fff8f9,#fef2f5);
}

.story-card h2 {
  margin:0 0 14px;
  font-size:26px;
  letter-spacing:-.02em;
}

.story-card p {
  margin:0;
  color:#533932;
  font-size:16px;
}

.site-footer {
  margin-top:78px;
  color:#efe4e7;
  background:linear-gradient(#362228,#241117);
}

.footer-grid {
  width:min(1200px,100% - 32px);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:38px;
  padding:48px 0;
}

.footer-brand {
  color:#ffffff;
  font-size:24px;
  font-weight:900;
}

.site-footer p {
  max-width:520px;
  color:#e0cfd3;
}

.site-footer h2 {
  margin:0 0 14px;
  color:#ffbbe0;
  font-size:18px;
}

.footer-links {
  display:grid;
  gap:9px;
}

.footer-links a {
  color:#e0cfd3;
}

.footer-links a:hover {
  color:#ffbbe0;
}

.footer-bottom {
  border-top:1px solid rgba(239,228,231,.12);
  padding:18px 16px;
  color:#b69a93;
  text-align:center;
}

.is-hidden {
  display:none!important;
}

@media (max-width: 1080px) {
  .category-grid,.small-grid,.movie-grid {
    grid-template-columns:repeat(3,minmax(0px,1fr));
  }
  .hero-content,.detail-hero {
    grid-template-columns:1fr;
  }
  .hero-poster,.detail-poster {
    max-width:320px;
  }
  .rank-list,.wide-rank,.detail-content,.category-overview-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display:none;
  }
  .menu-toggle {
    display:block;
  }
  .brand-text {
    font-size:20px;
  }
  .hero-carousel,.hero-content {
    min-height:680px;
  }
  .hero-content {
    padding-top:48px;
    gap:26px;
  }
  .hero-copy h1,.hero-copy [data-hero-h1] {
    font-size:40px;
  }
  .search-band {
    grid-template-columns:1fr;
    margin-top:-28px;
    padding:22px;
  }
  .quick-search {
    grid-template-columns:1fr;
  }
  .section-head {
    align-items:start;
    flex-direction:column;
  }
  .category-grid,.movie-grid,.small-grid {
    grid-template-columns:repeat(2,minmax(0px,1fr));
    gap:14px;
  }
  .category-overview {
    grid-template-columns:1fr;
  }
  .rank-row {
    grid-template-columns:38px 54px minmax(0px,1fr);
  }
  .detail-hero {
    margin-top:22px;
    padding:22px;
  }
  .detail-info h1 {
    font-size:34px;
  }
  .story-card {
    padding:22px;
  }
  .footer-grid {
    grid-template-columns:1fr;
  }
}

@media (max-width: 480px) {
  .category-grid,.movie-grid,.small-grid {
    grid-template-columns:1fr;
  }
  .hero-poster {
    max-width:260px;
  }
  .play-icon {
    width:68px;
    height:68px;
    font-size:28px;
  }
}

.mirror-raw {
  display:contents;
}

.hero-content h1,.hero-title-block h1,.hero-content [data-hero-h1],.hero-title-block [data-hero-h1] {
  letter-spacing:normal;
  line-height:1.2;
}

.hero-content p:not(.eyebrow) {
  letter-spacing:normal;
  line-height:1.75;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.back-top,button[aria-label="回到顶部"] {
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}

h1,h2,h3,.tpl-title,.hero h1,.hero h2,.detail-copy h1,.page-hero h1,.site-logo,.brand,.logo,.hero [data-hero-h1],.page-hero [data-hero-h1] {
  letter-spacing:normal!important;
  line-height:1.25;
}

header,.site-header,.topbar,.navbar,.tpl-header,.detail-layout,.detail-hero,.detail-page,.play-grid,.player-shell,.player-stage,.player-box,.player-wrap,.movie-grid,.category-grid,.tpl-grid {
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

.site-header,.topbar,.navbar {
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

.player-shell,.player-stage,.player-box,.player-wrap {
  position:relative;
  width:100%;
  overflow:hidden;
}

.player-shell video,.player-stage video,.player-box video,.player-wrap video,.tpl-player video {
  width:100%!important;
  max-width:100%!important;
  height:auto;
}

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

.movie-card:hover,.movie-card:hover img,.hero-poster:hover img {
  transform:none;
}

.pkg-menu-btn {
  display:none;
  margin-left:auto;
  width:42px;
  height:42px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:inherit;
  font-size:22px;
  line-height:1;
  flex:0 0 auto;
}

@media (max-width:1023px) {
  header .desktop-nav,header .site-nav,header .main-nav,header .nav-links,.tpl-header .tpl-links {
    display:none!important;
  }
  header .main-nav.is-open,header .nav-links.is-open,.tpl-header .tpl-links.is-open,header .mobile-panel.is-open,header .mobile-nav.is-open,header .mobile-menu.is-open,.nav-panel.is-open,header ul.is-open,.navbar-collapse.is-open {
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
    height:auto!important;
    max-height:none!important;
    visibility:visible;
    position:relative;
    z-index:80;
    width:100%;
    gap:8px;
    padding:8px 16px 12px;
    overflow:visible;
  }
  header .mobile-menu-button,header .menu-toggle,header .mobile-toggle,header .menu-button,header .nav-toggle,.navbar-toggler,[data-nav-button],.pkg-menu-btn {
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
  }
  header .header-search,header .nav-search {
    flex:1 1 100%;
    min-width:0;
    max-width:100%;
  }
  header .header-search input,header .nav-search input {
    width:100%;
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
  }
  .detail-layout,.detail-hero,.split-section,.filter-panel,.search-panel {
    grid-template-columns:1fr!important;
  }
}

@media (max-width:640px) {
  .movie-grid,.category-grid,.tpl-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media (min-width:1024px) {
  header .mobile-menu-button,header .menu-toggle,header .mobile-toggle,header .menu-button,header .nav-toggle,.navbar-toggler,[data-nav-button],.pkg-menu-btn {
    display:none!important;
  }
  header .mobile-panel,header .mobile-nav,header .mobile-menu,.nav-panel {
    display:none!important;
  }
}

@supports not (aspect-ratio:16/9) {
  .player-shell,.player-stage,.player-box {
    height:0;
    padding-top:56.25%;
    aspect-ratio:auto;
  }
  .player-shell video,.player-stage video,.player-box video {
    position:absolute;
    inset:0;
    height:100%!important;
  }
}

@media (max-width:1023px) {
  header .header-inner,header .nav-shell,header .site-header__inner,header .site-header-inner,header .nav-wrap,header .topbar-inner,header .container,header .tpl-nav,.navbar .container {
    display:flex!important;
    flex-wrap:wrap;
    align-items:center;
    min-height:0!important;
    height:auto!important;
    row-gap:8px   ;
  }
  header .brand,header .site-logo,header .logo,header .tpl-brand,.navbar-brand {
    flex:1 1 auto;
    min-width:0;
    max-width:calc(100% - 56px);
  }
  .navbar-collapse {
    display:none!important;
  }
  .navbar-collapse.is-open {
    display:flex!important;
    flex-direction:column;
    width:100%;
    height:auto!important;
    position:relative;
    z-index:80;
  }
  .navbar-toggler {
    min-width:42px;
    min-height:42px;
  }
}

@media (max-width:1023px) {
  header .header-inner,header .nav-shell,header .site-header__inner,header .site-header-inner,header .nav-wrap,header .topbar-inner,header .tpl-nav,.navbar .container {
    column-gap:8px!important;
  }
  header .brand,header .site-logo,header .logo,header .tpl-brand,.navbar-brand {
    order:1;
    flex:1 1 0!important;
    max-width:none!important;
    min-width:0;
  }
  header .mobile-menu-button,header .menu-toggle,header .mobile-toggle,header .menu-button,header .nav-toggle,.navbar-toggler,.pkg-menu-btn {
    order:2;
    margin-left:auto;
    flex:0 0 auto;
  }
  header .header-search,header .nav-search {
    order:3;
    flex:1 0 100%!important;
  }
  header ul.is-open a,header .mobile-nav.is-open a,header .mobile-panel.is-open a,header .mobile-menu.is-open a,.nav-panel.is-open a,.navbar-collapse.is-open a {
    display:block;
    min-height:36px;
    line-height:36px;
  }
}

@media (max-width:1023px) {
  header ul.hidden.is-open {
    position:absolute!important;
    left:0;
    right:0;
    top:100%;
    width:auto!important;
    background:#171012;
    color:#faeef1;
    z-index:90;
    padding:12px 16px!important;
  }
  header ul.hidden.is-open a {
    color:inherit;
  }
}

.movie-card,.rank-row,.category-card,.category-overview,.detail-hero,.detail-content,.player-shell,.search-band,.auth-form {
  min-width:0;
  max-width:100%;
}

.movie-card:hover .poster-link img,.category-card:hover img,.rank-row:hover,.hero-poster {
  transform:none;
}

.auth-page {
  width:min(440px,calc(100% - 32px));
  margin:48px auto 72px;
}

.auth-form {
  display:grid;
  gap:14px;
  padding:28px;
  border-radius:24px;
  background:#ffffff;
  box-shadow:var(--shadow-soft);
}

.auth-form h1 {
  margin:0;
  font-size:28px;
}

.auth-form__field {
  display:grid;
  gap:6px;
  color:#241117;
  font-weight:700;
}

.auth-form input {
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:0;
  border-radius:14px;
  color:#241117;
  background:#fcf9fa;
  box-shadow:inset 0 0 0 1px #b69a9347;
  font-size:16px;
}

.auth-form button[type="submit"] {
  min-height:48px;
  border:0;
  border-radius:14px;
  color:#ffffff;
  font-weight:800;
  background:linear-gradient(90deg,var(--primary),var(--secondary));
  cursor:pointer;
}

.auth-form__foot {
  margin:0;
  color:var(--muted);
}

input,select,textarea {
  font-size:16px;
}

@media (max-width:1080px) {
  .hero-carousel {
    height:auto!important;
    min-height:0!important;
  }
  .hero-slide.active {
    position:relative!important;
    inset:auto!important;
    opacity:1;
    transform:none;
  }
  .hero-slide:not(.active) {
    position:absolute;
    inset:0;
  }
  .hero-content {
    min-height:0!important;
    height:auto;
    align-content:start;
    padding:36px 0 72px;
  }
  .hero-poster {
    max-width:min(280px,100%);
    margin-inline:auto;
    transform:none;
  }
  .hero-dots {
    bottom:40px;
  }
  .search-band {
    margin-top:-24px;
  }
  .detail-hero,.detail-content,.category-overview,.category-overview-grid,.rank-list,.wide-rank {
    grid-template-columns:1fr!important;
  }
  .player-shell {
    width:100%;
    max-width:100%;
  }
  .movie-video {
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9;
    object-fit:contain;
    background:#110307;
  }
}

@media (max-width:760px) {
  .movie-grid,.small-grid,.category-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .nav-wrap {
    height:auto!important;
    min-height:56px;
  }
  .page-hero>div,.detail-hero {
    padding-left:16px;
    padding-right:16px;
  }
  .detail-hero {
    width:min(1200px,calc(100% - 24px));
  }
}

@media (min-width:761px) and (max-width:1080px) {
  .movie-grid,.small-grid,.category-grid {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

.rank-list,.wide-rank {
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px;
}

.rank-row {
  display:grid!important;
  grid-template-columns:56px 84px minmax(0,1fr)!important;
  align-items:center;
  gap:14px;
  min-height:120px;
  padding:12px 14px;
}

.rank-number {
  font-size:22px;
  font-weight:900;
  color:#b86580;
  text-align:center;
}

.rank-row img {
  width:84px!important;
  height:112px!important;
  border-radius:12px;
  object-fit:cover;
}

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

.rank-info strong,.rank-info em {
  white-space:normal!important;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  text-overflow:unset;
  line-height:1.35;
}

.rank-info strong {
  -webkit-line-clamp:2;
  font-size:16px;
}

.rank-info em {
  -webkit-line-clamp:1;
  margin-top:4px;
  color:#896b63;
  font-style:normal;
}

.category-grid {
  align-items:stretch;
}

.category-card {
  min-height:180px;
}

.page-shell .page-hero {
  padding:64px 0 78px;
}

.page-shell .page-hero h1,.page-shell .page-hero p, .page-shell .page-hero [data-hero-h1] {
  width:min(1200px,calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

.page-shell .page-hero h1, .page-shell .page-hero [data-hero-h1] {
  margin-bottom:0;
}

.page-shell .page-hero p {
  margin-top:12px;
}

.search-panel {
  width:min(1200px,calc(100% - 32px));
  margin:-36px auto 0;
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:18px;
  border-radius:22px;
  background:#ffffff;
  box-shadow:var(--shadow);
}

.search-input {
  width:100%;
  min-height:52px;
  padding:0 16px;
  border:0;
  border-radius:14px;
  color:#241117;
  background:#fcf9fa;
  box-shadow:inset 0 0 0 1px #b69a9347;
  font-size:16px;
}

.section-block {
  width:min(1200px,calc(100% - 32px));
  margin:28px auto 64px;
}

.search-picks-title {
  margin:8px 0 18px;
  font-size:28px;
  letter-spacing:normal;
  line-height:1.25;
}

@media (max-width:760px) {
  .rank-list,.wide-rank,.search-panel {
    grid-template-columns:1fr!important;
  }
  .search-panel {
    margin-top:16px;
  }
}

.page-shell>.breadcrumb {
  width:min(1200px,calc(100% - 32px));
  margin:0 auto;
  padding:14px 0;
  background:none;
  color:#896b63;
  font-size:14px;
  line-height:1.5;
}

.page-shell>.breadcrumb * {
  color:inherit;
}

.page-shell>.breadcrumb a {
  color:var(--primary);
  font-weight:600;
}

.page-shell>.breadcrumb [aria-current] {
  color:#241117;
}

.page-shell .page-hero {
  border-radius:0;
}

.page-shell .page-hero p {
  max-width:min(1200px,calc(100% - 32px));
  color:rgba(255,255,255,.88);
  font-size:16px;
  line-height:1.75;
}

.page-shell .section-block>p {
  margin:0 0 6px;
  color:#896b63;
}

.page-shell .section-block>p a {
  color:var(--primary);
  font-weight:600;
}

.page-shell .movie-grid {
  gap:18px;
}

@media (max-width:760px) {
  .page-shell .page-hero {
    padding:36px 0 52px;
  }
  .page-shell .page-hero h1,   .page-shell .page-hero [data-hero-h1] {
    font-size:30px;
  }
  .search-panel {
    padding:12px;
    border-radius:16px;
  }
  .search-picks-title {
    font-size:22px;
  }
}

.back-top,[aria-label="回到顶部"] {
  display:none!important;
}
