* {
  box-sizing: border-box;
}

:root {
  --brand: #0d9488;
  --brand-deep: #0f766e;
  --brand-bright: #06b6d4;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f8fafc;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  line-height: 1.6;
}

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;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright), var(--blue));
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.32);
}

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

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  transform: translateY(-1px);
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.quick-search input {
  flex: 1;
  width: 100%;
  border: 0;
  outline: 0;
  padding: 9px 12px;
  background: transparent;
  color: var(--ink);
}

.quick-search button,
.primary-button,
.ghost-button,
.section-link {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  box-shadow: 0 12px 24px rgba(13, 148, 136, 0.22);
}

.quick-search button {
  padding: 8px 15px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover,
.quick-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(13, 148, 136, 0.28);
}

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

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488 0%, #0891b2 48%, #2563eb 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.30) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.30) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -140px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(8px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  min-height: 620px;
  margin: 0 auto;
  padding: 76px 20px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: 42px;
  align-items: center;
}

.hero-slider {
  position: relative;
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-kicker,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 26px;
  color: #cffafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 700;
}

.hero-feature {
  position: relative;
  display: grid;
  gap: 16px;
}

.hero-poster-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  background: rgba(15, 23, 42, 0.22);
}

.hero-poster-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.82) 100%);
}

.hero-poster-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-poster-copy h2 {
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.2;
}

.hero-poster-copy p {
  margin: 0;
  color: #dbeafe;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

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

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

.content-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.18;
  font-weight: 880;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--brand-deep);
  background: #ecfeff;
}

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

.movie-card,
.category-card,
.rank-card,
.info-panel,
.detail-card {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

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

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

.poster-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(13, 148, 136, 0.92);
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
}

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

.movie-card h3,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 820;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover {
  color: var(--brand-deep);
}

.movie-card-line {
  min-height: 48px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta,
.movie-card-genre {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-card-genre {
  margin-top: 4px;
  color: #0f766e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  min-height: 150px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -40px;
  bottom: -42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.16), rgba(37, 99, 235, 0.16));
}

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

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 850;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

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

.rank-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  padding: 12px;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

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

.rank-number {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.rank-info {
  align-self: center;
}

.rank-info p {
  margin: 0 0 12px;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-meta span,
.meta-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0f766e;
  background: #ecfeff;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0d9488, #0891b2 48%, #2563eb);
}

.page-hero .content-shell {
  padding-top: 70px;
  padding-bottom: 70px;
}

.page-hero h1 {
  max-width: 920px;
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cffafe;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus,
.quick-search input:focus {
  border-color: var(--brand-bright);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.no-results {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  color: #0f766e;
  background: #ecfeff;
  font-weight: 750;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e 0%, #0891b2 48%, #1d4ed8 100%);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.20), transparent 30%), radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 20px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 68px rgba(15, 23, 42, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.detail-lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: #dffafe;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.player-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 46px 20px 22px;
}

.player-title {
  margin-bottom: 18px;
}

.player-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.player-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.player {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
  aspect-ratio: 16 / 9;
}

.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
  z-index: 1;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  box-shadow: 0 24px 55px rgba(6, 182, 212, 0.34);
}

.play-overlay span::before {
  content: "";
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 27px solid #ffffff;
}

.player.is-playing .play-overlay {
  display: none;
}

.detail-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.detail-card {
  padding: 24px;
}

.detail-card h2,
.detail-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.28;
}

.detail-card p {
  margin: 0 0 15px;
  color: #334155;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-link:hover {
  background: #ecfeff;
  transform: translateX(2px);
}

.side-link img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.side-link strong {
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}

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

.breadcrumb {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 20px 0;
  color: #475569;
  font-size: 14px;
}

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

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

.footer-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  color: #ffffff;
}

.footer-shell p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
}

.copyright {
  grid-column: 1 / -1;
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .quick-search {
    order: 3;
    width: 100%;
    min-width: 0;
  }

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

  .hero-poster-card {
    min-height: 440px;
  }

  .hero-poster-card img {
    height: 440px;
  }

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

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

@media (max-width: 760px) {
  .nav-shell {
    gap: 12px;
  }

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

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

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

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

  .main-nav a {
    text-align: center;
    background: #f8fafc;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 52px;
  }

  .hero-slider {
    min-height: 460px;
  }

  .hero-poster-card,
  .hero-poster-card img {
    min-height: 360px;
    height: 360px;
  }

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

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

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

  .rank-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-layout {
    padding-top: 38px;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .content-shell,
  .player-section,
  .detail-content,
  .nav-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .hero-actions {
    display: grid;
  }
}
