* {
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --teal: #0d9488;
  --cyan: #0891b2;
  --blue: #2563eb;
  --dark: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

.nav-bar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

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

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 24px;
  color: #1e293b;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: all 0.2s ease;
}

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

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

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #334155;
  transition: transform 0.2s ease;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 45%, #eff6ff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.36;
}

.hero-glow-one {
  top: 54px;
  left: 5%;
  width: 280px;
  height: 280px;
  background: #2dd4bf;
}

.hero-glow-two {
  right: 3%;
  bottom: 40px;
  width: 360px;
  height: 360px;
  background: #22d3ee;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 22px;
  color: #0f172a;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p {
  margin: 0;
  max-width: 680px;
  color: #475569;
  font-size: 20px;
}

.hero-search {
  display: flex;
  margin: 34px 0 22px;
  max-width: 620px;
  padding: 7px;
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 13px 18px;
  background: transparent;
  color: #0f172a;
}

.hero-search button,
.primary-action {
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.26);
}

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

.ghost-action {
  border-radius: 999px;
  padding: 13px 24px;
  color: #0f766e;
  background: #ccfbf1;
  font-weight: 800;
}

.ghost-action.dark {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-slides {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0.96;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04) 0%, rgba(2, 6, 23, 0.82) 100%);
}

.hero-card-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
}

.hero-card-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(15, 23, 42, 0.44);
  font-weight: 800;
}

.hero-card-copy h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.15;
}

.hero-card-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-card-copy a,
.more-link,
.text-link {
  display: inline-flex;
  color: var(--teal);
  font-weight: 900;
}

.hero-card-copy a {
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--teal);
}

.hero-dots {
  position: absolute;
  left: 28px;
  bottom: -34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #94a3b8;
  cursor: pointer;
}

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

.feature-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}

.feature-grid div {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fafc, #ecfeff);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.feature-grid strong {
  color: #0f172a;
  font-size: 20px;
}

.feature-grid span {
  color: var(--muted);
  font-size: 14px;
}

.section-block {
  padding: 82px 0;
  background: #fff;
}

.soft-bg {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.section-title {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title.align-left {
  margin-left: 0;
  text-align: left;
}

.section-title span,
.rank-heading span,
.overview-card span {
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title h2,
.rank-heading h2,
.story-card h2,
.info-card h2 {
  margin: 8px 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

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

.movie-card:hover .poster-wrap img,
.category-card:hover img,
.compact-card:hover img,
.overview-cover:hover img {
  transform: scale(1.08);
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-weight: 900;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
}

.play-badge {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #fff;
  background: rgba(13, 148, 136, 0.9);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: all 0.25s ease;
}

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

.movie-info {
  padding: 18px;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.score {
  color: #f59e0b;
  white-space: nowrap;
}

.movie-info h2 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.movie-info h2 a:hover {
  color: var(--teal);
}

.movie-info p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #334155;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border-radius: 26px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  opacity: 0.76;
  transition: transform 0.35s ease;
}

.category-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.category-card strong,
.category-card em {
  position: absolute;
  left: 22px;
  z-index: 1;
  color: #fff;
}

.category-card strong {
  bottom: 56px;
  font-size: 26px;
}

.category-card em {
  bottom: 28px;
  color: #ccfbf1;
  font-style: normal;
  font-weight: 800;
}

.two-column-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.compact-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compact-card span {
  display: block;
  padding: 12px 14px;
  font-weight: 900;
}

.rank-panel {
  position: sticky;
  top: 100px;
  padding: 24px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row strong {
  color: var(--teal);
  font-size: 20px;
}

.rank-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-row em {
  color: #f59e0b;
  font-style: normal;
  font-weight: 900;
}

.more-link {
  margin-top: 20px;
}

.page-hero,
.detail-hero {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0891b2 52%, #1d4ed8);
}

.page-hero h1,
.page-hero p,
.detail-hero h1,
.detail-hero p {
  color: #fff;
}

.page-hero .eyebrow,
.detail-hero .eyebrow {
  color: #ccfbf1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #fff;
}

.overview-grid {
  display: grid;
  gap: 28px;
}

.overview-card {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
}

.overview-cover img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.overview-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.overview-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: 0;
  padding: 12px 14px;
  color: #0f172a;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

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

.ranking-list {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

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

.ranking-poster strong {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
}

.ranking-card span {
  color: var(--teal);
  font-weight: 900;
}

.ranking-card h2 {
  margin: 8px 0;
}

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

.detail-hero {
  padding: 54px 0 70px;
  background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.28), transparent 32%), linear-gradient(135deg, #020617, #0f172a 58%, #0f766e);
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.detail-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags span {
  color: #ccfbf1;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  padding-top: 54px;
}

.player-panel {
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.82));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 18px 44px rgba(13, 148, 136, 0.42);
  font-size: 32px;
}

.player-cover strong {
  font-size: 24px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.42);
}

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

.story-card,
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.story-card h2,
.info-card h2 {
  font-size: 28px;
}

.story-card p {
  margin: 0 0 28px;
  color: #475569;
  font-size: 18px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px 16px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 900;
}

.info-card dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
}

.info-card a {
  color: var(--teal);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #020617, #0f172a);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 32px;
}

.footer-brand {
  color: #fff;
  font-size: 22px;
}

.site-footer p {
  max-width: 440px;
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #67e8f9;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #94a3b8;
}

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

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

  .two-column-block,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero-grid,
  .detail-grid,
  .overview-card {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-slides,
  .hero-slide img {
    min-height: 430px;
  }

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

  .overview-cover {
    max-width: 420px;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .brand-text strong {
    font-size: 19px;
  }

  .hero-section,
  .section-block,
  .page-hero {
    padding: 54px 0;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

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

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

  .ranking-card {
    grid-template-columns: 92px 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
