* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #e2e8f0;
  background: radial-gradient(circle at 20% 0%, rgba(8, 145, 178, 0.24), transparent 32rem), linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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;
  border-bottom: 1px solid rgba(30, 41, 59, 0.8);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #67e8f9;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #020617;
  background: linear-gradient(135deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-panel a:hover {
  color: #22d3ee;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(320px, 28vw);
}

.top-search input,
.hero-search input {
  width: 100%;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  outline: none;
}

.top-search input {
  height: 40px;
  padding: 0 16px;
}

.top-search input:focus,
.hero-search input:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.top-search button,
.hero-search button,
.primary-btn,
.ghost-btn,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-search button,
.hero-search button,
.primary-btn {
  color: #00131c;
  font-weight: 800;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.22);
}

.top-search button {
  height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn {
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.52);
}

.top-search button:hover,
.hero-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.82);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #cbd5e1;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
}

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

main {
  padding-top: 68px;
}

.hero-section {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.hero-slider,
.hero-slide {
  min-height: 720px;
}

.hero-slide {
  display: none;
  position: relative;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.22)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 34%, rgba(34, 211, 238, 0.18), transparent 24rem), linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.95) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.62fr);
  align-items: center;
  gap: 52px;
  padding: 70px 0 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #f8fafc;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(40px, 7vw, 84px);
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: 18px;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.7);
}

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 13px;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.66), 0 0 60px rgba(34, 211, 238, 0.12);
  transform: rotate(1.4deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  border-color: transparent;
  background: #22d3ee;
}

.hero-search {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  width: min(720px, calc(100% - 32px));
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
}

.hero-search input {
  height: 50px;
  padding: 0 22px;
}

.hero-search button {
  min-width: 124px;
  padding: 0 22px;
}

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

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

.section-heading.align-start {
  display: block;
}

.section-heading span {
  color: #22d3ee;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  color: #94a3b8;
}

.section-heading a {
  flex: 0 0 auto;
  color: #67e8f9;
  font-weight: 700;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.5);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.rank-mark {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  border-radius: 12px;
  color: #00131c;
  background: linear-gradient(135deg, #22d3ee, #facc15);
  box-shadow: 0 12px 30px rgba(250, 204, 21, 0.16);
}

.card-body {
  padding: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-meta span,
.tag-row span {
  padding: 3px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #67e8f9;
}

.movie-card p {
  margin: 8px 0 10px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.55;
}

.tag-row {
  gap: 6px;
}

.category-band,
.ranking-strip {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: rgba(15, 23, 42, 0.34);
}

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

.category-tile,
.overview-card a {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 220px;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.72));
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.28);
}

.category-tile:hover,
.overview-card a:hover {
  border-color: rgba(34, 211, 238, 0.46);
  transform: translateY(-3px);
}

.category-tile span,
.overview-card h2 {
  position: relative;
  z-index: 2;
  display: block;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p,
.overview-card p {
  position: relative;
  z-index: 2;
  color: #cbd5e1;
}

.tile-covers {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0.58;
}

.tile-covers img {
  width: 54px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

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

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 120px 16px 76px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.84)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

.compact-hero {
  min-height: 340px;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 32rem), rgba(15, 23, 42, 0.3);
}

.page-hero-content,
.compact-hero {
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}

.filter-bar button {
  padding: 9px 16px;
  color: #cbd5e1;
  border: 1px solid rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar button.is-active {
  color: #00131c;
  border-color: transparent;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
}

.overview-card a {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 200px;
}

.overview-card img {
  width: 110px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.overview-card span {
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-page {
  padding-top: 0;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 22px 0 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: 0 32px 80px rgba(2, 6, 23, 0.46);
}

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

.detail-info h1 {
  font-size: clamp(34px, 6vw, 66px);
}

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

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: #000;
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.55);
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #f8fafc;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.22), rgba(2, 6, 23, 0.68));
  cursor: pointer;
}

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

.play-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #00131c;
  background: linear-gradient(135deg, #22d3ee, #60a5fa);
  box-shadow: 0 0 50px rgba(34, 211, 238, 0.35);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  padding: 54px 0 0;
}

.detail-content article,
.detail-content aside {
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 24px;
  padding: 28px;
  background: rgba(15, 23, 42, 0.64);
}

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

.detail-content p {
  margin: 0 0 24px;
  color: #cbd5e1;
}

.info-list {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.info-list dt {
  color: #94a3b8;
}

.info-list dd {
  margin: 0;
  color: #e2e8f0;
}

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

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

.mini-card a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.64);
}

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

.mini-card span {
  display: block;
  padding: 12px;
  color: #f8fafc;
  font-weight: 700;
  line-height: 1.35;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(2, 6, 23, 0.68);
}

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

.site-footer h2 {
  margin: 0 0 12px;
  color: #67e8f9;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #22d3ee;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
  text-align: center;
}

.search-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: 84px 16px 24px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.search-layer.is-open {
  display: block;
}

.search-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  overflow: auto;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 24px;
  padding: 26px;
  background: #0f172a;
  box-shadow: 0 40px 90px rgba(2, 6, 23, 0.65);
}

.search-close {
  float: right;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 7px 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.74);
}

.search-panel h2 {
  margin: 0 0 8px;
  color: #f8fafc;
}

.search-keyword {
  color: #94a3b8;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(30, 41, 59, 0.9);
  border-radius: 16px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.search-item img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.search-item strong {
  display: block;
  color: #f8fafc;
}

.search-item span {
  color: #94a3b8;
  font-size: 13px;
}

.is-filtered-out {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.01);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

  .top-search {
    width: min(380px, 42vw);
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

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

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

@media (max-width: 820px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand {
    font-size: 19px;
  }

  .top-search {
    order: 3;
    width: 100%;
  }

  main {
    padding-top: 112px;
  }

  .hero-section,
  .hero-slider,
  .hero-slide {
    min-height: 760px;
  }

  .hero-content {
    min-height: 760px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0 148px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    margin: 0 auto;
  }

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

  .hero-search button {
    height: 46px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

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

  .detail-poster {
    width: min(300px, 78vw);
  }

  .page-hero {
    padding-top: 150px;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .section-shell,
  .breadcrumb,
  .detail-hero,
  .player-section,
  .detail-content,
  .footer-grid,
  .copyright {
    width: min(100% - 24px, 1180px);
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p,
  .page-hero p,
  .detail-info p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .movie-card h3 {
    font-size: 15px;
  }

  .card-body {
    padding: 12px;
  }

  .overview-card a {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 16px;
  }

  .overview-card img {
    width: 88px;
  }
}
