* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #020617;
  color: #e5e7eb;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 34px rgba(6, 182, 212, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 600;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.quick-links a {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.quick-links a:hover {
  color: #22d3ee;
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.92);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #d1d5db;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(2, 6, 23, 0.12) 100%), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 36%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.hero-tag,
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.14);
  color: #67e8f9;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 12px;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: #94a3b8;
}

.hero-meta span,
.detail-meta span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: #06b6d4;
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.22);
}

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

.btn-primary:hover {
  background: #22d3ee;
}

.btn-ghost {
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #a5f3fc;
  background: rgba(15, 23, 42, 0.58);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(8, 145, 178, 0.16);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.72);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #22d3ee;
}

.search-panel {
  position: relative;
  z-index: 8;
  margin-top: -34px;
  padding: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 70px rgba(2, 6, 23, 0.42);
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.76);
}

.search-box input:focus {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.search-box button {
  min-width: 120px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #0891b2;
  font-weight: 800;
  cursor: pointer;
}

.search-box button:hover {
  background: #06b6d4;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 7px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  font-size: 14px;
}

.page-stack {
  padding: 64px 0;
}

.page-stack > section + section,
.page-stack > div + aside {
  margin-top: 68px;
}

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

.section-title h2 {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-title h2 span {
  width: 5px;
  height: 32px;
  border-radius: 999px;
  background: #22d3ee;
}

.section-title a {
  color: #67e8f9;
  font-weight: 700;
}

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

.category-tile,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 145, 178, 0.18));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-overview:hover,
.movie-card:hover,
.compact-card:hover,
.ranking-item:hover,
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.46);
}

.category-tile {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-tile span,
.category-overview strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
}

.category-tile small,
.category-overview small {
  color: #94a3b8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  background: rgba(15, 23, 42, 0.94);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card-large .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover img,
.compact-card:hover img,
.ranking-item:hover img,
.feature-card:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.78));
}

.card-year,
.play-mark {
  position: absolute;
  z-index: 2;
}

.card-year {
  left: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 800;
}

.play-mark {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.3);
}

.movie-card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.movie-kicker {
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
}

.movie-card strong {
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.movie-desc {
  color: #94a3b8;
  font-size: 14px;
  min-height: 43px;
}

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

.movie-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  padding: 24px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 28px;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.18), transparent 30%), rgba(15, 23, 42, 0.74);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-poster {
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  background: #0f172a;
}

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

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy span {
  color: #67e8f9;
  font-weight: 800;
}

.feature-copy h2 {
  margin: 12px 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.14;
}

.feature-copy p {
  color: #cbd5e1;
  font-size: 17px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}

.ranking-list,
.compact-list {
  display: grid;
  gap: 14px;
}

.ranking-item,
.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-item {
  padding: 12px;
}

.ranking-item:hover,
.compact-card:hover {
  background: rgba(15, 23, 42, 0.95);
}

.rank-no {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  font-weight: 900;
}

.ranking-item img {
  width: 100px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.ranking-copy {
  min-width: 0;
  flex: 1;
}

.ranking-copy strong,
.compact-card strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy small,
.compact-card small {
  display: block;
  overflow: hidden;
  color: #94a3b8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-meta {
  color: #64748b;
  font-size: 13px;
  white-space: nowrap;
}

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

.compact-card {
  padding: 10px;
}

.compact-card img {
  width: 96px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

.sub-page {
  min-height: 70vh;
}

.page-hero {
  padding: 64px 0 28px;
}

.small-hero h1 {
  margin: 18px 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.small-hero p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.inline-search {
  max-width: 720px;
  margin-top: 24px;
}

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

.category-overview {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: stretch;
  padding: 12px;
  min-height: 170px;
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-covers img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.category-overview-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
}

.category-movies {
  align-items: stretch;
}

.ranking-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}

.full-ranking .ranking-item {
  padding: 14px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 30px 0 16px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.breadcrumb strong {
  color: #ffffff;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 20px 0 42px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.55);
}

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

.detail-copy h1 {
  margin: 18px 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.lead {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 19px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 28px;
}

.tag-list span {
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  font-size: 14px;
}

.player-section {
  padding: 10px 0 48px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.58);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.86));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-bubble {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #06b6d4;
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 16px 44px rgba(6, 182, 212, 0.36);
}

.player-overlay strong {
  max-width: min(90%, 760px);
  color: #ffffff;
  font-size: clamp(22px, 4vw, 42px);
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 20px;
}

.content-card {
  padding: 26px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.content-card h2 {
  margin: 0 0 12px;
  color: #ffffff;
}

.content-card p {
  margin: 0;
  color: #cbd5e1;
}

.related-section {
  padding-top: 42px;
}

.site-footer {
  border-top: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(2, 6, 23, 0.9);
}

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

.footer-logo {
  font-size: 21px;
}

.footer-grid p {
  max-width: 500px;
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 9px;
  color: #94a3b8;
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  color: #64748b;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .menu-button {
    display: flex;
  }

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

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

  .split-layout,
  .ranking-page {
    grid-template-columns: 1fr;
  }

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

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

  .logo {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero-copy {
    padding: 0 18px;
  }

  .hero-arrow {
    display: none;
  }

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

  .search-box button {
    height: 48px;
  }

  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .compact-grid,
  .compact-list,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-meta {
    display: none;
  }
}

@media (max-width: 520px) {
  .mobile-nav.is-open {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 520px;
  }

  .hero p,
  .lead,
  .small-hero p {
    font-size: 16px;
  }

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

  .ranking-item img {
    width: 82px;
    height: 58px;
  }

  .rank-no {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}
