:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --yellow: #eab308;
  --rose: #f43f5e;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --paper: #ffffff;
  --line: #fed7aa;
  --shadow: 0 20px 50px rgba(194, 65, 12, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  display: block;
  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: 30;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 12px 28px rgba(194, 65, 12, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.22);
  transition: transform 0.25s ease;
}

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

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1.1;
}

.brand-text small {
  color: #ffedd5;
  font-size: 12px;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 430px;
  margin-left: auto;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 112px 11px 18px;
  color: var(--ink);
  background: transparent;
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  background: var(--orange);
  cursor: pointer;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #ffffff;
  font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff7ed;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  color: #ffffff;
  font-weight: 700;
}

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

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.25), transparent 28%), linear-gradient(120deg, #ea580c 0%, #f59e0b 52%, #eab308 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(18px);
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.hero::before {
  left: 8%;
  top: -160px;
}

.hero::after {
  right: 8%;
  bottom: -180px;
  animation-delay: 1.4s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 44px;
  align-items: center;
  padding: 74px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 18px;
  max-width: 680px;
  color: #fff7ed;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(194, 65, 12, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(194, 65, 12, 0.28);
  background: var(--orange-dark);
}

.btn-light {
  color: var(--orange-dark);
  background: #ffffff;
}

.btn-light:hover {
  color: var(--orange-dark);
  background: #fff7ed;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags a,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: #9a3412;
  background: #ffedd5;
}

.hero-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(12px);
}

.hero-stage {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

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

.hero-poster-card {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(154, 52, 18, 0.42);
  background: #111827;
}

.hero-poster-card img {
  height: 520px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster-card:hover img {
  transform: scale(1.05);
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.82));
}

.hero-movie-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
}

.hero-movie-info h2 {
  margin: 8px 0 10px;
  font-size: 34px;
  line-height: 1.15;
}

.hero-movie-info p {
  margin: 0 0 16px;
  color: #ffedd5;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 28px;
  top: 28px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  background: #ffffff;
}

main {
  min-height: 60vh;
}

.section {
  padding: 70px 0;
}

.section-white {
  background: #ffffff;
}

.section-soft {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.section-hot {
  color: #ffffff;
  background: linear-gradient(90deg, #eab308, #f97316, #ef4444);
}

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

.section-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-hot .section-head p {
  color: #ffedd5;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
}

.section-hot .section-icon {
  color: var(--yellow);
  background: #ffffff;
}

.section-more,
.text-link {
  color: var(--orange-dark);
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card,
.feature-card,
.rank-card,
.category-card,
.info-card {
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(194, 65, 12, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover,
.feature-card:hover,
.rank-card:hover,
.category-card:hover,
.info-card:hover {
  transform: translateY(-6px);
  border-color: #fdba74;
  box-shadow: var(--shadow);
}

.poster-link,
.feature-poster,
.rank-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-link img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster-link img,
.feature-card:hover .feature-poster img,
.rank-card:hover .rank-poster img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transform: scale(0.92);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #fdba74;
}

.movie-card h3,
.feature-card h3,
.rank-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.feature-card h3 a:hover,
.rank-card h3 a:hover {
  color: var(--orange);
}

.movie-card p,
.feature-card p,
.rank-card p,
.info-card p,
.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.feature-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 255px;
}

.feature-poster img {
  height: 100%;
  min-height: 255px;
  object-fit: cover;
}

.feature-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px 1fr;
  min-height: 160px;
}

.rank-number {
  position: absolute;
  left: -12px;
  top: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.rank-poster img {
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.rank-info {
  padding: 20px 20px 20px 28px;
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  text-align: center;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-size: 28px;
  font-weight: 900;
}

.category-card h3 {
  margin: 0;
  font-size: 20px;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  padding: 58px 0;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

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

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  margin: 36px 0;
  border: 1px solid rgba(253, 186, 116, 0.78);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(194, 65, 12, 0.08);
}

.filter-panel h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.filter-controls input,
.filter-controls select,
.search-hero input {
  min-height: 46px;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 0 16px;
  outline: 0;
  background: #fff7ed;
}

.filter-controls input:focus,
.filter-controls select:focus,
.search-hero input:focus {
  border-color: var(--orange);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.search-hero form {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
}

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

.search-hero button {
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  color: var(--orange-dark);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.16), transparent 30%), linear-gradient(120deg, #ea580c, #f59e0b 54%, #eab308);
  padding: 48px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #ffedd5;
  font-size: 14px;
}

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

.detail-top {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(154, 52, 18, 0.38);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-title h1 {
  margin: 10px 0 16px;
  max-width: 880px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
}

.detail-title p {
  margin: 0;
  max-width: 820px;
  color: #fff7ed;
  font-size: 18px;
}

.player-section {
  margin-top: -42px;
  padding-bottom: 40px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.player-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.74));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button-core {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  font-size: 36px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 32px;
  padding: 34px 0 70px;
}

.article-panel,
.side-panel {
  border: 1px solid rgba(253, 186, 116, 0.78);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(194, 65, 12, 0.08);
}

.article-panel {
  padding: 32px;
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

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

.side-panel {
  padding: 22px;
  align-self: start;
}

.side-links {
  display: grid;
  gap: 14px;
}

.side-links a {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7ed;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-links a:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.side-links img {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.side-links strong {
  display: block;
  line-height: 1.35;
}

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

.no-results {
  display: none;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 44px 0;
}

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

.site-footer p {
  margin: 0;
  max-width: 460px;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

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

.site-footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 18px 16px;
  color: #9ca3af;
  text-align: center;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, 22px, 0) scale(1.08);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    max-width: none;
  }

  .hero-inner,
  .detail-top,
  .detail-content {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .brand-text small,
  .header-search,
  .detail-poster {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-stage,
  .hero-poster-card,
  .hero-poster-card img {
    min-height: 420px;
    height: 420px;
  }

  .hero-movie-info h2 {
    font-size: 26px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head,
  .filter-panel,
  .search-hero form {
    align-items: stretch;
    flex-direction: column;
  }

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

  .feature-card,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-poster img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .filter-controls,
  .filter-controls input,
  .filter-controls select,
  .search-hero button {
    width: 100%;
  }

  .detail-hero {
    padding-bottom: 58px;
  }

  .article-panel {
    padding: 22px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-tags {
    display: grid;
  }

  .btn,
  .hero-tags a {
    width: 100%;
  }
}
