:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --amber-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  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: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50) 0%, #ffffff 44%, var(--teal-50) 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-700), var(--teal-900));
  box-shadow: 0 14px 30px rgba(19, 78, 74, 0.22);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--teal-900);
  background: var(--teal-100);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.brand-text {
  font-size: 21px;
}

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

.nav-link {
  font-weight: 650;
  opacity: 0.88;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-200);
  opacity: 1;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(19, 78, 74, 0.98);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 32px 0 12px;
}

.hero-stage {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  background: var(--gray-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
  transition: opacity 0.6s ease, transform 1.1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48) 48%, rgba(0, 0, 0, 0.06));
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 7%;
  width: min(620px, 84%);
  color: var(--white);
  transform: translateY(-50%);
}

.hero-kicker,
.detail-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.hero-kicker a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 99px;
  color: var(--white);
  background: rgba(13, 148, 136, 0.95);
  font-size: 14px;
  font-weight: 750;
}

.hero-kicker span:nth-child(2) {
  background: var(--amber-500);
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--teal-600);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.btn.outline {
  color: var(--teal-700);
  background: var(--white);
  border-color: var(--teal-200);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.34);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 7%;
  bottom: 32px;
  z-index: 6;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 28px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dots button.active {
  width: 44px;
  background: var(--teal-200);
}

.section-block {
  padding: 34px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 34px);
}

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

.section-more {
  color: var(--teal-700);
  font-weight: 750;
}

.movie-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

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

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 750;
}

.rank-badge {
  right: auto;
  left: 10px;
  background: var(--amber-500);
}

.movie-info {
  padding: 16px;
}

.movie-meta {
  color: var(--gray-500);
  font-size: 12px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--gray-500);
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--teal-700);
  background: var(--teal-50);
  font-size: 12px;
  font-weight: 650;
}

.category-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--gray-900);
  box-shadow: var(--soft-shadow);
}

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

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.64;
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  display: block;
  padding: 106px 18px 8px;
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  margin: 0;
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  line-height: 1.6;
}

.hot-panel {
  padding: 34px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(245, 158, 11, 0.12));
}

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

.rank-card {
  display: grid;
  grid-template-columns: 132px 1fr;
}

.rank-card .poster-wrap {
  height: 100%;
  min-height: 134px;
  aspect-ratio: auto;
}

.page-hero {
  padding: 72px 0;
  color: var(--white);
  background: radial-gradient(circle at 18% 12%, rgba(153, 246, 228, 0.28), transparent 34%), linear-gradient(135deg, var(--teal-700), var(--teal-900));
}

.page-hero span {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--teal-900);
  background: var(--teal-100);
  font-weight: 800;
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  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;
}

.slim-actions {
  margin-top: 22px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.search-panel label {
  display: grid;
  gap: 8px;
  color: var(--gray-700);
  font-size: 13px;
  font-weight: 760;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-800);
  background: var(--white);
  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.15);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: var(--radius-lg);
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  color: var(--gray-900);
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-500);
  line-height: 1.7;
}

.mini-grid .movie-card p,
.tiny .tag-row {
  display: none;
}

.ranking-table {
  display: grid;
  gap: 10px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 52px 86px minmax(160px, 1.2fr) minmax(160px, 1fr) minmax(130px, 0.8fr);
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  font-weight: 900;
}

.ranking-row img {
  width: 86px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-title {
  color: var(--gray-900);
  font-weight: 800;
}

.ranking-info,
.ranking-tags {
  color: var(--gray-500);
  font-size: 14px;
}

.detail-hero {
  padding: 48px 0;
  color: var(--white);
  background: radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, var(--teal-800), var(--gray-900));
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.detail-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags span {
  color: var(--teal-900);
  background: var(--teal-100);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 42px 0 22px;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-section,
.content-card,
.side-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.player-section h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  padding: 20px 22px 0;
  color: var(--gray-900);
}

.player-frame {
  position: relative;
  margin: 18px 22px 22px;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 9;
  background: var(--gray-900);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.player-cover strong,
.play-orb {
  position: relative;
  z-index: 1;
}

.play-orb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--teal-900);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  font-size: 30px;
}

.player-cover strong {
  max-width: 80%;
  font-size: 22px;
  text-align: center;
}

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

.content-card {
  padding: 24px;
}

.content-card h2 {
  padding: 0;
  margin-bottom: 12px;
}

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

.highlight-card {
  position: sticky;
  top: 94px;
  color: var(--white);
  background: linear-gradient(160deg, var(--teal-600), var(--teal-900));
}

.highlight-card h2 {
  color: var(--white);
}

.highlight-card dl {
  margin: 0;
  padding: 22px;
}

.highlight-card dt {
  margin-top: 14px;
  color: var(--teal-100);
  font-size: 13px;
}

.highlight-card dt:first-child {
  margin-top: 0;
}

.highlight-card dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.site-footer {
  margin-top: 44px;
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.82);
  background: var(--gray-900);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.site-footer p {
  margin: 10px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

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

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

  .three-col,
  .rank-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .highlight-card {
    position: static;
  }
}

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

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-stage {
    height: 520px;
    border-radius: 20px;
  }

  .hero-content {
    left: 22px;
    width: calc(100% - 44px);
  }

  .hero-content p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 22px;
    bottom: 22px;
  }

  .section-heading,
  .category-overview-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .four-col,
  .three-col,
  .category-grid,
  .rank-list.compact,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 130px 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 74px 1fr;
  }

  .ranking-info,
  .ranking-tags {
    grid-column: 3;
  }

  .page-hero {
    padding: 52px 0;
  }

  .detail-hero {
    padding: 34px 0;
  }

  .player-frame {
    margin: 16px;
  }

  .player-section h2,
  .content-card,
  .side-card h2 {
    padding-left: 18px;
    padding-right: 18px;
  }
}
