:root {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-soft: #fff7ed;
  --color-orange: #f97316;
  --color-red: #dc2626;
  --color-dark: #111827;
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 25px 55px rgba(17, 24, 39, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.nav-shell {
  width: min(100% - 32px, var(--container));
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon,
.footer-brand:hover .brand-icon {
  transform: scale(1.08);
}

.brand-text {
  font-size: 21px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, #ea580c, #dc2626);
  background-clip: text;
  -webkit-background-clip: text;
}

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

.nav-link {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-orange);
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: transparent;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--color-line);
  background: #ffffff;
}

.mobile-menu.open {
  display: grid;
  gap: 6px;
}

.mobile-link {
  padding: 10px 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.main-offset {
  padding-top: 64px;
}

.hero-slider {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  position: absolute;
  inset: -30px;
  content: "";
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  filter: blur(10px);
  opacity: 0.32;
  transform: scale(1.06);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 25%, rgba(249, 115, 22, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 55%, rgba(17, 24, 39, 0.46)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent 42%);
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--container));
  min-height: 600px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 390px);
  align-items: center;
  gap: 48px;
}

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

.hero-kicker,
.page-hero span,
.section-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  color: #fb923c;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.search-box button,
.filter-buttons button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-btn,
.search-box button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-red));
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.25);
}

.primary-btn:hover,
.search-box button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.35);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow-strong);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

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

.hero-dots button {
  width: 26px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
  width: 46px;
  background: #ffffff;
}

.quick-search {
  position: relative;
  z-index: 4;
  margin-top: -34px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-box input,
.filter-toolbar input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  color: var(--color-ink);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 7px 12px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.quick-links a:hover {
  color: var(--color-orange);
  background: var(--color-soft);
}

.content-section {
  padding: 58px 0 0;
}

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

.section-head h2 {
  margin: 10px 0 4px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--color-orange);
  font-weight: 800;
}

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

.movie-grid.dense {
  gap: 20px;
}

.movie-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 16 / 10;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-pill {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-red));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 36px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-row span,
.detail-meta span {
  padding: 3px 8px;
  background: #f3f4f6;
  border-radius: 999px;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.genre-line {
  margin-top: 12px;
  color: #9ca3af;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

.movie-card.wide .poster-link {
  aspect-ratio: auto;
  min-height: 230px;
}

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

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

.category-tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 9px;
  overflow: hidden;
  position: relative;
  padding: 18px;
  color: #ffffff;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #111827, #374151);
  box-shadow: var(--shadow-soft);
}

.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.28));
}

.category-strip {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.7;
}

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

.category-tile strong,
.category-tile span:not(.category-strip) {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 21px;
}

.category-tile span:not(.category-strip) {
  color: #d1d5db;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 38px;
}

.compact-list,
.mini-grid {
  display: grid;
  gap: 10px;
}

.compact-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.04);
}

.compact-link:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow-soft);
}

.compact-rank,
.compact-dot {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #dc2626);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.compact-dot {
  width: 10px;
  height: 10px;
}

.compact-title {
  font-weight: 800;
}

.compact-meta {
  color: var(--color-muted);
  font-size: 13px;
}

.page-shell {
  padding-bottom: 60px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 64px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(249, 115, 22, 0.22), transparent 32%),
    linear-gradient(135deg, #ffffff, #fff7ed 55%, #fef2f2);
}

.page-hero h1 {
  margin: 14px auto 10px;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: 18px;
}

.toolbar-section {
  padding-top: 32px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-buttons button {
  min-height: 38px;
  padding: 0 14px;
  color: #374151;
  background: #f3f4f6;
}

.filter-buttons button:hover,
.filter-buttons button.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-orange), var(--color-red));
}

.empty-state {
  display: none;
  padding: 42px 16px;
  color: var(--color-muted);
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
}

.empty-state.show {
  display: block;
}

.detail-page {
  background: #f9fafb;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-hero::before {
  position: absolute;
  inset: -30px;
  content: "";
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.26;
  transform: scale(1.08);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 22%, rgba(249, 115, 22, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.97), rgba(17, 24, 39, 0.66));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow-strong);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #d1d5db;
  font-size: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-copy p {
  max-width: 820px;
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 19px;
}

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

.detail-meta span {
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags span {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.32);
}

.player-section {
  margin-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  padding-left: 6px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-red));
  box-shadow: 0 22px 40px rgba(220, 38, 38, 0.34);
  font-size: 34px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.big-play:hover {
  transform: scale(1.06);
  box-shadow: 0 28px 54px rgba(220, 38, 38, 0.42);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-top: 34px;
}

.story-panel,
.side-panel {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.05);
}

.story-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-panel h2:not(:first-child) {
  margin-top: 30px;
}

.story-panel p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.side-panel dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 14px;
  margin: 0;
}

.side-panel dt {
  color: var(--color-muted);
  font-weight: 800;
}

.side-panel dd {
  margin: 0;
  color: #111827;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-shell {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 44px 0 28px;
}

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

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

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #9ca3af;
}

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

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

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  color: #6b7280;
  border-top: 1px solid #1f2937;
  font-size: 14px;
  text-align: center;
}

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

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

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

  .mobile-toggle {
    display: flex;
  }

  .hero-content,
  .detail-layout,
  .detail-content,
  .split-section,
  .footer-grid,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 660px;
    padding: 48px 0 70px;
  }

  .hero-poster {
    max-width: 320px;
    margin-inline: auto;
  }

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

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

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-shell,
  .footer-shell,
  .hero-content {
    width: min(100% - 24px, var(--container));
  }

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

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

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

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

  .compact-link {
    grid-template-columns: auto 1fr;
  }

  .compact-meta {
    grid-column: 2;
  }

  .page-hero {
    padding: 44px 12px;
  }

  .story-panel,
  .side-panel {
    padding: 20px;
  }
}
