* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #fff7ed 100%);
}

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

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

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #111827;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.28);
}

.brand-name {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.menu-button {
  display: none;
  border: 0;
  background: #111827;
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f97316;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.tag-row span {
  background: #fff7ed;
  color: #ea580c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button,
.global-search button,
.rank-more {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.global-search button,
.rank-more {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.26);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover,
.global-search button:hover,
.rank-more:hover {
  transform: translateY(-2px) scale(1.02);
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: #f97316;
}

.search-hero {
  position: relative;
  z-index: 3;
  width: min(940px, calc(100% - 36px));
  margin: -36px auto 0;
}

.global-search {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.14);
}

.global-search.in-hero {
  max-width: 720px;
  margin-top: 24px;
}

.global-search input,
.filter-search input {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 20px;
  padding: 0 20px;
  outline: none;
  color: #111827;
  background: #f3f4f6;
  font-size: 16px;
}

.page-section {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 72px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 16px;
}

.section-more {
  color: #f97316;
  font-weight: 800;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.13);
  transform: translateZ(0);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-icon,
.category-card strong,
.category-card em {
  position: relative;
  z-index: 2;
}

.category-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.category-card strong {
  font-size: 22px;
  font-style: normal;
  margin-bottom: 8px;
}

.category-card em {
  max-width: 440px;
  color: #f3f4f6;
  font-style: normal;
  line-height: 1.6;
}

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

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

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(17, 24, 39, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #111827;
}

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

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

.play-badge,
.score-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  transition: all 0.25s ease;
}

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

.score-badge {
  right: 12px;
  top: 12px;
  min-width: 46px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f97316;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span {
  color: #9ca3af;
}

.movie-info h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}

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

.feature-card {
  min-height: 100%;
}

.feature-card .poster-link {
  aspect-ratio: 16 / 9;
}

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

.horizontal-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.rank-panel {
  position: sticky;
  top: 86px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #111827, #1f2937);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.rank-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease;
}

.rank-item:hover {
  background: rgba(249, 115, 22, 0.28);
}

.rank-item img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  grid-row: span 2;
}

.rank-title {
  font-weight: 800;
  color: #ffffff;
}

.rank-meta {
  color: #d1d5db;
  font-size: 13px;
}

.rank-more {
  width: 100%;
  margin-top: 18px;
}

.editor-section {
  padding-bottom: 24px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 24px;
  padding: 26px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #ffe4e6);
}

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

.page-hero {
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 82px;
}

.page-hero h1 {
  max-width: 860px;
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

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

.gradient-orange {
  background: linear-gradient(135deg, #f97316, #ef4444, #ec4899);
}

.gradient-dark {
  background: linear-gradient(135deg, #111827, #374151, #f97316);
}

.gradient-red {
  background: linear-gradient(135deg, #991b1b, #ef4444, #f97316);
}

.gradient-blue {
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #06b6d4);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

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

.filter-tags button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #4b5563;
  background: #f3f4f6;
  font-weight: 800;
  cursor: pointer;
}

.filter-tags button:hover,
.filter-tags button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.detail-bg,
.detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  filter: blur(5px);
  transform: scale(1.08);
  opacity: 0.55;
}

.detail-shade {
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.34));
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 46px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-stats span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-weight: 800;
}

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

.player-card {
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 18px 40px rgba(239, 68, 68, 0.38);
  font-size: 32px;
}

.player-cover strong {
  max-width: 82%;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.25;
}

.detail-content {
  padding-top: 36px;
}

.content-card {
  padding: 34px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.content-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 28px;
}

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

.content-card p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.info-table div {
  padding: 16px;
  border-radius: 18px;
  background: #f9fafb;
}

.info-table strong {
  display: block;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 13px;
}

.info-table span,
.info-table a {
  color: #111827;
  font-weight: 800;
}

.related-grid {
  padding-bottom: 60px;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  gap: 16px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.footer-inner p {
  max-width: 760px;
  margin: 0;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #fed7aa;
  font-weight: 800;
}

.is-hidden-card {
  display: none !important;
}

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

  .split-section,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.18);
  }

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

  .hero {
    height: 560px;
  }

  .hero-content {
    width: min(100% - 28px, 760px);
  }

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

  .global-search {
    flex-direction: column;
    border-radius: 24px;
  }

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

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

  .wide-card .poster-link {
    aspect-ratio: 3 / 4;
  }

  .detail-inner {
    min-height: auto;
    padding: 60px 0;
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-name {
    font-size: 17px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.02em;
  }

  .page-section {
    width: min(100% - 24px, 1240px);
    padding-top: 48px;
  }

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

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .rank-masonry,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 230px;
  }

  .content-card {
    padding: 24px;
  }

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