:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fff7ed;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(217, 119, 6, 0.18);
  --brand: #d97706;
  --brand-dark: #b45309;
  --brand-soft: #fef3c7;
  --accent: #f97316;
  --shadow: 0 18px 55px rgba(146, 64, 14, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(251, 191, 36, 0.20), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(249, 115, 22, 0.14), transparent 26rem),
    linear-gradient(135deg, #ffffff 0%, #fff7ed 50%, #fffbeb 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  background: rgba(255, 251, 235, 0.90);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 22px;
  background: linear-gradient(135deg, var(--brand-dark), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #6b4b1f;
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.22);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.10);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: var(--brand-dark);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 94vh;
  padding-top: 68px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 68px 0 0;
  min-height: calc(94vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.88)),
    radial-gradient(circle at 30% 45%, rgba(245, 158, 11, 0.30), transparent 28rem);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.08);
  opacity: 0.48;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 64px 0;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span,
.quick-tags button {
  border: 1px solid rgba(251, 191, 36, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.13);
}

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

.hero-actions.centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

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

.btn.soft {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero-poster {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.hero-poster span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.30);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 28px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

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

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(0deg, #fffaf0, transparent);
}

.content-section,
.page-shell,
.detail-content-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.content-section.no-pad {
  padding-top: 34px;
}

.content-section.tinted {
  width: 100%;
  margin: 0;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.58), rgba(255, 237, 213, 0.62));
}

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

.section-heading h2,
.category-panel h2,
.article-panel h2,
.info-card h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.section-heading p,
.category-panel p {
  margin: 0;
  color: var(--muted);
}

.section-action {
  flex-shrink: 0;
  color: var(--brand-dark);
  font-weight: 900;
}

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

.all-movie-grid {
  padding: 26px 0 80px;
}

.movie-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 12px 38px rgba(146, 64, 14, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.poster img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.play-float {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.20);
}

.card-body {
  padding: 18px;
}

.meta-line,
.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #a16207;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--brand-dark);
}

.card-body p {
  min-height: 50px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  margin-bottom: 14px;
}

.card-stats {
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.compact-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  border-radius: 18px;
}

.compact-card .poster img {
  height: 100%;
  min-height: 132px;
  aspect-ratio: auto;
}

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

.compact-card .card-body h3 {
  font-size: 16px;
}

.compact-card .card-body p {
  min-height: auto;
  font-size: 13px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

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

.big-ranking {
  padding-bottom: 80px;
}

.category-panel,
.article-panel,
.info-card,
.filter-panel,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 38px rgba(146, 64, 14, 0.10);
}

.category-panel {
  position: sticky;
  top: 92px;
  padding: 26px;
}

.category-mini-grid,
.category-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

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

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

.category-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
  font-size: 17px;
}

.category-card span {
  color: var(--muted);
  font-size: 13px;
}

.page-shell {
  padding-top: 104px;
}

.page-hero {
  position: relative;
  margin-bottom: 34px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 15% 15%, rgba(251, 191, 36, 0.22), transparent 20rem),
    linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: #1f2937;
}

.page-hero p {
  max-width: 780px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.search-hero {
  text-align: left;
}

.search-hero p {
  margin-left: 0;
}

.search-box {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.search-box input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.24);
}

.quick-tags {
  margin-top: 18px;
}

.quick-tags button {
  cursor: pointer;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.detail-shell {
  padding-top: 68px;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.06);
  opacity: 0.45;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.68)),
    radial-gradient(circle at 70% 18%, rgba(245, 158, 11, 0.28), transparent 28rem);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: #fde68a;
  font-weight: 900;
}

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

.detail-cover {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.detail-cover span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.detail-info .eyebrow {
  color: #fde68a;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 42px 0 86px;
}

.main-detail-column,
.side-detail-column {
  display: grid;
  gap: 24px;
  align-content: start;
}

.side-detail-column {
  position: sticky;
  top: 92px;
}

.player-card,
.article-panel,
.info-card {
  padding: 22px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #020617;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.20);
}

.player-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
}

.player-overlay span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.player-overlay.hide {
  display: none;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 12px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.36);
  font-size: 12px;
}

.article-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--muted);
}

.info-card dd {
  margin: 0;
  max-width: 220px;
  text-align: right;
  font-weight: 800;
}

.info-card dd a {
  color: var(--brand-dark);
}

.related-card {
  display: grid;
  gap: 14px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 34px;
}

.stats-grid article {
  padding: 26px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  color: var(--brand-dark);
  font-size: 38px;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  color: #fde68a;
  background: linear-gradient(135deg, #451a03, #78350f);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.site-footer p {
  color: #fed7aa;
}

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #ffedd5;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
  text-align: center;
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-layout,
  .detail-content-grid,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-cover {
    max-width: 360px;
  }

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

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

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

  .side-detail-column,
  .category-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 100vh;
  }

  .hero-slide {
    min-height: calc(100vh - 68px);
    gap: 18px;
  }

  .hero-content {
    padding: 36px 0 0;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 38px;
  }

  .hero-poster {
    display: none;
  }

  .content-section,
  .page-hero {
    padding: 44px 0;
  }

  .page-hero {
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 26px;
  }

  .section-heading,
  .search-box {
    display: grid;
  }

  .movie-grid,
  .category-grid.large,
  .stats-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .compact-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-bottom: 44px;
  }

  .detail-cover {
    max-width: 260px;
  }

  .detail-content-grid {
    padding-top: 24px;
  }
}
