* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.container.narrow {
  width: min(920px, calc(100% - 32px));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon,
.footer-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
  font-size: 24px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #dc2626, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #374151;
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #dc2626;
  background: #fef2f2;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: #374151;
  background: #f3f4f6;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 52%, #fef2f2 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.25;
}

.hero::before {
  left: -80px;
  top: 120px;
  background: #ef4444;
}

.hero::after {
  right: -120px;
  bottom: 40px;
  background: #f97316;
}

.hero-slider {
  min-height: calc(100vh - 68px);
  position: relative;
  z-index: 2;
}

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

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

.hero-copy {
  padding: 48px 0;
}

.hero-pill,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 750;
}

.hero h1,
.hero h2 {
  margin: 0;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
  background: linear-gradient(90deg, #dc2626, #f97316, #dc2626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 710px;
  margin: 22px 0 0;
  color: #374151;
  font-size: clamp(18px, 2.6vw, 25px);
  line-height: 1.65;
}

.hero-feature {
  margin-top: 18px;
  color: #4b5563;
  font-size: 16px;
}

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

.primary-button,
.secondary-button,
.ghost-button,
.rank-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 760;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.rank-button {
  color: #ffffff;
  background: linear-gradient(90deg, #dc2626, #b91c1c);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.25);
}

.secondary-button {
  color: #b91c1c;
  background: #ffffff;
  border: 2px solid #dc2626;
}

.ghost-button {
  color: #dc2626;
  background: #fef2f2;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.rank-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(17, 24, 39, 0.14);
}

.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  box-shadow: 0 34px 70px rgba(17, 24, 39, 0.22);
  transform: rotate(2deg);
}

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

.hero-card-float {
  position: absolute;
  left: 0;
  bottom: 58px;
  max-width: 240px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(10px);
}

.hero-card-float strong {
  display: block;
  margin-bottom: 8px;
  color: #dc2626;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 12px;
  font-weight: 700;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.22);
  cursor: pointer;
}

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

.section {
  padding: 80px 0;
}

.section.soft {
  background: #f9fafb;
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2,
.page-heading h1,
.detail-info h1 {
  margin: 0;
  color: #111827;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head p,
.page-heading p {
  max-width: 720px;
  margin: 12px 0 0;
  color: #6b7280;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #f3f4f6;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: #dc2626;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
}

.card-body {
  padding: 14px;
}

.card-meta,
.rank-meta,
.detail-meta {
  color: #ea580c;
  font-size: 13px;
  font-weight: 750;
}

.card-body h3 {
  min-height: 46px;
  margin: 6px 0 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
}

.card-body h3 a:hover,
.rank-info h3 a:hover {
  color: #dc2626;
}

.card-body p {
  min-height: 44px;
  margin: 0;
  color: #6b7280;
  font-size: 13px;
}

.movie-card.compact .card-body p {
  display: none;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.22);
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #2563eb, #0891b2);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #16a34a, #059669);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #9333ea, #db2777);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  position: relative;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-card span {
  position: relative;
  display: inline-flex;
  margin-top: 22px;
  font-weight: 800;
}

.page-heading {
  padding: 130px 0 64px;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  text-align: center;
}

.page-heading h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.catalog-layout {
  padding: 56px 0 80px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr);
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #111827;
  background: #f9fafb;
  padding: 0 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
  display: none;
  padding: 30px;
  border-radius: 22px;
  color: #6b7280;
  background: #f9fafb;
  text-align: center;
}

.empty-state.show {
  display: block;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 42px;
}

.pagination a {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-weight: 800;
}

.pagination a.active,
.pagination a:hover {
  color: #ffffff;
  background: #dc2626;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid #f3f4f6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.07);
}

.rank-poster {
  overflow: hidden;
  width: 76px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

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

.rank-no {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  font-weight: 900;
}

.rank-info h3 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 900;
}

.rank-info p {
  margin: 0 0 8px;
  color: #6b7280;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 98px auto 22px;
  width: min(1180px, calc(100% - 32px));
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: #dc2626;
  font-weight: 750;
}

.split {
  color: #d1d5db;
}

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fef2f2, #fff7ed);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.1);
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.18);
}

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

.detail-info h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-info .detail-meta {
  margin-bottom: 14px;
}

.detail-info p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 17px;
}

.player-section,
.story-section,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 56px;
}

.player-section h2,
.story-section h2,
.related-section h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74));
  cursor: pointer;
  z-index: 2;
}

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

.play-circle {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 42px rgba(220, 38, 38, 0.32);
  font-size: 36px;
}

.story-card {
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

.story-card p {
  margin: 0 0 18px;
  color: #374151;
  font-size: 16px;
}

.story-card p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #14532d, #166534, #14532d);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 6px;
  color: #f87171;
  font-size: 22px;
}

.footer-brand p {
  margin: 0;
  color: #dcfce7;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-columns h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-columns a {
  display: block;
  margin: 8px 0;
  color: #bbf7d0;
  font-size: 14px;
}

.footer-columns a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  color: #bbf7d0;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 50px rgba(17, 24, 39, 0.18);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-link {
    border-radius: 14px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 0 76px;
  }

  .hero-slider {
    min-height: auto;
    height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
  }

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

  .hero-visual {
    min-height: auto;
  }

  .hero-poster {
    width: min(280px, 85%);
  }

  .hero-card-float {
    right: 0;
    left: auto;
    bottom: 20px;
  }

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

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

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

  .rank-item {
    grid-template-columns: 70px 44px minmax(0, 1fr);
  }

  .rank-button {
    grid-column: 3;
    width: fit-content;
  }
}

@media (max-width: 640px) {
  .brand-subtitle {
    display: none;
  }

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

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

  .section {
    padding: 56px 0;
  }

  .page-heading {
    padding-top: 112px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .hero-card-float {
    display: none;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}
