:root {
  --yellow: #facc15;
  --yellow-deep: #eab308;
  --green: #86efac;
  --green-deep: #22c55e;
  --blue: #38bdf8;
  --purple: #a855f7;
  --red: #ef4444;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fefce8;
  --paper: #ffffff;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 45%, #f0fdf4 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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: 50;
  background: linear-gradient(90deg, #facc15 0%, #fde047 52%, #86efac 100%);
  box-shadow: 0 10px 30px rgba(113, 63, 18, 0.18);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #1f2937;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  color: var(--yellow-deep);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.72);
}

.brand-name {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.nav-link {
  position: relative;
  color: rgba(31, 41, 55, 0.82);
}

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

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

.header-search {
  flex: 1;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.header-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  color: var(--ink);
}

.header-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  color: #1f2937;
  background: var(--yellow);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.78);
  color: #1f2937;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: 100%;
  padding: 0 16px 12px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.mobile-link {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.mobile-link.active,
.mobile-link:hover {
  background: var(--yellow);
}

.hero-slider {
  position: relative;
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 54%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #fff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 15px;
  margin-bottom: 16px;
  background: var(--yellow);
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(250, 204, 21, 0.28);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.primary-btn {
  color: #111827;
  background: var(--yellow);
  box-shadow: 0 18px 35px rgba(250, 204, 21, 0.28);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.overview-card:hover,
.wide-card:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 36px;
  cursor: pointer;
  transform: translateY(-50%);
}

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

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.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: var(--yellow);
}

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

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

.section-title {
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f2937;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-heading .section-title {
  margin: 0;
}

.section-icon {
  color: var(--yellow-deep);
}

.section-bar {
  width: 8px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
}

.section-more,
.text-link {
  color: #b45309;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #111827;
  isolation: isolate;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

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

.category-card span,
.category-card p {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #fff;
}

.category-card span {
  bottom: 54px;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  bottom: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #111827;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-gradient {
  opacity: 1;
}

.poster-year,
.poster-type {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.poster-year {
  left: 12px;
  background: var(--yellow);
  color: #1f2937;
}

.poster-type {
  right: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--yellow);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span,
.tag-cloud a {
  border-radius: 999px;
  padding: 4px 9px;
  color: #713f12;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.card-body h3 a:hover,
.card-title:hover,
.ranking-info a:hover {
  color: #ca8a04;
}

.card-body p,
.wide-info p,
.rank-info p,
.ranking-info p {
  margin: 0;
  color: var(--muted);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row a {
  color: #b45309;
  font-weight: 800;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.wide-cover {
  position: relative;
  min-height: 142px;
  overflow: hidden;
  background: #111827;
}

.wide-cover img,
.rank-thumb img,
.ranking-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--yellow);
  transform: translate(-50%, -50%);
}

.wide-info {
  padding: 18px;
}

.card-title {
  display: inline-block;
  margin-bottom: 10px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
}

.rank-section {
  padding-bottom: 72px;
}

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

.numbered {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.numbered > strong {
  color: #ca8a04;
  font-size: 22px;
  text-align: center;
}

.rank-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 14px;
}

.rank-thumb {
  width: 84px;
  height: 58px;
  overflow: hidden;
  border-radius: 12px;
  background: #111827;
}

.rank-info a {
  display: inline-block;
  margin-bottom: 4px;
  color: #1f2937;
  font-weight: 900;
}

.heat {
  color: #dc2626;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.page-hero {
  color: #fff;
  background: linear-gradient(90deg, #facc15 0%, #fde047 50%, #86efac 100%);
}

.gradient-hero,
.channel-hero {
  color: #1f2937;
}

.rank-hero {
  background: linear-gradient(110deg, #ef4444 0%, #f97316 45%, #facc15 100%);
}

.search-hero {
  background: linear-gradient(110deg, #3b82f6 0%, #06b6d4 45%, #14b8a6 100%);
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
  opacity: 0.88;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.overview-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.overview-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 150px;
  overflow: hidden;
  background: #111827;
}

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

.overview-body {
  padding: 24px;
}

.overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.overview-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.filter-bar {
  margin-bottom: 26px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.filter-bar label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}

.filter-search {
  flex: 1;
  min-width: min(100%, 320px);
}

.filter-bar select,
.filter-bar input,
.search-panel input {
  border: 2px solid var(--line);
  outline: 0;
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--ink);
}

.filter-search input {
  width: 100%;
}

.empty-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 68px 116px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ranking-item.top {
  background: linear-gradient(90deg, #fff7ed, #fff, #fefce8);
}

.ranking-number {
  color: #ca8a04;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.ranking-cover {
  width: 116px;
  height: 78px;
  overflow: hidden;
  border-radius: 16px;
  background: #111827;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-score {
  color: #dc2626;
  font-size: 24px;
}

.search-panel {
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: 6px;
  display: flex;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.search-panel input {
  flex: 1;
  border: 0;
}

.result-text {
  color: var(--muted);
  font-weight: 800;
}

.detail-page {
  background: linear-gradient(135deg, #fefce8, #ffffff, #f0fdf4);
}

.detail-hero {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

.detail-bg,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-bg {
  filter: blur(2px);
  transform: scale(1.02);
}

.detail-mask {
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.54) 55%, rgba(17, 24, 39, 0.3) 100%);
}

.detail-hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 62px;
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--yellow);
}

.detail-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.detail-headline h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.06;
}

.detail-headline p {
  max-width: 820px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

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

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

.player-card,
.detail-block,
.detail-side {
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-start {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  cursor: pointer;
}

.player-start span {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #111827;
  font-size: 36px;
  box-shadow: 0 18px 40px rgba(250, 204, 21, 0.25);
}

.player-start strong {
  font-size: 18px;
}

.player-start.is-hidden {
  display: none;
}

.detail-block {
  margin-bottom: 24px;
  padding: 26px;
}

.detail-block h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  white-space: pre-line;
}

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

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.info-grid span,
.info-grid a {
  color: var(--ink);
  font-weight: 800;
}

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

.detail-side {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 22px;
}

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

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

.side-rank .heat {
  display: none;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: var(--yellow);
  font-size: 20px;
}

.footer-inner p {
  max-width: 520px;
  margin: 10px 0 0;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

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

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav.is-open {
    display: flex;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 780px) {
  .header-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
  }

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

  .header-search {
    display: none;
  }

  .hero-slider {
    min-height: 560px;
    height: 72vh;
  }

  .hero-content {
    bottom: 82px;
  }

  .hero-arrow {
    display: none;
  }

  .category-grid,
  .movie-grid,
  .overview-grid,
  .wide-grid,
  .rank-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .wide-cover {
    min-height: 210px;
  }

  .ranking-item {
    grid-template-columns: 44px 96px 1fr;
  }

  .ranking-score {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .detail-top {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 520px) {
  .content-section,
  .page-hero-inner,
  .detail-layout,
  .detail-hero-inner,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .section-heading,
  .filter-bar,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-row,
  .numbered {
    grid-template-columns: 1fr;
  }

  .rank-thumb {
    width: 100%;
    height: 160px;
  }
}
