:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --secondary-50: #f0fdf4;
  --secondary-600: #16a34a;
  --accent-50: #fffbeb;
  --accent-400: #fbbf24;
  --accent-600: #d97706;
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #e5e5e5;
  --neutral-300: #d4d4d4;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, .12), 0 8px 10px -6px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--neutral-900);
  background: linear-gradient(180deg, var(--neutral-50), #fff 420px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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, .92);
  border-bottom: 1px solid rgba(229, 229, 229, .85);
  backdrop-filter: blur(18px);
}

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

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--neutral-900);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 22px rgba(2, 132, 199, .25);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--neutral-700);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: color .25s ease, background .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-700);
  background: var(--primary-100);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--neutral-100);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--neutral-900);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 70vh;
  max-height: 820px;
  overflow: hidden;
  background: #050505;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
}

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

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .48) 48%, rgba(0, 0, 0, .08)), linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 45%);
}

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

.hero-copy {
  max-width: 680px;
  color: #fff;
  padding-top: 30px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-400);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.card-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  color: var(--primary-700);
  background: var(--primary-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-meta span {
  color: #fff;
  background: rgba(14, 165, 233, .34);
  backdrop-filter: blur(12px);
}

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

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

.primary-button {
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 14px 30px rgba(2, 132, 199, .3);
}

.primary-button:hover {
  background: var(--primary-700);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(2, 132, 199, .34);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, .24);
  transform: translateY(-2px);
}

.text-button {
  color: var(--primary-700);
  background: var(--primary-50);
}

.text-button:hover {
  background: var(--primary-100);
}

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

.hero-dots button {
  width: 36px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dots button.active {
  width: 56px;
  background: #fff;
}

.section {
  padding: 62px 0;
}

.section.compact {
  padding-top: 36px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--neutral-900);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.035em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--neutral-600);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-600);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(229, 229, 229, .7);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 230, 253, .95);
  box-shadow: var(--shadow-xl);
}

.poster-card {
  border-radius: 18px;
}

.large-card {
  border-radius: 22px;
}

.wide-card {
  display: flex;
  min-height: 190px;
  border-radius: 18px;
}

.poster-cover,
.large-cover,
.wide-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--neutral-900);
}

.poster-cover {
  aspect-ratio: 3 / 4;
}

.large-cover {
  aspect-ratio: 16 / 9;
}

.wide-cover {
  width: 42%;
  min-width: 180px;
}

.poster-cover img,
.large-cover img,
.wide-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  color: #fff;
  background: rgba(0, 0, 0, .68);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.play-hover,
.play-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0);
  font-size: 42px;
  opacity: 0;
  transition: opacity .28s ease, background .28s ease, transform .28s ease;
}

.play-ring::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  background: var(--primary-500);
  border-radius: 999px;
  z-index: -1;
}

.movie-card:hover .play-hover,
.movie-card:hover .play-ring {
  opacity: 1;
  background: rgba(0, 0, 0, .32);
}

.movie-card:hover .play-ring {
  transform: scale(1.04);
}

.card-body,
.wide-body {
  padding: 16px;
}

