:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 45%, var(--slate-50) 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--sky-600), var(--blue-700));
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.24);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.brand-text strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  font-size: 15px;
  white-space: nowrap;
}

.main-nav a,
.mobile-panel a {
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: var(--sky-100);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.header-search input,
.mobile-panel input {
  width: 210px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 9px 12px;
}

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

.header-search button,
.mobile-panel button,
.primary-button,
.secondary-button,
.section-link,
.player-start {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-panel button {
  color: var(--sky-600);
  background: var(--white);
  padding: 9px 16px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}

.mobile-panel nav {
  display: grid;
  gap: 6px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(115deg, var(--sky-600), var(--blue-600) 48%, #1e40af 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(24px);
}

.hero::before {
  left: -120px;
  top: -140px;
}

.hero::after {
  right: -80px;
  bottom: -160px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-kicker,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-button {
  color: var(--sky-600);
  background: var(--white);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.secondary-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.section-link:hover,
.player-start:hover {
  transform: translateY(-2px);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  border-radius: 32px;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.2);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 10px 22px 0;
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.hero-panel p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-meta span,
.detail-tags span,
.tag-row span,
.rank-index,
.movie-type,
.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.is-active {
  width: 26px;
  background: var(--white);
}

main {
  min-height: 60vh;
}

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

.section-muted {
  background: linear-gradient(90deg, var(--slate-100), var(--slate-50));
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
}

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

.section-link {
  color: var(--white);
  background: var(--sky-500);
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.24);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

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

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

.movie-card,
.category-card,
.info-card,
.rank-card,
.detail-card,
.search-box,
.compact-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-card);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sky-100), var(--slate-200));
}

.movie-card-large .movie-cover {
  aspect-ratio: 16 / 12;
}

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

.movie-card:hover .movie-cover img,
.compact-card:hover img {
  transform: scale(1.06);
}

.cover-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0));
}

.movie-type {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.94);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--slate-500);
  font-size: 13px;
}

.movie-meta-line a {
  color: var(--sky-600);
  font-weight: 700;
}

.movie-card h2 {
  margin: 0 0 10px;
  color: var(--slate-800);
  font-size: 20px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--slate-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span {
  padding: 6px 10px;
  color: var(--slate-600);
  background: var(--slate-100);
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.category-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
  box-shadow: 0 14px 26px rgba(14, 165, 233, 0.22);
}

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

.category-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.65;
}

.category-count {
  width: fit-content;
  padding: 7px 12px;
  color: var(--sky-600);
  background: var(--sky-50);
}

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

.rank-card,
.compact-card {
  display: grid;
  grid-template-columns: 58px 130px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
}

.rank-index {
  width: 42px;
  height: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--blue-600));
}

.rank-cover,
.compact-cover {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--slate-100);
}

.rank-cover {
  aspect-ratio: 16 / 10;
}

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

.rank-card h2,
.compact-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-card p,
.compact-card p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.6;
}

.rank-stat {
  color: var(--sky-600);
  font-weight: 800;
}

.page-hero,
.detail-hero {
  color: var(--white);
  background: linear-gradient(110deg, var(--sky-500), var(--blue-700));
}

.page-hero .container,
.detail-hero .container {
  padding: 56px 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.page-hero h1,
.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
}

.page-hero p,
.detail-hero p {
  max-width: 840px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1.8;
}

.filter-bar,
.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
}

.filter-bar {
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-bar select,
.search-box input {
  min-height: 44px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  outline: 0;
  color: var(--slate-700);
  background: var(--white);
  padding: 0 12px;
}

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

.detail-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.detail-body {
  padding: 28px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-900);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--slate-900);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.24), rgba(15, 23, 42, 0.58));
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.video-shell.is-playing .player-cover {
  opacity: 0;
}

.player-start {
  width: 86px;
  height: 86px;
  color: var(--white);
  background: var(--sky-500);
  box-shadow: 0 18px 36px rgba(14, 165, 233, 0.34);
  pointer-events: auto;
  font-size: 34px;
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-weight: 700;
}

.detail-body h2,
.sidebar h2 {
  margin: 28px 0 14px;
  font-size: 24px;
}

.detail-body p {
  margin: 0 0 16px;
  color: var(--slate-600);
  font-size: 17px;
  line-height: 1.9;
}

.review-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--sky-50), #eff6ff);
  color: var(--slate-700);
  line-height: 1.85;
}

.detail-tags span {
  padding: 8px 12px;
  color: var(--slate-700);
  background: var(--slate-100);
}

.sidebar {
  display: grid;
  gap: 18px;
}

.info-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.info-card h2 {
  margin-top: 0;
}

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

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--slate-600);
}

.info-list strong {
  color: var(--slate-800);
}

.compact-card {
  grid-template-columns: 110px 1fr;
  padding: 10px;
  box-shadow: none;
}

.compact-cover {
  aspect-ratio: 16 / 10;
}

.compact-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.9);
  transform: translate(-50%, -50%);
}

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

.search-box input {
  flex: 1;
  min-width: 220px;
}

.search-box button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--sky-500);
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--slate-500);
}

.pagination-note {
  margin-top: 20px;
  color: var(--slate-500);
  text-align: center;
}

.site-footer {
  margin-top: 72px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
  padding: 48px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

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

.site-footer p {
  margin: 14px 0 0;
  line-height: 1.8;
}

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

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .hero-inner,
  .detail-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .header-inner {
    min-height: 66px;
  }

  .header-search {
    display: none;
  }

  .brand-text small {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    padding: 54px 0 70px;
  }

  .hero-slide {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
  }

  .hero-slide.is-active {
    display: grid;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 260px;
  }

  .hero-panel {
    padding: 0 4px 8px;
  }

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

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

  .rank-card {
    grid-template-columns: 44px 94px 1fr;
  }

  .rank-stat {
    grid-column: 3;
  }

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