* {
  box-sizing: border-box;
}

:root {
  --amber: #d97706;
  --amber-soft: #fff7ed;
  --rose: #e11d48;
  --rose-soft: #fff1f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(217, 119, 6, 0.16);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 45%, #fff1f2 100%);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img,
video {
  display: block;
  width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    90deg,
    rgba(255, 251, 235, 0.94),
    rgba(255, 241, 242, 0.94),
    rgba(255, 251, 235, 0.94)
  );
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #fb7185, #fbbf24);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #d97706, #e11d48, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: #374151;
  padding: 8px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #d97706;
  transition: width 0.28s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(300px, 30vw);
}

.top-search input,
.filter-bar input,
.filter-bar select,
.hero-search input {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #1f2937;
  outline: none;
  padding: 11px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.top-search button,
.hero-search button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.top-search button,
.hero-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #e11d48);
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.22);
}

.ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover,
.hero-search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.18);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #92400e;
}

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

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-nav a:hover {
  background: rgba(251, 191, 36, 0.16);
  color: #b45309;
}

.mobile-nav.open {
  display: block;
}

.silk-shine {
  position: relative;
  overflow: hidden;
}

.silk-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  animation: silk-shine-animation 3.2s infinite;
}

.silk-overlay {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.25),
    rgba(251, 113, 133, 0.25),
    rgba(251, 191, 36, 0.25)
  );
  background-size: 400% 400%;
  animation: silk-gradient-flow 8s ease infinite;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide,
.hero-slide img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 0.7s ease,
    transform 1.2s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.9),
      rgba(17, 24, 39, 0.56),
      rgba(17, 24, 39, 0.18)
    ),
    linear-gradient(0deg, rgba(17, 24, 39, 0.8), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  padding: 140px 0 110px;
  margin-left: max(24px, calc((100vw - 1280px) / 2));
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-summary {
  width: min(640px, 100%);
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.card-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  width: min(1280px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-search {
  display: flex;
  align-items: center;
  width: min(540px, 100%);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-search input {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.82);
}

.hero-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
}

.hero-dot.active {
  width: 36px;
  background: #f59e0b;
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 0 0 4px;
  color: #d97706;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.section-heading a {
  color: #b45309;
  font-weight: 800;
}

.compact-heading {
  align-items: start;
  display: block;
}

.movie-grid,
.featured-grid,
.category-grid,
.mini-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.11);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.poster-wrap {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #ffe4e6);
}

.poster-wrap img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #b45309;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 18px;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 20px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-link:hover h2 {
  color: #d97706;
}

.movie-line {
  min-height: 48px;
  margin: 0 0 10px;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-heat {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 14px;
}

.movie-heat {
  margin-top: 12px;
  color: #b45309;
  font-weight: 800;
}

.tag-row span {
  color: #9f1239;
  background: #fff1f2;
}

.large .movie-card-link {
  position: relative;
  min-height: 390px;
  color: #fff;
}

.large .poster-wrap {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}

.large .poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(17, 24, 39, 0.88),
    rgba(17, 24, 39, 0.1)
  );
}

.large .movie-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px;
}

.large h2,
.large .movie-line,
.large .movie-meta,
.large .movie-heat {
  color: #fff;
}

.large .tag-row span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.compact .movie-card-body {
  padding: 14px;
}

.compact h2 {
  font-size: 17px;
}

.compact .movie-line {
  min-height: 42px;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: start;
}

.rank-aside,
.article-panel,
.player-card,
.category-overview-card,
.filter-bar {
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.08);
}

.rank-aside {
  padding: 22px;
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-item a {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.rank-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.1);
}

.rank-item img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #d97706, #e11d48);
}

.rank-item h2 {
  margin: 0 0 4px;
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item p {
  margin: 0 0 4px;
  color: #4b5563;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-item span {
  color: #6b7280;
  font-size: 13px;
}

.rank-item strong {
  color: #b45309;
  font-size: 14px;
}

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

.category-tile {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #e11d48, #f59e0b);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 96px 24px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.18),
    rgba(251, 113, 133, 0.18),
    rgba(255, 255, 255, 0.2)
  );
}

.page-hero > div {
  width: min(850px, 100%);
}

.page-hero p:not(.eyebrow) {
  margin: 18px auto 0;
  color: #4b5563;
  font-size: 18px;
}

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

.category-overview-card {
  padding: 24px;
}

.category-overview-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
}

.category-overview-title span {
  font-size: 24px;
  font-weight: 900;
}

.category-overview-title strong {
  color: #b45309;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: #6b7280;
}

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

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  margin-bottom: 28px;
}

.filter-bar select {
  width: min(220px, 40%);
}

.empty-state {
  display: none;
  margin: 30px 0 0;
  color: #9f1239;
  font-weight: 800;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.86), transparent 55%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.detail-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.detail-poster img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.detail-one-line {
  max-width: 760px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
  color: #fff;
  background: rgba(251, 191, 36, 0.22);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.player-card {
  overflow: hidden;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0f172a;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    circle at center,
    rgba(225, 29, 72, 0.2),
    rgba(15, 23, 42, 0.64)
  );
  cursor: pointer;
  z-index: 3;
}

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

.play-layer button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 18px 26px;
  color: #fff;
  background: linear-gradient(135deg, #d97706, #e11d48);
  box-shadow: 0 18px 42px rgba(225, 29, 72, 0.34);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.player-title {
  padding: 22px;
}

.player-title h2,
.article-panel h2 {
  margin: 0 0 10px;
}

.player-title p,
.article-panel p {
  margin: 0;
  color: #4b5563;
}

.article-panel {
  padding: 28px;
}

.article-panel h2:not(:first-child) {
  margin-top: 26px;
}

.full-rank-list .rank-item a {
  grid-template-columns: auto 120px minmax(0, 1fr) auto;
}

.full-rank-list .rank-item img {
  width: 120px;
  height: 78px;
}

.sticky-aside {
  position: sticky;
  top: 96px;
}

.side-grid {
  grid-template-columns: 1fr;
}

.site-footer {
  margin-top: 30px;
  color: #fff;
  background: linear-gradient(135deg, #78350f, #881337, #92400e);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

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

.footer-grid p,
.footer-grid a {
  color: #ffedd5;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(254, 243, 199, 0.22);
  color: #fde68a;
  text-align: center;
}

@keyframes silk-shine-animation {
  0% {
    left: -120%;
  }

  55%,
  100% {
    left: 120%;
  }
}

@keyframes silk-gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

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

  .split-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .sticky-aside {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .brand-name {
    font-size: 19px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-copy {
    margin: 0 auto;
    padding: 105px 0 170px;
  }

  .hero-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-dots {
    justify-content: center;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .detail-poster {
    max-width: 340px;
  }

  .rank-item a,
  .full-rank-list .rank-item a {
    grid-template-columns: auto 88px minmax(0, 1fr);
  }

  .rank-item strong {
    display: none;
  }
}

@media (max-width: 560px) {
  .content-section {
    width: min(100% - 24px, 1280px);
    padding: 42px 0;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    width: 100%;
  }

  .rank-item a,
  .full-rank-list .rank-item a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-item img {
    display: none;
  }

  .detail-inner {
    padding-top: 28px;
  }
}
