:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eefcff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --teal: #14b8a6;
  --slate: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.34);
}

.brand-text {
  color: #ffffff;
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #67e8f9;
}

.nav-link:hover {
  transform: translateY(-1px);
}

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

.header-search input,
.hero-search input,
.search-page-form input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.38);
  outline: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: #0f172a;
  background: #ffffff;
}

.header-search button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.26);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(20, 184, 166, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 48%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(180deg, transparent 50%, rgba(2, 6, 23, 0.76) 100%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1180px) / 2));
  top: 50%;
  width: min(650px, calc(100% - 48px));
  transform: translateY(-50%);
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.28);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 22px 0 14px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 620px;
  margin: 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta {
  margin-top: 22px;
  color: #e2e8f0;
}

.rating {
  color: #b45309;
  font-weight: 800;
}

.hero-actions,
.page-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.28);
}

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

.btn.ghost.light {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.85);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.78);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  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);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 82px;
  display: flex;
  width: min(620px, calc(100% - 48px));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-title > span {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.18);
}

.section-title h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(6, 182, 212, 0.36);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-badge,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-badge {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h3 a:hover {
  color: var(--cyan-dark);
}

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

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

.movie-tags span,
.detail-tags a,
.footer-tags a,
.tag-cloud a,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 6px 10px;
  color: #0e7490;
  background: #ecfeff;
  font-size: 13px;
}

.highlight-panel {
  width: min(1180px, calc(100% - 32px));
  margin-top: 36px;
  padding: 42px;
  border-radius: 26px;
  background: linear-gradient(135deg, #f1f5f9, #ecfeff);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.09);
}

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

.category-tile {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.18), transparent 36%),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  color: var(--cyan-dark);
  font-weight: 800;
}

.category-tile strong {
  margin-top: 12px;
  color: #0f172a;
  font-size: 22px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.7fr);
  gap: 28px;
}

.rank-panel,
.tag-panel,
.side-card,
.detail-card,
.player-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.rank-panel,
.tag-panel {
  padding: 26px;
}

.rank-list,
.rank-page-list {
  display: grid;
  gap: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 50px 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

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

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content h3 a:hover {
  color: var(--cyan-dark);
}

.rank-content p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more-link,
.inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan-dark);
  font-weight: 800;
}

.page-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(103, 232, 249, 0.28), transparent 26%),
    linear-gradient(135deg, #0f172a, #0e7490 58%, #14b8a6);
}

.page-hero > div {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.page-hero h1 {
  margin: 20px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

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

.search-page-form {
  display: flex;
  width: min(680px, 100%);
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-chip {
  border-color: #bae6fd;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.empty-state {
  margin: 34px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

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

.category-preview img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
  background: #0f172a;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-overview-card p {
  margin: 0;
  color: var(--muted);
}

.detail-wrap {
  padding-top: 28px;
}

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

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

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: #000000;
}

.player-shell {
  position: relative;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.52));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 22px 48px rgba(6, 182, 212, 0.34);
  font-size: 34px;
  text-indent: 4px;
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.detail-lead {
  margin: 0 0 18px;
  color: #334155;
  font-size: 19px;
}

.detail-meta {
  margin-bottom: 22px;
}

.detail-card section {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.detail-card h2,
.side-card h2,
.tag-panel h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: #334155;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 22px;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.compact-card strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.35;
}

.compact-card:hover strong {
  color: var(--cyan-dark);
}

.compact-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

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

.info-list dt {
  color: var(--muted);
}

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

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

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

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

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

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

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

.footer-tags a {
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.18);
  border-color: rgba(103, 232, 249, 0.18);
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 10px 0;
  }

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

  .header-search {
    order: 3;
    flex: 1 0 100%;
  }

  .hero-carousel {
    height: 78vh;
    min-height: 620px;
  }

  .hero-content {
    top: 44%;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-search,
  .search-page-form {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-arrow {
    display: none;
  }

  .section-wrap,
  .detail-wrap,
  .highlight-panel {
    width: min(100% - 24px, 1180px);
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .highlight-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .movie-info {
    padding: 12px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 76px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-content p {
    display: none;
  }

  .detail-card {
    padding: 20px;
  }

  .compact-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .compact-card img {
    width: 82px;
    height: 62px;
  }
}

@media (max-width: 460px) {
  .movie-grid.six-col,
  .movie-grid.four-col {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 34px;
  }
}
