:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-500: #06b6d4;
  --blue-600: #2563eb;
  --orange-500: #f97316;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-500), var(--blue-600));
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.25);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-600);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.25);
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.nav-link {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--teal-100);
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.site-search input,
.hero-search input,
.wide-search input,
.filter-input,
.filter-select {
  border: 0;
  outline: 0;
  color: var(--slate-800);
  background: var(--white);
}

.site-search input {
  width: 190px;
  color: var(--white);
  background: transparent;
}

.site-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.site-search button,
.hero-search button,
.wide-search button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  color: var(--teal-600);
  background: var(--white);
  padding: 8px 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-search button:hover,
.hero-search button:hover,
.wide-search button:hover,
.btn:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 8px 12px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-500), var(--blue-600));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 180px;
  max-width: 760px;
  transform: translateX(-210px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--teal-50);
  background: rgba(255, 255, 255, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
}

.hero-content h1 {
  margin: 24px 0 8px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.1vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-tags,
.info-pills,
.trend-links,
.hero-category-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.detail-tags a,
.info-pills span,
.tag-row span {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

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

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

.btn.primary {
  color: var(--teal-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 20px;
  align-items: center;
}

.hero-search,
.wide-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
}

.hero-search input,
.wide-search input {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
}

.hero-category-links a,
.trend-links a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-category-links a:hover,
.trend-links a:hover,
.footer-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}

.hero-dots {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 146px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

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

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

.section-heading h2 {
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--slate-500);
  font-size: 17px;
  line-height: 1.7;
}

.section-action {
  flex: 0 0 auto;
  color: var(--teal-600);
  font-weight: 900;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--slate-800);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
}

.card-large .poster-wrap {
  aspect-ratio: 3 / 2.1;
}

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

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-body {
  padding: 18px;
}

.movie-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--teal-600);
  background: var(--teal-100);
  font-size: 12px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 12px 0 8px;
  min-height: 48px;
  font-size: 19px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

.movie-card p {
  margin: 0 0 14px;
  color: var(--slate-500);
  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;
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

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

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: var(--slate-500);
  background: var(--slate-100);
}

.card-horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 28px;
  align-items: start;
}

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

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

.rank-card {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: var(--slate-800);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-num {
  color: var(--teal-600);
  font-size: 26px;
  font-weight: 900;
}

.rank-card img {
  width: 92px;
  height: 74px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
}

.rank-card span {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 800;
}

.rank-card h3 {
  margin: 5px 0;
  font-size: 18px;
  line-height: 1.25;
}

.rank-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-panel,
.category-showcase,
.cta-band,
.detail-card,
.side-box,
.player-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.trend-panel {
  position: sticky;
  top: 96px;
  padding: 30px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
}

.trend-panel h2,
.cta-band h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
}

.trend-panel p,
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
}

.category-showcase {
  padding: 34px;
}

.cta-band {
  margin-bottom: 70px;
  padding: 50px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(120deg, var(--teal-600), var(--cyan-500), var(--blue-600));
}

.cta-band .hero-category-links {
  justify-content: center;
  margin-top: 24px;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(100deg, var(--teal-600), var(--cyan-500), var(--blue-600));
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.detail-shell .breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 24px;
  color: var(--slate-500);
}

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

.detail-shell .breadcrumb a:hover {
  color: var(--teal-600);
}

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

.category-panel a {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: var(--white);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.96), rgba(37, 99, 235, 0.94));
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-panel a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-panel span {
  font-weight: 900;
  opacity: 0.82;
}

.category-panel h2 {
  margin: 12px 0;
  font-size: 30px;
}

.category-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.category-panel div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-panel div a {
  min-height: auto;
  padding: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
}

.panel-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-input,
.filter-select {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--slate-100);
}

.filter-input {
  flex: 1;
}

.filter-select {
  min-width: 170px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pagination a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
  color: var(--teal-600);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pagination a.is-current {
  color: var(--white);
  background: var(--teal-600);
}

.detail-shell {
  padding: 38px 0 0;
}

.detail-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.watch-column {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: var(--slate-900);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.74));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-600);
  background: var(--white);
  font-size: 34px;
  box-shadow: var(--shadow);
}

.player-overlay strong {
  max-width: min(82%, 640px);
  text-align: center;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.25;
}

.detail-card {
  margin-top: 24px;
  padding: 32px;
  background: var(--white);
}

.article-content h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.article-content .lead {
  color: var(--slate-700);
  font-size: 20px;
  line-height: 1.8;
}

.article-content h2 {
  margin: 32px 0 12px;
  font-size: 26px;
}

.article-content p {
  color: var(--slate-700);
  line-height: 1.9;
}

.info-pills {
  margin: 24px 0;
}

.info-pills span,
.detail-tags span,
.detail-tags a {
  color: var(--teal-600);
  background: var(--teal-100);
}

.side-panel {
  position: sticky;
  top: 96px;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, var(--teal-600), var(--blue-600));
}

.side-box {
  margin-top: 20px;
  padding: 24px;
  background: var(--white);
}

.side-box h2 {
  margin: 0 0 18px;
}

.side-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px 14px;
}

.side-box dt {
  color: var(--slate-500);
  font-weight: 800;
}

.side-box dd {
  margin: 0;
  line-height: 1.6;
}

.side-box a {
  color: var(--teal-600);
  font-weight: 900;
}

.wide-search {
  max-width: 720px;
  margin-top: 26px;
}

.search-summary {
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 900;
  color: var(--slate-800);
}

.site-footer {
  margin-top: 20px;
  color: var(--white);
  background: linear-gradient(90deg, #111827, var(--slate-900));
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.85fr;
  gap: 28px;
  padding: 44px 0;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--teal-100);
  font-size: 22px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

@media (max-width: 1120px) {
  .main-menu {
    gap: 12px;
  }

  .nav-link {
    font-size: 14px;
  }

  .site-search input {
    width: 150px;
  }

  .hero-content {
    transform: none;
  }
}

@media (max-width: 920px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-menu {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

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

  .site-search {
    order: 3;
    flex: 1 1 100%;
  }

  .site-search input {
    flex: 1;
    width: auto;
  }

  .hero-carousel {
    min-height: 740px;
  }

  .hero-content {
    padding: 72px 0 300px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 34px;
  }

  .hero-dots {
    right: 22px;
    bottom: 250px;
  }

  .movie-grid,
  .movie-grid.compact,
  .rank-list.wide,
  .category-grid,
  .footer-grid,
  .split-layout,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trend-panel,
  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 20px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-actions,
  .hero-search,
  .wide-search,
  .panel-tools {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-search input,
  .wide-search input,
  .filter-input,
  .filter-select {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.compact,
  .rank-list.wide,
  .category-grid,
  .footer-grid,
  .split-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .category-showcase,
  .cta-band,
  .detail-card {
    padding: 24px;
  }

  .rank-card {
    grid-template-columns: 42px 76px 1fr;
    gap: 12px;
  }

  .rank-card img {
    width: 76px;
    height: 68px;
  }

  .side-box dl {
    grid-template-columns: 1fr;
  }
}
