:root {
  --site-blue: #0284c7;
  --site-sky: #0ea5e9;
  --site-deep: #0f172a;
  --site-muted: #64748b;
  --site-soft: #f8fafc;
  --site-line: #e5e7eb;
  --site-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.22);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.desktop-nav a {
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 220px;
  max-width: 300px;
  flex: 1;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 10px 12px 10px 16px;
}

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

.header-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  padding: 10px 14px;
}

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

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

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

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.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-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 0 72px;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.24);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.28);
  backdrop-filter: blur(10px);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-desc {
  max-width: 660px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.32);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(10px);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search-box {
  position: relative;
  z-index: 6;
  margin: -34px auto 38px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
}

.hero-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.hero-search-form input {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  outline: 0;
  padding: 15px 18px;
  color: #0f172a;
  background: #ffffff;
}

.hero-search-form button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  border-radius: 16px;
  padding: 0 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 100%);
}

.section {
  padding: 44px 0;
}

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

.section-title h1,
.section-title h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  font-weight: 900;
}

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

.title-line {
  width: 82px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

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

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

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

.poster-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
  transition: opacity 0.25s ease;
}

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

.badge-year,
.badge-region {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.badge-year {
  top: 10px;
  right: 10px;
}

.badge-region {
  left: 10px;
  bottom: 10px;
}

.movie-body {
  padding: 15px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-body p {
  height: 44px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0284c7;
  font-size: 12px;
  background: #e0f2fe;
}

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

.category-card {
  min-height: 156px;
  padding: 22px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(37, 99, 235, 0.26);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: #e0f2fe;
  font-size: 14px;
  line-height: 1.7;
}

.page-hero {
  color: #ffffff;
  padding: 58px 0;
  background: linear-gradient(100deg, #0ea5e9 0%, #2563eb 100%);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 900;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: #e0f2fe;
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.7fr;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  outline: 0;
  color: #0f172a;
  background: #ffffff;
  padding: 13px 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 120px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.rank-thumb {
  width: 120px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

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

.breadcrumb a {
  color: #0284c7;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-panel,
.detail-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

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

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.12), rgba(0, 0, 0, 0.72));
}

.play-button {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 36px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.38);
}

.player-meta {
  padding: 22px;
}

.player-meta h1 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

.player-meta p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.detail-card {
  padding: 22px;
}

.detail-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 900;
}

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

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}

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

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

.article-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.9;
}

.search-layout {
  display: grid;
  gap: 20px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.search-result-card img {
  width: 128px;
  height: 176px;
  border-radius: 14px;
  object-fit: cover;
}

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

.search-result-card p {
  margin: 0 0 14px;
  color: #64748b;
  line-height: 1.7;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p,
.footer-grid a {
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright-line {
  padding: 20px 0;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .desktop-nav {
    gap: 14px;
  }
}

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

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

  .hero {
    height: 470px;
  }

  .hero-control {
    display: none;
  }

  .hero-content {
    padding: 36px 0 58px;
  }

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

  .hero-search-form,
  .filter-panel,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-wrap {
    height: 210px;
  }

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

  .rank-item {
    grid-template-columns: 44px 90px 1fr;
  }

  .rank-thumb {
    width: 90px;
    height: 64px;
  }

  .rank-action {
    display: none;
  }
}

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

  .header-inner {
    height: 64px;
  }

  .site-logo {
    font-size: 20px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    height: 420px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-search-box {
    margin-top: -22px;
    padding: 12px;
  }

  .section {
    padding: 32px 0;
  }

  .section-title-row {
    display: grid;
  }

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

  .poster-wrap {
    height: 190px;
  }

  .movie-body {
    padding: 12px;
  }

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

  .search-result-card {
    grid-template-columns: 96px 1fr;
  }

  .search-result-card img {
    width: 96px;
    height: 138px;
  }

  .rank-info p {
    display: none;
  }
}
