:root {
  --bg: #0f172a;
  --bg-soft: #111c33;
  --card: rgba(30, 41, 59, 0.72);
  --card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --amber: #f59e0b;
  --orange: #f97316;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 158, 11, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 18%, rgba(249, 115, 22, 0.15), transparent 30rem),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #0f172a 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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: 80;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.32);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: #fbbf24;
}

.header-search,
.hero-search {
  position: relative;
  width: min(300px, 30vw);
}

.header-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.hero-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
  background: rgba(15, 23, 42, 0.95);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 440px;
  overflow: auto;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
}

.search-panel.is-open {
  display: block;
}

.search-panel-wide {
  left: 0;
  right: auto;
  width: min(680px, 88vw);
}

.search-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  color: var(--muted);
}

.search-item:hover {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
}

.search-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.15);
}

.search-item strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.search-item span {
  display: block;
  font-size: 12px;
  color: var(--subtle);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.75);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 22px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
}

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

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.76) 46%, rgba(15, 23, 42, 0.32) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.16) 46%, rgba(15, 23, 42, 0.76) 100%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 720px;
  margin: 0 auto;
  padding: 112px 24px 132px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: end;
  gap: 54px;
}

.hero-copy {
  max-width: 780px;
}

.hero-kicker,
.card-meta,
.detail-tags,
.hero-tags,
.detail-tag-list,
.card-tags,
.page-actions,
.hero-actions,
.ranking-tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-kicker span,
.detail-tags span,
.hero-tags span,
.detail-tag-list span,
.card-tags span,
.page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 22px 0 8px;
  color: #ffffff;
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h2 {
  margin: 0 0 18px;
  color: #fbbf24;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
}

.hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions,
.page-actions {
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more,
.nav-neighbor a,
.ranking-tail a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 20px 48px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.section-more,
.nav-neighbor a,
.ranking-tail a {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 23, 42, 0.46);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.nav-neighbor a:hover,
.ranking-tail a:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.5);
}

.hero-poster {
  position: relative;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.4);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-weight: 900;
  text-align: center;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 92px;
  width: min(1280px, 100%);
  transform: translateX(-50%);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--text);
  background: rgba(15, 23, 42, 0.64);
  cursor: pointer;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 26px;
}

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

.hero-dot {
  width: 28px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.is-active {
  width: 48px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.hero-search-wrap {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(1280px, 100%);
  transform: translateX(-50%);
  padding: 0 24px;
  z-index: 6;
}

.hero-search {
  width: min(680px, 100%);
}

.hero-search input {
  min-height: 56px;
  padding: 0 20px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.84);
}

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.content-section {
  margin-bottom: 72px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--subtle);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.92);
}

.movie-card.is-hidden {
  display: none;
}

.card-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: rgba(148, 163, 184, 0.12);
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 48%);
}

.quality-badge,
.region-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  color: #111827;
  background: #fbbf24;
}

.region-badge {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.86);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  color: var(--subtle);
  font-size: 12px;
  margin-bottom: 8px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.55);
}

.card-body h3,
.ranking-card h2 {
  margin: 0 0 9px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-card h2 a:hover {
  color: #fbbf24;
}

.card-body p,
.ranking-card p {
  margin: 0 0 12px;
  min-height: 48px;
  color: var(--subtle);
  line-height: 1.62;
  font-size: 14px;
}

.card-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11px;
}

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

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

.card-cover-small {
  aspect-ratio: auto;
  min-height: 188px;
  height: 100%;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.rank-row:hover {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(30, 41, 59, 0.92);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 60px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  color: var(--text);
  font-weight: 800;
}

.rank-score {
  color: #fbbf24;
  font-weight: 900;
}

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

.category-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  min-height: 126px;
}

.category-thumbs img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  border-radius: 12px;
}

.category-card h3 {
  margin: 8px 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0 0 12px;
  color: var(--subtle);
  line-height: 1.7;
}

.category-card span {
  color: #fbbf24;
  font-weight: 800;
}

.page-hero,
.detail-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.28), transparent 32rem),
    linear-gradient(135deg, #111827 0%, #0f172a 100%);
}

.page-hero > div,
.detail-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 96px 24px 72px;
}

.slim-hero {
  min-height: 330px;
}

.page-hero h1,
.detail-hero h1 {
  margin: 18px 0 14px;
  max-width: 860px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.filter-bar {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px auto;
  gap: 12px;
  align-items: center;
  margin: -14px 0 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
}

.filter-bar select {
  appearance: none;
}

.filter-bar span {
  color: #fbbf24;
  font-weight: 900;
  white-space: nowrap;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.ranking-cover span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  font-weight: 900;
}

.ranking-cover img {
  width: 150px;
  height: 210px;
  object-fit: cover;
}

.ranking-tail span {
  color: #fbbf24;
  font-weight: 900;
}

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

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.78) 54%, rgba(15, 23, 42, 0.35) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.2) 72%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--subtle);
  font-size: 14px;
}

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

.detail-shell {
  padding-top: 0;
}

.player-panel {
  position: relative;
  overflow: hidden;
  margin-top: -72px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video,
.play-cover,
.play-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.72;
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14), rgba(2, 6, 23, 0.68));
}

.big-play {
  position: relative;
  z-index: 2;
  width: 94px;
  height: 94px;
  border: 0;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.35);
  cursor: pointer;
}

.big-play span {
  display: block;
  margin-left: 6px;
  font-size: 40px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  margin-top: 32px;
}

.detail-block,
.side-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  padding: 24px;
}

.detail-block {
  margin-bottom: 22px;
}

.detail-block h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-block p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 14px;
}

.detail-block p:last-child {
  margin-bottom: 0;
}

.side-card {
  position: sticky;
  top: 100px;
}

.side-card img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 18px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.side-card dl,
.side-card dd {
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.side-card div:last-child {
  border-bottom: 0;
}

.side-card dt {
  color: var(--subtle);
}

.side-card dd {
  color: var(--text);
  font-weight: 700;
}

.side-card a {
  color: #fbbf24;
}

.nav-neighbor {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 20px;
  color: var(--subtle);
}

.footer-inner p {
  margin: 10px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.footer-note {
  grid-column: 1 / -1;
  font-size: 14px;
}

.footer-note a {
  color: #fbbf24;
}

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

  .menu-toggle {
    display: flex;
  }

  .header-search {
    margin-left: auto;
    width: min(320px, 42vw);
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
    padding: 0 16px;
    gap: 12px;
  }

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

  .header-search {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding: 96px 18px 152px;
  }

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

  .hero-actions,
  .page-actions {
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .section-more,
  .nav-neighbor a,
  .ranking-tail a {
    width: 100%;
  }

  .hero-controls {
    bottom: 104px;
  }

  .page-shell {
    padding: 38px 16px;
  }

  .section-heading {
    display: block;
  }

  .section-more {
    width: auto;
    margin-top: 14px;
  }

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

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

  .card-cover-small {
    min-height: auto;
    aspect-ratio: 2 / 3;
  }

  .category-thumbs img {
    height: 150px;
  }

  .filter-bar {
    position: static;
    grid-template-columns: 1fr;
  }

  .ranking-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .player-panel {
    margin-top: -42px;
    border-radius: 20px;
  }

  .big-play {
    width: 74px;
    height: 74px;
  }

  .big-play span {
    font-size: 32px;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    gap: 16px;
  }

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

  .rank-score {
    grid-column: 3;
  }

  .detail-block,
  .side-card {
    padding: 18px;
  }
}
