:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-cyan: #06b6d4;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f8fafc;
  --color-line: #e5e7eb;
  --shadow-card: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  color: #ffffff;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-cyan));
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.45);
}

.brand-name {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.site-header.is-scrolled .brand-name,
.site-header.is-open .brand-name {
  text-shadow: none;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
  color: #ffffff;
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active,
.site-header.is-open .nav-link:hover,
.site-header.is-open .nav-link.is-active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.site-header.is-scrolled .menu-button,
.site-header.is-open .menu-button {
  background: #f3f4f6;
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--color-text);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  color: var(--color-primary);
  background: #eff6ff;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 48%, #14b8a6);
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.05);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 40%, rgba(6, 182, 212, 0.36), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(37, 99, 235, 0.68) 45%, rgba(20, 184, 166, 0.54)),
    rgba(0, 0, 0, 0.28);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 96px;
  width: min(520px, calc(100% - 48px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.32);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  animation: fadeUp 0.8s ease both;
}

.hero-kicker,
.detail-kicker,
.section-heading span,
.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading span,
.page-hero span {
  color: var(--color-primary);
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: var(--color-primary);
  background: #eff6ff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

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

.primary-button {
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.hero-center {
  position: relative;
  z-index: 3;
  width: min(900px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  text-align: center;
}

.hero-center h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.75s ease both;
}

.hero-center p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  animation: fadeUp 0.75s 0.08s ease both;
}

.hero-search {
  width: min(680px, 100%);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  animation: fadeUp 0.75s 0.16s ease both;
}

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

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

.hero-search button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: var(--color-primary);
  background: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.hero-quick-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.scroll-hint {
  position: absolute;
  z-index: 4;
  bottom: 28px;
  left: 50%;
  width: 28px;
  height: 44px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  transform: translateX(-50%);
}

.scroll-hint span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: scrollHint 1.4s ease infinite;
}

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

.section-soft {
  position: relative;
}

.section-soft::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.section-heading {
  width: min(720px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading-row {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.text-link {
  color: var(--color-primary);
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
  opacity: 0.88;
}

.play-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  height: 40px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.92);
  font-weight: 900;
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: rgba(15, 23, 42, 0.72);
  font-size: 0.76rem;
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.movie-card-body h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-card-body h2 a:hover {
  color: var(--color-primary);
}

.movie-card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 0.92rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card-compact .movie-card-body p {
  min-height: 44px;
}

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

.category-card,
.category-overview-card a {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card img,
.category-overview-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  mix-blend-mode: luminosity;
}

.category-card::after,
.category-overview-card a::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.28), transparent 36%);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card strong,
.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.category-card small,
.category-overview-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

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

.category-overview-card a {
  min-height: 270px;
}

.category-preview-images {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
}

.category-preview-images img {
  position: static;
  width: 64px;
  height: 92px;
  margin-left: -18px;
  border: 3px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  opacity: 1;
  mix-blend-mode: normal;
  object-fit: cover;
}

