:root {
  color-scheme: light;
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --teal: #0f766e;
  --emerald: #059669;
  --soft-cyan: #ecfeff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan-dark);
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--emerald));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(8, 145, 178, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  background: var(--cyan);
  color: #ffffff;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--soft-cyan);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--cyan-dark);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 70px 0;
  background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.5), transparent 32%), linear-gradient(135deg, #0891b2 0%, #0f766e 48%, #059669 100%);
  color: #ffffff;
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.32;
}

.hero-section::before {
  width: 380px;
  height: 380px;
  right: -120px;
  top: 40px;
  background: #67e8f9;
}

.hero-section::after {
  width: 260px;
  height: 260px;
  left: -70px;
  bottom: -90px;
  background: #a7f3d0;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 36px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
}

.hero-heading h1 {
  margin: 10px 0 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.08em;
}

.hero-heading p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(236, 254, 255, 0.94);
  font-size: 19px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  color: #cffafe;
}

.hero-search,
.search-page-box {
  display: flex;
  gap: 12px;
  width: min(100%, 620px);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.hero-search input,
.search-page-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
}

.hero-search button,
.search-page-box button,
.primary-button {
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  background: #ffffff;
  color: var(--cyan-dark);
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #ffffff;
}

.hero-search button:hover,
.search-page-box button:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(8, 145, 178, 0.25);
}

.hero-carousel {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: 0.45s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(10px);
  transform: scale(1.06);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 118, 110, 0.52));
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy p {
  color: rgba(236, 254, 255, 0.93);
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #ecfeff;
  font-size: 12px;
  font-weight: 800;
}

.tag-row span {
  background: var(--soft-cyan);
  color: var(--cyan-dark);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 900;
  transition: 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.ghost-button.dark {
  border-color: var(--line);
  color: var(--cyan-dark);
}

.hero-art {
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.20);
  border-radius: 26px;
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.30);
}

.hero-art img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-controls button {
  pointer-events: auto;
}

.hero-controls > button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cyan-dark);
  font-size: 26px;
  cursor: pointer;
}

.hero-dots {
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(12px);
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

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

.section-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-soft {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1200px) / 2));
  padding-right: max(16px, calc((100% - 1200px) / 2));
  background: #ffffff;
}

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

.section-title-row h2,
.category-overview-body h2,
.detail-section h2,
.detail-side h2 {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.text-link {
  color: var(--cyan-dark);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.72;
}

.category-card div {
  position: absolute;
  inset: auto 18px 18px;
  color: #ffffff;
}

.category-card span {
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card h2 {
  margin: 6px 0;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #cffafe, #ecfdf5);
}

.poster-image,
.detail-poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(8, 145, 178, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--cyan-dark);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

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

.movie-card-body h2 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body h2 a:hover {
  color: var(--cyan-dark);
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.movie-meta span {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f1f5f9;
}

.movie-card-compact .movie-card-body h2 {
  font-size: 16px;
}

.page-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

.compact-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px;
  border-radius: 30px;
  background: linear-gradient(135deg, #0e7490, #0f766e 54%, #059669);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.compact-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(236, 254, 255, 0.92);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.filter-grid input,
.filter-grid select,
.search-page-box input {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus,
.search-page-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.category-overview-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  min-height: 230px;
  background: #e0f2fe;
}

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

.category-overview-body {
  align-self: center;
  padding: 28px 28px 28px 0;
}

.category-overview-body p {
  color: var(--muted);
}

.ranking-block + .ranking-block {
  margin-top: 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  width: min(1200px, calc(100% - 32px));
  margin: 24px auto 0;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  background: linear-gradient(135deg, #cffafe, #d1fae5);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.detail-info h1 {
  margin: 8px 0 14px;
  color: #0f172a;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: #475569;
  font-size: 18px;
}

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

.detail-meta-list div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.detail-meta-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta-list dd {
  margin: 4px 0 0;
  color: #0f172a;
  font-weight: 900;
}

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

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

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle at 50% 45%, rgba(8, 145, 178, 0.36), rgba(2, 6, 23, 0.82));
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

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

.player-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--cyan-dark);
  font-size: 32px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.detail-content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
}

.detail-main,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.detail-main {
  padding: 30px;
}

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

.detail-section p {
  margin: 14px 0 0;
  color: #334155;
  font-size: 17px;
}

.detail-side {
  align-self: start;
  padding: 24px;
}

.detail-side a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--cyan-dark);
  font-weight: 800;
}

.detail-side a:last-child {
  border-bottom: 0;
}

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

.search-page-box {
  width: 100%;
  margin-bottom: 28px;
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.site-footer {
  margin-top: 60px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 34px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p,
.footer-column p,
.footer-column a {
  color: #94a3b8;
}

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

.footer-column ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

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

  .mobile-menu-button {
    display: block;
  }

  .hero-shell,
  .detail-hero,
  .detail-content-wrap,
  .footer-inner,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 44px 0 64px;
  }

  .hero-carousel {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-art img {
    height: 300px;
  }

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

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

  .category-overview-body {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    min-height: 64px;
  }

  .logo-text {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

  .hero-search,
  .search-page-box,
  .section-title-row,
  .compact-hero,
  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-slide {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-controls {
    left: 20px;
    right: 20px;
  }

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

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

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

  .movie-card-body h2 {
    min-height: 42px;
    font-size: 15px;
  }

  .movie-line {
    min-height: 40px;
    font-size: 13px;
  }

  .compact-hero {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .detail-hero {
    padding: 20px;
  }

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

  .detail-main {
    padding: 22px;
  }
}
