:root {
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.09);
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 30%, #f8fafc 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.24);
}

.nav-shell {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-weight: 600;
}

.main-nav a,
.nav-drop > a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.nav-drop > a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: 28px;
  left: 0;
  width: 190px;
  padding: 10px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 11px;
}

.nav-drop-menu a:hover {
  background: #ecfeff;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.top-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  min-width: 0;
  border: 0;
  outline: 0;
  font: inherit;
}

.top-search input {
  width: 210px;
  padding: 7px 10px;
  color: #ffffff;
  background: transparent;
}

.top-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.top-search button,
.wide-search button {
  border: 0;
  cursor: pointer;
  color: var(--blue);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 15px;
  font-weight: 800;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #07111f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.15);
  transform: scale(1.14);
  opacity: 0.52;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 40%, rgba(20, 184, 166, 0.42), transparent 34%), linear-gradient(90deg, rgba(7, 17, 31, 0.94), rgba(7, 17, 31, 0.62), rgba(7, 17, 31, 0.34));
}

.hero-inner {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  gap: 48px;
  align-items: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #a5f3fc;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0e7490;
  background: #cffafe;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.36);
}

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

.hero-poster {
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 46px;
  height: 46px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

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

.hero-dot.active {
  width: 32px;
  background: #ffffff;
}

.search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.8fr 1.1fr;
  gap: 24px;
  align-items: center;
  margin-top: -42px;
  padding: 24px;
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.wide-search {
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.wide-search input {
  flex: 1;
  padding: 0 18px;
  background: transparent;
}

.wide-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.chip-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-row a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #0e7490;
  background: #ecfeff;
  font-weight: 800;
}

.content-section {
  padding: 62px 0 0;
}

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

.section-kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-more {
  color: var(--blue);
  font-weight: 900;
}

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

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

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 6px;
  height: 94px;
  overflow: hidden;
  border-radius: 16px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-mask {
  position: absolute;
  inset: auto 12px 12px 12px;
  display: flex;
  justify-content: center;
  padding: 9px 12px;
  color: #ffffff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.22s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 60px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.32);
}

.page-hero {
  position: relative;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.48), transparent 34%), linear-gradient(120deg, #0f172a, #0e7490 54%, #2563eb);
  padding: 92px 0 78px;
}

.page-hero.slim {
  padding: 70px 0 56px;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.filter-bar input,
.filter-bar select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--ink);
}

.filter-bar input {
  flex: 1;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  color: #ffffff;
  overflow: hidden;
  background: #07111f;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(24px) saturate(1.14);
  opacity: 0.44;
  transform: scale(1.14);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 17, 31, 0.96), rgba(7, 17, 31, 0.72), rgba(7, 17, 31, 0.5));
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 34px 0 58px;
}

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

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

.detail-poster {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 3 / 4.15;
  object-fit: cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.detail-info p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 0.8fr;
  gap: 24px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.62));
}

.play-layer.hidden {
  display: none;
}

.play-layer span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.42);
  font-size: 30px;
}

.story-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.story-card h2:not(:first-child) {
  margin-top: 26px;
}

.story-card p {
  color: #334155;
  line-height: 1.9;
}

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

.info-list div {
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.site-footer {
  margin-top: 70px;
  padding: 38px 0;
  color: #ffffff;
  background: #0f172a;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 1080px) {
  .movie-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .top-search {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    color: var(--ink);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-drop-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    width: auto;
    padding: 8px 0 0;
    box-shadow: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 52px 0 86px;
  }

  .hero-poster {
    max-width: 220px;
    transform: none;
  }

  .search-panel,
  .detail-layout,
  .detail-main {
    grid-template-columns: 1fr;
  }

  .wide-search,
  .filter-bar {
    flex-direction: column;
    border-radius: 22px;
  }

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

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

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

  .section-heading,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .brand {
    font-size: 17px;
  }

  .movie-grid,
  .compact-grid {
    gap: 12px;
  }

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

  .movie-card p {
    display: none;
  }

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