:root {
  --page-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #111827;
  --text-muted: #64748b;
  --line: #e5e7eb;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --soft-teal: #ecfeff;
  --shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e5e7eb;
}

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 24px;
  color: var(--teal-dark);
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.header-search,
.mobile-search,
.hero-search,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 220px;
  background: #f8fafc;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.header-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.secondary-button,
.rank-action,
.filter-button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(13, 148, 136, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.rank-action:hover,
.filter-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(13, 148, 136, 0.28);
}

.secondary-button {
  color: #0f766e;
  background: #ffffff;
  box-shadow: none;
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.secondary-button:hover {
  background: var(--soft-teal);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #334155;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.page-main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.30), transparent 30%), linear-gradient(135deg, #0f172a, #0f766e 55%, #0891b2);
}

.hero-track {
  position: relative;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 72px 24px 86px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
  gap: 46px;
  align-items: center;
  animation: fadeSlide 0.45s ease both;
}

.hero-slide.is-active {
  display: grid;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #e0f2fe;
  font-size: 20px;
}

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

.hero-search {
  max-width: 620px;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-search input {
  flex: 1;
  color: #ffffff;
  background: transparent;
  border-color: transparent;
}

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

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 440px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(1.2deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.08));
}

.hero-art-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.hero-art-caption strong {
  display: block;
  font-size: 26px;
}

.hero-art-caption span {
  color: #ccfbf1;
}

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

.hero-dot {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.30);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

.section,
.page-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 24px;
}

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

.section-heading h2,
.page-title h1,
.content-block h2,
.related-section h2,
.player-section h2 {
  margin: 0;
  color: var(--text-main);
  letter-spacing: -0.035em;
}

.section-heading p,
.page-title p,
.category-card p,
.content-block p,
.detail-copy p {
  color: var(--text-muted);
}

.more-link {
  color: var(--teal-dark);
  font-weight: 900;
}

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

.category-card {
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(13, 148, 136, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
}

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

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

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #e2e8f0;
}

.poster-link img {
  transition: transform 0.45s ease;
}

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 32px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.92);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h2 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-card-body h2 a:hover,
.rank-content h2 a:hover {
  color: var(--teal-dark);
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--text-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta-line,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.movie-meta-line span,
.tag-row span,
.detail-tag,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  color: #475569;
  background: #f1f5f9;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 24px;
}

.page-title h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
  max-width: 780px;
  color: #ecfeff;
  font-size: 18px;
}

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb span:last-child {
  color: #475569;
  background: #ffffff;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.rank-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #e2e8f0;
}

.rank-number {
  font-size: 30px;
  font-weight: 950;
  color: var(--teal-dark);
  text-align: center;
}

.rank-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: var(--shadow);
  background: #e2e8f0;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.detail-copy p {
  margin: 18px 0 0;
  font-size: 18px;
}

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

.player-panel {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.30);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.36));
  cursor: pointer;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-size: 34px;
  box-shadow: 0 18px 34px rgba(13, 148, 136, 0.32);
}

.play-label {
  font-size: 20px;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  align-items: start;
}

.content-block,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.content-block {
  padding: 28px;
}

.content-block h2 {
  margin-top: 0;
}

.content-block p {
  margin: 12px 0 26px;
  font-size: 17px;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 14px;
}

.side-link {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.side-link:first-of-type {
  border-top: 0;
}

.side-link img {
  border-radius: 12px;
  aspect-ratio: 2 / 3;
}

.side-link strong {
  display: block;
  line-height: 1.25;
}

.side-link span {
  color: var(--text-muted);
  font-size: 13px;
}

.filter-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.filter-bar {
  flex-wrap: wrap;
}

.filter-bar input {
  flex: 1 1 260px;
}

.filter-empty {
  display: none;
  margin-top: 20px;
  color: var(--text-muted);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 44px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 34px;
}

.footer-brand {
  color: #ffffff;
}

.footer-about p {
  max-width: 560px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.site-footer li {
  margin: 8px 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 24px;
  text-align: center;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .header-search {
    display: none;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-layout,
  .content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-track {
    min-height: auto;
    padding-top: 50px;
  }

  .hero-art {
    min-height: 320px;
  }

  .side-card {
    position: static;
  }

  .rank-item {
    grid-template-columns: 74px 44px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / 4;
    justify-content: center;
    text-align: center;
  }
}

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

  .brand-name {
    font-size: 20px;
  }

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

  .hero-copy p {
    font-size: 17px;
  }

  .hero-search {
    border-radius: 24px;
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search input,
  .hero-search button {
    width: 100%;
  }

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

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

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

  .section,
  .page-section {
    padding: 38px 16px;
  }

  .page-hero-inner {
    padding: 42px 16px;
  }

  .breadcrumb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-poster {
    max-width: 310px;
  }

  .content-block {
    padding: 22px;
  }
}
