* {
  box-sizing: border-box;
}

:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --blue: #2563eb;
  --cyan: #0891b2;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f9fafb;
  --card: #ffffff;
  --shadow: 0 14px 35px rgba(17, 24, 39, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-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: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 10px 25px rgba(194, 65, 12, 0.25);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.brand-text {
  font-size: 24px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.mobile-nav-link {
  font-weight: 700;
  opacity: 0.92;
  transition: opacity 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffedd5;
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

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

.mobile-nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #7c2d12, #991b1b);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.15));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

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

.hero-kicker,
.section-heading span,
.rank-panel-head span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: 8px 14px;
  margin-bottom: 18px;
  background: var(--red);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 64px);
  line-height: 1.05;
}

.hero p {
  margin: 0 0 22px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-tags,
.hero-actions,
.page-actions,
.detail-meta,
.tag-list,
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.home-search {
  padding: 24px 0;
  background: #111827;
  color: #ffffff;
}

.home-search-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.home-search h2,
.home-search p {
  margin: 0;
}

.home-search p {
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: 56px 0;
}

.white-section {
  background: #ffffff;
}

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

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading span,
.rank-panel-head span,
.page-hero span {
  margin-bottom: 8px;
  color: var(--orange);
}

.section-heading h2,
.rank-panel-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
}

.section-heading a {
  color: var(--orange);
  font-weight: 800;
}

.section-heading.light {
  color: #ffffff;
}

.section-heading.light span,
.section-heading.light a {
  color: #ffedd5;
}

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

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

.page-grid {
  margin-top: 28px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111827;
}

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

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

.card-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
  opacity: 0.72;
}

.card-category,
.card-duration,
.rank-badge,
.card-play {
  position: absolute;
  z-index: 3;
}

.card-category {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 12px;
  font-weight: 800;
}

.card-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.78);
  font-size: 12px;
}

.card-play {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
}

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

.rank-badge {
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--red);
  font-weight: 900;
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 14px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: #6b7280;
  font-size: 13px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-wide .card-cover {
  height: 100%;
  aspect-ratio: auto;
}

.category-band {
  padding: 56px 0;
  background: linear-gradient(90deg, #2563eb, #0891b2);
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.18);
  backdrop-filter: blur(12px);
}

.category-card a,
.category-overview-main {
  display: block;
  color: #ffffff;
}

.category-card > a,
.category-overview-main {
  padding: 22px;
}

.category-card-name,
.category-overview-main span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffedd5;
  font-weight: 900;
}

.category-card p,
.category-overview-main p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-sample,
.category-overview-links {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}

.category-sample a,
.category-overview-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-overview-card {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

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

.rank-panel,
.side-card,
.detail-card,
.filter-panel {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-panel li a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  transition: background 0.2s ease;
}

.rank-panel li a:hover {
  background: #fff7ed;
}

.rank-panel li span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 900;
}

.rank-panel li strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-panel li em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-more {
  display: block;
  margin-top: 18px;
  color: var(--orange);
  font-weight: 900;
  text-align: center;
}

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

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

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

.page-hero span {
  color: #ffedd5;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 14px;
  padding: 18px;
}

.filter-panel label,
.mini-filter {
  display: grid;
  gap: 8px;
}

.filter-panel span {
  color: #4b5563;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select,
.mini-filter input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.mini-filter input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
}

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

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

.detail-top {
  padding: 18px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.detail-main {
  padding: 34px 0 18px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000000;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.24));
  cursor: pointer;
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.95);
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.32);
  font-size: 30px;
}

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

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

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

.detail-category {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--orange);
  background: #ffedd5;
  font-weight: 900;
}

.detail-score {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--orange);
  font-weight: 900;
}

.detail-meta {
  margin: 18px 0;
  color: var(--muted);
}

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.tag-list {
  margin-bottom: 24px;
}

.tag-list span {
  color: #374151;
  background: #f3f4f6;
}

.detail-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.detail-section h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  margin: 0 0 14px;
  color: #374151;
}

.review-box {
  padding: 20px;
  border: 0;
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  background: #fff7ed;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-card {
  padding: 22px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}

.related-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16 / 10;
  background: #111827;
}

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

.related-cover span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 12px;
}

.related-info {
  display: grid;
  gap: 6px;
}

.related-info strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

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

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  text-align: center;
}

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

  .nav-toggle {
    display: block;
  }

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

  .wide-grid,
  .split-grid,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 720px) {
  .brand-text {
    font-size: 20px;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    padding-bottom: 66px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-inner,
  .section-heading,
  .detail-title-row {
    align-items: stretch;
    flex-direction: column;
  }

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

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .section {
    padding: 42px 0;
  }

  .related-card {
    grid-template-columns: 104px 1fr;
  }
}
