:root {
  color-scheme: dark;
  --site-bg: #020617;
  --site-bg-soft: rgba(15, 23, 42, 0.74);
  --site-panel: rgba(15, 23, 42, 0.72);
  --site-panel-strong: rgba(30, 41, 59, 0.92);
  --site-border: rgba(148, 163, 184, 0.18);
  --site-border-blue: rgba(59, 130, 246, 0.42);
  --site-text: #f8fafc;
  --site-muted: #94a3b8;
  --site-faint: #64748b;
  --site-blue: #2563eb;
  --site-cyan: #06b6d4;
  --site-radius: 1.25rem;
  --site-shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(6, 182, 212, 0.16), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 42%, #082f49 100%);
  color: var(--site-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--site-border);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.86), rgba(15, 23, 42, 0.94));
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong,
.footer-brand {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 900;
  background: linear-gradient(90deg, #bfdbfe, #a5f3fc, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  color: #93c5fd;
  font-size: 0.74rem;
  font-style: normal;
  opacity: 0.82;
}

.desktop-nav,
.mobile-nav {
  align-items: center;
  gap: 4px;
}

.desktop-nav {
  display: flex;
}

.desktop-nav a,
.mobile-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.22);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--site-border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.88);
}

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

main {
  overflow: hidden;
}

.hero-section {
  position: relative;
  min-height: 720px;
  padding: 52px 16px 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.28;
  pointer-events: none;
}

.hero-glow-a {
  top: 5%;
  left: 4%;
  background: #2563eb;
}

.hero-glow-b {
  right: -6rem;
  bottom: 4rem;
  background: #06b6d4;
}

.hero-search-panel {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 8;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-search,
.page-search {
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--site-border-blue);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.hero-search input,
.page-search input,
.filter-toolbar input,
.filter-toolbar select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--site-border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  outline: none;
}

.hero-search input,
.page-search input {
  padding: 12px 18px;
}

.hero-search button,
.page-search button,
.filter-toolbar button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.page-search button,
.filter-toolbar button,
.primary-button {
  padding: 12px 22px;
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.ghost-button {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.hero-search button:hover,
.page-search button:hover,
.filter-toolbar button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-track {
  position: relative;
  z-index: 3;
  width: min(1280px, calc(100% - 32px));
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  align-items: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0.7s ease;
}

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

.hero-copy {
  padding: 46px;
  border: 1px solid var(--site-border);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 64, 175, 0.28));
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(20px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: #67e8f9;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #dbeafe, #cffafe, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.hero-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.hero-copy p,
.page-hero p,
.detail-intro p {
  color: #cbd5e1;
  line-height: 1.8;
}

.hero-copy p {
  max-width: 760px;
  font-size: 1.08rem;
}

.hero-tags,
.movie-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 18px;
}

.hero-tags span,
.movie-tags span,
.detail-tags span {
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
}

.movie-tags span {
  padding: 5px 9px;
  font-size: 0.74rem;
}

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

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 510px;
  border: 1px solid var(--site-border-blue);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(30, 64, 175, 0.35));
  box-shadow: 0 36px 120px rgba(37, 99, 235, 0.28);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.74));
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 510px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-art:hover img {
  transform: scale(1.05);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.44);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
}

.section-block,
.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.section-block {
  padding: 64px 0;
}

.no-top-space {
  padding-top: 0;
}

.soft-panel {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1280px) / 2));
  padding-right: max(16px, calc((100% - 1280px) / 2));
  background: rgba(15, 23, 42, 0.3);
}

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

.section-heading h2,
.category-overview-panel h2,
.related-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
}

.section-heading a {
  color: #93c5fd;
  font-weight: 800;
}

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

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

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

.movie-card-link,
.rank-link {
  height: 100%;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.72));
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover,
.rank-link:hover {
  transform: translateY(-5px);
  border-color: var(--site-border-blue);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.18);
}

.movie-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.55), rgba(8, 47, 73, 0.55));
}

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

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

.movie-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.8);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.movie-card-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-body p {
  margin: 0;
  min-height: 3.2em;
  color: #94a3b8;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--site-faint);
  font-size: 0.78rem;
}

.horizontal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.horizontal-rail .movie-card {
  scroll-snap-align: start;
}

.masonry-list {
  columns: 3 260px;
  column-gap: 22px;
}

.masonry-list .movie-card {
  break-inside: avoid;
  margin-bottom: 22px;
}

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

.category-tile {
  display: grid;
  gap: 16px;
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--site-border);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(30, 64, 175, 0.22));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: var(--site-border-blue);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.82);
}

.category-tile h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
}

.category-tile p,
.category-overview-panel p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
}

.page-main {
  padding: 44px 0 84px;
}

