:root {
  --sky: #0ea5e9;
  --sky-dark: #0369a1;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "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;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.site-logo::before {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.32);
}
.site-logo span {
  background: linear-gradient(135deg, var(--sky-dark), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: all 0.22s ease;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-dark);
  background: #e0f2fe;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #e0f2fe;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sky-dark);
  border-radius: 10px;
}
.hero {
  position: relative;
  height: clamp(520px, 72vh, 720px);
  overflow: hidden;
  background: #020617;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}
.hero-slide.is-active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.15)), linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.12));
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 760px;
  color: #ffffff;
}
.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-badge,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  font-size: 14px;
  font-weight: 800;
}
.pill {
  color: var(--sky-dark);
  background: #e0f2fe;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e2e8f0;
  font-size: clamp(16px, 2vw, 19px);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.btn-primary {
  color: #ffffff;
  background: var(--sky);
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.36);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--sky-dark);
}
.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.28);
}
.hero-search {
  width: min(620px, 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  margin-top: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  color: #ffffff;
  background: transparent;
  outline: none;
}
.hero-search input::placeholder {
  color: #cbd5e1;
}
.hero-search button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  cursor: pointer;
  font-weight: 900;
}
.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.22s ease;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.36);
}
.hero-arrow.prev {
  left: 22px;
}
.hero-arrow.next {
  right: 22px;
}
.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}
.hero-dots button.is-active {
  width: 36px;
  background: #ffffff;
}
.main-space {
  padding: 56px 0;
}
.section-block {
  margin-bottom: 66px;
}
.section-block.is-soft {
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #e0f2fe, #fff7ed);
  box-shadow: var(--shadow);
}
.section-block.is-white {
  padding: 34px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.04em;
}
.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}
.section-more {
  color: var(--sky-dark);
  font-weight: 900;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.16);
}
.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #ffedd5);
}
.movie-card-large .poster-frame {
  aspect-ratio: 16 / 10;
}
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.movie-card:hover .poster-frame img {
  transform: scale(1.08);
}
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.05) 58%);
}
.card-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: all 0.25s ease;
}
.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.card-badge,
.card-score {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}
.card-badge {
  left: 12px;
  background: rgba(249, 115, 22, 0.94);
}
.card-score {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}
.card-content {
  display: block;
  padding: 16px;
}
.card-content strong {
  display: block;
  margin-bottom: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 1.3;
}
.card-content em {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.rank-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}
.rank-list {
  display: grid;
  gap: 12px;
}
.rank-row {
  display: grid;
  grid-template-columns: 48px 78px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}
.rank-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--orange));
  font-weight: 900;
}
.rank-cover {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #e0f2fe;
}
.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-main strong,
.rank-main em {
  display: block;
}
.rank-main strong {
  font-size: 17px;
}
.rank-main em {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rank-side {
  text-align: right;
}
.rank-side b,
.rank-side small {
  display: block;
}
.rank-side b {
  color: var(--orange-dark);
}
.rank-side small {
  color: var(--muted);
}
.category-hero,
.page-hero {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-dark), var(--orange));
}
.page-hero h1,
.category-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}
.page-hero p,
.category-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}
.category-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.category-card {
  min-height: 164px;
  padding: 24px;
  border-radius: 26px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.14);
}
.category-card span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sky);
  font-size: 12px;
  font-weight: 900;
}
.category-card h2 {
  margin: 18px 0 8px;
}
.category-card p {
  margin: 0;
  color: var(--muted);
}
.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  padding: 16px;
  margin-bottom: 30px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.filter-panel input,
.filter-panel select,
.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #f8fafc;
  outline: none;
}
.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-link,
.page-dots {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}
.page-link.is-active {
  color: #ffffff;
  background: var(--sky);
}
.page-link.is-disabled {
  color: #94a3b8;
  pointer-events: none;
}
.search-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
}
.search-box button {
  min-width: 120px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sky);
  cursor: pointer;
  font-weight: 900;
}
.search-result-note {
  margin: 26px 0;
  color: var(--muted);
  font-weight: 700;
}
.player-wrap {
  background: #020617;
}
.player-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}
.video-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.04));
  opacity: 1;
  transition: opacity 0.22s ease;
}
.video-shell.is-active::after {
  opacity: 0;
}
.video-start {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: var(--sky-dark);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.video-start span {
  margin-left: 5px;
  font-size: 34px;
}
.video-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.video-shell.is-active .video-start {
  opacity: 0;
  pointer-events: none;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  padding: 42px 0 64px;
}
.detail-card,
.side-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.detail-card + .detail-card {
  margin-top: 24px;
}
.detail-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.detail-meta span,
.tag-list span {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 13px;
}
.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}
.detail-card p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}
.detail-card p + p {
  margin-top: 18px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.side-list {
  display: grid;
  gap: 16px;
}
.side-movie {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
}
.side-movie .side-poster {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #e0f2fe;
}
.side-movie img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-movie strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.side-movie small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.breadcrumb a {
  color: var(--sky-dark);
}
.site-footer {
  padding: 36px 0;
  color: #cbd5e1;
  background: #0f172a;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-footer strong {
  display: block;
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 8px;
}
.site-footer p {
  max-width: 660px;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
}
.footer-links a:hover {
  color: #ffffff;
}
.empty-result {
  padding: 36px;
  border-radius: 26px;
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 1024px) {
  .movie-grid,
  .movie-grid.compact,
  .category-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rank-panel,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-header-inner {
    min-height: 64px;
  }
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: flex;
  }
  .hero {
    height: 620px;
  }
  .hero-arrow {
    display: none;
  }
  .hero-search,
  .search-box {
    border-radius: 24px;
    flex-direction: column;
  }
  .hero-search input,
  .hero-search button,
  .search-box button {
    width: 100%;
  }
  .movie-grid,
  .movie-grid.compact,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .section-block.is-soft,
  .section-block.is-white {
    padding: 22px;
    border-radius: 24px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .filter-panel {
    grid-template-columns: 1fr;
  }
  .rank-row {
    grid-template-columns: 40px 64px 1fr;
  }
  .rank-side {
    grid-column: 3;
    text-align: left;
  }
  .detail-card,
  .side-card {
    padding: 22px;
  }
  .video-start {
    width: 70px;
    height: 70px;
  }
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .container,
  .site-header-inner {
    width: min(100% - 24px, 1180px);
  }
  .movie-grid,
  .movie-grid.compact,
  .category-card-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 36px;
  }
  .card-meta {
    flex-wrap: wrap;
  }
}
