:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --amber: #f59e0b;
  --orange: #ea580c;
  --blue: #2563eb;
  --green: #059669;
  --purple: #7c3aed;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 45%, #f7f7fb 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.3);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px) scale(1.02);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.86);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 10px 22px rgba(234, 88, 12, 0.25);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.8);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 20px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 1.4s ease;
  pointer-events: none;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.93), rgba(15, 23, 42, 0.58) 48%, rgba(2, 6, 23, 0.34)), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 72vh;
  max-width: 1180px;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 95px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.3);
  font-size: 13px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #e5e7eb;
  font-size: clamp(16px, 2vw, 22px);
}

.hero-tags,
.card-meta,
.tag-list,
.filter-row,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-tags span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 30px;
}

.primary-button,
.secondary-button,
.intro-band a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 15px 30px rgba(234, 88, 12, 0.3);
}

.secondary-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover,
.intro-band a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.5);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 6, 23, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 8px;
  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.active {
  width: 34px;
  background: #fff;
}

.intro-band {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -42px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-band h2,
.intro-band p {
  margin: 0;
}

.intro-band p {
  margin-top: 6px;
  color: var(--muted);
}

.intro-band a {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  white-space: nowrap;
}

.page-stack,
.page-main {
  padding: 54px 0 70px;
}

.page-stack {
  display: grid;
  gap: 54px;
}

.content-section {
  min-width: 0;
}

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

.section-heading div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--orange);
  font-size: 14px;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.16);
  transform: translateY(-5px);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.card-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
  content: "";
}

.card-badge,
.card-score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.card-score {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h2,
.card-body h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-body h2 a,
.card-body h3 a {
  transition: color 0.2s ease;
}

.card-body h2 a:hover,
.card-body h3 a:hover {
  color: var(--orange);
}

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

.card-meta {
  margin-bottom: 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.card-meta span {
  border-radius: 999px;
  padding: 3px 8px;
  background: var(--slate-100);
}

.tag-list span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 800;
}

.rail-list {
  display: flex;
  gap: 20px;
  margin: 0 -16px;
  overflow-x: auto;
  padding: 4px 16px 18px;
  scroll-snap-type: x mandatory;
}

.rail-card {
  width: min(330px, 82vw);
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.highlight-section {
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.breadcrumb span::before,
.breadcrumb a + a::before,
.breadcrumb a + span::before {
  margin-right: 8px;
  color: #94a3b8;
  content: "/";
}

.breadcrumb.light {
  color: #cbd5e1;
}

.breadcrumb.light a {
  color: #fed7aa;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
  color: #fff;
  background: radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.5), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 780px;
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(12px);
}

.search-box input,
.filter-row select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #fff;
  color: var(--slate-900);
  font-weight: 700;
}

.search-box input {
  padding: 0 16px;
}

.filter-row select {
  min-width: 150px;
  padding: 0 12px;
}

.search-box input:focus,
.filter-row select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.empty-state {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}

.empty-state.show {
  display: block;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 132px;
  background: var(--slate-800);
}

.category-covers img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
}

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

.category-card-body span {
  color: var(--orange);
  font-weight: 900;
}

.rank-list {
  display: grid;
  gap: 16px;
  margin-bottom: 52px;
}

.rank-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  background: var(--slate-800);
}

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

.rank-cover span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-item > div {
  padding: 18px 18px 18px 0;
}

.rank-item h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
}

.rank-item p {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-main {
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}

.detail-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: #fff;
  background: var(--slate-950);
}

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

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.36)), linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 55%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 44px 0 70px;
}

.detail-title-row {
  display: grid;
  max-width: 860px;
}

.detail-title-row p {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e2e8f0;
  font-size: 19px;
}

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

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

.detail-content,
.detail-side {
  min-width: 0;
}

.player-shell,
.detail-block,
.side-card {
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.player-shell {
  overflow: hidden;
  margin-bottom: 24px;
  background: #020617;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-frame video {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.36), transparent 22%), rgba(2, 6, 23, 0.5);
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-cover strong {
  margin-top: 74px;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(2, 6, 23, 0.62);
  font-size: 16px;
}

.play-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 38px rgba(234, 88, 12, 0.36);
  font-size: 30px;
  text-indent: 4px;
}

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

.detail-block h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-block p {
  margin: 0;
  color: #475569;
  font-size: 17px;
}

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

.info-list div {
  display: grid;
  gap: 4px;
  border-radius: 14px;
  padding: 12px;
  background: var(--slate-100);
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 900;
}

.large-tags span {
  padding: 6px 12px;
  font-size: 13px;
}

.detail-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  padding: 22px;
}

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

.side-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 14px;
  padding: 12px;
  background: var(--slate-100);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side-links a:hover {
  background: #ffedd5;
  transform: translateX(3px);
}

.side-links span {
  color: var(--slate-900);
  font-weight: 900;
}

.side-links small {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}

.related-section {
  padding-bottom: 70px;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
}

.footer-grid p {
  max-width: 420px;
  margin: 14px 0 0;
  color: #94a3b8;
}

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

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

.footer-links a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 18px 16px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
  }

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

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

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

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 60px 0 92px;
  }

  .hero-arrow {
    display: none;
  }

  .intro-band,
  .section-heading,
  .search-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .category-grid,
  .footer-grid,
  .detail-side {
    grid-template-columns: 1fr;
  }

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

  .rank-item > div {
    padding: 14px 14px 14px 0;
  }

  .rank-item h2 {
    font-size: 17px;
  }

  .rank-item p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .page-main {
    padding-top: 28px;
  }

  .page-hero {
    border-radius: 22px;
  }

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

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

  .detail-hero-content {
    padding-top: 30px;
  }

  .detail-title-row p {
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .filter-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

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

  .rank-cover {
    aspect-ratio: 16 / 9;
  }

  .rank-item > div {
    padding: 0 16px 16px;
  }
}
