:root {
  color-scheme: light;
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-soft: #fee2e2;
  --orange: #f97316;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f9fafb;
  --dark: #111827;
  --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

button,
input {
  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.95);
  border-bottom: 1px solid #fee2e2;
  box-shadow: 0 8px 28px rgba(127, 29, 29, 0.09);
  backdrop-filter: blur(14px);
}

.nav-bar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

.logo-mark::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid white;
}

.logo-mark::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
  animation: pulse 1.8s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 650;
  color: #374151;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--red);
}

.site-search {
  position: relative;
  min-width: 260px;
}

.site-search input,
.filter-box input,
.search-panel input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 46px 11px 18px;
  color: #111827;
  background: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.filter-box input:focus,
.search-panel input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.13);
}

.site-search button,
.search-panel button {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--red);
  cursor: pointer;
}

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

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  border-radius: 999px;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before {
  top: -7px;
}

.menu-lines::after {
  top: 7px;
}

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

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

.mobile-menu nav {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.mobile-menu a {
  padding: 9px 10px;
  border-radius: 12px;
  font-weight: 650;
  color: #374151;
}

.mobile-menu a:hover {
  color: var(--red);
  background: #fef2f2;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 82% 22%, rgba(220, 38, 38, 0.42), transparent 28%), radial-gradient(circle at 10% 80%, rgba(250, 204, 21, 0.25), transparent 30%), linear-gradient(135deg, #111827, #1f2937 54%, #111827);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.34;
}

.hero::before {
  width: 260px;
  height: 260px;
  right: 7%;
  top: 14%;
  background: var(--red);
}

.hero::after {
  width: 360px;
  height: 360px;
  left: 6%;
  bottom: -16%;
  background: #ca8a04;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 420px);
  align-items: center;
  gap: 48px;
  padding: 62px 0 78px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 750;
}

.hero-kicker::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(250, 204, 21, 0.16);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 14px;
}

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

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

.button-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.28);
}

.button-primary:hover {
  transform: translateY(-1px) scale(1.02);
  background: #b91c1c;
  box-shadow: 0 20px 36px rgba(220, 38, 38, 0.35);
}

.button-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.button-soft {
  color: var(--red);
  background: #fef2f2;
}

.button-soft:hover {
  color: white;
  background: var(--red);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(1.3deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.025);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 48%);
}

.hero-poster-title {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  font-size: 22px;
  font-weight: 800;
}

.page-hero {
  padding: 54px 0;
  color: white;
  background: radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.3), transparent 30%), linear-gradient(135deg, #111827, #1f2937);
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d1d5db;
  font-size: 17px;
}

.main-space {
  padding: 48px 0 64px;
}

.section-block {
  margin-bottom: 50px;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: "";
  width: 5px;
  height: 33px;
  border-radius: 999px;
  background: var(--red);
}

.section-title h2,
.section-title h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--red);
  font-weight: 750;
}

.section-link:hover {
  color: var(--red-dark);
}

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

.movie-card {
  min-width: 0;
}

.movie-card__poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
  transform: translateZ(0);
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card__poster:hover img {
  transform: scale(1.075);
  opacity: 0.9;
}

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.movie-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(220, 38, 38, 0.94);
  font-size: 12px;
  font-weight: 750;
}

.movie-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 17px solid white;
}

.movie-card__poster:hover .movie-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-card__text {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  color: white;
}

.movie-card__text h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.movie-card__text p {
  margin: 0;
  color: #d1d5db;
  font-size: 12px;
}

.movie-card__meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 176px;
  padding: 24px;
  border-radius: 24px;
  color: #111827;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border: 1px solid #fee2e2;
  box-shadow: 0 16px 32px rgba(127, 29, 29, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -52px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.12);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(127, 29, 29, 0.13);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #4b5563;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.08);
  border: 1px solid #f3f4f6;
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 850;
}

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

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-heat {
  color: var(--red);
  font-weight: 850;
  white-space: nowrap;
}

.soft-panel,
.detail-card,
.search-panel {
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid #f3f4f6;
}

.soft-panel {
  padding: 28px;
}

.filter-box {
  max-width: 560px;
  margin-bottom: 24px;
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.breadcrumb {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--red);
  font-weight: 650;
}

.player-card {
  overflow: hidden;
  background: #05070b;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070b;
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05070b;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.05), rgba(5, 7, 11, 0.68));
  cursor: pointer;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.player-start {
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
}

.player-button {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 18px 34px rgba(220, 38, 38, 0.35);
  cursor: pointer;
}

.player-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid white;
}

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

.detail-card {
  padding: 28px;
  margin-top: 22px;
}

.detail-card h1 {
  margin: 14px 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.detail-card h2 {
  margin: 28px 0 12px;
  font-size: 21px;
}

.detail-lead {
  color: #4b5563;
  font-size: 18px;
  line-height: 1.82;
}

.detail-text {
  color: #374151;
  line-height: 1.9;
  text-align: justify;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  color: #b91c1c;
  background: #fee2e2;
  font-size: 14px;
  font-weight: 650;
}

.side-card {
  position: sticky;
  top: 88px;
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

.related-list {
  display: grid;
  gap: 13px;
}

.related-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: 15px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: #f9fafb;
}

.related-item__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

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

.related-item h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.35;
}

.related-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.search-panel {
  padding: 28px;
  margin-bottom: 28px;
}

.search-panel form {
  position: relative;
  max-width: 680px;
}

.search-results {
  display: grid;
  gap: 16px;
}

.search-result {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  padding: 14px;
  border: 1px solid #f3f4f6;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.search-result img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: #111827;
}

.search-result h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.search-result p {
  margin: 0 0 8px;
  color: var(--muted);
}

.cta-band {
  padding: 40px 28px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
  border: 1px solid #fed7aa;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
}

.cta-band p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: #4b5563;
}

.footer {
  padding: 34px 0;
  color: #6b7280;
  background: #111827;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer a:hover {
  color: white;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.hidden {
  display: none !important;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.72;
  }
}

@media (max-width: 1024px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rank-layout,
  .detail-shell {
    grid-template-columns: 1fr;
  }
  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .site-header .site-search {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 42px 0 54px;
  }
  .hero-poster {
    max-width: 360px;
    margin: 0 auto;
  }
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rank-item {
    grid-template-columns: 42px 92px minmax(0, 1fr);
  }
  .rank-heat {
    grid-column: 3;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }
  .logo {
    font-size: 18px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .button-primary,
  .button-ghost,
  .button-soft {
    width: 100%;
  }
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .rank-item,
  .search-result {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .rank-no {
    width: 34px;
    height: 34px;
    grid-row: 1;
  }
  .rank-cover {
    grid-column: 1;
  }
  .rank-info {
    grid-column: 2;
  }
  .rank-heat {
    grid-column: 2;
  }
  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .detail-card,
  .soft-panel,
  .search-panel {
    padding: 20px;
    border-radius: 20px;
  }
}
