* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #201611;
  background: linear-gradient(180deg, #fff8ed 0%, #fff1dc 46%, #fffaf4 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #9a3412;
}

.logo-text {
  font-size: 26px;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #5f3d20;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 24px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 2px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #431407;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 11px 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.nav-search button,
.mobile-search button,
.primary-btn,
.secondary-btn,
.hero-control,
.play-circle {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.mobile-search button {
  padding: 10px 16px;
}

.nav-search button:hover,
.mobile-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.hero-control:hover,
.play-circle:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.16);
  padding: 11px;
}

.menu-toggle span {
  display: block;
  height: 3px;
  margin: 5px 0;
  border-radius: 99px;
  background: #9a3412;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #5f3d20;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  background: #1c0b05;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 6, 1, 0.9) 0%, rgba(22, 9, 1, 0.72) 46%, rgba(22, 9, 1, 0.18) 100%),
    radial-gradient(circle at 22% 28%, rgba(245, 158, 11, 0.34), transparent 34%);
}

.hero-inner {
  position: relative;
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 380px;
  align-items: center;
  gap: 48px;
  padding: 80px 0 86px;
}

.hero-kicker,
.section-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.hero h1 {
  margin: 24px 0 20px;
  max-width: 780px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.82;
}

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

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}

.hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
}

.hero-card-info h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.hero-card-info span {
  color: #fde68a;
  font-weight: 800;
}

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

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

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

.hero-control {
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.82), rgba(255, 237, 213, 0.82));
}

.section.dark {
  color: #fff;
  background: linear-gradient(135deg, #78350f, #9a3412 50%, #431407);
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 12px 0 0;
  color: #201611;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.section.dark .section-head h2,
.section.dark .section-head p {
  color: #fff;
}

.section-head p,
.page-title p {
  color: #79553a;
  line-height: 1.8;
  max-width: 760px;
}

.more-link {
  flex: none;
  color: #c2410c;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(146, 64, 14, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 66px rgba(146, 64, 14, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 310px;
  background: linear-gradient(135deg, #f59e0b, #9a3412);
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 52%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

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

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: auto;
  right: 14px;
  background: rgba(124, 45, 18, 0.92);
}

.movie-info {
  padding: 18px;
}

.movie-info h2,
.movie-info h3 {
  margin: 0 0 10px;
  color: #1f130c;
  font-size: 20px;
  line-height: 1.35;
}

.movie-info h2 a:hover,
.movie-info h3 a:hover,
.row-body h2 a:hover {
  color: #ea580c;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #6b4a33;
  font-size: 14px;
  line-height: 1.7;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8a6550;
  font-size: 13px;
}

.movie-meta strong {
  color: #c2410c;
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.20);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #92400e, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #7c2d12, #f59e0b);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.page-hero {
  padding: 68px 0 54px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(253, 186, 116, 0.42), transparent 38%),
    linear-gradient(135deg, #92400e, #ea580c);
}

.page-title h1 {
  color: #fff;
}

.page-title p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

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

.filter-panel {
  margin: -28px auto 36px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 48px rgba(146, 64, 14, 0.13);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 13px 16px;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 64px 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(146, 64, 14, 0.09);
}

.row-rank {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.row-cover {
  display: block;
  overflow: hidden;
  height: 110px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, #9a3412);
}

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

.row-body h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.row-body p {
  margin: 0 0 12px;
  color: #6b4a33;
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #1c0b05;
  background-position: center;
  background-size: cover;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 8, 2, 0.92), rgba(21, 8, 2, 0.55), rgba(21, 8, 2, 0.2)),
    radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.35), transparent 36%);
}

.detail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.detail-title h1 {
  color: #fff;
  max-width: 860px;
}

.detail-title p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.9;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 48px 0 80px;
}

.content-card,
.side-card,
.player-section {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 52px rgba(146, 64, 14, 0.10);
}

.player-section {
  overflow: hidden;
  margin-bottom: 28px;
}

.player-section h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #201611;
  font-size: 26px;
}

.player-heading,
.content-card,
.side-card {
  padding: 24px;
}

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

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

.player-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #050505;
}

.player-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18));
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.player-poster.is-hidden {
  display: none;
}

.content-card {
  margin-bottom: 28px;
}

.content-card h2 {
  margin-bottom: 14px;
}

.content-card p {
  color: #593c27;
  font-size: 17px;
  line-height: 1.95;
}

.side-card {
  position: sticky;
  top: 96px;
}

.side-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.side-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #9a3412);
}

.side-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.side-item span {
  color: #8a6550;
  font-size: 12px;
}

.site-footer {
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #431407);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

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

.site-footer p {
  max-width: 420px;
  color: #fed7aa;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fde68a;
  font-size: 20px;
}

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

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #fed7aa;
  border-top: 1px solid rgba(253, 230, 138, 0.22);
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-inner,
  .detail-wrap,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-search {
    width: 100%;
  }

  .mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
  }

  .hero,
  .hero-inner {
    min-height: 560px;
  }

  .hero-inner {
    padding: 56px 0 76px;
  }

  .hero p,
  .detail-title p {
    font-size: 16px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: block;
  }

  .more-link {
    display: inline-block;
    margin-top: 16px;
  }

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

  .movie-cover {
    height: 240px;
  }

  .movie-info {
    padding: 14px;
  }

  .movie-info h2,
  .movie-info h3 {
    font-size: 17px;
  }

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

  .movie-row {
    grid-template-columns: 48px 110px minmax(0, 1fr);
    gap: 12px;
  }

  .row-cover {
    height: 82px;
  }

  .row-body h2 {
    font-size: 17px;
  }

  .row-body p {
    display: none;
  }

  .detail-poster {
    display: none;
  }

  .detail-wrap {
    padding: 52px 0;
  }

  .play-circle {
    width: 66px;
    height: 66px;
  }

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

@media (max-width: 460px) {
  .logo-text {
    font-size: 22px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .movie-grid,
  .movie-grid.wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-cover {
    height: 330px;
  }

  .hero-actions {
    display: grid;
  }
}
