:root {
  --page-bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
  --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 237, 213, 0.9), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(251, 146, 60, 0.18);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.28);
}

.logo-text {
  font-size: clamp(20px, 2vw, 28px);
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a,
.mobile-nav a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--orange);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--orange);
  font-size: 24px;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

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

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

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 28%, rgba(244, 63, 94, 0.34), transparent 34rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.72) 42%, rgba(17, 24, 39, 0.36) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 56px;
  padding: 78px 0 64px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-weight: 800;
  font-size: 14px;
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.07em;
}

.gradient-text {
  background: linear-gradient(90deg, #fb923c, #fb7185, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  color: #f3f4f6;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.82;
}

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.meta-pill,
.tag,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: #fff;
  color: #9a3412;
  font-weight: 800;
  font-size: 13px;
}

.hero .meta-pill {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffedd5;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
  box-shadow: 0 20px 38px rgba(249, 115, 22, 0.28);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.ghost-button {
  color: var(--orange);
  background: #fff7ed;
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 44px rgba(249, 115, 22, 0.24);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.1);
}

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

.feature-card:hover img {
  transform: scale(1.06);
}

.feature-card-body {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.feature-card-body h2,
.feature-card-body h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 950;
}

.feature-card-body p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 54px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(251, 191, 36, 0.28), transparent 28rem),
    linear-gradient(135deg, #111827 0%, #7c2d12 48%, #be123c 100%);
}

.page-hero-inner,
.container,
.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 760px;
  color: #ffedd5;
  line-height: 1.85;
  font-size: 18px;
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding-top: 34px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.045em;
}

.section-title::before {
  content: "";
  width: 7px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--amber));
}

.section-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.search-panel,
.filter-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.search-input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  border-color: rgba(249, 115, 22, 0.58);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.filter-button {
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.22);
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -42px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(244, 63, 94, 0.2));
}

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

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 950;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fff7ed);
}

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.18);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.card-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 950;
}

.card-title a:hover {
  color: var(--orange);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.card-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 76px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-weight: 950;
}

.rank-thumb {
  width: 76px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #ffedd5;
}

.rank-thumb img {
  height: 100%;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 950;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.detail-wrap {
  padding: 42px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--rose);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-side-card,
.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #050505;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 20rem),
    rgba(17, 24, 39, 0.42);
  z-index: 3;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.32);
  font-size: 36px;
  transform: translateZ(0);
}

.player-info {
  padding: 24px;
}

.player-info h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.player-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.84;
  font-size: 17px;
}

.detail-side-card {
  padding: 18px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4.15;
  background: #ffedd5;
}

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

.detail-facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  color: var(--muted);
  font-weight: 700;
}

.fact-row strong {
  color: var(--ink);
}

.content-card {
  padding: 26px;
  margin-top: 24px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 950;
}

.content-card p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.95;
  font-size: 16px;
}

.no-result {
  display: none;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.no-result.show {
  display: block;
}

.site-footer {
  margin-top: 44px;
  padding: 54px 0 32px;
  color: #e5e7eb;
  background:
    radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.25), transparent 26rem),
    #111827;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.site-footer p,
.site-footer a {
  color: #d1d5db;
  line-height: 1.8;
}

.site-footer a:hover {
  color: #fb923c;
}

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

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

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

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

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content,
  .detail-grid,
  .rank-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 590px;
  }

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

@media (max-width: 680px) {
  .header-inner {
    min-height: 64px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 20px;
  }

  .hero-content {
    padding-top: 54px;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .rank-thumb {
    width: 62px;
  }

  .card-body {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

  .content-card,
  .player-info {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }
}

.player-info .eyebrow,
.category-tile .eyebrow,
.content-card .eyebrow {
  color: #c2410c;
  background: #fff7ed;
  border-color: rgba(251, 146, 60, 0.24);
}

.detail-side-card .meta-pill,
.content-card .meta-pill {
  background: #fff7ed;
}
