:root {
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #ef4444;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --card: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 24px 54px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container-custom {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #111827 0%, #1f2937 48%, #111827 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.nav-shell {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-logo span {
  font-size: 20px;
}

.logo-icon {
  color: var(--orange);
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-logo:hover .logo-icon {
  color: #facc15;
  transform: scale(1.06);
}

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

.nav-link {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px 16px;
  background: rgba(17, 24, 39, 0.98);
}

.mobile-menu.open {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.mobile-link {
  display: block;
  padding: 11px 0;
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--orange);
}

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  z-index: -3;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.72) 44%, rgba(0, 0, 0, 0.50));
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  background: linear-gradient(0deg, #f9fafb, rgba(249, 250, 251, 0));
  z-index: -1;
}

.hero-content {
  width: min(780px, 100%);
  padding: 80px 0 110px;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-mark {
  width: 80px;
  height: 80px;
  color: var(--orange);
  margin-bottom: 24px;
  animation: pulse 2.2s ease-in-out infinite;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.15);
  color: #fed7aa;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin-bottom: 18px;
}

.hero-title-sub {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 3vw, 42px);
  color: #fed7aa;
  letter-spacing: -0.04em;
}

.hero p {
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.65;
  max-width: 760px;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 16px 30px rgba(239, 68, 68, 0.30);
}

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

.btn-primary:hover {
  background: linear-gradient(90deg, var(--orange-dark), #dc2626);
  box-shadow: 0 22px 40px rgba(239, 68, 68, 0.36);
}

.btn-secondary {
  color: #ffffff;
  background: #1f2937;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.20);
}

.btn-secondary:hover {
  background: #374151;
}

.btn-ghost {
  color: #f97316;
  background: #fff7ed;
}

.category-strip {
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 20px;
  color: #ffffff;
  background: #f97316;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12));
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.48;
}

.category-tile > div {
  position: relative;
  z-index: 1;
}

.tile-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.category-tile h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.category-tile p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.tone-red { background: #ef4444; }
.tone-blue { background: #2563eb; }
.tone-green { background: #16a34a; }
.tone-purple { background: #7c3aed; }
.tone-slate { background: #334155; }
.tone-amber { background: #d97706; }
.tone-cyan { background: #0891b2; }

.page-hero {
  padding: 72px 0;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.32), transparent 30%), linear-gradient(90deg, #111827, #1f2937 54%, #111827);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 16px;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: #d1d5db;
  font-size: 18px;
  line-height: 1.75;
}

.section {
  padding: 64px 0;
}

.section.tight {
  padding: 42px 0;
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin-top: 8px;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: var(--orange);
  font-weight: 800;
}

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

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

.movie-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.poster-frame,
.large-poster,
.list-poster {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.large-poster {
  height: 320px;
}

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

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

.poster-frame::after,
.list-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
}

.movie-card:hover .poster-frame::after,
.movie-card:hover .list-poster::after {
  background: rgba(0, 0, 0, 0.38);
}

.large-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}

.year-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.year-badge.small {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
}

.hover-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hover-play.compact {
  color: #ffffff;
}

.movie-card:hover .hover-play {
  opacity: 1;
}

.large-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
}

.large-copy h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.large-copy p {
  color: rgba(255, 255, 255, 0.88);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.list-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--orange-dark);
}

.card-body p,
.list-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

.card-meta span:first-child {
  flex-shrink: 0;
  padding: 5px 8px;
  border-radius: 8px;
  color: #374151;
  background: #f3f4f6;
}

.card-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.list-card a {
  display: flex;
  gap: 16px;
}

.list-poster {
  width: 190px;
  min-height: 128px;
  flex-shrink: 0;
}

.list-copy {
  flex: 1;
  padding: 14px 18px 14px 0;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 150px 150px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 18px;
  color: #6b7280;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #9ca3af;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.player-section {
  background: #000000;
  padding: 34px 0;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #000000;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 18px 44px rgba(239, 68, 68, 0.42);
  font-size: 34px;
  line-height: 1;
  padding-left: 4px;
}

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

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

.detail-card,
.side-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 28px;
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.meta-pills span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
  font-weight: 700;
}

.meta-pills span:first-child {
  color: #ea580c;
  background: #ffedd5;
}

.detail-content {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.detail-content h2 {
  margin: 24px 0 10px;
  font-size: 22px;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 12px;
}

.review-box {
  padding: 18px;
  border-radius: 16px;
  background: #f9fafb;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 13px;
}

.side-card {
  padding: 20px;
}

.side-card h2,
.side-card h3 {
  font-size: 21px;
  margin-bottom: 16px;
}

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

.side-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.side-item img {
  width: 86px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  background: #111827;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 14px;
}

.side-item span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.ranking-row .list-card {
  width: 100%;
}

.site-footer {
  margin-top: 48px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827 0%, #030712 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-logo {
  margin-bottom: 14px;
}

.footer-logo span {
  font-size: 18px;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  padding-bottom: 26px;
  color: #6b7280;
  font-size: 13px;
}

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

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

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

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

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 540px;
  }

  .hero-content {
    padding: 68px 0 96px;
  }

  .category-strip {
    margin-top: -28px;
  }

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

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

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


@media (max-width: 640px) {
  .container-custom {
    padding: 0 14px;
  }

  .hero-actions,
  .section-heading,
  .list-card a {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-mark {
    width: 60px;
    height: 60px;
  }

  .category-grid,
  .tile-grid,
  .movie-grid,
  .movie-grid.large-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .list-poster {
    width: 100%;
    height: 190px;
  }

  .list-copy {
    padding: 16px;
  }

  .detail-card {
    padding: 20px;
  }

  .player-section {
    padding: 18px 0;
  }

  .player-frame {
    border-radius: 12px;
  }

  .ranking-row {
    grid-template-columns: 1fr;
  }

  .list-rank {
    margin-right: 0;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .play-overlay span {
    width: 76px;
    height: 76px;
    font-size: 28px;
  }
}
