:root {
  color-scheme: light;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 14px 35px rgba(14, 116, 144, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 42%, var(--slate-50) 100%);
}

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

img {
  display: block;
  max-width: 100%;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe 45%, #f8fafc);
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sky-700);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), #22d3ee);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

.brand-name {
  white-space: nowrap;
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  font-size: 14px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sky-700);
  background: var(--sky-100);
  transform: translateY(-1px);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
  padding: 6px;
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  background: var(--white);
}

.search-box input,
.large-search input,
.filter-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
}

.search-box input {
  padding: 8px 6px 8px 12px;
}

.search-box button,
.large-search button,
.primary-button,
.small-button {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

.search-box button {
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(440px, 90vw);
  display: none;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.search-panel.active {
  display: grid;
  gap: 8px;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  color: var(--slate-700);
}

.search-suggestion:hover {
  background: var(--sky-50);
  color: var(--sky-700);
}

.search-suggestion img {
  width: 52px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.search-suggestion strong,
.search-suggestion em {
  display: block;
}

.search-suggestion em {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--sky-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sky-700);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 14px;
  background: var(--sky-50);
  color: var(--slate-700);
}

.mobile-nav.active {
  display: grid;
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}

.hero-shell {
  position: relative;
  margin-top: 10px;
}

.hero-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--slate-900);
  box-shadow: var(--shadow-soft);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
  pointer-events: none;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 132, 199, 0.38) 50%, rgba(2, 6, 23, 0.22)), linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 50%);
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  right: clamp(24px, 12vw, 220px);
  bottom: clamp(32px, 8vw, 76px);
  color: var(--white);
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-pill {
  color: var(--white);
  background: rgba(14, 165, 233, 0.9);
}

.eyebrow {
  color: var(--sky-700);
  background: var(--sky-100);
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span,
.detail-meta span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--sky-700);
  background: var(--sky-50);
}

.hero-meta span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.ghost-light,
.small-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover,
.ghost-button:hover,
.ghost-light:hover,
.small-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

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

.ghost-light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

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

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

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: var(--slate-200);
}

.hero-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: var(--sky-500);
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 30px 0;
}

.category-tile {
  position: relative;
  min-height: 134px;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: var(--slate-900);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
}

.category-tile span,
.category-tile em {
  position: relative;
  z-index: 1;
  display: block;
}

.category-tile span {
  margin-top: 42px;
  font-weight: 800;
  font-size: 18px;
}

.category-tile em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
  font-size: 12px;
}

.category-tile:hover img {
  transform: scale(1.08);
}

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

.content-section {
  margin-top: 36px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.aside-card h2 {
  margin: 10px 0 8px;
  color: var(--slate-900);
  letter-spacing: -0.03em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.aside-card p,
.article-content p,
.detail-copy .lead {
  color: var(--slate-500);
  line-height: 1.8;
}

.section-more {
  color: var(--sky-700);
  background: var(--sky-100);
}

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

.page-grid {
  margin-top: 22px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(14, 165, 233, 0.38);
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.watch-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(14, 165, 233, 0.92);
  font-size: 12px;
  font-weight: 700;
}

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

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.home-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.gradient-card {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky-600), #22d3ee);
}

.gradient-card h2,
.gradient-card p {
  color: var(--white);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--sky-50);
}

.rank-row span {
  font-weight: 900;
  color: var(--sky-600);
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.92), rgba(255, 255, 255, 0.95));
  box-shadow: var(--shadow-card);
}

.category-hero {
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.26), transparent 34%), linear-gradient(135deg, #ffffff, #e0f2fe);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.filter-bar {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ranking-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 84px 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ranking-poster img {
  width: 84px;
  height: 116px;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-index {
  color: var(--sky-600);
  font-size: 30px;
  font-weight: 900;
}

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

.ranking-copy p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.small-button {
  min-height: 40px;
  padding: 0 18px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
}

.pagination a.active,
.pagination a:hover {
  color: var(--white);
  border-color: var(--sky-500);
  background: var(--sky-500);
}

.detail-shell {
  padding: 22px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-card);
}

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

.breadcrumb a {
  color: var(--sky-700);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.player-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.3);
}

.player-panel video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.35));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.35);
}

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

.detail-copy h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.12;
}

.detail-meta {
  margin: 18px 0;
}

.detail-tags {
  margin-top: 16px;
}

.detail-section {
  padding: 28px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.article-content {
  max-width: 930px;
}

.article-content h2 {
  margin: 26px 0 8px;
  font-size: 26px;
}

.search-page-panel {
  margin-top: 24px;
}

.large-search {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.large-search input {
  padding: 12px 14px;
}

.large-search button {
  padding: 0 24px;
  border-radius: 18px;
}

.compact-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
}

.compact-card img {
  width: 52px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-card strong,
.compact-card em {
  display: block;
}

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

.site-footer {
  border-top: 1px solid var(--slate-200);
  background: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 28px;
  padding: 34px 20px;
}

.footer-inner p {
  max-width: 460px;
  color: var(--slate-500);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--sky-50);
}

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    width: 100%;
  }

  .home-layout,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .home-aside {
    position: static;
  }

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

@media (max-width: 760px) {
  main {
    padding: 18px 14px 48px;
  }

  .header-inner {
    padding: 12px 14px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero-stage,
  .hero-slide img {
    min-height: 480px;
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    bottom: 34px;
  }

  .hero-meta {
    display: none;
  }

  .hero-control {
    display: none;
  }

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

  .section-heading {
    display: block;
  }

  .section-more {
    margin-top: 12px;
  }

  .ranking-item {
    grid-template-columns: 70px 1fr;
  }

  .ranking-index {
    position: absolute;
    margin-left: 50px;
    margin-top: -72px;
    color: var(--white);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  }

  .ranking-poster img {
    width: 70px;
    height: 98px;
  }

  .ranking-copy {
    min-width: 0;
  }

  .ranking-copy p,
  .ranking-item .small-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .quick-categories,
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage,
  .hero-slide img {
    min-height: 440px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .large-search {
    display: grid;
  }

  .player-overlay span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
