:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --orange: #ea580c;
  --gray-950: #0f172a;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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.88);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

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

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.28);
}

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

.nav-link,
.mobile-link {
  padding: 10px 16px;
  color: var(--gray-600);
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--teal-dark);
  background: #ecfeff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--gray-100);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-800);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid var(--gray-200);
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--gray-950);
}

.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 {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.42) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, var(--gray-50), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 80px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: #99f6e4;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 720px;
  margin: 24px 0 0;
  color: #d1d5db;
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags {
  margin-top: 26px;
}

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 13px;
}

.tag-row span,
.detail-tags a {
  background: #f0fdfa;
  color: var(--teal-dark);
}

.hero-actions,
.page-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 30px rgba(13, 148, 136, 0.28);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(13, 148, 136, 0.35);
}

.btn.glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn.glass.light {
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(13, 148, 136, 0.16);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

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

.hero-controls button {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  transition: 0.2s ease;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-controls button:hover,
.hero-dot.active {
  background: var(--teal);
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
}

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

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

.section-soft {
  max-width: none;
  background: linear-gradient(180deg, #f8fafc, #eefbfb);
}

.section-soft > .section-head,
.section-soft > .movie-grid,
.detail-more > .section-head,
.detail-more > .movie-grid {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head.compact {
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.movie-detail-card h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-link,
.text-button {
  color: var(--teal-dark);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.82);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

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

.movie-card:hover .poster-frame img,
.compact-card:hover img,
.category-cover:hover img {
  transform: scale(1.06);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.84));
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.76);
}

.play-badge {
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
}

.card-content {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-content strong {
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-content small,
.compact-card small,
.ranking-info small,
.rank-row small {
  color: var(--gray-500);
  line-height: 1.5;
}

.card-content em,
.ranking-info em {
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  gap: 6px;
}

.tag-row span {
  padding: 4px 9px;
  font-size: 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
}

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

.category-tile,
.category-overview-card,
.ranking-panel,
.side-card,
.movie-detail-card,
.filter-panel {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 22px;
}

.category-tile span,
.category-tile small {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 70%;
}

.category-tile span {
  margin-bottom: 8px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.category-tile small {
  color: var(--gray-600);
  line-height: 1.6;
}

.category-tile img {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 118px;
  height: 158px;
  object-fit: cover;
  border-radius: 20px;
  transform: rotate(8deg);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.ranking-panel,
.side-card {
  padding: 24px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: #f0fdfa;
}

.rank-row strong,
.rank-row small {
  display: block;
}

.rank-no,
.rank-medal {
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--teal));
}

.rank-no {
  width: 34px;
  height: 34px;
}

.rank-row em {
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
}

.cta-section {
  max-width: none;
  color: var(--white);
  text-align: center;
  background: linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.cta-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
}

.cta-section p {
  max-width: 720px;
  margin: 18px auto 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.cta-actions {
  justify-content: center;
}

.page-hero {
  padding: 86px 24px;
  color: var(--white);
  text-align: center;
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.44), transparent 28%), linear-gradient(135deg, var(--gray-950), var(--gray-800));
}

.page-hero.slim {
  padding: 72px 24px;
}

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

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px auto 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(150px, 190px));
  align-items: end;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--gray-600);
  font-weight: 800;
}

.search-box input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  background: var(--gray-50);
  color: var(--gray-900);
  padding: 0 14px;
  outline: none;
  transition: 0.2s ease;
}

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

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

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

.category-overview-card {
  padding: 22px;
}

.category-overview-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.category-cover img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-cover span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--white);
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--gray-50);
  transition: 0.2s ease;
}

.compact-card:hover {
  background: #f0fdfa;
}

.compact-card img {
  width: 86px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #0d9488);
  transition: transform 0.35s ease;
}

.compact-card strong,
.compact-card small {
  display: block;
}

.compact-card strong {
  color: var(--gray-900);
  line-height: 1.4;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 52px 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: var(--white);
  transition: 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-card);
}

.rank-medal {
  width: 46px;
  height: 46px;
}

.ranking-card img {
  width: 116px;
  height: 76px;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #0d9488);
}

.ranking-info {
  display: grid;
  gap: 6px;
}

.ranking-info strong {
  font-size: 18px;
}

.ranking-year {
  color: var(--teal-dark);
  font-weight: 900;
}

.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-bar nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb-bar a:hover {
  color: var(--teal-dark);
}

.breadcrumb-bar strong {
  color: var(--gray-900);
}

.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

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

.player-overlay-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.86);
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 45px rgba(13, 148, 136, 0.36);
  transition: 0.2s ease;
}

.player-overlay-button span {
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--white);
  transform: translateX(4px);
}

.player-overlay-button:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

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

.movie-detail-card {
  padding: 28px;
}

.movie-detail-card h1 {
  margin-bottom: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
}

.meta-row span,
.meta-row a {
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 700;
}

.meta-row a {
  color: var(--teal-dark);
  background: #ccfbf1;
}

.lead-text {
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 800;
}

.movie-detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: var(--gray-900);
  font-size: 22px;
}

.movie-detail-card p {
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.88;
}

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

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
  position: sticky;
  top: 94px;
}

.next-prev {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.next-prev a {
  padding: 18px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: 0.2s ease;
}

.next-prev a:hover {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-card);
}

.next-prev small,
.next-prev strong {
  display: block;
}

.next-prev small {
  color: var(--gray-500);
  margin-bottom: 6px;
}

.site-footer {
  color: #cbd5e1;
  background: var(--gray-950);
}

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

.footer-logo {
  color: var(--white);
  margin-bottom: 16px;
}

.footer-inner p {
  max-width: 420px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-content: start;
}

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(20, 184, 166, 0.42);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster {
    max-width: 240px;
    transform: none;
  }

  .section-head,
  .footer-inner,
  .filter-panel,
  .ranking-card,
  .next-prev {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

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

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

  .section,
  .detail-wrap,
  .page-hero,
  .breadcrumb-bar nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .large-grid,
  .category-list,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    gap: 12px;
  }

  .ranking-card img {
    width: 100%;
    height: 160px;
  }
}
