* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.24);
  transition: transform 0.25s ease;
}

.site-logo:hover .logo-mark {
  transform: scale(1.08) rotate(-2deg);
}

.logo-text {
  display: grid;
  line-height: 1.2;
}

.logo-text strong,
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #93c5fd, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-text small {
  color: #bfdbfe;
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: #e0f2fe;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #67e8f9;
}

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

.header-search input,
.mobile-search input,
.filter-input {
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  width: 210px;
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.48);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}

.header-search button,
.mobile-search button {
  border: 0;
  border-radius: 11px;
  padding: 10px 14px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero-section {
  padding-top: 68px;
  color: #ffffff;
  background: #0f172a;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 35%, rgba(34, 211, 238, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(30, 58, 138, 0.72), rgba(15, 23, 42, 0.25)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.96), transparent 56%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 70px 0 100px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 18px;
  border: 1px solid rgba(103, 232, 249, 0.36);
  border-radius: 999px;
  padding: 8px 16px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.16);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-one-line {
  max-width: 760px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 26px);
}

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

.hero-tags span,
.detail-meta span,
.card-tags span {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

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

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

.primary-button {
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

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

.ghost-button.light {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #ffffff;
}

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

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

.hero-dot {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

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

.page-main {
  padding-top: 68px;
}

.content-section {
  margin: 48px 0;
}

.intro-section,
.filter-panel,
.detail-card,
.ranking-card,
.category-card,
.related-card,
.poster-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

.intro-section h1,
.page-hero h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.intro-section p,
.page-hero p,
.filter-panel p,
.category-card p {
  max-width: 720px;
  margin: 0;
  color: #475569;
}

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

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

.section-title span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0369a1;
  background: #cffafe;
}

.section-title h2,
.filter-panel h2,
.ranking-card h2,
.related-card h2,
.text-block h2,
.tag-block h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.2;
}

.section-more,
.ranking-card-head a,
.text-link {
  color: #2563eb;
  font-weight: 800;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(30, 58, 138, 0.18);
}

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

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

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent 52%);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 7px;
  overflow: hidden;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
  color: #2563eb;
}

.movie-meta {
  color: #64748b;
  font-size: 13px;
}

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

.card-tags span {
  color: #0e7490;
  background: #ecfeff;
  padding: 4px 8px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.ranking-card {
  padding: 22px;
  position: sticky;
  top: 88px;
}

.ranking-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 32px 54px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.ranking-item:hover,
.related-item:hover {
  background: #f8fafc;
}

.ranking-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.ranking-item img {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.ranking-info {
  min-width: 0;
}

.ranking-info strong,
.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-info small,
.related-item small,
.poster-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 35%, rgba(34, 211, 238, 0.24), transparent 30%),
    linear-gradient(120deg, #0f172a, #1e3a8a 52%, #0f172a);
}

.simple-hero,
.category-hero {
  padding: 76px 0 64px;
}

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

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  color: #dbeafe;
  font-size: 18px;
}

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

.category-card {
  padding: 24px;
  min-height: 260px;
}

.category-card-title {
  display: inline-block;
  margin-bottom: 12px;
  color: #1d4ed8;
  font-size: 24px;
  font-weight: 900;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  color: #334155;
  font-weight: 700;
}

.category-samples a:hover {
  color: #2563eb;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding: 24px;
}

.filter-input {
  width: min(360px, 100%);
  padding: 13px 14px;
  color: #0f172a;
  background: #ffffff;
}

.empty-state {
  display: none;
  padding: 32px;
  text-align: center;
  color: #64748b;
}

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.ranking-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
}

.ranking-poster img {
  width: 104px;
  height: 148px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.ranking-detail h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
}

.ranking-detail p {
  margin: 10px 0;
  color: #475569;
}

.detail-main {
  padding: 92px 0 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #2563eb;
}

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

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

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

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #2563eb;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #2563eb;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

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

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-title-row p {
  margin: 0;
  color: #475569;
  font-size: 17px;
}

.category-pill {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #0e7490;
  background: #cffafe;
  font-weight: 800;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: #1e40af;
  background: #dbeafe;
}

.text-block,
.tag-block {
  border-top: 1px solid #e2e8f0;
  padding-top: 22px;
  margin-top: 22px;
}

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

.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-block a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #334155;
  background: #f1f5f9;
  font-weight: 700;
}

.tag-block a:hover {
  color: #1d4ed8;
  background: #dbeafe;
}

.detail-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.poster-card {
  overflow: hidden;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #0f172a;
}

.poster-card div {
  padding: 18px;
}

.poster-card strong {
  display: block;
  color: #0f172a;
  font-size: 19px;
}

.related-card {
  padding: 20px;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.related-item img {
  width: 72px;
  height: 102px;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #0f172a);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 42px 0;
}

.footer-inner p {
  max-width: 520px;
  margin: 12px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  align-content: start;
}

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

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .detail-aside {
    position: static;
  }

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

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

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

  .header-inner {
    gap: 12px;
  }

  .hero-slider,
  .hero-content {
    min-height: 560px;
  }

  .intro-section,
  .filter-panel,
  .detail-title-row,
  .footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-input {
    width: 100%;
  }

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

  .ranking-row {
    grid-template-columns: 46px 82px minmax(0, 1fr);
  }

  .ranking-poster img {
    width: 82px;
    height: 118px;
  }
}

@media (max-width: 640px) {
  .logo-text small {
    display: none;
  }

  .hero-content {
    padding: 48px 0 86px;
  }

  .hero-tags span:nth-child(n + 5) {
    display: none;
  }

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

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

  .detail-card {
    padding: 20px;
  }

  .play-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .ranking-number {
    width: 36px;
    height: 36px;
  }
}
