:root {
  --cyan: #06b6d4;
  --cyan-deep: #0891b2;
  --blue: #2563eb;
  --pink: #db2777;
  --red: #ef4444;
  --yellow: #facc15;
  --slate: #0f172a;
  --gray: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate);
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 48%, #fdf2f8 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
  font-size: 14px;
}

.brand-text {
  font-size: 23px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

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

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan-deep);
}

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 10px 16px;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  color: #ffffff;
  background: var(--cyan);
  padding: 10px 16px;
  font-weight: 700;
}

.header-search button:hover,
.mobile-search button:hover {
  background: var(--cyan-deep);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.mobile-panel.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 10px 0;
}

.mobile-search {
  display: flex;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}

.mobile-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
}

main {
  min-height: 60vh;
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.2s ease;
  background-size: cover;
  background-position: center;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 720px;
  padding: 80px 0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

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

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

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.btn-primary,
.btn-light,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--cyan);
  color: #ffffff;
  padding: 14px 22px;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.32);
}

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

.btn-primary:hover {
  background: var(--cyan-deep);
}

.btn-light {
  background: #ffffff;
  color: var(--cyan-deep);
  padding: 14px 22px;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: #ffffff;
  padding: 13px 21px;
}

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

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

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

.category-chips {
  padding: 32px 0 8px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  padding: 10px 18px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: translateY(-2px);
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cffafe;
  font-size: 18px;
}

.section-block {
  padding: 52px 0;
}

.section-block.soft {
  background: linear-gradient(90deg, #cffafe, #dbeafe, #fce7f3);
}

.section-block.white {
  background: #ffffff;
}

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

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #ecfeff;
  color: var(--cyan-deep);
  font-size: 18px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cyan-deep);
  font-weight: 800;
  white-space: nowrap;
}

.section-more span {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

.movie-list {
  display: grid;
  gap: 18px;
}

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 14px 35px 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);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0e7490 48%, #831843);
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

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

.play-corner {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.28);
}

.movie-info {
  padding: 16px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-meta-row span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.movie-card h3 a:hover {
  color: var(--cyan-deep);
}

.movie-card p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--gray);
  font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
  background: #f1f5f9;
  color: #475569;
}

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

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 160px;
}

.movie-card-horizontal .movie-poster {
  height: 100%;
  aspect-ratio: auto;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.category-card-cover {
  min-height: 170px;
  padding: 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background-size: cover;
  background-position: center;
  position: relative;
}

.category-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.18));
}

.category-card-cover h2,
.category-card-cover p {
  position: relative;
  z-index: 2;
  margin: 0;
}

.category-card-cover h2 {
  font-size: 28px;
}

.category-card-body {
  padding: 20px;
}

.category-card-body p {
  margin: 0 0 14px;
  color: var(--gray);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-samples a {
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  margin: 32px 0;
  padding: 22px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.82);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 8px;
  color: var(--gray);
  font-weight: 800;
  font-size: 13px;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 12px;
  color: #0f172a;
  outline: 0;
  background: #ffffff;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.empty-state {
  display: none;
  padding: 48px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: var(--radius);
}

.empty-state.show {
  display: block;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--cyan-deep);
  font-weight: 800;
}

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

.content-card,
.side-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.content-card {
  padding: 26px;
  margin-top: 24px;
}

.content-card h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  background: #ecfeff;
  color: var(--cyan-deep);
  font-weight: 800;
  font-size: 13px;
}

.detail-section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  color: var(--gray);
  white-space: pre-line;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.64));
  color: #ffffff;
  z-index: 3;
}

.play-overlay span {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.95);
  box-shadow: 0 20px 45px rgba(6, 182, 212, 0.35);
  font-size: 28px;
}

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

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 9px 13px;
  font-weight: 800;
}

.player-controls button:hover {
  background: rgba(6, 182, 212, 0.9);
}

.player-status {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 5;
  display: none;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.8);
  padding: 8px 12px;
  font-weight: 700;
}

.player-status.show {
  display: inline-flex;
}

.side-card {
  padding: 20px;
  margin-bottom: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #0e7490 48%, #831843);
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.search-title {
  margin: 0 0 10px;
}

.cta-band {
  padding: 70px 0;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-deep), var(--blue));
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 44px);
}

.cta-band p {
  margin: 0 0 26px;
  color: #cffafe;
  font-size: 18px;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 50%, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 34px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
}

.footer-grid p {
  color: #cbd5e1;
  margin: 16px 0 0;
}

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

.footer-grid a:not(.footer-brand) {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  text-align: center;
}

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

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

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

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

@media (max-width: 820px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .site-header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

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

  .movie-card-horizontal {
    grid-template-columns: 150px 1fr;
  }

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

@media (max-width: 560px) {
  .brand-text {
    font-size: 20px;
  }

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

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

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

  .movie-grid,
  .movie-grid.three {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-poster {
    aspect-ratio: 16 / 10;
  }

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

  .content-card,
  .side-card {
    padding: 18px;
  }

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