:root {
  --coral-600: #ed3010;
  --coral-500: #ff5533;
  --coral-400: #ff7c64;
  --peach-400: #ff9374;
  --peach-200: #ffd4c7;
  --peach-100: #ffe8e1;
  --peach-50: #fff5f2;
  --ink: #111827;
  --muted: #6b7280;
  --line: rgba(255, 147, 116, 0.28);
  --shadow: 0 24px 60px rgba(255, 85, 51, 0.18);
  --radius: 24px;
  --sunrise: linear-gradient(135deg, #ffd4c7 0%, #ffab9d 24%, #ff9374 48%, #ff7c64 72%, #ff7a47 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--peach-50) 0%, #ffffff 34%, var(--peach-50) 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 122, 71, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 10px 30px rgba(255, 85, 51, 0.18);
}

.nav-shell {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text {
  color: #ffffff;
  font-size: 21px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  background: var(--sunrise);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 255, 255, 0.45), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.45;
  background: rgba(255, 255, 255, 0.55);
}

.hero-glow.one {
  top: 12%;
  right: 8%;
}

.hero-glow.two {
  bottom: -10%;
  left: 5%;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 86px 22px 62px;
}

.hero-slide {
  display: none;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.55s ease both;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-600);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  color: var(--coral-500);
  background: rgba(255, 232, 225, 0.72);
  border-color: rgba(255, 147, 116, 0.26);
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.hero-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  line-height: 1.75;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.tag-row span {
  color: var(--coral-600);
  background: var(--peach-100);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--coral-500);
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn.subtle {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(1.5deg);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-rank {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  left: 22px;
  bottom: 26px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dots button.active {
  background: #ffffff;
}

.panel,
.section-wrap,
.category-strip,
.category-overview {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.panel {
  margin-top: 34px;
  margin-bottom: 34px;
  padding-top: 24px;
  padding-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search,
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.search-form,
.filter-bar,
.search-page-box {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select,
.search-page-box input {
  width: min(520px, 58vw);
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
}

.filter-bar select {
  width: 190px;
}

.search-form button,
.search-page-box button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  font-weight: 800;
  background: var(--sunrise);
  box-shadow: 0 14px 30px rgba(255, 85, 51, 0.22);
}

.section-wrap,
.category-strip {
  padding-top: 42px;
  padding-bottom: 42px;
}

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

.section-head h2,
.quick-search h2,
.page-hero h1,
.detail-info h1,
.content-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head.compact h2 {
  font-size: clamp(24px, 3vw, 38px);
}

.text-link {
  color: var(--coral-500);
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 212, 199, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(255, 85, 51, 0.18);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sunrise);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.68) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.74);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.year-badge,
.score-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  left: 12px;
}

.score-badge {
  right: 12px;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.movie-info p {
  min-height: 45px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.rank-no {
  color: var(--coral-500);
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-views {
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 22px 42px;
}

.page-hero.slim {
  padding-bottom: 22px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 24px;
  padding-bottom: 60px;
}

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.category-main {
  display: block;
  padding: 26px;
  background: linear-gradient(135deg, rgba(255, 245, 242, 0.94), rgba(255, 255, 255, 0.9));
}

.category-main h2 {
  margin: 14px 0 8px;
  font-size: 30px;
}

.category-main p {
  color: var(--muted);
  line-height: 1.7;
}

.category-count {
  color: var(--coral-500);
  font-weight: 900;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 26px 26px;
}

.category-samples a {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--coral-600);
  background: var(--peach-100);
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 212, 199, 0.58);
  text-align: left;
}

th {
  color: var(--coral-600);
  background: var(--peach-50);
}

.table-rank {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sunrise);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  opacity: 0.36;
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.72), rgba(237, 48, 16, 0.55));
}

.detail-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 22px 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-info .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.detail-info h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
}

.detail-tags span {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
}

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

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

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.62));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.video-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.video-overlay span {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--coral-500);
  background: #ffffff;
  font-size: 30px;
}

.video-overlay strong {
  font-size: 20px;
}

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

.content-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.content-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.88;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--peach-50), #ffffff);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand {
  color: var(--coral-500);
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
  display: block;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 28px;
  text-align: center;
}

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

@media (max-width: 1024px) {
  .card-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-poster {
    min-height: 360px;
  }

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

@media (max-width: 760px) {
  .nav-shell {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    padding-top: 13px;
    padding-bottom: 13px;
  }

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

  .main-nav {
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    color: var(--ink);
    padding: 12px;
  }

  .hero-inner {
    padding-top: 56px;
  }

  .hero-slide {
    min-height: auto;
    gap: 28px;
  }

  .hero-poster img {
    min-height: 320px;
  }

  .quick-search,
  .filter-bar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form,
  .search-page-box {
    flex-direction: column;
  }

  .search-form input,
  .filter-bar input,
  .filter-bar select,
  .search-page-box input {
    width: 100%;
  }

  .card-grid,
  .compact-grid,
  .rank-list,
  .category-overview,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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