:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --red: #dc2626;
  --pink: #db2777;
  --orange: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 55%, #fff7ed 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -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%;
}

button,
input,
select {
  font: inherit;
}

.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.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
  transform: translateZ(0);
}

.brand-text {
  display: grid;
  gap: 0;
}

.brand-text strong {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-weight: 700;
  color: #334155;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--red);
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 14px;
}

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: #334155;
  font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--red);
  background: #fff1f2;
}

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

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide.is-active img {
  animation: heroZoom 7s ease forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 70%, rgba(220, 38, 38, 0.5), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.05) 54%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

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

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow span,
.card-tags span,
.detail-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.eyebrow span:first-child {
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 16px;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-ghost,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 18px 32px rgba(220, 38, 38, 0.35);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.btn-soft {
  color: var(--red);
  background: #fff1f2;
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-search {
  display: flex;
  width: min(560px, 100%);
  margin-top: 26px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: #ffffff;
  background: transparent;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  min-height: 42px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--pink));
  cursor: pointer;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.main-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

.main-wrap.is-narrow {
  width: min(980px, calc(100% - 32px));
}

.content-stack {
  display: grid;
  gap: 56px;
}

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

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 780px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-link {
  min-width: max-content;
  color: var(--red);
  font-weight: 800;
}

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

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

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

.movie-card a {
  display: grid;
  gap: 12px;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transform: translateZ(0);
}

.movie-card.is-compact .poster-frame {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.06) 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.78);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-frame em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 9px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.86);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}

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

.movie-card a:hover .poster-glow,
.movie-card a:hover .play-ring {
  opacity: 1;
}

.movie-card a:hover .play-ring {
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  display: grid;
  gap: 6px;
}

.card-body strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card a:hover strong {
  color: var(--red);
}

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

.card-body p {
  margin: 0;
}

.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span,
.detail-tags span,
.filter-chip {
  background: #f1f5f9;
  color: #475569;
  padding: 5px 9px;
  font-size: 12px;
}

.feature-panel,
.category-panel,
.search-panel,
.detail-panel,
.player-panel {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.feature-panel {
  padding: 32px;
}

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

.category-tile {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 25%),
    linear-gradient(135deg, #111827, #dc2626 58%, #db2777);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.18);
}

.category-tile strong {
  font-size: 20px;
}

.category-tile span,
.category-tile p {
  color: rgba(255, 255, 255, 0.82);
}

.category-tile p {
  margin: 10px 0 0;
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease;
}

.rank-row a:hover {
  transform: translateX(4px);
}

.rank-num {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
}

.rank-title {
  display: grid;
  gap: 2px;
}

.rank-title strong {
  color: #0f172a;
}

.rank-title small,
.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #334155;
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.22);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: #000000;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.12));
}

.player-cover span {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

.detail-panel,
.player-panel {
  padding: 28px;
}

.detail-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.one-line {
  margin: 20px 0;
  border-radius: 18px;
  padding: 18px;
  color: #334155;
  background: linear-gradient(135deg, #f8fafc, #fff1f2);
  font-weight: 800;
}

.article-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #334155;
  white-space: pre-line;
}

.review-box {
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.detail-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 20px;
}

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

.aside-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.aside-card div {
  padding: 18px;
}

.aside-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.related-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  color: #0f172a;
  line-height: 1.35;
}

.related-item small {
  color: var(--muted);
}

.search-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 24px;
}

.search-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 180px);
  gap: 12px;
}

.search-fields input,
.search-fields select,
.category-filter input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
}

.search-fields input:focus,
.search-fields select:focus,
.category-filter input:focus {
  border-color: rgba(220, 38, 38, 0.42);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.09);
}

.category-filter {
  margin: 20px 0 28px;
}

.result-status {
  color: var(--muted);
  font-weight: 700;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827 60%, #1f2937);
}

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

.footer-brand {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 10px 0 0;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  font-size: 14px;
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(1.08);
  }
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .detail-aside {
    position: static;
  }

  .search-fields {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .brand-text small {
    display: none;
  }

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

  .hero-content {
    bottom: 64px;
  }

  .hero-control {
    display: none;
  }

  .hero-search {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .feature-panel,
  .detail-panel,
  .player-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }

  .rank-row a {
    grid-template-columns: 48px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

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

  .related-item {
    grid-template-columns: 92px 1fr;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.is-dense {
    grid-template-columns: 1fr;
  }

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