.wide-body {
  flex: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.card-body h3,
.wide-body h3 {
  margin: 10px 0 8px;
  color: var(--neutral-800);
  font-size: 18px;
  line-height: 1.32;
  font-weight: 900;
}

.large-card .card-body h3 {
  font-size: 22px;
}

.card-body h3 a:hover,
.wide-body h3 a:hover {
  color: var(--primary-600);
}

.card-body p,
.wide-body p {
  display: -webkit-box;
  margin: 0;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.large-card .card-body p {
  -webkit-line-clamp: 3;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--neutral-500);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  color: var(--neutral-700);
  background: var(--neutral-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.feature-band {
  padding: 34px;
  background: linear-gradient(135deg, var(--primary-50), var(--secondary-50));
  border-radius: 28px;
}

.dark-panel {
  padding: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
  border-radius: 26px;
}

.dark-panel p {
  color: rgba(255, 255, 255, .72);
}

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

.category-card {
  min-height: 178px;
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(229, 229, 229, .75);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, .35);
  box-shadow: var(--shadow-xl);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 900;
}

.category-card p {
  display: -webkit-box;
  margin: 0 0 18px;
  color: var(--neutral-600);
  font-size: 14px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-card span {
  color: var(--primary-600);
  font-weight: 900;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 82px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(229, 229, 229, .7);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rank-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.rank-number {
  color: var(--primary-600);
  font-size: 25px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  position: relative;
  display: block;
  height: 106px;
  overflow: hidden;
  background: var(--neutral-900);
  border-radius: 12px;
}

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

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

.rank-info p {
  display: -webkit-box;
  margin: 0;
  color: var(--neutral-600);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-panel {
  margin: 0 0 28px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(229, 229, 229, .8);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.search-box {
  display: flex;
  gap: 12px;
}

.movie-search {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  color: var(--neutral-900);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.movie-search:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.search-clear,
.filter-select {
  min-height: 48px;
  padding: 0 14px;
  color: var(--neutral-800);
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  cursor: pointer;
}

.search-clear {
  color: #fff;
  background: var(--primary-600);
  border-color: var(--primary-600);
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.no-results {
  display: none;
  padding: 30px;
  color: var(--neutral-600);
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 20px;
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--neutral-900);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  opacity: .42;
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .84), rgba(0, 0, 0, .46)), linear-gradient(0deg, rgba(0, 0, 0, .55), transparent);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 36px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.detail-poster {
  overflow: hidden;
  background: var(--neutral-900);
  border-radius: 24px;
  box-shadow: 0 26px 50px rgba(0, 0, 0, .36);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.045em;
}

.detail-copy .lead {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .84);
  font-size: 20px;
}

.detail-meta span {
  color: #fff;
  background: rgba(14, 165, 233, .28);
  backdrop-filter: blur(12px);
}

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

.player-shell {
  overflow: hidden;
  background: #050505;
  border-radius: 26px;
  box-shadow: var(--shadow-xl);
}

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

.player-box video {
  width: 100%;
  height: 100%;
  background: #050505;
  outline: none;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(2, 132, 199, .28), rgba(0, 0, 0, .56));
  cursor: pointer;
  z-index: 3;
}

.player-overlay.hidden {
  display: none;
}

.player-play {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  color: #fff;
  background: var(--primary-600);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(2, 132, 199, .4);
  cursor: pointer;
  font-size: 30px;
  transition: transform .25s ease, background .25s ease;
}

.player-play:hover {
  background: var(--primary-700);
  transform: scale(1.06);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
}

.article-card,
.side-card {
  background: #fff;
  border: 1px solid rgba(229, 229, 229, .75);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.article-card {
  padding: 30px;
}

.article-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 18px;
  color: var(--neutral-700);
  font-size: 17px;
}

.side-card {
  padding: 22px;
}

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

.side-link {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 62px;
  height: 78px;
  object-fit: cover;
  background: var(--neutral-900);
  border-radius: 10px;
}

.side-link strong {
  display: -webkit-box;
  color: var(--neutral-800);
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-link span {
  color: var(--neutral-500);
  font-size: 12px;
}

.page-hero {
  padding: 56px 0 26px;
  background: linear-gradient(135deg, var(--primary-50), #fff 58%, var(--secondary-50));
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.045em;
}

.page-hero p {
  max-width: 800px;
  margin: 0;
  color: var(--neutral-600);
  font-size: 18px;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, .72);
  background: var(--neutral-900);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
  padding: 44px 0 30px;
}

.footer-logo {
  color: #fff;
}

.footer-brand p {
  max-width: 520px;
  margin: 14px 0 0;
}

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

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: rgba(255, 255, 255, .46);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px;
}

@media (max-width: 980px) {
  .movie-grid,
  .movie-grid.large-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-grid.wide-grid,
  .content-layout,
  .detail-hero-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

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

  .hero {
    min-height: 600px;
    height: auto;
  }

  .hero-content {
    min-height: 600px;
    align-items: flex-end;
    padding-bottom: 82px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 42px 0;
  }

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

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

  .wide-card {
    display: block;
  }

  .wide-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .search-box,
  .filter-row {
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-item .text-button {
    grid-column: 2 / 4;
    width: 100%;
  }

  .article-card {
    padding: 22px;
  }
}
