* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f7f8;
  color: #1f2937;
  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;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

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

.nav-link {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d97706;
}

.nav-dropdown {
  position: relative;
  padding: 20px 0;
}

.dropdown-menu {
  position: absolute;
  top: 58px;
  left: 0;
  width: 190px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #4b5563;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #fff7ed;
  color: #d97706;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 320px;
}

.header-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  padding: 10px 14px;
}

.header-search input:focus,
.wide-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.wide-search button {
  border: 0;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
  padding: 10px 16px;
}

.header-search button:hover,
.wide-search button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

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

.mobile-nav {
  display: none;
  padding: 14px 20px 22px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

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

.mobile-nav a {
  color: #4b5563;
  font-weight: 700;
}

.mobile-category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.hero-carousel {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.14));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 16px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 16px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-movie-title {
  font-size: clamp(28px, 4vw, 44px) !important;
  color: #fef3c7;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 30px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.button.primary {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.32);
}

.button.primary:hover {
  background: #d97706;
  transform: translateY(-2px) scale(1.02);
}

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

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

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

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

.hero-dot.active {
  width: 34px;
  background: #f59e0b;
}

.search-hero-panel {
  position: relative;
  margin-top: -54px;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  z-index: 6;
}

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

.wide-search {
  display: flex;
  gap: 12px;
}

.wide-search input {
  padding: 14px 18px;
}

.wide-search button {
  padding: 0 28px;
}

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

.quick-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-weight: 700;
  font-size: 14px;
}

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

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

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}

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

.section-heading a,
.text-link {
  color: #d97706;
  font-weight: 900;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.poster-link {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #374151);
}

.movie-card.compact .poster-link {
  height: 230px;
}

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

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

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.58));
  opacity: 0.86;
}

.movie-badge,
.watch-pill,
.rank-number {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}

.movie-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: #f59e0b;
  font-size: 13px;
}

.watch-pill {
  right: 12px;
  bottom: 12px;
  padding: 5px 12px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 13px;
}

.rank-number {
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

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

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

.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #b45309;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  padding: 4px 8px;
}

.detail-tags span {
  padding: 7px 12px;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card h3 a:hover {
  color: #d97706;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
  color: #d1d5db;
}

.glow-section {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(90deg, #ffedd5, #fef3c7, #fef9c3);
}

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

.category-card {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.category-card span {
  color: #d97706;
  font-weight: 900;
}

.category-card strong {
  margin-top: 12px;
  color: #111827;
  font-size: 24px;
}

.category-card em {
  color: #6b7280;
  font-style: normal;
  font-size: 14px;
}

.rank-preview {
  padding-top: 34px;
}

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

.rank-line {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.rank-line:hover {
  color: #d97706;
  transform: translateX(4px);
}

.rank-line span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-weight: 900;
}

.rank-line em {
  color: #6b7280;
  font-style: normal;
  font-size: 14px;
}

.subpage {
  padding-bottom: 44px;
}

.page-hero {
  margin: 38px auto 28px;
  padding: 46px;
  border-radius: 32px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(234, 88, 12, 0.22);
}

.page-hero.amber-hero {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.page-hero.teal-hero {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.page-hero span {
  font-weight: 900;
  opacity: 0.86;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  padding: 13px 16px;
  border-radius: 14px;
}

.filter-hidden {
  display: none !important;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-cover {
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

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

.category-overview-card h2 {
  margin: 0 0 8px;
  color: #111827;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: #6b7280;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sample-links a {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: blur(8px);
  transform: scale(1.04);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.76), rgba(17, 24, 39, 0.48));
}

.detail-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 44px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

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

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

.player-section {
  padding: 58px 0 34px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 20px 42px rgba(245, 158, 11, 0.34);
}

.player-overlay strong {
  font-size: 22px;
}

.content-section {
  padding: 20px 0 36px;
}

.content-section h2 {
  margin: 30px 0 12px;
  color: #111827;
  font-size: 30px;
}

.content-section p {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  color: #374151;
  font-size: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.site-footer {
  margin-top: 36px;
  background: linear-gradient(180deg, #1f2937, #111827);
  color: #ffffff;
}

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

.footer-grid h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 20px;
}

.footer-grid p {
  margin: 0;
  color: #d1d5db;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #d1d5db;
}

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

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

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

  .hero-carousel {
    height: 560px;
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-content {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }

  .detail-poster img {
    height: 360px;
  }
}

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

  .logo {
    font-size: 22px;
  }

  .hero-carousel {
    height: 620px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.88));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .hero-actions,
  .wide-search,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-hero-panel,
  .glow-section,
  .page-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .category-overview-grid,
  .rank-list,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-line {
    grid-template-columns: 40px 1fr;
  }

  .rank-line em {
    grid-column: 2;
  }

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

  .detail-poster {
    width: min(280px, 100%);
  }

  .detail-hero,
  .detail-content {
    min-height: auto;
  }

  .player-wrap {
    border-radius: 18px;
  }
}
