* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #111827;
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  font-size: 17px;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
}

.brand-text small {
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #374151;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #1d4ed8;
  background: #dbeafe;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input {
  width: 150px;
  border: 0;
  outline: 0;
  padding: 8px 4px 8px 12px;
  color: #111827;
  background: transparent;
}

.header-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-search button,
.primary-button {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.header-search button {
  padding: 8px 14px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  color: #1d4ed8;
  background: #eff6ff;
}

.header-search button:hover,
.primary-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.secondary-button:hover {
  color: #ffffff;
  background: #2563eb;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #374151;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
}

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

.page-main {
  padding: 42px 0 72px;
}

.hero-slider {
  position: relative;
  height: 62vh;
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 1100ms ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 7, 18, 0.86) 0%, rgba(15, 23, 42, 0.56) 48%, rgba(15, 23, 42, 0.12) 100%);
}

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

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

.hero-copy {
  max-width: 720px;
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.24);
  backdrop-filter: blur(14px);
  font-size: 14px;
  font-weight: 750;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
}

.hero-tags,
.card-tags,
.detail-tags,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
  font-size: 30px;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 180ms ease, background 180ms ease;
}

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

.content-section {
  margin: 46px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #6b7280;
}

.featured-grid,
.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.14);
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e5e7eb;
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.movie-card:hover .poster-wrap img,
.list-card:hover img,
.category-card:hover .category-card-glow {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent);
  opacity: 0;
  transition: opacity 220ms ease;
}

.movie-card:hover .poster-wrap::after {
  opacity: 1;
}

.card-badge,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 750;
}

.card-badge {
  top: 10px;
  right: 10px;
}

.card-year {
  left: 10px;
  bottom: 10px;
}

.rank-badge {
  left: 10px;
  top: 10px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease;
}

.movie-card:hover h3,
.list-card:hover h3 {
  color: #2563eb;
}

.card-body p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span:first-child {
  overflow: hidden;
  max-width: 70%;
  padding: 4px 8px;
  border-radius: 8px;
  background: #f3f4f6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags span {
  padding: 3px 7px;
  color: #4b5563;
  background: #f9fafb;
  border-radius: 999px;
  font-size: 11px;
}

.rail-actions {
  display: flex;
  gap: 8px;
}

.rail-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #374151;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
  font-size: 24px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.rail-actions button:hover {
  color: #ffffff;
  background: #2563eb;
  transform: translateY(-1px);
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-item {
  flex: 0 0 210px;
}

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

.list-card {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.list-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.list-card-link {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 16px;
}

.list-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #e5e7eb;
}

.list-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.list-rank {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  font-weight: 850;
}

.list-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.list-content p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.list-meta span {
  padding: 4px 9px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.88), transparent 32%), linear-gradient(135deg, #0f172a, #1e293b 52%, #172554);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.72));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 28px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.category-card-glow {
  position: absolute;
  right: -40px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 500ms ease;
}

.category-card-number {
  position: relative;
  display: inline-flex;
  margin-bottom: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 850;
}

.category-card h2 {
  position: relative;
  margin: 0 0 10px;
  font-size: 28px;
}

.category-card p {
  position: relative;
  max-width: 560px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.category-count {
  position: relative;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: #111827;
  background: #ffffff;
  font-weight: 850;
}

.filter-panel {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 14px;
}

.filter-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 750;
}

.filter-row input,
.filter-row select,
.search-box input,
.search-box select {
  width: 100%;
  height: 46px;
  border: 1px solid #d1d5db;
  outline: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.filter-row input:focus,
.filter-row select:focus,
.search-box input:focus,
.search-box select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-count {
  margin-top: 14px;
  color: #6b7280;
}

.empty-state {
  padding: 34px;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  color: #64748b;
  text-align: center;
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

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

.detail-info {
  min-width: 0;
}

.detail-info h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-lead {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 18px;
}

.meta-pills {
  margin-bottom: 20px;
}

.meta-pills span {
  color: #1e3a8a;
  background: #dbeafe;
}

.detail-tags span {
  color: #374151;
  background: #f3f4f6;
}

.player-section {
  margin: 36px 0;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #111827;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.48));
  transition: opacity 180ms ease, visibility 180ms ease, background 180ms ease;
}

.player-overlay:hover {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.62));
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease;
  font-size: 34px;
}

.player-overlay:hover .play-icon {
  transform: scale(1.08);
}

.player-caption {
  padding: 22px 26px;
}

.player-caption h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: #6b7280;
}

.text-panel {
  margin: 28px 0;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.text-panel p + p {
  margin-top: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 180px 180px 120px;
  gap: 12px;
  margin: 28px 0;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.search-box button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: #2563eb;
  font-weight: 800;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 850;
}

.footer-inner p {
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.68);
}

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

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

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

  .filter-row,
  .search-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-slider {
    height: 72vh;
    min-height: 520px;
  }

  .hero-arrow {
    display: none;
  }

  .featured-grid,
  .movie-grid,
  .category-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .list-card-link {
    grid-template-columns: 120px 1fr;
  }

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

@media (max-width: 560px) {
  .header-inner,
  .container,
  .footer-inner,
  .mobile-nav,
  .hero-content {
    width: min(100% - 24px, 1240px);
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p {
    font-size: 16px;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-tags {
    display: none;
  }

  .rail-item {
    flex-basis: 178px;
  }

  .list-card-link {
    grid-template-columns: 1fr;
  }

  .list-poster {
    aspect-ratio: 16 / 9;
  }

  .text-panel,
  .filter-panel,
  .search-box {
    padding: 18px;
    border-radius: 18px;
  }

  .player-caption {
    padding: 18px;
  }
}
