:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #0891b2;
  --teal: #0d9488;
  --orange: #f97316;
  --amber: #f59e0b;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 22px;
}

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

.brand-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  padding: 10px 13px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--blue);
  background: #eff6ff;
}

.nav-search {
  display: flex;
  align-items: center;
  width: 275px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.nav-search input,
.mobile-search input,
.hero-search-large input,
.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}

.nav-search input {
  padding: 10px 8px 10px 16px;
}

.nav-search button,
.mobile-search button,
.hero-search-large button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  cursor: pointer;
  font-weight: 800;
}

.nav-search button {
  align-self: stretch;
  padding: 0 16px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #eff6ff;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

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

.mobile-search button {
  padding: 0 18px;
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, #2563eb 0%, #0891b2 48%, #0d9488 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32) 0 2px, transparent 2px), radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px);
  background-size: 64px 64px, 44px 44px;
}

.hero-section::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.28), transparent 28%), linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.42));
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-slide {
  display: none;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 54px;
  align-items: center;
  animation: fadeIn 0.45s ease both;
}

.hero-slide.is-active {
  display: grid;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: #bae6fd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--blue);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy h1 span {
  display: block;
  color: #cffafe;
}

.hero-copy h2 {
  margin: 18px 0 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.16;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-tags .tag-pill,
.detail-tags .tag-pill {
  color: #2563eb;
  background: #eff6ff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.18);
}

.btn-light {
  color: var(--blue);
  background: white;
}

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

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.25), rgba(255, 255, 255, 0.12));
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
  transform: rotate(2deg);
}

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

.hero-rating {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: #111827;
  background: #fbbf24;
  border-radius: 999px;
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 52px;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  overflow: hidden;
  color: transparent;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 58px;
  background: white;
}

.overlap-section {
  margin-top: -72px;
  position: relative;
  z-index: 5;
}

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

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

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

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

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.section-heading h2,
.filter-panel h2,
.content-card h2,
.info-card h2,
.category-rank-mini h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-link {
  color: var(--blue);
  font-weight: 900;
}

.soft-band {
  background: linear-gradient(120deg, #f8fafc, #eff6ff);
}

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

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-badge,
.poster-duration {
  position: absolute;
  z-index: 2;
  padding: 5px 9px;
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.poster-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.82);
}

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

.movie-title {
  display: -webkit-box;
  min-height: 52px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--blue);
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.horizontal-poster {
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}

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

.category-card,
.category-overview-card,
.filter-panel,
.content-card,
.info-card,
.category-rank-mini {
  background: white;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.category-card {
  display: grid;
  min-height: 210px;
  padding: 24px;
  align-content: start;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.category-card strong {
  font-size: 18px;
}

.category-card em {
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
}

.category-card small {
  color: var(--muted);
  font-size: 13px;
}

.two-column-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: linear-gradient(120deg, #2563eb 0%, #0891b2 52%, #0d9488 100%);
}

.compact-page-hero .container {
  position: relative;
  z-index: 2;
  padding: 86px 0 72px;
}

.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-hero p,
.detail-copy p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-pills a {
  padding: 9px 13px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
  padding: 24px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 140px;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.filter-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

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

.category-overview-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card-main h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card-main p {
  margin: 0 0 10px;
  color: var(--muted);
}

.category-card-main strong {
  color: var(--blue);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  max-width: 100%;
  padding: 6px 10px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.category-page-hero .category-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: center;
  padding: 84px 0;
}

.category-rank-mini {
  padding: 22px;
  color: var(--text);
}

.category-rank-mini h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.category-rank-mini a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.category-rank-mini a:last-child {
  border-bottom: 0;
}

.category-rank-mini span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  font-size: 12px;
}

.category-rank-mini em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 120px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.rank-number {
  font-size: 26px;
  font-weight: 950;
  color: var(--blue);
  text-align: center;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  background: #dbeafe;
}

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

.rank-info a {
  font-size: 20px;
  font-weight: 900;
}

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

.hero-search-large {
  display: flex;
  max-width: 780px;
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.hero-search-large input {
  min-height: 58px;
  padding: 0 24px;
}

.hero-search-large button {
  padding: 0 34px;
}

.result-summary {
  color: var(--muted);
  font-weight: 800;
}

.detail-hero {
  min-height: 620px;
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
  padding: 72px 0;
}

.player-card {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(12px);
}

.video-player {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background: #020617;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(2, 6, 23, 0.22);
  cursor: pointer;
}

.player-start span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  color: var(--blue);
  background: white;
  border-radius: 50%;
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.3);
}

.video-player.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 10px 12px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 14px;
  font-size: 13px;
  text-align: center;
}

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

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

.breadcrumb a:hover {
  color: white;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 72px 0 0;
}

.content-card,
.info-card {
  padding: 28px;
}

.content-card p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 17px;
}

.wide-card {
  grid-column: 1 / -1;
}

.info-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.info-grid div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-grid div:last-child {
  border-bottom: 0;
}

.info-grid span {
  color: var(--muted);
}

.info-grid strong {
  text-align: right;
}

.site-footer {
  margin-top: 72px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 52px 0;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: white;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #60a5fa;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.footer-bottom {
  padding: 18px 16px;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide,
  .detail-layout,
  .category-page-hero .category-hero-layout,
  .detail-content-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .two-column-section,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .hero-section,
  .hero-container,
  .detail-hero,
  .detail-layout {
    min-height: auto;
  }

  .hero-container,
  .detail-layout,
  .compact-page-hero .container,
  .category-page-hero .category-hero-layout {
    padding: 48px 0;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 36px;
  }

  .hero-dots {
    position: static;
    margin-top: 24px;
  }

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

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

  .horizontal-poster,
  .rank-cover {
    min-height: 210px;
  }

  .filter-controls {
    grid-template-columns: 1fr;
  }

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

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