:root {
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --red: #dc2626;
  --blue: #2563eb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  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 {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 18px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(12px);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-weight: 800;
}

.logo-text {
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.32);
  font-size: 0.86rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 650;
  color: var(--gray-700);
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 999px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-search,
.mobile-search {
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.filter-bar input {
  border: 1px solid #d1d5db;
  background: var(--white);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
  border-radius: 12px 0 0 12px;
}

.nav-search button,
.mobile-search button,
.filter-bar a {
  border: 0;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button {
  padding: 11px 16px;
  border-radius: 0 12px 12px 0;
}

.nav-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.14);
}

.nav-search button:hover,
.mobile-search button:hover,
.filter-bar a:hover {
  background: var(--orange-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--gray-700);
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  padding: 14px 16px 18px;
  background: var(--white);
}

.mobile-panel.open {
  display: block;
}

.mobile-search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px 0 0 12px;
}

.mobile-search button {
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
}

.mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mobile-links a {
  padding: 10px 12px;
  background: var(--gray-50);
  border-radius: 12px;
  color: var(--gray-700);
}

.hero-carousel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(194, 65, 12, 0.96), rgba(220, 38, 38, 0.78), rgba(17, 24, 39, 0.42)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.28), rgba(17, 24, 39, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  min-height: 610px;
  gap: 56px;
  color: var(--white);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.65rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 30px;
  color: #ffedd5;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

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

.primary-btn,
.ghost-btn,
.wide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--white);
  color: var(--orange);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.wide-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: var(--white);
}

.featured-strip {
  position: relative;
  z-index: 4;
  margin-top: -76px;
  margin-bottom: 58px;
}

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

.white-section {
  background: var(--white);
}

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

.section-heading h2,
.ranking-panel h2,
.site-footer h2,
.detail-card h2,
.side-box h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-500);
}

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

.movie-grid {
  display: grid;
  gap: 18px;
}

.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.four-cols {
  grid-template-columns: repeat(4, 1fr);
}

.six-cols {
  grid-template-columns: repeat(6, 1fr);
}

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #ffedd5, #fee2e2);
}

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

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

.poster-year,
.poster-play {
  position: absolute;
  color: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.poster-year {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(17, 24, 39, 0.72);
}

.poster-play {
  left: 50%;
  bottom: 14px;
  padding: 7px 14px;
  background: var(--orange);
  transform: translate(-50%, 18px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-card h3,
.compact-card h3,
.rank-content h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.compact-card h3 a:hover,
.rank-content h3 a:hover {
  color: var(--orange);
}

.movie-card p,
.compact-card p,
.rank-content p {
  margin: 0 0 12px;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span,
.meta-line span,
.meta-line a,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 750;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 34px;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 86px;
  padding: 24px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.ranking-panel h2 {
  margin-bottom: 18px;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);
}

.compact-ranking .ranking-row {
  grid-template-columns: 38px 54px minmax(0, 1fr);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow: none;
}

.compact-ranking .rank-action {
  display: none;
}

.compact-ranking .rank-content p,
.compact-ranking .card-tags {
  display: none;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: var(--white);
  font-weight: 900;
}

.rank-poster {
  overflow: hidden;
  border-radius: 12px;
}

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

.rank-action,
.filter-bar a,
.wide-link {
  border-radius: 999px;
}

.rank-action {
  padding: 9px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
}

.wide-link {
  width: 100%;
  margin-top: 18px;
  background: var(--white);
  color: var(--orange);
}

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

.category-tile a,
.overview-category a {
  display: grid;
  min-height: 178px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ed, #fee2e2);
  border: 1px solid rgba(234, 88, 12, 0.16);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile a:hover,
.overview-category a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile span,
.overview-category span {
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile strong,
.overview-category p {
  margin-top: 10px;
  color: var(--gray-700);
  font-weight: 500;
}

.category-tile em,
.overview-category div {
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 0.88rem;
  font-style: normal;
}

.category-tile em a,
.overview-category div a {
  margin-right: 8px;
  color: var(--orange);
}

.page-hero {
  color: var(--white);
}

.simple-hero {
  padding: 68px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(120deg, var(--orange), var(--red));
}

.simple-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.simple-hero p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 1.14rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.simple-hero .breadcrumb {
  margin: 0 0 20px;
  color: #ffedd5;
}

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

.simple-hero .breadcrumb a:hover {
  color: var(--white);
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-bar input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
}

.filter-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  min-height: 48px;
}

.large-filter input {
  min-height: 56px;
  font-size: 1.05rem;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--gray-500);
  background: var(--white);
  border-radius: 20px;
}

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

.detail-wrap {
  padding: 32px 0 58px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
  border-radius: 24px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: var(--white);
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.58;
  filter: blur(0.4px) saturate(1.1);
}

.play-ring {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 86px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 16px 30px rgba(234, 88, 12, 0.36);
  font-size: 2rem;
  text-indent: 4px;
}

.player-cover strong,
.player-cover em {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  text-align: left;
}

.player-cover strong {
  bottom: 62px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.player-cover em {
  bottom: 30px;
  color: #ffedd5;
  font-style: normal;
  font-weight: 800;
}

.player-cover.hide {
  display: none;
}

.detail-card,
.side-box {
  margin-top: 22px;
  padding: 26px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.meta-line,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-line {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

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

.detail-card p {
  margin: 0 0 14px;
  color: var(--gray-700);
}

.lead-text {
  font-weight: 750;
  color: var(--gray-900) !important;
}

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

.side-poster {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

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

.compact-card {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  box-shadow: none;
}

.compact-poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

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

.compact-poster span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 3px 5px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.72);
  color: var(--white);
  font-size: 0.68rem;
  text-align: center;
}

.site-footer {
  background: var(--gray-900);
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-logo {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.site-footer p {
  color: #9ca3af;
  margin: 0;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1.1rem;
}

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

.site-footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding: 18px 16px;
  text-align: center;
  color: #9ca3af;
}

@media (max-width: 1100px) {
  .six-cols {
    grid-template-columns: repeat(4, 1fr);
  }

  .two-column-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 92px 0 88px;
  }

  .hero-poster {
    width: min(240px, 70vw);
    transform: none;
  }

  .three-cols,
  .four-cols,
  .six-cols,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-strip {
    margin-top: -46px;
  }

  .ranking-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }
}

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

  .logo-text {
    font-size: 1.3rem;
  }

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar a {
    justify-content: center;
  }

  .three-cols,
  .four-cols,
  .six-cols,
  .category-grid,
  .overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid.six-cols {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .movie-card p {
    display: none;
  }

  .detail-card,
  .side-box {
    padding: 18px;
  }

  .play-ring {
    width: 64px;
    height: 64px;
    margin-bottom: 70px;
  }

  .player-cover strong {
    bottom: 52px;
  }

  .player-cover em {
    bottom: 24px;
  }
}
