* {
  box-sizing: border-box;
}

:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1e293b;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 54%, #f8fafc 100%);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: white;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue), #1d4ed8);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-icon,
.footer-brand span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

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

.desktop-nav a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: white;
}

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

.header-search input,
.mobile-search input {
  width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  color: white;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.66);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #075985;
  font-weight: 700;
  cursor: pointer;
  background: white;
}

.mobile-menu-button {
  display: none;
  border: 0;
  color: white;
  font-size: 26px;
  border-radius: 12px;
  padding: 8px 11px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

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

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

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  height: clamp(520px, 70vh, 720px);
  overflow: hidden;
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.65) 44%, rgba(2, 6, 23, 0.14) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 74px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  color: white;
}

.hero-kicker,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-kicker span {
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: rgba(6, 182, 212, 0.94);
}

.hero-kicker span + span {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

.primary-button {
  min-height: 48px;
  padding: 0 28px;
  color: white;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.32);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: white;
}

.page-stack {
  display: grid;
  gap: 72px;
  padding: 54px 0 78px;
}

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

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.section-heading h2,
.center-heading h2,
.library-head h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster-badge,
.poster-time {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  background: rgba(6, 182, 212, 0.92);
  backdrop-filter: blur(8px);
}

.poster-time {
  left: auto;
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.card-body {
  padding: 18px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after,
.detail-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 10px;
  border-radius: 999px;
  vertical-align: middle;
  background: #cbd5e1;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.36;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

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

.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 5px 9px;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  background: #e0f2fe;
}

.soft-section {
  margin-left: calc((100vw - min(1180px, calc(100% - 32px))) / -2);
  margin-right: calc((100vw - min(1180px, calc(100% - 32px))) / -2);
  padding: 48px max(16px, calc((100vw - 1180px) / 2));
  border-radius: 28px;
  background: linear-gradient(90deg, #f0fdfa, #ecfeff);
}

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

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

.feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.55s ease;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 30px;
  color: white;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.2));
}

.feature-overlay span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  background: var(--cyan);
}

.feature-overlay h3 {
  margin: 16px 0 10px;
  font-size: 28px;
}

.feature-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.white-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  background: white;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.center-heading {
  text-align: center;
  margin-bottom: 28px;
}

.center-heading p,
.library-head p {
  color: var(--muted);
}

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

.category-card {
  display: block;
  min-height: 230px;
  border: 1px solid #cffafe;
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 42px rgba(6, 182, 212, 0.16);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
  transition: transform 0.3s ease;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.category-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #475569;
  line-height: 1.7;
}

.category-card span {
  color: var(--cyan-dark);
  font-weight: 800;
}

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

.movie-card-list {
  display: grid;
  grid-template-columns: 190px 1fr;
}

.movie-card-list .poster-link {
  aspect-ratio: auto;
  min-height: 230px;
}

.movie-card-list .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-card-list p {
  min-height: auto;
}

.page-hero {
  color: white;
  background: radial-gradient(circle at 18% 10%, rgba(125, 211, 252, 0.4), transparent 34%), linear-gradient(110deg, #0891b2, #2563eb 58%, #1e40af);
}

.compact-hero {
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #a5f3fc;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-hero h1,
.detail-copy h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.library-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  padding: 42px 0 76px;
}

.filter-panel {
  position: sticky;
  top: 84px;
  height: fit-content;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: white;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-panel h2 {
  margin: 0 0 18px;
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 12px 13px;
  color: #0f172a;
  outline: none;
  background: white;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.filter-panel button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  background: #e2e8f0;
}

.empty-state {
  display: none;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

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

.rank-list {
  display: grid;
  gap: 18px;
  padding: 44px 0 76px;
}

.rank-item {
  display: grid;
  grid-template-columns: 112px 64px minmax(0, 1fr) 104px;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.rank-poster {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
}

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

.rank-num {
  color: var(--cyan-dark);
  font-size: 30px;
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.7;
}

.rank-score {
  text-align: center;
  color: var(--cyan-dark);
}

.rank-score strong {
  display: block;
  font-size: 28px;
}

.rank-score span {
  color: #64748b;
  font-size: 13px;
}

.detail-head {
  padding: 34px 0 54px;
  color: white;
  background: radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.34), transparent 38%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0891b2);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: white;
}

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

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  background: #0f172a;
}

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

.detail-one {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
}

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

.detail-tags a {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.player-section,
.article-section,
.related-section {
  padding-top: 44px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 36px);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.28);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.24), rgba(2, 6, 23, 0.54));
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-size: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 42px rgba(6, 182, 212, 0.38);
}

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

.content-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 28px;
}

.content-panel h2:not(:first-child) {
  margin-top: 30px;
}

.content-panel p {
  margin: 0;
  color: #475569;
  font-size: 17px;
  line-height: 2;
}

.related-section {
  padding-bottom: 78px;
}

.site-footer {
  color: white;
  background: linear-gradient(180deg, #1e293b, #020617);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer p,
.site-footer a {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #67e8f9;
}

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

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

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

  .header-search {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .mobile-search input {
    width: 100%;
  }

  .mobile-search {
    width: 100%;
  }

  .mobile-search button {
    flex: 0 0 auto;
  }

  .hero {
    height: 590px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .dense-grid,
  .feature-grid,
  .category-grid,
  .footer-grid,
  .library-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .movie-card-list {
    grid-template-columns: 130px 1fr;
  }

  .movie-card-list .poster-link {
    min-height: 190px;
  }

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

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

  .rank-score {
    grid-column: 2 / -1;
    text-align: left;
  }
}

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

  .brand-text {
    font-size: 18px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-kicker span:nth-child(2),
  .hero-kicker span:nth-child(3) {
    display: none;
  }

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

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

  .page-stack {
    gap: 46px;
  }

  .white-panel,
  .content-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .movie-card-list {
    grid-template-columns: 1fr;
  }

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

  .rank-num {
    grid-row: 1;
    grid-column: 2;
  }

  .rank-info,
  .rank-score {
    grid-column: 1 / -1;
  }
}
