:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(2, 132, 199, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--slate-50);
  color: var(--slate-800);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.site-logo__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.site-logo__text {
  display: grid;
  line-height: 1.15;
}

.site-logo__text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.site-logo__text small {
  opacity: 0.82;
  font-size: 12px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav a {
  font-size: 15px;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.site-search input {
  width: 220px;
  border: 0;
  color: #fff;
  outline: 0;
  background: transparent;
  padding: 8px 12px;
}

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

.site-search button,
.menu-button {
  border: 0;
  cursor: pointer;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 14px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.28), transparent 34%), linear-gradient(135deg, #082f49, #0f172a 54%, #1e3a8a);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 60px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(1.15);
  transform: scale(1.08);
}

.hero-slide__content,
.hero-poster,
.hero-dots {
  position: relative;
  z-index: 1;
}

.hero-kicker,
.detail-kicker,
.page-hero p,
.section-heading p {
  margin: 0 0 14px;
  color: #7dd3fc;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-slide h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 850px;
}

.hero-slide p {
  margin: 24px 0 0;
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

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

.primary-button,
.ghost-button,
.section-more,
.rank-row__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-height: 50px;
  padding: 0 28px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: var(--shadow-soft);
}

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

.primary-button--light {
  color: var(--sky-600);
  background: #fff;
}

.ghost-button {
  min-height: 50px;
  padding: 0 24px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-poster {
  display: block;
  border-radius: 34px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.48);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
}

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

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

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

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-size: 12px;
  font-weight: 700;
}

.tag-row--hero {
  margin-top: 22px;
}

.tag-row--hero span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.quick-category-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.quick-category-strip a {
  min-height: 68px;
  display: grid;
  place-items: center;
  color: var(--slate-800);
  background: #fff;
  border-radius: 22px;
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.section-block,
.page-shell,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-block--detail {
  padding-top: 56px;
}

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

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

.section-more,
.rank-row__button {
  min-height: 44px;
  padding: 0 20px;
  color: var(--sky-600);
  background: var(--sky-50);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-card__poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--slate-200);
}

.movie-card__poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.movie-card__play,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
}

.movie-card__play {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.86);
  background: rgba(14, 165, 233, 0.88);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.movie-card__body {
  padding: 18px;
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.movie-card__meta span {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--slate-100);
}

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

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--slate-500);
  line-height: 1.7;
  font-size: 14px;
}

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

.category-grid--large {
  padding: 34px 0 80px;
}

.category-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
  box-shadow: var(--shadow-soft);
}

.category-card__name {
  display: block;
  position: relative;
  z-index: 2;
  font-size: 22px;
  font-weight: 900;
}

.category-card__intro {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.category-card__thumbs {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  opacity: 0.95;
}

.category-card__thumbs img {
  width: 22%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.24);
}

.wide-cta,
.page-hero {
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
  box-shadow: var(--shadow-soft);
}

.wide-cta {
  width: min(1180px, calc(100% - 32px));
  margin: 82px auto 0;
  padding: clamp(34px, 7vw, 70px);
  text-align: center;
}

.wide-cta h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.05em;
}

.wide-cta p {
  width: min(720px, 100%);
  margin: 18px auto 28px;
  color: #dbeafe;
  line-height: 1.8;
}

.page-shell {
  padding-top: 42px;
}

.page-hero {
  padding: clamp(34px, 7vw, 62px);
}

.page-hero--compact span {
  display: block;
  width: min(760px, 100%);
  margin-top: 18px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--slate-200);
  outline: 0;
  border-radius: 999px;
  padding: 14px 18px;
  color: var(--slate-800);
  background: var(--slate-50);
}

.filter-panel__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.filter-panel__chips button,
.search-page-form button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--sky-600);
  background: var(--sky-50);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 82px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-row__poster img {
  width: 82px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row__number {
  font-size: 28px;
  color: var(--sky-500);
}

.rank-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-row p {
  margin: 0 0 10px;
  color: var(--slate-500);
  line-height: 1.7;
}

.search-page-box {
  margin: 28px 0;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.detail-shell {
  padding-top: 28px;
}

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

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

.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius-xl);
  color: #fff;
  background: radial-gradient(circle at 16% 18%, rgba(14, 165, 233, 0.45), transparent 34%), linear-gradient(135deg, #0f172a, #1e3a8a 72%, #0ea5e9);
  box-shadow: var(--shadow-card);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 22px 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
}

.detail-meta-list div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-list dt {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 700;
}

.detail-meta-list dd {
  margin: 6px 0 0;
  font-weight: 800;
}

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

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: var(--shadow-card);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.54));
}

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

.player-overlay span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  font-size: 32px;
  background: linear-gradient(135deg, var(--sky-500), var(--blue-700));
  box-shadow: 0 22px 55px rgba(2, 132, 199, 0.42);
}

.player-message {
  margin: 12px 0 0;
  color: #dc2626;
  font-weight: 700;
}

.detail-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.detail-content article {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-content p {
  margin: 0;
  color: var(--slate-700);
  line-height: 1.95;
}

.site-footer {
  margin-top: 86px;
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

.site-footer__grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

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

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

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

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

.site-footer__bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  border-radius: 24px;
  color: var(--slate-500);
  background: #fff;
}

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

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

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: 66px;
  }

  .menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 14px;
    border-radius: 12px;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 26px;
    padding: 40px 0 82px;
  }

  .hero-poster {
    width: min(280px, 72vw);
    margin: 0 auto;
    order: -1;
  }

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

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

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

  .section-heading,
  .filter-panel,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .rank-row__number,
  .rank-row__button {
    display: none;
  }

  .detail-hero,
  .detail-content,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(310px, 78vw);
    margin: 0 auto;
  }

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

@media (max-width: 520px) {
  .site-logo__text small {
    display: none;
  }

  .site-logo__text strong {
    font-size: 17px;
  }

  .hero-slide h1,
  .detail-info h1,
  .page-hero h1,
  .wide-cta h2 {
    font-size: 34px;
  }

  .movie-grid,
  .movie-grid--dense,
  .category-grid,
  .quick-category-strip {
    grid-template-columns: 1fr;
  }

  .movie-card__body {
    padding: 16px;
  }

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