:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #0891b2 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.2);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 68px;
  gap: 24px;
}

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

.brand {
  color: #ffffff;
  font-size: 21px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  font-size: 16px;
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.site-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.hero-search input,
.search-main input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.header-search button,
.hero-search button,
.search-main button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.search-main button:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.hero-slider {
  position: relative;
  height: clamp(520px, 70vh, 760px);
  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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.58) 45%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(58px, 9vw, 110px);
}

.hero-copy {
  width: min(760px, 100%);
  color: #ffffff;
}

.hero-kicker,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-kicker span,
.detail-badges span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.hero-kicker span:nth-child(n + 2),
.detail-badges span:nth-child(n + 2) {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0e7490;
  background: #ecfeff;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin-top: 24px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  color: #ffffff;
  border: 0;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

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

.primary-btn,
.ghost-btn,
.card-action,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

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

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

.ghost-btn {
  padding: 13px 26px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

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

.soft-section {
  background: linear-gradient(90deg, #f0fdfa 0%, #ecfeff 100%);
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-heading h2,
.category-panel h2,
.inner-hero h1,
.text-panel h2,
.side-card h2 {
  margin: 0;
  color: #1f2937;
  font-weight: 900;
  line-height: 1.15;
}

.section-heading h2,
.category-panel h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.section-heading a,
.text-link {
  color: var(--cyan-dark);
  font-weight: 800;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 21px;
  box-shadow: var(--shadow);
}

.hot-icon {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.new-icon {
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}

.pick-icon {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.rank-icon {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.edit-icon {
  background: linear-gradient(135deg, #f59e0b, #22c55e);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

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

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

.movie-card:hover .poster img,
.featured-card:hover img,
.category-tile:hover img {
  transform: scale(1.06);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #64748b;
  font-size: 14px;
}

.card-action {
  margin-top: 14px;
  padding: 9px 16px;
  color: #ffffff;
  background: var(--cyan);
  font-size: 14px;
}

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

.featured-card a {
  position: relative;
  display: block;
  min-height: 380px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.15));
}

.featured-content {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: grid;
  gap: 10px;
  color: #ffffff;
}

.featured-content strong {
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.1;
}

.featured-content em {
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-panel {
  margin-top: 38px;
  padding: 38px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-panel h2 {
  margin-bottom: 26px;
  text-align: center;
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile:hover img {
  opacity: 0.9;
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: grid;
  gap: 8px;
  color: #ffffff;
}

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

.category-tile em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-list,
.list-stack {
  display: grid;
  gap: 18px;
}

.movie-card-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
}

.list-cover img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.list-body {
  padding: 20px;
}

.list-body p {
  min-height: auto;
}

.rank-num {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.page-hero-wrap {
  min-height: 60vh;
  padding-bottom: 58px;
}

.inner-hero {
  padding: 70px 0 42px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #cffafe;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inner-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
}

.inner-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: #64748b;
  font-size: 18px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  color: #64748b;
  font-weight: 700;
}

.crumbs a {
  color: var(--cyan-dark);
}

.crumbs.light {
  color: rgba(255, 255, 255, 0.72);
}

.crumbs.light a,
.crumbs.light strong {
  color: #ffffff;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 22px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.category-preview a {
  overflow: hidden;
  border-radius: 14px;
}

.category-preview img {
  width: 100%;
  height: 154px;
  object-fit: cover;
}

.category-info h2 {
  margin: 0 0 10px;
  font-size: 25px;
}

.category-info p {
  margin: 0 0 18px;
  color: #64748b;
}

.filter-panel {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 15px;
  border-radius: 14px;
  background: #f8fafc;
}

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

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.04);
}

.detail-overlay {
  background: linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 48%, rgba(2, 6, 23, 0.42) 100%);
}

.detail-top {
  position: relative;
  z-index: 2;
  padding: 66px 0 46px;
}

.detail-title-wrap {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
  align-items: end;
  margin-top: 36px;
}

.detail-cover {
  width: 230px;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.detail-title-wrap h1 {
  max-width: 850px;
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
}

.detail-title-wrap p {
  max-width: 780px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  margin-top: -70px;
  position: relative;
  z-index: 4;
}

.player-card,
.text-panel,
.side-card {
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.24) 0%, rgba(2, 6, 23, 0.35) 44%, rgba(2, 6, 23, 0.68) 100%);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.35);
  font-size: 34px;
}

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

.text-panel,
.side-card {
  margin-top: 24px;
  padding: 28px;
}

.text-panel h2,
.side-card h2 {
  margin-bottom: 16px;
  font-size: 25px;
}

.text-panel p {
  margin: 0;
  color: #475569;
  font-size: 17px;
}

.side-card:first-child {
  margin-top: 0;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.side-card dt {
  color: #64748b;
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 700;
}

.side-card dd a {
  color: var(--cyan-dark);
}

.search-main {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.search-main input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: #f8fafc;
}

.search-main button {
  padding-inline: 28px;
}

.site-footer {
  margin-top: 68px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

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

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

.site-footer h2 {
  margin: 0 0 14px;
  color: #22d3ee;
  font-size: 18px;
}

.site-footer p,
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer p {
  color: #94a3b8;
  font-size: 14px;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #94a3b8;
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

.is-filter-hidden,
.is-search-hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .site-nav,
  .header-search {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 10px;
    padding: 0 0 16px;
  }

  .site-nav.is-open a {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
  }

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

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

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

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

  .side-card {
    margin-top: 0;
  }
}

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

  .brand-text {
    font-size: 18px;
  }

  .hero-slider {
    height: 680px;
  }

  .hero-content {
    padding-bottom: 76px;
  }

  .hero-search,
  .search-main {
    display: grid;
    border-radius: 22px;
  }

  .hero-search input,
  .search-main input {
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .categories-layout,
  .filter-row,
  .detail-side {
    grid-template-columns: 1fr;
  }

  .category-panel {
    padding: 24px;
  }

  .category-card-large,
  .movie-card-list,
  .detail-title-wrap {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    width: 170px;
  }

  .detail-layout {
    margin-top: -36px;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 18px;
  }

  .category-preview img {
    height: 118px;
  }

  .filter-panel,
  .text-panel,
  .side-card {
    padding: 20px;
  }
}
