:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;
  --cyan-600: #0891b2;
  --white: #ffffff;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--slate-100) 100%);
  color: var(--slate-900);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -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(15, 23, 42, 0.96);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.24);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  color: var(--white);
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.32);
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-menu a,
.mobile-menu a {
  color: var(--slate-200);
  font-weight: 600;
  transition: color 0.2s ease;
}

.desktop-menu a:hover,
.desktop-menu a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--teal-400);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 14px;
}

.mobile-menu.is-open {
  display: flex;
}

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

.hero-slider {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0f766e);
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.48) 48%, rgba(2, 6, 23, 0.26) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 88px 0;
  color: var(--white);
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.82);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 680px;
  color: var(--slate-200);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.78;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-700);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(10px);
}

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

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

.button-primary {
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  color: var(--white);
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.28);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.button-light {
  background: var(--white);
  color: var(--teal-700);
}

.button-primary:hover,
.button-ghost:hover,
.button-light:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--white);
}

.hero-search {
  position: absolute;
  z-index: 6;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 86px;
  width: min(360px, calc(100% - 48px));
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.34);
}

.hero-search strong {
  display: block;
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
}

.hero-search form {
  display: flex;
  gap: 10px;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--white);
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.74);
}

.hero-search button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: var(--white);
  font-weight: 800;
  background: var(--teal-500);
  cursor: pointer;
}

.page-section {
  padding: 72px 0;
}

.page-section.compact {
  padding: 44px 0;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading p,
.page-title p {
  margin: 8px 0 0;
  color: var(--slate-600);
  line-height: 1.75;
}

.section-link {
  color: var(--teal-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.movie-card-grid {
  flex-direction: column;
}

.movie-card-list {
  flex-direction: row;
}

.movie-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.movie-card-grid .movie-cover {
  height: 270px;
}

.movie-card-list .movie-cover {
  width: 190px;
  flex: 0 0 190px;
  min-height: 150px;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.74) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.movie-year {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.76);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(20, 184, 166, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  flex: 1;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.movie-card-body h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: var(--teal-700);
}

.movie-card-body p {
  margin: 0 0 14px;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--teal-700));
  box-shadow: var(--shadow-card);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.category-tile span {
  position: relative;
  z-index: 2;
  display: block;
  color: var(--slate-200);
  line-height: 1.65;
}

.feature-panel {
  border-radius: var(--radius-xl);
  padding: 34px;
  background: linear-gradient(135deg, #ecfeff, #f8fafc);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 10px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.compact-card img {
  width: 96px;
  height: 66px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.compact-card span {
  font-weight: 800;
  line-height: 1.35;
}

.compact-card em {
  display: block;
  margin-top: 6px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.page-hero {
  padding: 64px 0 34px;
  background: radial-gradient(circle at top left, rgba(20, 184, 166, 0.22), transparent 34%), linear-gradient(180deg, var(--slate-900), var(--slate-800));
  color: var(--white);
}

.page-title h1,
.page-title p {
  color: var(--white);
}

.page-title p {
  color: var(--slate-200);
  max-width: 760px;
}

.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.side-panel h2,
.side-panel h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
}

.side-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-700);
  font-weight: 700;
}

.side-panel a:hover,
.side-panel a.is-active {
  background: rgba(20, 184, 166, 0.1);
  color: var(--teal-700);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 58px 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  font-weight: 900;
}

.ranking-item img {
  width: 120px;
  height: 78px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.ranking-info h2,
.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.ranking-info p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.rank-score {
  color: var(--teal-700);
  font-weight: 900;
  white-space: nowrap;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.search-panel input,
.search-panel select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--slate-900);
  background: var(--slate-50);
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--slate-600);
  box-shadow: var(--shadow-card);
}

.empty-state.is-visible {
  display: block;
}

.detail-player-wrap {
  background: var(--slate-950);
  padding: 22px 0 34px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--slate-200);
  font-weight: 800;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.44);
  aspect-ratio: 16 / 9;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.18), rgba(2, 6, 23, 0.82));
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  background: linear-gradient(135deg, var(--slate-800), var(--teal-700));
}

.play-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
  box-shadow: 0 20px 45px rgba(20, 184, 166, 0.35);
  cursor: pointer;
  font-size: 32px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 44px 0 72px;
}

.detail-main,
.detail-aside-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-main {
  padding: 34px;
}

.detail-title h1 {
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--slate-600);
  font-weight: 700;
}

.detail-lead {
  padding: 18px 20px;
  margin: 24px 0;
  border-left: 4px solid var(--teal-500);
  border-radius: 0 16px 16px 0;
  background: rgba(20, 184, 166, 0.08);
  color: var(--slate-800);
  line-height: 1.85;
  font-weight: 700;
}

.detail-content h2 {
  margin: 28px 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-content p {
  margin: 0 0 18px;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.95;
}

.detail-aside {
  display: grid;
  gap: 20px;
  align-content: start;
}

.detail-aside-card {
  padding: 22px;
}

.detail-aside-card h2,
.detail-aside-card h3 {
  margin: 0 0 16px;
  font-size: 21px;
  font-weight: 900;
}

.aside-list {
  display: grid;
  gap: 14px;
}

.related-section {
  margin-top: 34px;
}

.site-footer {
  color: var(--slate-300);
  background: var(--slate-900);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 460px;
  margin: 0;
  color: var(--slate-400);
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links strong {
  color: var(--white);
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--slate-400);
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 16px;
  text-align: center;
  color: var(--slate-500);
}

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

  .hero-search {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(1180px, calc(100% - 32px));
    margin: -76px auto 0;
  }

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

  .side-panel {
    position: static;
  }
}

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

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

  .site-nav {
    min-height: 64px;
  }

  .site-logo {
    font-size: 20px;
  }

  .hero-slider {
    height: 590px;
  }

  .hero-content {
    align-items: flex-end;
    padding: 72px 0 98px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-search {
    margin-top: 18px;
  }

  .hero-search form,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-search form {
    display: grid;
  }

  .movie-grid,
  .movie-grid.three,
  .compact-list,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .movie-card-list {
    flex-direction: column;
  }

  .movie-card-list .movie-cover {
    width: 100%;
    min-height: 230px;
  }

  .ranking-item {
    grid-template-columns: 48px 92px 1fr;
  }

  .ranking-item img {
    width: 92px;
    height: 68px;
  }

  .rank-score {
    grid-column: 3;
  }

  .detail-main {
    padding: 24px;
  }

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