:root {
  --coral-600: #ed3010;
  --coral-500: #ff5533;
  --coral-400: #ff7c64;
  --peach-50: #fff7f3;
  --peach-100: #ffe8e1;
  --peach-200: #ffd0c4;
  --ink: #18181b;
  --muted: #6b7280;
  --card: #ffffff;
  --line: rgba(255, 85, 51, 0.16);
  --shadow: 0 20px 50px rgba(255, 85, 51, 0.16);
  --shadow-strong: 0 30px 70px rgba(24, 24, 27, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, var(--peach-50), #ffffff 32%, var(--peach-50));
  min-height: 100vh;
}

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

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

main {
  overflow: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: linear-gradient(90deg, var(--coral-500), var(--coral-400));
  box-shadow: 0 12px 30px rgba(237, 48, 16, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark,
.footer-logo span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand-text {
  font-size: 20px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff2ed;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 3px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 22px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--peach-200);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--coral-600);
  background: var(--peach-100);
}

.hero {
  position: relative;
  min-height: 760px;
  height: 76vh;
  padding-top: 64px;
  color: #ffffff;
  overflow: hidden;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 22, 0.88), rgba(18, 18, 22, 0.48), rgba(255, 85, 51, 0.2)), linear-gradient(0deg, rgba(18, 18, 22, 0.7), rgba(18, 18, 22, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px 130px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--peach-100);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.detail-copy h1,
.slim-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p,
.detail-copy p,
.slim-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--coral-600), var(--coral-400));
  box-shadow: 0 16px 30px rgba(237, 48, 16, 0.28);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.btn-light {
  color: var(--coral-600);
  background: #ffffff;
  border-color: var(--peach-200);
}

.hero-poster {
  position: relative;
  aspect-ratio: 4 / 5.4;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

.hero-poster span,
.movie-play-badge,
.player-cover span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  font-size: 30px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  width: 36px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 24px;
  width: min(720px, calc(100% - 48px));
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-strong);
}

.hero-search input,
.filter-panel input {
  min-width: 0;
  flex: 1;
  border: 1px solid transparent;
  outline: none;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--peach-50);
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 900;
  background: var(--coral-500);
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 0;
}

.content-section:last-of-type {
  padding-bottom: 72px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--peach-100);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(24, 24, 27, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.movie-card-large .movie-cover-wrap {
  aspect-ratio: 16 / 10;
}

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

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

.movie-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.movie-play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: var(--coral-500);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.movie-duration,
.movie-category-chip {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.68);
}

.movie-duration {
  left: 12px;
}

.movie-category-chip {
  right: 12px;
  background: var(--coral-500);
}

.movie-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-desc {
  color: var(--muted);
  line-height: 1.7;
  min-height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--coral-600);
  font-size: 13px;
  font-weight: 800;
}

.soft-panel,
.rank-panel {
  max-width: 1240px;
  margin-top: 72px;
  padding: 44px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--peach-100), #ffffff 48%, #fff4ef);
  box-shadow: var(--shadow);
}

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

.category-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

.category-visual img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  background: var(--peach-100);
}

.category-card strong {
  font-size: 20px;
  font-weight: 900;
}

.category-card span:last-child {
  color: var(--muted);
  line-height: 1.7;
}

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

.rank-list-page {
  gap: 18px;
}

.rank-link {
  display: grid;
  grid-template-columns: 64px 132px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.06);
}

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

.rank-cover {
  width: 132px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  background: var(--peach-100);
}

.rank-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-copy strong {
  font-size: 19px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.65;
}

.rank-copy span {
  color: var(--coral-600);
  font-weight: 800;
}

.section-more {
  margin-top: 24px;
  text-align: center;
}

.page-hero,
.detail-hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(120deg, #1f1715, var(--coral-600));
}

.slim-hero {
  margin-top: 64px;
  padding: 110px 24px 76px;
}

.slim-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.filter-panel {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.08);
}

.filter-panel input {
  min-height: 48px;
  border-color: var(--peach-200);
  background: #ffffff;
}

.no-results {
  padding: 30px;
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
}

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

.detail-hero {
  min-height: 660px;
  padding-top: 64px;
  overflow: hidden;
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 22, 0.92), rgba(18, 18, 22, 0.58), rgba(237, 48, 16, 0.34));
}

.detail-layout {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 596px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
  gap: 50px;
}

.detail-poster-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5.3;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.player-section {
  max-width: 1100px;
  margin: -80px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #09090b;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(255, 85, 51, 0.22), rgba(0, 0, 0, 0.66));
}

.player-cover span {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  color: var(--coral-500);
  font-size: 38px;
  background: rgba(255, 255, 255, 0.92);
}

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

.detail-content {
  padding-top: 56px;
}

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

.article-card,
.info-card {
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(24, 24, 27, 0.08);
}

.article-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.article-card p {
  margin: 0 0 24px;
  color: #374151;
  line-height: 1.95;
}

.info-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: -10px 0 0;
  color: var(--ink);
  line-height: 1.7;
}

.info-card a {
  color: var(--coral-600);
  font-weight: 900;
}

.page-switch {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.page-switch a {
  flex: 1;
  padding: 18px 20px;
  border-radius: 18px;
  color: var(--coral-600);
  font-weight: 900;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(24, 24, 27, 0.08);
}

.site-footer {
  margin-top: 50px;
  padding: 54px 24px 26px;
  border-top: 1px solid var(--peach-200);
  background: linear-gradient(180deg, #ffffff, var(--peach-50));
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--coral-600);
  font-size: 20px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #4b5563;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--coral-600);
}

.footer-bottom {
  max-width: 1280px;
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--peach-200);
  color: var(--muted);
}

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

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

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

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-content,
  .detail-layout,
  .detail-main,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 32px;
    padding-top: 52px;
  }

  .hero-poster,
  .detail-poster-card {
    max-width: 320px;
    width: 100%;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .library-grid,
  .category-page-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .soft-panel,
  .rank-panel {
    padding: 26px;
    border-radius: 26px;
  }

  .rank-link {
    grid-template-columns: 48px 96px minmax(0, 1fr);
  }

  .rank-cover {
    width: 96px;
  }

  .page-switch,
  .filter-panel {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 18px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .slim-hero h1 {
    font-size: 36px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search input,
  .hero-search button {
    min-height: 46px;
  }

  .content-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .library-grid,
  .category-page-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-link {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .rank-cover {
    display: none;
  }

  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-section {
    margin-top: -46px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .article-card,
  .info-card {
    padding: 22px;
  }
}
