:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --cyan: #0891b2;
  --blue: #2563eb;
  --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;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 15px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.28);
}

.brand-text {
  font-size: 26px;
  color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--slate-700);
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--teal);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.quick-search-panel input {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  outline: none;
  background: var(--slate-50);
  color: var(--slate-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
  width: 210px;
  padding: 10px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.quick-search-panel input:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
  background: var(--white);
}

.top-search button,
.mobile-search button,
.quick-search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  cursor: pointer;
  font-weight: 750;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.18);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--slate-100);
  color: var(--slate-700);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-search {
  padding: 10px 12px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
}

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

.hero-stage {
  position: relative;
  min-height: 640px;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  filter: saturate(1.08);
}

.hero-bg::after,
.detail-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, rgba(20, 184, 166, 0.36), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(34, 211, 238, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 380px;
  align-items: center;
  gap: 64px;
  padding: 72px 0 88px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(15, 118, 110, 0.52);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-title-row h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-title-row p {
  margin: 22px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  font-weight: 750;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  padding: 13px 24px;
  color: var(--teal-dark);
  background: var(--white);
  box-shadow: 0 16px 36px rgba(255, 255, 255, 0.24);
}

.ghost-btn {
  padding: 12px 20px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  transform: rotate(1deg);
}

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

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

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  font-size: 30px;
  line-height: 1;
}

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

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

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

.main-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.quick-search-panel,
.filter-panel,
.detail-main-card,
.detail-side-card,
.category-card-wide {
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -84px;
  margin-bottom: 56px;
  position: relative;
  z-index: 8;
  padding: 28px;
}

.quick-search-panel h2,
.filter-panel h2,
.section-head h2,
.detail-main-card h2,
.detail-side-card h2,
.category-card-wide h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.quick-search-panel p,
.section-head p,
.category-card-wide p {
  margin: 8px 0 0;
  color: var(--slate-600);
}

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

.quick-search-panel input {
  min-width: 0;
  flex: 1;
  padding: 13px 18px;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-head a,
.text-link {
  color: var(--teal);
  font-weight: 850;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-card);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-200), var(--slate-100));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(2, 6, 23, 0.68));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-dot {
  opacity: 1;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.movie-info {
  padding: 14px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--teal);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  color: var(--slate-500);
  font-size: 13px;
}

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

.movie-info p {
  display: -webkit-box;
  min-height: 43px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 4px 8px;
  color: var(--teal-dark);
  background: #ccfbf1;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

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

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.82));
}

.category-tile strong,
.category-tile em {
  position: absolute;
  left: 18px;
  right: 18px;
}

.category-tile strong {
  bottom: 64px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 24px;
}

.filter-panel input {
  width: min(520px, 100%);
  padding: 13px 18px;
}

.category-list-section {
  display: grid;
  gap: 22px;
}

.category-card-wide {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 26px;
  align-items: center;
  padding: 22px;
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 18px;
}

.category-preview img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-card-wide p {
  margin-bottom: 16px;
}

.detail-hero {
  min-height: 500px;
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 70px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--white);
}

.detail-title-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: end;
}

.detail-poster {
  width: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.44);
}

.detail-wrap {
  padding-top: 34px;
}

.player-section {
  margin-bottom: 34px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(20, 184, 166, 0.36);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 58px;
}

.detail-main-card,
.detail-side-card {
  padding: 28px;
}

.detail-main-card h2 + p {
  margin-top: 12px;
}

.detail-main-card p {
  margin: 0 0 28px;
  color: var(--slate-700);
  font-size: 17px;
  line-height: 1.9;
}

.detail-main-card p:last-child {
  margin-bottom: 0;
}

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

.detail-side-card dl {
  margin: 16px 0 0;
}

.detail-side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
}

.detail-side-card div:last-child {
  border-bottom: 0;
}

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

.detail-side-card dd {
  margin: 0;
  color: var(--slate-800);
}

.detail-side-card a {
  color: var(--teal);
  font-weight: 850;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(135deg, #020617, #0f172a 58%, #134e4a);
}

.footer-wrap {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 40px;
  padding: 50px 0 36px;
}

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

.footer-main p {
  max-width: 560px;
  color: var(--slate-300);
}

.footer-col h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #5eead4;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--slate-400);
}

[data-card].is-hidden {
  display: none;
}

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

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

  .mobile-nav.is-open {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-poster {
    display: none;
  }

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

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

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

  .detail-side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .brand-text {
    font-size: 22px;
  }

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

  .hero-content {
    padding-top: 52px;
  }

  .quick-search-panel {
    grid-template-columns: 1fr;
    margin-top: -52px;
  }

  .quick-search-panel form,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

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

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

  .detail-poster {
    width: 180px;
  }

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

@media (max-width: 520px) {
  .nav-wrap,
  .main-wrap,
  .footer-wrap,
  .footer-bottom,
  .page-hero > div,
  .detail-hero-inner {
    width: min(100% - 24px, 1240px);
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-title-row h1 {
    font-size: 34px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .full-grid,
  .rank-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    bottom: 18px;
  }

  .detail-main-card,
  .detail-side-card {
    padding: 22px;
  }
}
