:root {
  --primary: #0073e6;
  --primary-dark: #005bb7;
  --secondary: #14b8a6;
  --accent: #f5b301;
  --neutral-50: #f7f7f8;
  --neutral-100: #eceef2;
  --neutral-200: #d8dce3;
  --neutral-500: #6b7280;
  --neutral-700: #374151;
  --neutral-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, .07), 0 10px 20px -2px rgba(0, 0, 0, .04);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, .12);
  --radius-lg: 18px;
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: Inter, -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%;
}

img.image-muted {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(209, 213, 219, .8);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark,
.footer-brand span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  color: var(--neutral-900);
}

.brand-copy em {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--neutral-700);
  font-weight: 600;
  transition: color .2s ease;
}

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

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--white);
}

.top-search input,
.mobile-search input {
  width: 245px;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
}

.top-search button,
.mobile-search button {
  border: 0;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid var(--neutral-200);
  padding: 16px;
  background: white;
  animation: slideDown .28s ease-out;
}

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

.mobile-links,
.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-links a,
.mobile-category {
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px 12px;
  color: var(--neutral-700);
  font-weight: 600;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: var(--neutral-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .52), rgba(0, 0, 0, .08));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.page-hero .eyebrow {
  color: #93c5fd;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.hero-summary,
.page-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

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

.hero-tags span,
.tags span {
  border-radius: 999px;
  background: rgba(0, 115, 230, .12);
  color: var(--primary-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: white;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 14px 30px rgba(0, 115, 230, .28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  color: white;
}

.btn-dark {
  background: rgba(0, 0, 0, .48);
  color: white;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .48);
  color: white;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: white;
}

.content-section {
  padding: 58px 0;
}

.section-white {
  background: white;
}

.feature-band {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.ranking-home {
  background: var(--neutral-900);
  color: white;
}

.latest-section {
  background: linear-gradient(135deg, #f0f9ff, #f8fafc);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
}

.section-head a,
.text-link {
  color: var(--primary);
  font-weight: 800;
}

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

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

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

.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.rail .movie-card {
  width: 272px;
  flex: 0 0 auto;
}

.scrollbar-hide {
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 115, 230, .35);
  box-shadow: var(--shadow-card);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(0, 115, 230, .3), transparent 35%), linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.rating {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .78);
  color: #fde68a;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.movie-info {
  padding: 15px;
}

.movie-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-info h3 a:hover {
  color: var(--primary);
}

.meta {
  margin: 0 0 8px;
  color: var(--neutral-500);
  font-size: 13px;
}

.line {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--neutral-700);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 118px 1fr;
}

.movie-card-horizontal .poster {
  aspect-ratio: auto;
  min-height: 174px;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, white, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.category-tile {
  min-height: 142px;
  padding: 22px;
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile span,
.category-card-large p {
  color: var(--neutral-500);
}

.category-card-large {
  padding: 24px;
}

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

.category-sample {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.category-sample a {
  border-radius: 999px;
  background: var(--neutral-100);
  padding: 5px 10px;
  color: var(--neutral-700);
  font-size: 13px;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  background: radial-gradient(circle at 16% 18%, rgba(20, 184, 166, .45), transparent 28%), linear-gradient(135deg, #0f172a, #111827 58%, #172554);
  color: white;
}

.small-hero {
  padding: 72px 0;
}

.filter-panel {
  margin: 34px 0 26px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--neutral-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: white;
  padding: 11px 12px;
  outline: 0;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 115, 230, .12);
}

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

.rank-list {
  display: grid;
  gap: 12px;
  margin-bottom: 48px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 18px;
  background: white;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.ranking-home .rank-row {
  border-color: rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .08);
  color: white;
}

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

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.rank-main h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

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

.ranking-home .rank-main p {
  color: rgba(255, 255, 255, .68);
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--neutral-500);
  font-size: 13px;
}

.ranking-home .rank-meta {
  color: rgba(255, 255, 255, .76);
}

.rank-action {
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  font-weight: 800;
}

.player-band {
  background: var(--neutral-900);
  padding: 24px 0 36px;
}

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

.breadcrumb a:hover {
  color: white;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: black;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.video-player {
  width: 100%;
  height: 100%;
  background: black;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: radial-gradient(circle at center, rgba(0, 115, 230, .4), rgba(0, 0, 0, .68));
  color: white;
  cursor: pointer;
}

.player-start span {
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(0, 115, 230, .35);
}

.player-start strong {
  font-size: 18px;
}

.video-shell.is-playing .player-start {
  display: none;
}

.player-message {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: none;
  transform: translate(-50%, -50%);
  border-radius: 14px;
  background: rgba(0, 0, 0, .75);
  color: white;
  padding: 14px 18px;
}

.video-shell.player-error .player-message {
  display: block;
}

.detail-content {
  padding: 36px 0 0;
}

.detail-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.detail-info h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
}

.detail-line {
  color: var(--neutral-700);
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  background: var(--neutral-100);
  padding: 7px 12px;
  color: var(--neutral-700);
  font-weight: 800;
}

.text-card {
  margin-top: 24px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 12px;
}

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

.related-section {
  padding: 42px 0 0;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 20px;
}

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

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #93c5fd;
}

.back-top {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .55);
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .nav-links,
  .top-search {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

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

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

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

  .brand-copy em {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .compact-grid,
  .horizontal-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal,
  .detail-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .poster {
    aspect-ratio: 2 / 3;
  }

  .rank-row {
    align-items: start;
  }

  .rank-num {
    text-align: left;
  }

  .rank-thumb {
    width: 92px;
  }

  .small-hero {
    padding: 52px 0;
  }

  .player-band {
    padding: 14px 0 24px;
  }

  .detail-card,
  .text-card {
    padding: 18px;
  }
}
