:root {
  --amber: #d97706;
  --orange: #f97316;
  --rose: #e11d48;
  --blue: #2563eb;
  --purple: #9333ea;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #fff7ed;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
  min-height: 100vh;
}

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: 100;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.12);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.24);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 16px 36px rgba(217, 119, 6, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #92400e, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-subtitle {
  color: #78716c;
  font-size: 12px;
  margin-top: 4px;
}

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

.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 2px;
  border-radius: 99px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #b45309;
  background: rgba(253, 230, 138, 0.38);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(253, 230, 138, 0.55);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #78350f;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 800;
}

.mobile-link:hover,
.mobile-link.active {
  color: #b45309;
  background: #ffedd5;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 76vh;
  background: #111827;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68) saturate(1.1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 34%, rgba(245, 158, 11, 0.36), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 1) 0%, rgba(17, 24, 39, 0) 38%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 132px;
}

.hero-copy {
  width: min(760px, 100%);
  color: white;
  animation: fadeRise 0.8s ease both;
}

.hero-tags,
.hero-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-tags span,
.hero-meta span,
.hero-meta a {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.hero-tags span:first-child {
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero h1 {
  margin: 18px 0 8px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.48);
}

.hero h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.3vw, 46px);
  color: #fef3c7;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.hero p {
  margin: 0 0 18px;
  max-width: 760px;
  color: #e5e7eb;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.75;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(249, 115, 22, 0.32);
}

.btn.ghost {
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 32px;
  background: #fbbf24;
}

.hero-rail {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 86px;
  z-index: 3;
  width: 360px;
  display: grid;
  gap: 10px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 18px;
  color: white;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.78;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.hero-mini img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-mini strong,
.hero-mini em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-mini strong {
  font-size: 14px;
}

.hero-mini em {
  margin-top: 3px;
  color: #d1d5db;
  font-size: 12px;
  font-style: normal;
}

.hero-mini:hover,
.hero-mini.is-active {
  opacity: 1;
  transform: translateX(-4px);
  background: rgba(217, 119, 6, 0.45);
}

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

.band {
  margin: 0;
  padding: 72px 0;
  background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

.band.rose {
  background: linear-gradient(135deg, #fff1f2, #faf5ff);
}

.band .section,
.band .page-section {
  padding: 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
}

.section-head > span {
  width: 6px;
  height: 44px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--amber), var(--orange));
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #1f2937;
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  padding: 9px 14px;
  border-radius: 999px;
  color: #b45309;
  background: #ffedd5;
  font-weight: 800;
}

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

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

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

.poster-link {
  display: grid;
  gap: 10px;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.14);
  background: #111827;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card img,
.category-tile img,
.wide-card img,
.compact-card img,
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.26);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-year,
.poster-region {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.64);
  backdrop-filter: blur(10px);
}

.poster-year {
  right: 10px;
}

.poster-region {
  left: 10px;
}

.poster-link:hover .poster-frame {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(31, 41, 55, 0.22);
}

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

.poster-link:hover .poster-shade,
.poster-link:hover .poster-play {
  opacity: 1;
}

.poster-link:hover .poster-play {
  transform: translate(-50%, -50%) scale(1);
}

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

.card-body strong {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.poster-link:hover .card-body strong {
  color: #b45309;
}

.card-body em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #78716c;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fef3c7;
}

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

