:root {
  --cyan-700: #0e7490;
  --cyan-600: #0891b2;
  --cyan-500: #06b6d4;
  --teal-600: #0d9488;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 12px 25px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.96), rgba(13, 148, 136, 0.96));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(8, 145, 178, 0.25);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan-700);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
  font-size: 18px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: #cffafe;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

.nav-links a,
.mobile-menu a {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-menu a:hover {
  color: #cffafe;
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.local-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.local-search input {
  width: 240px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.top-search input::placeholder,
.mobile-search input::placeholder {
  color: #cffafe;
}

.top-search input:focus,
.mobile-search input:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.top-search button,
.mobile-search button,
.local-search button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.top-search button {
  color: var(--cyan-700);
  background: var(--white);
  box-shadow: none;
}

.primary-button:hover,
.top-search button:hover,
.mobile-search button:hover,
.local-search button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  padding: 0 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

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

.mobile-menu nav {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.hero-slider {
  position: relative;
  min-height: 68vh;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay,
.detail-bg span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.05) 52%, rgba(2, 6, 23, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 68vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 76px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  color: var(--white);
  background: rgba(8, 145, 178, 0.88);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

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

.ghost-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  border-radius: 999px;
  background: var(--white);
}

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

.alt-block {
  background: rgba(255, 255, 255, 0.72);
}

.gradient-block {
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
}

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

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  display: inline;
  margin: 0;
  color: var(--slate-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.gradient-block .section-heading h2,
.gradient-block .section-heading p,
.gradient-block .section-more,
.gradient-block .section-icon {
  color: var(--white);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-right: 10px;
  color: var(--cyan-600);
  background: #ecfeff;
  border-radius: 12px;
  font-weight: 900;
}

.section-more {
  color: var(--cyan-700);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.movie-card {
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.wide-card {
  width: 320px;
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.cover-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-200);
}

.cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.68));
  transition: opacity 0.25s ease;
}

.cover-shade span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan-600);
  box-shadow: 0 18px 35px rgba(8, 145, 178, 0.36);
}

.movie-card:hover .cover-shade {
  opacity: 1;
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.movie-info {
  display: grid;
  gap: 7px;
  padding: 16px;
}

.movie-info h2,
.movie-info h3 {
  margin: 0;
  color: var(--slate-800);
  font-size: 18px;
  line-height: 1.28;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info h2,
.movie-card:hover .movie-info h3 {
  color: var(--cyan-700);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--slate-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.movie-tags {
  color: var(--slate-500);
  font-size: 12px;
}

.movie-tags {
  min-height: 18px;
  color: var(--cyan-700);
}

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

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

.category-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  min-height: 210px;
  border-radius: var(--radius);
  color: var(--slate-800);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-images {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 6px;
  height: 92px;
  overflow: hidden;
  border-radius: 14px;
}

.category-card-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--slate-200);
}

.category-card-body {
  display: grid;
  gap: 8px;
}

.category-card-body strong {
  color: var(--slate-900);
  font-size: 20px;
}

.category-card-body span {
  color: var(--slate-600);
  font-size: 14px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: auto 92px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.rank-card img {
  width: 92px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--slate-200);
}

.rank-card strong,
.latest-item strong,
.rank-row strong {
  display: block;
  overflow: hidden;
  color: var(--slate-800);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-card em,
.latest-item em,
.rank-row em {
  display: block;
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 13px;
  font-style: normal;
}

.latest-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.latest-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.latest-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.22);
}

.latest-item img {
  width: 140px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.latest-item strong,
.latest-item em {
  color: var(--white);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--cyan-700));
}

.simple-hero,
.search-hero,
.rank-hero {
  padding: 78px 0 64px;
}

.simple-hero h1,
.search-hero h1,
.rank-hero h1 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
}

.search-panel {
  padding: 30px 0;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--slate-200);
}

.compact-panel {
  padding-top: 24px;
}

.search-panel h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
}

.local-search {
  align-items: stretch;
  max-width: 760px;
}

.local-search input {
  flex: 1;
  width: auto;
  min-width: 0;
  border: 1px solid var(--slate-200);
  color: var(--slate-800);
  background: var(--white);
}

.local-search button {
  border: 0;
  color: var(--white);
  background: var(--cyan-600);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.filter-chip {
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--slate-600);
  background: var(--white);
  cursor: pointer;
}

.filter-chip.active {
  color: var(--white);
  border-color: var(--cyan-600);
  background: var(--cyan-600);
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 22px;
  text-align: center;
  color: var(--slate-600);
  background: var(--white);
  border-radius: 16px;
}

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

.detail-hero {
  min-height: 520px;
  display: flex;
  align-items: flex-end;
}

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

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

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 70px 0 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: #cffafe;
}

.breadcrumb strong {
  color: var(--white);
}

.detail-title-block {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: end;
  gap: 30px;
}

.detail-title-block > img {
  width: 240px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  box-shadow: var(--shadow);
  background: var(--slate-700);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-top: 42px;
}

.player-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

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

.player-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-video {
  object-fit: cover;
  background: var(--slate-950);
}

.player-cover {
  z-index: 2;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: var(--slate-950);
}

.player-cover img {
  object-fit: cover;
}

.player-cover-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
}

.player-button {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan-600), var(--teal-600));
  box-shadow: 0 24px 55px rgba(8, 145, 178, 0.42);
  font-size: 34px;
  line-height: 1;
}

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

.detail-side-card,
.detail-content article {
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.detail-side-card h2,
.detail-content h2 {
  margin: 0 0 18px;
  color: var(--slate-800);
}

.detail-side-card dl {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side-card dt {
  color: var(--slate-500);
}

.detail-side-card dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 700;
}

.detail-content {
  display: grid;
  gap: 20px;
}

.detail-content p {
  margin: 0;
  color: var(--slate-700);
  font-size: 17px;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 52px 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-row img {
  width: 132px;
  height: 78px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--slate-200);
}

.rank-row-main {
  min-width: 0;
}

.rank-row-main em {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-row-meta {
  color: var(--slate-500);
  font-size: 14px;
  white-space: nowrap;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
  font-size: 20px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

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

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

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-bottom p {
  margin: 0;
}

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

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

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

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

@media (max-width: 860px) {
  .top-search {
    display: none;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

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

  .movie-grid,
  .feature-grid,
  .rank-card-grid,
  .latest-list,
  .category-grid,
  .large-category-grid,
  .footer-grid,
  .player-grid,
  .detail-title-block {
    grid-template-columns: 1fr;
  }

  .detail-title-block > img {
    width: 100%;
    max-width: 360px;
  }

  .rank-row a {
    grid-template-columns: 44px 110px minmax(0, 1fr);
  }

  .rank-row-meta {
    grid-column: 3;
  }

  .mobile-search input {
    width: 100%;
  }

  .mobile-search {
    align-items: stretch;
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

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

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

  .section-heading {
    display: grid;
  }

  .wide-card {
    width: 280px;
    flex-basis: 280px;
  }

  .latest-item,
  .rank-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .latest-item img,
  .rank-card img {
    width: 110px;
    height: 72px;
  }

  .rank-number {
    display: none;
  }

  .rank-row a {
    grid-template-columns: 40px 92px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-row img {
    width: 92px;
    height: 62px;
  }

  .rank-row-meta {
    grid-column: 1 / -1;
  }

  .local-search {
    display: grid;
  }

  .player-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
