:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-line: #e2e8f0;
  --color-primary: #0f766e;
  --color-primary-dark: #134e4a;
  --color-primary-soft: #ccfbf1;
  --color-accent: #f59e0b;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 118, 110, 0.20);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 34rem),
    linear-gradient(180deg, #ecfeff 0%, var(--color-bg) 26rem);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e 0%, #134e4a 56%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.site-header__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.site-logo__icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.24);
}

.site-logo__text {
  font-size: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 650;
}

.site-nav a {
  opacity: 0.92;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: #99f6e4;
  opacity: 1;
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #ffffff;
}

main,
.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  margin: 28px auto 34px;
  min-height: 560px;
  overflow: hidden;
  border-radius: 32px;
  color: #ffffff;
  background: #0f172a;
  box-shadow: var(--shadow-card);
}

.hero-carousel,
.hero-slide,
.hero-slide__bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

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

.hero-slide__bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.36), transparent 22rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.50), transparent 40%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  width: min(680px, 58%);
  padding: 84px 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ccfbf1;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(153, 246, 228, 0.28);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 14px;
}

.hero h1,
.page-hero h1,
.movie-detail-info h1 {
  margin: 20px 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-subtitle,
.page-hero p,
.movie-detail-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  max-width: 760px;
}

.hero-meta {
  margin: 16px 0 0;
  color: #bae6fd;
  font-weight: 650;
}

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

.primary-button,
.ghost-button,
.filter-reset,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  padding: 0 22px;
  color: #0f172a;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(255, 255, 255, 0.20);
}

.primary-button:hover,
.ghost-button:hover,
.filter-reset:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 0 20px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.40);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: absolute;
  right: 64px;
  bottom: 72px;
  z-index: 3;
  width: min(280px, 28vw);
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.48);
}

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

.hero-poster span {
  display: block;
  padding: 14px 16px;
  text-align: center;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
}

.hero-controls {
  position: absolute;
  left: 70px;
  bottom: 54px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-control,
.hero-dot {
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.hero-control {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

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

.home-intro,
.filter-panel,
.content-section,
.page-hero,
.category-card,
.text-panel,
.player-section,
.movie-detail-hero {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.home-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  margin-bottom: 28px;
}

.home-intro h2 {
  margin: 14px 0 8px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
}

.home-intro p {
  margin: 0;
  color: var(--color-muted);
}

.filter-panel {
  padding: 22px;
  margin: 28px 0;
}

.filter-panel__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--color-primary-dark);
}

.filter-panel__controls {
  display: grid;
  grid-template-columns: 1fr 160px 160px auto;
  gap: 12px;
}

.filter-input,
.filter-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-text);
  padding: 0 14px;
  font-size: 15px;
  outline: none;
}

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

.filter-reset {
  border: 0;
  padding: 0 18px;
  color: #ffffff;
  background: var(--color-primary);
  cursor: pointer;
}

.filter-panel__result {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.content-section {
  padding: 28px;
  margin: 28px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-more,
.text-link {
  color: var(--color-primary);
  font-weight: 800;
}

.section-count {
  color: var(--color-muted);
  font-weight: 750;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: var(--color-surface);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

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

.year-badge,
.rank-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: #ef4444;
  font-size: 12px;
}

.play-badge {
  left: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.92);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.movie-desc {
  margin-top: 8px;
  min-height: 44px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 750;
}

.tag-row--large span {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 28px 0;
  padding: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgba(45, 212, 191, 0.32), transparent 22rem),
    linear-gradient(120deg, #134e4a 0%, #0f766e 52%, #0f172a 100%);
}

.page-hero--compact h1,
.page-hero--category h1,
.page-hero--ranking h1 {
  font-size: clamp(34px, 5vw, 60px);
}

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

.category-card {
  padding: 26px;
}

.category-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.category-card__top span,
.category-card__top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 34px;
}

.category-card__top span {
  padding: 0 13px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-weight: 800;
}

.category-card__top strong {
  width: 54px;
  color: #ffffff;
  background: var(--color-primary);
}

.category-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-card p {
  color: var(--color-muted);
}

.category-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.category-card li a {
  color: var(--color-text);
  font-weight: 650;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: 750;
}

.movie-detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 32px;
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 20%, rgba(45, 212, 191, 0.32), transparent 20rem),
    linear-gradient(135deg, #0f172a 0%, #134e4a 50%, #0f766e 100%);
}

.movie-detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 68px rgba(2, 6, 23, 0.38);
}

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

.movie-detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
}

.detail-meta-grid strong,
.detail-meta-grid span {
  display: block;
}

.detail-meta-grid strong {
  color: #99f6e4;
  font-size: 13px;
}

.detail-meta-grid span {
  margin-top: 4px;
  font-weight: 800;
}

.player-section {
  padding: 28px;
  margin: 28px 0;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.72));
}

.player-start span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-primary);
  background: #ffffff;
  font-size: 32px;
  box-shadow: 0 20px 50px rgba(255, 255, 255, 0.18);
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.text-panel {
  padding: 28px;
}

.text-panel--wide {
  grid-column: 1 / -1;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--color-muted);
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  font-weight: 650;
}

.site-footer {
  margin-top: 56px;
  color: #cbd5e1;
  background: #0f172a;
}

.site-footer__inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
}

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

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

.footer-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.site-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  padding: 18px 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 12px;
    font-size: 14px;
  }

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

  .hero-slide__content {
    width: 68%;
  }
}

@media (max-width: 860px) {
  .mobile-menu-button {
    display: block;
  }

  .site-header__inner {
    min-height: 64px;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #134e4a;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  }

  .hero {
    min-height: 680px;
  }

  .hero-slide__content {
    width: 100%;
    padding: 52px 28px 260px;
  }

  .hero-poster {
    left: 28px;
    right: auto;
    bottom: 74px;
    width: 190px;
  }

  .hero-controls {
    left: 28px;
    bottom: 24px;
  }

  .home-intro,
  .section-heading,
  .movie-detail-hero {
    display: block;
  }

  .home-intro .primary-button,
  .section-more {
    margin-top: 16px;
  }

  .filter-panel__controls {
    grid-template-columns: 1fr;
  }

  .category-overview-grid,
  .detail-content-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .movie-detail-poster {
    max-width: 280px;
    margin-bottom: 22px;
  }

  .detail-meta-grid,
  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main,
  .page-main,
  .site-header__inner,
  .site-footer__inner {
    width: min(100% - 22px, 1280px);
  }

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

  .hero,
  .content-section,
  .filter-panel,
  .page-hero,
  .movie-detail-hero,
  .player-section,
  .text-panel,
  .home-intro {
    border-radius: 20px;
  }

  .hero h1,
  .page-hero h1,
  .movie-detail-info h1 {
    font-size: 34px;
  }

  .content-section,
  .page-hero,
  .movie-detail-hero,
  .player-section,
  .text-panel,
  .filter-panel,
  .home-intro {
    padding: 20px;
  }

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

  .movie-card__body {
    padding: 12px;
  }

  .movie-card__body h3 {
    font-size: 16px;
  }

  .movie-desc {
    display: none;
  }

  .category-card ul,
  .footer-links ul {
    grid-template-columns: 1fr;
  }
}
