:root {
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-soft: #dbeafe;
  --accent: #f97316;
  --accent-soft: #ffedd5;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--text);
  background: #f1f5f9;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link,
.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;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--primary);
  clip: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 45%, #1e3a8a 100%);
  box-shadow: 0 8px 24px rgba(30, 64, 175, 0.26);
}

.site-header-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text small,
.footer-brand small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

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

.desktop-nav > a,
.nav-dropdown > button {
  border: 0;
  color: #ffffff;
  background: transparent;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-dropdown:hover > button {
  color: #bfdbfe;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 210px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
}

.dropdown-panel a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-menu input,
.hero-search input,
.page-filter input {
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.header-search input::placeholder,
.mobile-menu input::placeholder,
.hero-search input::placeholder,
.page-filter input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.mobile-menu button,
.hero-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--primary);
  background: #ffffff;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-menu button:hover,
.hero-search button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-menu {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.mobile-menu form {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.mobile-menu input {
  width: 100%;
}

.mobile-menu > a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.28), transparent 18%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.08) 75%, transparent 75%, transparent);
  background-size: auto, auto, 58px 58px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 80px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #facc15;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.hero-search {
  display: flex;
  max-width: 620px;
  gap: 12px;
  margin-top: 34px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.hero-search input {
  flex: 1;
  border: 0;
  background: transparent;
}

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

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

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-showcase {
  position: relative;
  min-height: 440px;
  border-radius: 32px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-slides {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 24px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-slide a,
.hero-slide img {
  width: 100%;
  height: 100%;
}

.hero-slide img {
  object-fit: cover;
  background: linear-gradient(135deg, #1e293b, #2563eb);
}

.hero-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.82));
  backdrop-filter: blur(8px);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.content-section,
.breadcrumb,
.detail-hero,
.player-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.content-section {
  padding: 56px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.compact-heading {
  align-items: center;
  margin-bottom: 18px;
}

.section-more {
  color: var(--primary);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.category-tile,
.category-overview-card,
.notice-card,
.detail-side-card,
.detail-article,
.support-grid article,
.prose-section article,
.sitemap-group {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: auto -20px -50px auto;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: var(--primary-soft);
}

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

.category-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  font-size: 26px;
}

.category-tile strong,
.category-tile small,
.category-tile p {
  display: block;
  position: relative;
  z-index: 1;
}

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

.category-tile small {
  margin-top: 4px;
  color: var(--primary);
  font-weight: 800;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.highlighted-section {
  width: 100%;
  max-width: none;
  padding: 60px max(16px, calc((100% - var(--container)) / 2));
  background: linear-gradient(90deg, #fff7ed 0%, #fff1f2 100%);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b, #2563eb);
}

.poster-tall {
  aspect-ratio: 3 / 4;
}

.poster-wide {
  aspect-ratio: 16 / 10;
}

.poster img,
.compact-poster img,
.rank-thumb img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.image-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #172554, #2563eb 58%, #f97316);
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: rgba(220, 38, 38, 0.92);
}

.poster-year {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.movie-meta span:last-child {
  color: var(--primary);
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #1d4ed8;
  background: var(--primary-soft);
  font-size: 12px;
  font-weight: 700;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 52px 78px minmax(0, 1fr) 72px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  width: 78px;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--primary-soft);
}

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

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.rank-copy small {
  margin-top: 3px;
  color: var(--text-muted);
}

.rank-score {
  justify-self: end;
  color: var(--primary);
  font-weight: 900;
}

.notice-card {
  position: sticky;
  top: 96px;
  padding: 30px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
}

.notice-card p {
  color: rgba(255, 255, 255, 0.82);
}

.notice-card .primary-button {
  margin-top: 14px;
  color: var(--primary);
  background: #ffffff;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.compact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.compact-poster {
  overflow: hidden;
  flex: 0 0 58px;
  width: 58px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  background: var(--primary-soft);
}

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

.compact-info strong,
.compact-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info small {
  margin-top: 4px;
  color: var(--text-muted);
}

.page-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.page-hero > div,
.page-hero > form {
  position: relative;
  z-index: 1;
}

.page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 62px max(16px, calc((100% - var(--container)) / 2));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(circle at 20% 10%, #ffffff, transparent 18%),
    radial-gradient(circle at 90% 0%, #f97316, transparent 20%);
}

.slim-hero {
  align-items: center;
  min-height: 280px;
}

.category-hero,
.rank-hero,
.search-hero {
  min-height: 320px;
}

.page-filter {
  display: flex;
  gap: 10px;
  min-width: min(420px, 100%);
}

.page-filter input {
  width: 100%;
  min-height: 50px;
}

.search-page-form input {
  flex: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 22px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 800;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-head {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 20px;
  background: var(--surface-soft);
}

.category-overview-head > span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: #ffffff;
  font-size: 26px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 20px;
}

.category-overview-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.category-overview-head strong {
  color: var(--primary);
  font-size: 22px;
}

.category-overview-card ul {
  margin: 0;
  padding: 16px 20px 20px;
  list-style: none;
}

.category-overview-card li + li {
  margin-top: 9px;
}

.category-overview-card li a {
  color: #334155;
}

.category-overview-card li a:hover {
  color: var(--primary);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 36px;
  padding: 34px 0 48px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  background: var(--primary-soft);
  box-shadow: var(--shadow);
}

.detail-copy {
  align-self: center;
}

.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 18px 0 0;
  color: #334155;
  font-size: 20px;
}

.detail-meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.detail-meta-list div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
}

.detail-meta-list dt {
  color: var(--text-muted);
  font-size: 12px;
}

.detail-meta-list dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags {
  margin: 24px 0;
}

.player-section {
  padding: 0 0 50px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 15%, rgba(37, 99, 235, 0.7), transparent 24%),
    linear-gradient(135deg, #020617, #172554);
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.76));
  text-align: center;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  font-size: 34px;
}

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