.page-hero,
.detail-hero {
  position: relative;
  margin-bottom: 42px;
  padding: 40px;
  border: 1px solid var(--site-border);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 64, 175, 0.22));
  box-shadow: var(--site-shadow);
}

.compact-page-hero {
  max-width: 920px;
}

.page-hero h1,
.detail-intro h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

.page-search {
  max-width: 720px;
  margin-top: 28px;
}

.category-overview-list {
  display: grid;
  gap: 34px;
}

.category-overview-panel {
  padding: 28px;
  border: 1px solid var(--site-border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.45);
}

.filter-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--site-border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.filter-toolbar input,
.filter-toolbar select {
  padding: 12px 16px;
}

.filter-toolbar select {
  flex: 0 0 170px;
}

.large-filter input {
  flex: 1 1 460px;
}

.empty-state {
  display: none;
  padding: 36px;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  color: var(--site-muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.52);
}

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

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

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

.rank-link {
  grid-template-columns: 72px 116px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
}

.rank-number {
  color: #67e8f9;
  font-size: 1.7rem;
  font-weight: 950;
  text-align: center;
}

.rank-thumb img {
  width: 116px;
  height: 84px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.82);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--site-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--site-muted);
}

.rank-side strong {
  color: #93c5fd;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: #94a3b8;
}

.breadcrumb a {
  color: #93c5fd;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(30, 41, 59, 0.82);
  box-shadow: 0 24px 80px rgba(2, 6, 23, 0.34);
}

.detail-tags {
  margin-top: 22px;
}

.player-section {
  margin-bottom: 42px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--site-border-blue);
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 110px rgba(37, 99, 235, 0.2);
  aspect-ratio: 16 / 9;
}

.movie-video,
.player-overlay,
.player-overlay img,
.player-overlay-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  background: #000000;
}

.player-overlay {
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  z-index: 2;
}

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

.player-overlay img {
  object-fit: cover;
  opacity: 0.72;
}

.player-overlay-shade {
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08), rgba(2, 6, 23, 0.76));
}

.player-button {
  position: relative;
  z-index: 3;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.42);
  font-size: 2rem;
}

.player-title {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 24px;
  font-size: clamp(1.1rem, 3vw, 1.65rem);
  font-weight: 900;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.72);
}

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

.detail-content-panel,
.related-panel {
  border: 1px solid var(--site-border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.2);
}

.detail-content-panel {
  padding: 34px;
}

.detail-content-panel h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 900;
}

.detail-content-panel h2:not(:first-child) {
  margin-top: 30px;
}

.detail-content-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.95;
  font-size: 1.03rem;
}

.movie-data-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.movie-data-list div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.movie-data-list dt {
  color: #93c5fd;
  font-weight: 800;
}

.movie-data-list dd {
  margin: 0;
  color: #cbd5e1;
}

.related-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.side-heading {
  margin-bottom: 18px;
}

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

.related-list .movie-card-link {
  grid-template-columns: 112px minmax(0, 1fr);
}

.related-list .movie-poster {
  aspect-ratio: 3 / 4;
}

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

.related-list .movie-card-body p,
.related-list .movie-tags,
.related-list .movie-meta {
  display: none;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--site-border);
  background: rgba(2, 6, 23, 0.72);
}

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

.footer-grid p {
  max-width: 520px;
  color: var(--site-muted);
  line-height: 1.7;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-art {
    display: none;
  }

  .hero-track {
    min-height: 520px;
  }

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

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

  .related-panel {
    position: static;
  }
}

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

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

  .hero-section {
    min-height: 660px;
    padding-top: 98px;
  }

  .hero-copy,
  .page-hero,
  .detail-hero,
  .detail-content-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

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

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

  .filter-toolbar select {
    flex: 1;
  }

  .rank-link {
    grid-template-columns: 52px 86px minmax(0, 1fr);
  }

  .rank-side {
    display: none;
  }

  .rank-thumb img {
    width: 86px;
    height: 72px;
  }

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

  .detail-poster {
    max-width: 260px;
  }

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

@media (max-width: 540px) {
  .site-header-inner,
  .section-block,
  .page-main,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .brand-text em {
    display: none;
  }

  .hero-track {
    width: min(100% - 24px, 1280px);
  }

  .hero-copy {
    padding: 22px;
  }

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

  .movie-grid,
  .category-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-rail {
    grid-auto-columns: 82%;
  }

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

  .rank-link {
    grid-template-columns: 44px 78px minmax(0, 1fr);
    gap: 10px;
  }

  .rank-number {
    font-size: 1.2rem;
  }

  .player-button {
    width: 68px;
    height: 68px;
  }

  .movie-data-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