.gradient-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.gradient-purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.gradient-pink { background: linear-gradient(135deg, #db2777, #fb7185); }
.gradient-orange { background: linear-gradient(135deg, #ea580c, #ef4444); }
.gradient-green { background: linear-gradient(135deg, #16a34a, #14b8a6); }
.gradient-cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.gradient-teal { background: linear-gradient(135deg, #0d9488, #22c55e); }
.gradient-amber { background: linear-gradient(135deg, #d97706, #f97316); }
.gradient-red { background: linear-gradient(135deg, #dc2626, #be123c); }
.gradient-indigo { background: linear-gradient(135deg, #4f46e5, #2563eb); }
.gradient-violet { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.gradient-slate { background: linear-gradient(135deg, #334155, #0f172a); }

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

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

.rank-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.rank-number {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.rank-info h2 a:hover {
  color: var(--color-primary);
}

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

.page-main {
  padding-top: 72px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  min-height: 330px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-radius: 0 0 32px 32px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4 55%, #14b8a6);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 72px 42px 50px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
}

.small-hero::after,
.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
    rgba(15, 23, 42, 0.16);
}

.category-hero {
  min-height: 420px;
}

.category-hero img {
  position: absolute;
  right: 0;
  top: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  mix-blend-mode: luminosity;
}

.filter-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
}

.filter-grid span {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  outline: 0;
  color: var(--color-text);
  background: #f8fafc;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.hidden-by-filter {
  display: none !important;
}

.detail-main {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.08);
  transform: scale(1.03);
  opacity: 0.62;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(6, 182, 212, 0.34), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(37, 99, 235, 0.74) 45%, rgba(15, 23, 42, 0.82));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 26px;
}

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

.detail-section {
  padding-bottom: 36px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25);
  aspect-ratio: 16 / 9;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.26), transparent 28%),
    rgba(2, 6, 23, 0.42);
  cursor: pointer;
}

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

.play-ring {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  font-size: 2rem;
}

.play-overlay strong {
  font-size: 1.12rem;
  letter-spacing: 0.04em;
}

.detail-content-section {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 28px;
  align-items: start;
  padding-top: 22px;
}

.detail-article,
.detail-side-card {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.detail-article p {
  margin: 0 0 26px;
  color: #374151;
  font-size: 1.05rem;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.detail-side-card {
  padding: 24px;
  position: sticky;
  top: 94px;
}

.detail-side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.detail-side-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.detail-side-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-side-card dt {
  color: #64748b;
  font-weight: 800;
}

.detail-side-card dd {
  margin: 0;
  color: var(--color-text);
}

.detail-side-card a {
  color: var(--color-primary);
  font-weight: 900;
}

.site-footer {
  margin-top: 36px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #020617);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding: 50px 0 34px;
}

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

.footer-brand p {
  max-width: 520px;
  margin: 0;
  color: #9ca3af;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 0.92rem;
}

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

@keyframes scrollHint {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

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

  .category-overview-grid,
  .rank-grid-home,
  .detail-content-section {
    grid-template-columns: 1fr;
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }

  .detail-side-card {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

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

  .header-inner {
    height: 64px;
  }

  .hero-center {
    min-height: 82vh;
    padding-top: 84px;
    justify-content: flex-start;
    text-align: left;
    align-items: stretch;
  }

  .hero-center h1 {
    margin-top: 28px;
  }

  .hero-copy {
    right: 16px;
    bottom: 78px;
    left: 16px;
    width: auto;
    padding: 20px;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .hero-dots {
    right: 16px;
    bottom: 28px;
  }

  .scroll-hint {
    display: none;
  }

  .section {
    padding: 50px 0;
  }

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

  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-card-body {
    padding: 14px;
  }

  .movie-card-body p {
    min-height: 42px;
    font-size: 0.86rem;
  }

  .category-card,
  .category-overview-card a {
    min-height: 190px;
    padding: 18px;
  }

  .rank-card {
    grid-template-columns: 86px 1fr;
  }

  .page-main {
    padding-top: 64px;
  }

  .page-hero {
    width: 100%;
    border-radius: 0 0 24px 24px;
  }

  .page-hero > div {
    padding: 58px 18px 42px;
  }

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

  .detail-hero {
    min-height: auto;
  }

  .detail-hero-inner {
    padding: 92px 0 52px;
  }

  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

  .detail-content-section {
    gap: 18px;
  }

  .detail-article,
  .detail-side-card {
    padding: 20px;
  }

  .player-card {
    border-radius: 18px;
  }

  .play-ring {
    width: 70px;
    height: 70px;
  }

  .footer-inner,
  .footer-links {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 1.02rem;
  }

  .movie-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .movie-card .poster-link {
    height: 100%;
    aspect-ratio: auto;
  }

  .movie-card-body p {
    -webkit-line-clamp: 3;
  }
}