.player-overlay small {
  color: rgba(255, 255, 255, 0.76);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.detail-article,
.detail-side-card,
.support-grid article,
.prose-section article {
  padding: 28px;
}

.detail-article h2,
.detail-side-card h2,
.support-grid h2,
.prose-section h2,
.sitemap-group h2 {
  margin: 0 0 14px;
}

.detail-article p,
.prose-section p,
.support-grid p {
  color: #334155;
}

.detail-side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-side-card li + li {
  margin-top: 12px;
}

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

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

.empty-filter-message {
  padding: 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.support-grid,
.prose-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

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

.sitemap-group {
  padding: 24px;
}

.sitemap-group h2 a {
  color: var(--primary);
}

.sitemap-group ul {
  columns: 2;
  column-gap: 24px;
  margin: 0;
  padding-left: 18px;
}

.sitemap-group li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sitemap-group a:hover {
  color: var(--primary);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

.footer-brand .brand-mark {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.45);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.site-footer p {
  color: #94a3b8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 14px;
}

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

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .hero-content,
  .detail-hero,
  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .notice-card {
    position: static;
  }

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

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

  .full-rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header-inner {
    min-height: 66px;
  }

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

  .hero-content {
    gap: 30px;
    padding: 52px 0;
  }

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-search,
  .hero-actions,
  .page-hero,
  .page-filter,
  .mobile-menu form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .hero-showcase {
    min-height: 320px;
  }

  .hero-slides {
    height: 280px;
  }

  .section-heading,
  .page-hero,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-section {
    padding: 38px 0;
  }

  .category-grid,
  .movie-grid,
  .movie-grid-wide,
  .category-movie-grid,
  .category-overview-grid,
  .compact-grid,
  .support-grid,
  .prose-section,
  .sitemap-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-movie-grid {
    gap: 16px;
  }

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

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

  .rank-score {
    display: none;
  }

  .sitemap-group ul {
    columns: 1;
  }
}
