:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --muted: #6b7280;
  --text: #111827;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --warm: #fff7ed;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--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,
select {
  font: inherit;
}

.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;
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 20px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-size: 26px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 24px 24px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open {
  display: flex;
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.78)), linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  min-height: 78vh;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 780px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.hero-meta {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.primary-button {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 18px 28px rgba(234, 88, 12, 0.28);
}

.primary-button:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

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

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

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

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.section {
  padding: 64px 0;
  background: #fff;
}

.gray-section {
  background: var(--soft);
}

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

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-inner.narrow {
  max-width: 1120px;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(234, 88, 12, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.search-box input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: #fff;
  color: #111827;
}

.filter-panel select {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(234, 88, 12, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

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

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

.play-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.play-pill {
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(234, 88, 12, 0.95);
  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 {
  left: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
}

.card-body {
  padding: 16px;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body 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;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 8px;
  font-size: 12px;
}

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

.category-card {
  min-height: 150px;
  padding: 22px;
  color: #111827;
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid rgba(234, 88, 12, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}

.category-card strong {
  color: #374151;
  font-size: 15px;
}

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

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

.page-main {
  background: #fff;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 24px;
  color: #fff;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.55), transparent 34%), linear-gradient(135deg, #111827, #7c2d12);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.compact-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 58px);
}

.detail-main {
  background: #fff;
}

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

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.92));
}

.detail-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 38px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.detail-poster {
  overflow: hidden;
  align-self: start;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  padding: 56px 0 24px;
  background: #0f172a;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.32), rgba(0, 0, 0, 0.38));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.45);
}

.player-start strong {
  font-size: 18px;
}

.player-shell.playing .player-start {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.detail-section {
  padding-top: 56px;
}

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

.detail-article,
.detail-info {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.detail-info h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 17px;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 16px;
  margin: 0;
}

.detail-info dt {
  color: var(--muted);
}

.detail-info dd {
  margin: 0;
  color: #111827;
  font-weight: 650;
}

.detail-info a {
  color: var(--orange);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
}

.footer-inner h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #9ca3af;
}

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

.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  color: #6b7280;
  border-top: 1px solid rgba(75, 85, 99, 0.45);
  text-align: center;
}

.hide-card {
  display: none !important;
}

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 88px;
  }

  .hero-poster {
    display: none;
  }

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

  .movie-grid,
  .movie-grid.three-col,
  .rank-list,
  .rank-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    min-height: 72vh;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 40px;
  }

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

  .section {
    padding: 48px 0;
  }

  .section-inner,
  .page-hero,
  .detail-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .movie-grid,
  .movie-grid.three-col,
  .rank-list,
  .rank-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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