:root {
  --site-orange: #f97316;
  --site-amber: #f59e0b;
  --site-yellow: #facc15;
  --site-red: #ef4444;
  --site-rose: #f43f5e;
  --site-pink: #ec4899;
  --site-purple: #8b5cf6;
  --site-blue: #0ea5e9;
  --site-cyan: #06b6d4;
  --site-green: #10b981;
  --site-slate: #111827;
  --site-gray: #4b5563;
  --site-soft: #fff7ed;
  --site-white: #ffffff;
  --site-border: #fed7aa;
  --site-shadow: 0 20px 60px rgba(124, 45, 18, 0.16);
  --site-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 45%, #fff 100%);
  color: #1f2937;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--site-orange), var(--site-amber), var(--site-yellow));
  box-shadow: 0 12px 36px rgba(194, 65, 12, 0.22);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  flex-shrink: 0;
}

.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--site-orange);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(194, 65, 12, 0.24);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.logo-subtitle {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

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

.nav-links a {
  color: #fff7ed;
  font-weight: 700;
  padding: 10px 4px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.site-search {
  position: relative;
  width: min(320px, 34vw);
  margin-left: auto;
}

.site-search input,
.filter-input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.92);
  color: #7c2d12;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-search input:focus,
.filter-input:focus {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.24);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 28%), linear-gradient(115deg, #ea580c 0%, #f59e0b 52%, #facc15 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(12px);
}

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

.hero::after {
  right: 8%;
  bottom: -180px;
}

.hero-shell {
  position: relative;
  z-index: 1;
  padding: 80px 0 64px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-eyebrow,
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.hero-lead {
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 24px);
  color: #fff7ed;
  font-weight: 700;
}

.hero-summary {
  margin: 0 0 30px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  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;
}

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

.button-primary {
  background: #ffffff;
  color: #ea580c;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.2);
}

.button-secondary {
  background: rgba(124, 45, 18, 0.28);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.16);
}

.hero-slider {
  position: relative;
  min-height: 480px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide:first-child {
  position: relative;
}

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

.hero-feature {
  position: relative;
  min-height: 480px;
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(124, 45, 18, 0.28);
  isolation: isolate;
}

.hero-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f97316, #facc15);
}

.hero-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.08) 60%);
  z-index: 1;
}

.hero-feature-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px;
}

.hero-feature-content h2 {
  margin: 12px 0 8px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-feature-content p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

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

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

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

.section {
  padding: 68px 0;
}

.section-white {
  background: #ffffff;
}

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

.section-hot {
  background: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 45%, #fff7ed 100%);
}

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

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 950;
  color: #111827;
}

.section-rank .section-title {
  color: #ffffff;
}

.section-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

.section-rank .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.icon-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-orange), var(--site-amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

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

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

.movie-card {
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(124, 45, 18, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: #fdba74;
  box-shadow: var(--site-shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fdba74, #fde68a);
}

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

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

.card-score,
.card-year,
.poster-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-weight: 900;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.card-score {
  right: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.card-year {
  left: 12px;
  background: rgba(17, 24, 39, 0.62);
}

.card-body {
  padding: 17px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-meta span,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 6px 10px;
  line-height: 1;
}

.movie-card h3,
.feature-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h3 a:hover,
.feature-card h3 a:hover,
.rank-row h3 a:hover {
  color: #ea580c;
}

.card-desc {
  margin: 0 0 14px;
  color: #6b7280;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag {
  background: #fffbeb;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
}

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

.feature-card {
  position: relative;
  min-height: 430px;
  border-radius: 28px;
  overflow: hidden;
  color: #ffffff;
  box-shadow: var(--site-shadow);
  background: #fdba74;
}

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.35s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.12));
}

.feature-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px;
}

.feature-body h3 {
  color: #ffffff;
  font-size: 26px;
}

.feature-body p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  border-radius: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--category-gradient, linear-gradient(135deg, #f97316, #f59e0b));
  opacity: 0.22;
}