.feature-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.feature-card span {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.feature-card strong {
  font-size: 18px;
}

.feature-card em {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}

.scroller {
  overflow-x: auto;
  padding: 2px 0 18px;
  scrollbar-width: thin;
}

.scroll-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.wide-card {
  width: 310px;
  flex: 0 0 auto;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.wide-card img {
  height: 180px;
}

.wide-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.wide-body strong {
  font-size: 17px;
}

.wide-body em {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wide-body span {
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 144px 1fr;
  gap: 16px;
  align-items: center;
  background: white;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.compact-card img {
  height: 92px;
  border-radius: 16px;
}

.compact-card span {
  min-width: 0;
}

.compact-card strong,
.compact-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card strong {
  white-space: nowrap;
  color: #1f2937;
}

.compact-card em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  border-radius: 26px;
  overflow: hidden;
  color: white;
  background: #111827;
  box-shadow: 0 16px 36px rgba(31, 41, 55, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile img {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  transition: transform 0.5s ease;
}

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

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

.category-tile span {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

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

.category-tile em {
  color: #e5e7eb;
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 56px;
  border-radius: 32px;
  color: white;
  background:
    radial-gradient(circle at 18% 30%, rgba(251, 191, 36, 0.45), transparent 26%),
    linear-gradient(135deg, #111827, #7c2d12 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-title h1,
.page-hero h1 {
  margin: 0;
}

.page-hero h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: #f3f4f6;
  line-height: 1.75;
  font-size: 18px;
}

.search-panel {
  margin: 24px 0 28px;
  display: grid;
  gap: 14px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  background: white;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  color: var(--text);
  background: transparent;
}

.search-box button,
.filter-pill {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  color: #92400e;
  background: #ffedd5;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.search-box button:hover,
.filter-pill:hover,
.filter-pill.active {
  color: white;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transform: translateY(-1px);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: white;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}

.empty-state.is-visible {
  display: block;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.info-panel,
.detail-card,
.review-card,
.related-panel {
  background: white;
  border-radius: 26px;
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.1);
}

.rank-panel {
  padding: 20px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 108px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-num {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-item img {
  width: 108px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-copy strong,
.rank-copy span,
.rank-copy em {
  display: block;
}

.rank-copy strong {
  font-size: 17px;
  color: #1f2937;
}

.rank-copy span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.rank-copy em {
  margin-top: 6px;
  color: #b45309;
  font-style: normal;
  font-weight: 900;
  font-size: 13px;
}

.breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  color: white;
  background: #020617;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.08);
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.player-cover:hover img {
  transform: scale(1.04);
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.28), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.18));
}

.play-large {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translate(-50%, -50%);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.detail-card,
.review-card,
.related-panel,
.info-panel {
  padding: 24px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 900;
}

.detail-card h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.14;
}

.detail-card .lead {
  color: #374151;
  font-size: 18px;
  line-height: 1.75;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
  color: var(--muted);
}

.meta-line span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
}

.detail-card h2,
.review-card h2,
.related-panel h2,
.info-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-card p,
.review-card p,
.info-panel p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-side {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
}

.related-card img {
  height: 76px;
  border-radius: 14px;
}

.related-card strong,
.related-card span {
  display: block;
}

.related-card strong {
  color: #1f2937;
  line-height: 1.45;
}

.related-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.related-card:hover strong {
  color: #b45309;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 52%, #111827);
  padding: 56px 0 28px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

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

.site-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.75;
}

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

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fbbf24;
  transform: translateX(3px);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

@media (max-width: 1080px) {
  .hero-rail {
    display: none;
  }

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

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

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

  .detail-side {
    position: static;
  }

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

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

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

  .nav-wrap {
    min-height: 66px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero {
    min-height: 78vh;
  }

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

  .hero h1 {
    font-size: 34px;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-controls {
    bottom: 42px;
  }

  .section,
  .page-section,
  .band {
    padding: 46px 0;
  }

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .section-head {
    grid-template-columns: auto 1fr;
  }

  .section-more {
    grid-column: 2;
    width: fit-content;
  }

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

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

  .compact-card {
    grid-template-columns: 118px 1fr;
  }

  .compact-card img {
    height: 78px;
  }

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

  .rank-item {
    grid-template-columns: 46px 88px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .rank-item img {
    width: 88px;
    height: 58px;
  }

  .rank-num {
    width: 38px;
    height: 38px;
  }

  .detail-layout {
    margin-bottom: 46px;
  }

  .detail-card,
  .review-card,
  .related-panel,
  .info-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .related-card {
    grid-template-columns: 102px 1fr;
  }

  .related-card img {
    height: 68px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .movie-grid,
  .movie-grid.large {
    gap: 12px;
  }

  .poster-frame {
    border-radius: 16px;
  }

  .card-body strong {
    font-size: 14px;
  }

  .wide-card {
    width: 260px;
  }
}
