* {
  box-sizing: border-box;
}

:root {
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.08);
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 60px rgba(37, 99, 235, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 46%, #eef2ff 100%);
}

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 var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.nav-row {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.26);
}

.brand-text {
  font-size: 22px;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

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

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

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

.header-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-width: 280px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.header-search input,
.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: #111827;
  background: transparent;
}

.header-search button,
.mobile-search button {
  border: 0;
  cursor: pointer;
  padding: 11px 17px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(6, 182, 212, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #0f172a;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
  color: #374151;
  border-radius: 12px;
  font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan-dark);
  background: rgba(6, 182, 212, 0.09);
}

.mobile-search {
  display: flex;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 14px;
  background: #fff;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(6, 182, 212, 0.3), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.64) 48%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 70vh;
  min-height: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

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

.hero-kickers,
.detail-tags,
.tag-row,
.ranking-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-kickers span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-kickers span:first-child,
.meta-pills span:first-child {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

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

.primary-button,
.secondary-button,
.card-button,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.primary-button,
.card-button {
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.28);
}

.primary-button:hover,
.card-button:hover,
.section-more:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.22);
}

.secondary-button {
  padding: 0 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.quick-categories {
  padding: 36px 0;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(14px);
}

.quick-categories .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.quick-categories a,
.category-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: #334155;
  font-weight: 900;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: all 0.22s ease;
}

.quick-categories a:hover,
.category-card-link:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  transform: translateY(-2px);
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #0891b2;
  font-weight: 700;
}

.category-samples a:hover {
  color: #2563eb;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: linear-gradient(135deg, rgba(207, 250, 254, 0.56), rgba(219, 234, 254, 0.6));
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more,
.text-link {
  min-height: 40px;
  padding: 0 18px;
  color: var(--cyan-dark);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

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

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

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
  transition: opacity 0.25s ease;
}

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

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: var(--cyan-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-type,
.poster-year,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.poster-type {
  left: 12px;
  background: rgba(6, 182, 212, 0.88);
}

.poster-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-badge {
  top: auto;
  left: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.tag-row span,
.detail-tags span,
.ranking-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #cffafe;
}

.movie-card h2 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.42;
}

.movie-card h2 a:hover,
.ranking-copy h2 a:hover,
.detail-related h2 a:hover {
  color: var(--cyan-dark);
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.search-panel,
.filter-panel,
.content-panel,
.side-panel,
.category-card,
.detail-info,
.player-box {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 5;
  padding: 22px;
}

.search-form-large,
.filter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-form-large input,
.filter-row input,
.filter-row select {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(6, 182, 212, 0.22);
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: #0f172a;
  background: #fff;
}

.search-form-large button,
.filter-row button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.filter-panel {
  margin: 24px 0 30px;
  padding: 20px;
}

.filter-row {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 200px));
}

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

.category-card {
  padding: 24px;
  transition: all 0.25s ease;
}

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

.category-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 22px;
}

.category-card p {
  min-height: 76px;
  margin: 0 0 20px;
  color: #64748b;
  line-height: 1.72;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 20px;
  color: #64748b;
  font-size: 14px;
}

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

.page-hero {
  padding: 62px 0 28px;
}

.page-title-card {
  padding: 34px;
  color: #fff;
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.18);
}

.page-title-card h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
}

.page-title-card p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ranking-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

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

.ranking-copy h2 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.ranking-copy p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.68;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 0.85fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.player-box {
  overflow: hidden;
  background: #020617;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-position: center;
  background-size: cover;
}

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

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(6, 182, 212, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.82));
}

.player-cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 900;
}

.player-play-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  color: var(--cyan-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 48px rgba(6, 182, 212, 0.28);
}

.detail-info {
  margin-top: 22px;
  padding: 26px;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: #475569;
  font-weight: 700;
}

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

.detail-section {
  margin-top: 24px;
}

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

.detail-section p {
  margin: 0;
  color: #475569;
  line-height: 1.9;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 800;
  text-align: right;
}

.detail-related {
  display: grid;
  gap: 14px;
}

.related-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}

.related-mini img {
  width: 72px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
}

.related-mini h2 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.4;
}

.related-mini p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: #64748b;
  border-radius: 22px;
  background: #fff;
}

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

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
}

.footer-brand {
  color: #fff;
  font-size: 21px;
}

.site-footer p {
  color: #94a3b8;
  line-height: 1.75;
}

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

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

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

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

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .side-panel {
    position: static;
  }

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

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

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

  .hero-inner {
    align-items: flex-end;
    padding-bottom: 86px;
  }

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

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 52px 0;
  }

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

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

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

  .movie-card p {
    min-height: auto;
  }

  .filter-row,
  .search-form-large {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 44px 82px 1fr;
    gap: 12px;
  }

  .ranking-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }

  .ranking-copy h2 {
    font-size: 17px;
  }

  .ranking-copy p {
    display: none;
  }

  .detail-info,
  .side-panel,
  .page-title-card {
    padding: 22px;
  }

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