:root {
  --brand: #f97316;
  --brand-dark: #dc2626;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f9fafb;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.logo-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  min-width: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--ink);
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 11px 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 18px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: #374151;
  font-weight: 600;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.24), transparent 30%), linear-gradient(135deg, #111827, #1f2937 44%, #111827);
}

.hero-bg {
  position: absolute;
  inset: -22px;
  background-position: center;
  background-size: cover;
  opacity: 0.28;
  filter: blur(8px);
  transform: scale(1.04);
}

.hero-section::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.34) 58%, rgba(17, 24, 39, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 0.95fr;
  align-items: center;
  gap: 48px;
  min-height: 600px;
  padding: 54px 0;
}

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

.hero-badge,
.section-kicker,
.card-tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-badge {
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 13px;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.18);
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 740px;
  margin: 0 0 30px;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  padding: 12px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.26);
}

.btn-primary:hover,
.btn-soft:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.28);
}

.btn-ghost {
  padding: 11px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-soft {
  padding: 10px 18px;
  color: var(--brand-dark);
  background: #fff7ed;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #e5e7eb;
}

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

.focus-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.focus-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.focus-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 55%);
}

.focus-info {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 1;
}

.focus-info h2 {
  margin: 8px 0 6px;
  font-size: 24px;
  line-height: 1.25;
}

.focus-info p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.65;
}

.mini-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.mini-card span {
  display: block;
  padding: 10px 11px 12px;
  color: #f9fafb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.section {
  padding: 56px 0;
}

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

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

.section-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--brand);
  border-radius: 14px;
  background: #ffedd5;
}

.section h2,
.page-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-subtitle,
.page-desc {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.14);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--brand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  color: #fff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  left: 12px;
}

.rank-badge {
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.movie-body {
  padding: 16px;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.card-tag {
  padding: 4px 8px;
  color: var(--brand);
  background: #fff7ed;
  font-size: 12px;
}

.movie-type {
  color: var(--muted);
  font-size: 12px;
}

.movie-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--brand);
}

.movie-desc {
  display: -webkit-box;
  min-height: 45px;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.featured-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.featured-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

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

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

.featured-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 55%);
}

.featured-overlay {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  color: #fff;
}

.featured-overlay h3 {
  margin: 8px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.featured-body {
  padding: 18px;
}

.featured-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.72;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  color: #fff;
  border-radius: 24px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.22);
}

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

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

.category-card h2,
.category-card h3 {
  position: relative;
  margin: 0 0 12px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.72;
}

.category-card span {
  position: relative;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero {
  color: #fff;
  padding: 68px 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2), transparent 20%), linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.page-hero .page-title,
.page-hero .page-desc {
  color: #fff;
}

.page-hero .page-desc {
  color: rgba(255, 255, 255, 0.92);
  max-width: 760px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin: 30px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 148px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.12);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  background: #e5e7eb;
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rank-content h2,
.rank-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.rank-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: var(--brand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: none;
  padding: 12px 14px;
  color: #fff;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.64);
  text-align: center;
}

.player-message.is-visible {
  display: block;
}

.detail-card,
.related-box {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-title {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.meta-pill {
  padding: 7px 11px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
}

.detail-card h2 {
  margin: 26px 0 12px;
  font-size: 23px;
}

.detail-card h2:first-of-type {
  margin-top: 0;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-list span {
  padding: 8px 11px;
  color: var(--brand-dark);
  border-radius: 999px;
  background: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.sidebar {
  position: sticky;
  top: 94px;
}

.related-box {
  margin-top: 0;
}

.related-box h2 {
  margin: 0 0 18px;
  font-size: 22px;
}

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

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

.related-thumb {
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

.related-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-item:hover img {
  transform: scale(1.08);
}

.related-info h3 {
  display: -webkit-box;
  margin: 0 0 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item:hover h3 {
  color: var(--brand);
}

.related-info span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state {
  display: none;
  padding: 50px;
  color: var(--muted);
  text-align: center;
  border-radius: 22px;
  background: #fff;
}

.site-footer {
  margin-top: 60px;
  padding: 34px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

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

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

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

  .sidebar {
    position: static;
  }

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-section,
  .hero-inner {
    min-height: auto;
  }

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

  .mini-rail,
  .featured-grid,
  .filter-panel,
  .rank-row {
    grid-template-columns: 1fr;
  }

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

  .rank-row {
    align-items: start;
  }
}

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

  .logo {
    font-size: 18px;
  }

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

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

  .hero-desc {
    font-size: 17px;
  }

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

  .section-head {
    display: block;
  }

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