* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fffbeb 100%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f97316, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  padding: 26px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: #f97316;
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #f97316;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.search-form,
.mobile-search,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-form input,
.mobile-search input,
.big-search input {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  outline: 0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-form input {
  width: 220px;
  padding: 10px 16px;
}

.search-form input:focus,
.mobile-search input:focus,
.big-search input:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

.search-form button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(90deg, #f97316, #ec4899);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #374151;
  font-weight: 800;
}

.mobile-panel {
  display: none;
  border-top: 1px solid #ffedd5;
  background: #fff;
}

.mobile-panel.open {
  display: block;
}

.mobile-nav {
  display: grid;
  padding: 14px 20px;
  gap: 4px;
}

.mobile-search {
  padding: 0 20px 18px;
}

.mobile-search input {
  width: 100%;
  padding: 11px 16px;
}

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

.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 0.7s ease;
  background-image: var(--cover), linear-gradient(135deg, #111827, #7c2d12);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 76px;
  color: #fff;
}

.hero-kicker,
.page-hero span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 16px;
  color: #fff;
  background: #f97316;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.3);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.8;
  color: #e5e7eb;
}

.hero-tags,
.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-block a {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

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

.hero-actions.compact {
  justify-content: center;
}

.primary-btn,
.ghost-btn,
.cta-section a,
.row-play,
.detail-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #fff;
  background: #f97316;
  padding: 14px 28px;
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  padding: 14px 28px;
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.cta-section a:hover,
.row-play:hover,
.detail-category:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  font-size: 36px;
  line-height: 1;
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section,
.split-section,
.year-block {
  margin-top: 64px;
}

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

.section-heading h2,
.ranking-panel h2,
.side-card h2,
.story-block h2,
.tag-block h2,
.year-block h2 {
  margin: 0;
  color: #1f2937;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
  line-height: 1.7;
}

.section-more {
  flex-shrink: 0;
  color: #f97316;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-image: var(--cover), linear-gradient(135deg, #fb923c, #ec4899);
  background-size: cover;
  background-position: center;
}

.poster::after,
.ranking-poster::after,
.rank-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .poster::after,
.ranking-row:hover .ranking-poster::after,
.rank-item:hover .rank-cover::after {
  background: rgba(0, 0, 0, 0.3);
}

.category-pill {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: #f97316;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  border-radius: 8px;
  padding: 5px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  display: block;
  padding: 18px;
}

.card-body h3,
.card-body strong {
  display: block;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  color: #111827;
  transition: color 0.25s ease;
}

.movie-card:hover h3,
.movie-card:hover strong,
.rank-item:hover strong,
.ranking-row:hover h2 a {
  color: #f97316;
}

.card-body p,
.card-body em,
.ranking-content p,
.side-card p,
.story-block p,
.category-overview p,
.category-card em {
  display: block;
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
  font-style: normal;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}

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

.category-card,
.category-overview {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  color: #fff;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #f97316, #ec4899);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.category-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.category-card strong,
.category-overview h2 {
  position: relative;
  z-index: 2;
  display: block;
  margin: 18px 0 8px;
  font-size: 24px;
}

.category-card em,
.category-overview p {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.category-link,
.category-main strong {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.category-bg {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 150px;
  height: 110px;
  opacity: 0.16;
  border-radius: 24px;
  background-image: var(--cover);
  background-size: cover;
  background-position: center;
  transform: rotate(-10deg);
}

.tone-orange {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.tone-pink,
.tone-rose {
  background: linear-gradient(135deg, #ec4899, #f43f5e);
}

.tone-red {
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.tone-amber {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.tone-blue,
.tone-cyan {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.tone-slate {
  background: linear-gradient(135deg, #334155, #7c2d12);
}

.tone-green {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

.tone-violet {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.highlight-blue,
.romance-panel {
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(207, 250, 254, 0.82));
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 24px;
}

.romance-panel {
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.95), rgba(255, 228, 230, 0.88));
}

.horizontal-list,
.side-rank-list,
.compact-list {
  display: grid;
  gap: 14px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: stretch;
  border-radius: 16px;
}

.poster.small {
  height: 132px;
  aspect-ratio: auto;
}

.ranking-panel,
.side-card,
.detail-info,
.ranking-row,
.year-block {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
  padding: 24px;
}

.compact-rank {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
  transition: background 0.25s ease;
}

.compact-rank:hover {
  background: #fff7ed;
}

.compact-rank span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-weight: 900;
}

.compact-rank strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-rank em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.cta-section {
  margin-top: 64px;
  border-radius: 30px;
  padding: 54px 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 22px 58px rgba(249, 115, 22, 0.24);
}

.cta-icon {
  width: 66px;
  height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.cta-section h2 {
  margin: 18px 0 12px;
  font-size: 34px;
}

.cta-section p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-section a {
  color: #f97316;
  background: #fff;
  padding: 13px 28px;
}

.page-hero {
  margin-bottom: 44px;
  border-radius: 28px;
  padding: 58px 28px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 20px 58px rgba(249, 115, 22, 0.18);
}

.page-hero h1 {
  margin: 18px auto 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.page-hero p {
  width: min(720px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
  gap: 22px;
}

.mini-title-list {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 8px;
}

.mini-title-list span {
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 62px 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.12);
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  font-weight: 900;
  font-size: 18px;
}

.ranking-poster {
  position: relative;
  display: block;
  height: 110px;
  border-radius: 16px;
  background-image: var(--cover), linear-gradient(135deg, #fb923c, #ec4899);
  background-size: cover;
  background-position: center;
}

.ranking-content h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-content p {
  margin-bottom: 8px;
}

.row-play {
  color: #fff;
  background: #f97316;
  padding: 11px 18px;
}

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

.year-block {
  padding: 26px;
}

.year-block h2 {
  margin-bottom: 20px;
}

.archive-links a {
  display: grid;
  gap: 6px;
  border: 1px solid #ffedd5;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fffaf5;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.archive-links a:hover {
  border-color: #fb923c;
  background: #fff7ed;
}

.archive-links strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.archive-links span {
  color: #6b7280;
  font-size: 12px;
}

.big-search {
  width: min(680px, 100%);
  margin: 30px auto 0;
}

.big-search input {
  flex: 1;
  padding: 15px 18px;
}

.big-search button {
  padding: 15px 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  color: #6b7280;
  font-weight: 700;
}

.breadcrumb a {
  color: #f97316;
}

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

.detail-main {
  min-width: 0;
}

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

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.24), rgba(0, 0, 0, 0.58));
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-overlay span {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.34);
  font-size: 30px;
}

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

.detail-info {
  margin-top: 24px;
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.05em;
}

.detail-category {
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
  padding: 10px 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid #ffedd5;
}

.detail-actions button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #374151;
  background: #fff7ed;
  font-weight: 800;
  transition: background 0.25s ease, color 0.25s ease;
}

.detail-actions button:first-child {
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.detail-actions button:hover {
  color: #f97316;
  background: #ffedd5;
}

.story-block,
.tag-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #ffedd5;
}

.story-block h2,
.tag-block h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

.gradient-block {
  border: 0;
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

.tag-block a {
  color: #ea580c;
  background: #ffedd5;
}

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

.side-card {
  padding: 20px;
}

.poster.tall {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  margin-bottom: 16px;
}

.rank-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.rank-cover {
  position: relative;
  height: 74px;
  border-radius: 12px;
  overflow: hidden;
  background-image: var(--cover), linear-gradient(135deg, #fb923c, #ec4899);
  background-size: cover;
  background-position: center;
}

.rank-info {
  min-width: 0;
}

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

.rank-info strong {
  overflow: hidden;
  margin-bottom: 4px;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info span {
  margin-top: 4px;
  color: #9ca3af;
  font-size: 12px;
}

.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 36px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: #d1d5db;
  line-height: 1.8;
}

.footer-logo .brand-text {
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: #fb923c;
  font-size: 18px;
}

.footer-links a {
  display: block;
  margin: 10px 0;
  color: #d1d5db;
  transition: color 0.25s ease;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

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

  .grid-3,
  .category-overview-grid,
  .split-section,
  .detail-layout,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-side {
    position: static;
  }
}

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    min-height: 66px;
  }

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

  .hero {
    height: 460px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 34px 28px;
  }

  .hero-arrow {
    display: none;
  }

  .grid-4,
  .grid-3,
  .category-grid,
  .category-overview-grid,
  .split-section,
  .detail-layout,
  .footer-inner,
  .archive-links {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .footer-bottom,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-overview {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .ranking-row {
    grid-template-columns: 48px 112px minmax(0, 1fr);
  }

  .row-play {
    grid-column: 3;
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 18px;
  }

  .hero {
    height: 420px;
  }

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

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section,
  .split-section,
  .year-block {
    margin-top: 38px;
  }

  .section-heading h2,
  .ranking-panel h2,
  .year-block h2 {
    font-size: 25px;
  }

  .movie-card.horizontal {
    grid-template-columns: 1fr;
  }

  .poster.small {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .ranking-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .ranking-poster {
    display: none;
  }

  .row-play {
    grid-column: 2;
  }

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

  .detail-info,
  .side-card,
  .highlight-blue,
  .romance-panel,
  .year-block {
    padding: 18px;
  }

  .player-overlay span {
    width: 62px;
    height: 62px;
  }
}
