:root {
  color-scheme: light;
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.16);
  --radius-xl: 18px;
  --radius-2xl: 28px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--orange-50), var(--rose-50), var(--amber-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 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);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500), var(--amber-400));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.logo-mark::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid currentColor;
  transform: translateX(2px);
}

.logo-text {
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500), var(--amber-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-weight: 650;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  border: 0;
  background: var(--orange-50);
  color: var(--gray-700);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 28%, rgba(251, 146, 60, 0.22), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.70), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
  padding: 42px 0;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  color: #fed7aa;
  border: 1px solid rgba(254, 215, 170, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.movie-meta,
.detail-meta,
.rank-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta {
  margin-bottom: 26px;
}

.badge,
.meta-pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.badge {
  color: var(--white);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.meta-pill {
  color: var(--gray-600);
  padding: 6px 10px;
  background: var(--gray-100);
}

.tag {
  color: var(--orange-600);
  padding: 6px 10px;
  background: var(--orange-50);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 15px 32px rgba(244, 63, 94, 0.26);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.button-light {
  color: var(--orange-600);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(100% - 32px, var(--max-width));
  transform: translateX(-50%);
}

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

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

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--orange-400), var(--rose-500));
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.section {
  padding: 58px 0;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-bar {
  width: 5px;
  height: 34px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--orange-500), var(--rose-500));
}

.section h1,
.section h2,
.section h3 {
  margin-top: 0;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.15;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--gray-600);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-800), var(--gray-900));
}

.movie-poster.square {
  aspect-ratio: 1 / 1;
}

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

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

.play-glow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), rgba(0, 0, 0, 0.10));
  transition: opacity 0.25s ease;
}

.movie-card:hover .play-glow,
.related-card:hover .play-glow {
  opacity: 1;
}

.play-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid currentColor;
  transform: translateX(2px);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  color: var(--white);
  font-size: 12px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.68);
}

.card-body {
  padding: 14px;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--gray-900);
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.related-card:hover h3,
.rank-item:hover h3 {
  color: var(--orange-500);
}

.movie-desc {
  min-height: 42px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 13px;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--white), rgba(255, 237, 213, 0.82));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(244, 63, 94, 0.18));
}

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

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: var(--gray-600);
}

.category-card span {
  position: relative;
  z-index: 1;
  color: var(--orange-600);
  font-weight: 800;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.search-row {
  display: flex;
  gap: 12px;
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--orange-100);
  border-radius: 999px;
  outline: none;
  color: var(--gray-900);
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--orange-400);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
  transform: translateY(-1px);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500), var(--amber-400));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(0, 0, 0, 0.16), transparent 30%);
}

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

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.1;
}

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

.detail-wrap {
  padding: 36px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}

.panel {
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #000000;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
}

.player-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--rose-500));
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.32);
  font-weight: 850;
  cursor: pointer;
}

.player-start .play-icon {
  width: 34px;
  height: 34px;
}

.detail-info {
  margin-top: 22px;
  padding: 26px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.detail-meta {
  margin-bottom: 22px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 16px 0 24px;
}

.content-block {
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.content-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange-50), var(--rose-50));
}

.content-card.blue {
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
}

.sidebar {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.sidebar h2 {
  margin: 0 0 16px;
  font-size: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.related-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--gray-900);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.35;
}

.related-card p {
  margin: 0;
  color: var(--gray-500);
  font-size: 12px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 148px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: var(--gray-900);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-item p {
  margin: 0 0 10px;
  color: var(--gray-600);
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--gray-600);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, #111827, #7c2d12, #881337);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 20px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 6px 9px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.10);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--rose-500));
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.back-top.is-visible {
  display: block;
}

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

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

  .header-inner {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 0 14px;
  }

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

  .nav-links a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 247, 237, 0.8);
  }

  .hero-slider {
    height: 680px;
  }

  .hero-copy {
    padding-top: 38px;
  }

  .hero-controls {
    align-items: flex-end;
  }

  .hero-arrows {
    display: none;
  }

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

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

  .search-row {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 42px 96px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .rank-item h3 {
    font-size: 16px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

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