.category-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 16px;
  color: #ffffff;
  background: var(--category-gradient, linear-gradient(135deg, #f97316, #f59e0b));
  font-size: 26px;
  font-weight: 950;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.category-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.gradient-orange { --category-gradient: linear-gradient(135deg, #f97316, #f59e0b); }
.gradient-red { --category-gradient: linear-gradient(135deg, #ef4444, #f97316); }
.gradient-blue { --category-gradient: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.gradient-purple { --category-gradient: linear-gradient(135deg, #8b5cf6, #ec4899); }
.gradient-pink { --category-gradient: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-amber { --category-gradient: linear-gradient(135deg, #f59e0b, #facc15); }
.gradient-cyan { --category-gradient: linear-gradient(135deg, #06b6d4, #3b82f6); }
.gradient-slate { --category-gradient: linear-gradient(135deg, #334155, #111827); }
.gradient-green { --category-gradient: linear-gradient(135deg, #10b981, #84cc16); }
.gradient-gold { --category-gradient: linear-gradient(135deg, #eab308, #f97316); }

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

.rank-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.12);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 20px;
  font-weight: 950;
}

.rank-row img {
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: linear-gradient(135deg, #fdba74, #fde68a);
  transition: transform 0.35s ease;
}

.rank-row h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.rank-row p {
  margin: 0;
  color: #6b7280;
  line-height: 1.7;
}

.rank-score {
  display: grid;
  gap: 5px;
  justify-items: end;
  color: #ea580c;
  font-weight: 950;
}

.page-hero {
  background: linear-gradient(115deg, #ea580c, #f59e0b 56%, #facc15);
  color: #ffffff;
  padding: 64px 0;
  overflow: hidden;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  box-shadow: 0 12px 32px rgba(124, 45, 18, 0.08);
}

.filter-panel .filter-input {
  border-color: #fed7aa;
  color: #7c2d12;
}

.filter-meta {
  color: #9a3412;
  font-weight: 800;
  white-space: nowrap;
}

.detail-hero {
  padding: 50px 0;
  background: radial-gradient(circle at 12% 0%, rgba(249, 115, 22, 0.16), transparent 34%), #fff7ed;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #c2410c;
  font-weight: 800;
  margin-bottom: 12px;
}

.detail-copy h1 {
  color: #111827;
}

.detail-copy p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.9;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-poster {
  border-radius: 30px;
  aspect-ratio: 2 / 3;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #fdba74, #fde68a);
  box-shadow: var(--site-shadow);
}

.player-section {
  padding: 56px 0;
  background: #111827;
  color: #ffffff;
}

.player-section h2 {
  margin: 0 0 22px;
  font-size: 32px;
  line-height: 1.25;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #030712;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.18));
}

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

.play-circle {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #facc15);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.32);
  font-size: 38px;
  padding-left: 6px;
}

.play-overlay strong {
  font-size: 20px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.detail-content {
  padding: 64px 0;
}

.content-card {
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 14px 38px rgba(124, 45, 18, 0.08);
  margin-bottom: 24px;
}

.content-card h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 28px;
}

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

.site-footer {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #d1d5db;
  padding: 48px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 28px;
  margin-bottom: 22px;
}

.footer-brand h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 26px;
}

.footer-brand p {
  margin: 0;
  max-width: 620px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #d1d5db;
  font-weight: 700;
}

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

.copyright {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.empty-state {
  display: none;
  padding: 40px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #ffedd5;
  text-align: center;
  color: #9a3412;
  font-weight: 900;
}

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

  .hero-slider {
    min-height: 430px;
  }

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

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

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

@media (max-width: 820px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0 4px;
    margin-left: 0;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-shell {
    padding: 56px 0 46px;
  }

  .hero-feature {
    min-height: 420px;
  }

  .section-head,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .rank-row {
    grid-template-columns: 48px 86px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }
}

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

  .logo-subtitle {
    display: none;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .hero-feature {
    min-height: 380px;
  }

  .hero-feature-content,
  .feature-body,
  .content-card {
    padding: 22px;
  }

  .rank-row {
    grid-template-columns: 42px 74px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-row img {
    width: 74px;
  }

  .rank-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .play-circle {
    width: 70px;
    height: 70px;
    font-size: 30px;
  }
}
