* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 46%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.96), rgba(14, 116, 144, 0.94), rgba(30, 64, 175, 0.94));
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(34, 211, 238, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 15px;
}

.desktop-nav a,
.mobile-nav a {
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  opacity: 1;
  color: #a5f3fc;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 18px;
  flex-direction: column;
  gap: 14px;
  font-weight: 700;
}

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

.hero {
  background: #020617;
}

.hero-stage {
  position: relative;
  height: min(72vh, 720px);
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.74) 45%, rgba(14, 116, 144, 0.24) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.1) 52%, rgba(2, 6, 23, 0.6));
}

.hero-content {
  position: relative;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 22px 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
  max-width: 850px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.hero-badge {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.92);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(8, 145, 178, 0.26);
}

.hero-tags,
.detail-tags,
.detail-meta,
.filter-tags,
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.detail-meta span,
.category-chips a {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.48);
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(14, 116, 144, 0.88);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

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

.search-panel,
.filter-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 8px;
}

.search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 3;
}

.search-box {
  display: flex;
  width: min(780px, 100%);
  min-height: 58px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  color: #0f172a;
}

.search-box button {
  border: 0;
  padding: 0 28px;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: #ffffff;
  font-weight: 900;
}

.category-chips {
  margin-top: 18px;
}

.category-chips a {
  background: rgba(8, 145, 178, 0.1);
  color: #075985;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 22px;
}

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

.section-head span,
.page-hero span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0891b2;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  max-width: 740px;
  margin: 10px 0 0;
  color: #64748b;
  line-height: 1.8;
}

.section-more,
.panel-more {
  color: #0891b2;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #cbd5e1, #e0f2fe);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
  opacity: 1;
}

.movie-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%) scale(0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0891b2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-info h3 a:hover {
  color: #0891b2;
}

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

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.rank-section {
  max-width: none;
  background: linear-gradient(135deg, #0f172a, #082f49 54%, #0e7490);
  color: #ffffff;
  margin-top: 32px;
  padding-left: max(22px, calc((100vw - 1280px) / 2 + 22px));
  padding-right: max(22px, calc((100vw - 1280px) / 2 + 22px));
}

.rank-section .section-head h2,
.rank-section .section-head p {
  color: #ffffff;
}

.rank-section .section-head span,
.rank-section .section-more {
  color: #67e8f9;
}

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

.compact-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 100px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.compact-card img {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card span {
  display: grid;
  gap: 8px;
}

.compact-card strong {
  line-height: 1.35;
}

.compact-card em {
  color: #bae6fd;
  font-style: normal;
  font-size: 13px;
}

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

.category-tile,
.category-panel {
  display: grid;
  gap: 12px;
  min-height: 170px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 45px rgba(8, 145, 178, 0.16);
}

.category-tile strong,
.category-panel h2 {
  margin: 0;
  color: #0f172a;
  font-size: 21px;
  font-weight: 950;
}

.category-tile span,
.category-panel p {
  color: #64748b;
  line-height: 1.7;
  font-size: 14px;
}

.special-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #111827, #0f172a);
  color: #ffffff;
}

.special-main {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 24px;
}

.special-main img,
.special-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.special-main img {
  object-fit: cover;
}

.special-overlay {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.08));
}

.special-text {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 10px;
}

.special-text em {
  color: #67e8f9;
  font-style: normal;
  font-weight: 900;
}

.special-text strong {
  font-size: 32px;
  line-height: 1.15;
}

.special-text small {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.7;
}

.special-list {
  display: grid;
  gap: 14px;
}

.page-main,
.detail-main {
  min-height: 70vh;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 22px 30px;
}

.page-hero.compact > div {
  padding: 42px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.page-hero.dark > div {
  background: linear-gradient(135deg, #0f172a, #0e7490);
}

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

.filter-section {
  display: grid;
  gap: 18px;
}

.filter-tags button {
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.filter-tags button.is-active,
.filter-tags button:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  color: #ffffff;
}

.category-panel {
  min-height: 260px;
}

.category-mini-links {
  display: grid;
  gap: 7px;
}

.category-mini-links a {
  color: #075985;
  font-size: 14px;
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-row:hover {
  box-shadow: 0 20px 40px rgba(14, 116, 144, 0.16);
}

.rank-num {
  color: #0891b2;
  font-size: 24px;
  font-weight: 950;
}

.rank-row img {
  width: 76px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 8px;
}

.rank-info strong {
  font-size: 18px;
}

.rank-info em {
  color: #64748b;
  font-style: normal;
  font-size: 14px;
}

.rank-go {
  padding: 10px 16px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 22px 36px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
}

.detail-poster {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  background: #cbd5e1;
}

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

.detail-intro {
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #075985);
  color: #ffffff;
}

.detail-intro h1 {
  margin: 16px 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 950;
}

.detail-intro p {
  color: #dbeafe;
  line-height: 1.85;
  font-size: 17px;
}

.detail-meta span {
  background: rgba(255, 255, 255, 0.13);
}

.player-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 22px 48px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.22);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.15), rgba(2, 6, 23, 0.42));
  color: #ffffff;
}

.video-start span {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.38);
}

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

.detail-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.detail-content p {
  margin: 0 0 22px;
  color: #334155;
  line-height: 1.92;
}

.detail-content aside {
  align-self: start;
  display: grid;
  gap: 14px;
}

.detail-content aside a {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0f9ff;
  color: #075985;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 40px;
  padding: 52px 22px 26px;
  background: linear-gradient(135deg, #0f172a, #020617);
  color: #e2e8f0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

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

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

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

.footer-bottom {
  max-width: 1280px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  text-align: center;
}

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

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

  .footer-grid,
  .special-feature,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-stage {
    height: 680px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-arrow {
    display: none;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input {
    min-height: 54px;
  }

  .search-box button {
    min-height: 50px;
  }

  .section-head,
  .detail-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .movie-grid.large,
  .movie-grid.related,
  .rank-grid,
  .category-grid,
  .category-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero {
    padding-top: 34px;
  }

  .rank-row {
    grid-template-columns: 40px 64px 1fr;
  }

  .rank-go {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 0 16px;
  }

  .site-logo {
    font-size: 20px;
  }

  .movie-grid,
  .movie-grid.large,
  .movie-grid.related,
  .category-grid,
  .category-panels {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 38px;
  }

  .page-hero.compact > div,
  .detail-intro,
  .detail-content article,
  .detail-content aside {
    padding: 22px;
  }
}
