:root {
  --bg: #0a0e27;
  --bg-soft: #11182d;
  --panel: #101827;
  --panel-2: #1a2332;
  --line: rgba(139, 155, 180, 0.18);
  --text: #e8eef5;
  --muted: #a8b5c7;
  --subtle: #6b7b8c;
  --blue: #4a9eff;
  --blue-deep: #2c7be5;
  --green: #00d4aa;
  --orange: #ff8a3d;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(74, 158, 255, 0.17), transparent 34rem),
    radial-gradient(circle at 80% 8%, rgba(0, 212, 170, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.site-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 14px 36px rgba(74, 158, 255, 0.28);
}

.logo-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff, #77ddff, #00d4aa);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(74, 158, 255, 0.13);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 39, 0.97) 0%, rgba(10, 14, 39, 0.78) 46%, rgba(10, 14, 39, 0.3) 100%),
    linear-gradient(0deg, rgba(10, 14, 39, 1) 0%, rgba(10, 14, 39, 0.22) 44%, rgba(10, 14, 39, 0.78) 100%),
    var(--hero-image) center / cover no-repeat;
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  padding-top: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: center;
  gap: 54px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.hero-one-line {
  max-width: 700px;
  margin: 22px 0 0;
  color: #d9e7f5;
  font-size: clamp(18px, 2.2vw, 24px);
}

.hero-meta,
.hero-tags,
.detail-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(26, 35, 50, 0.84);
  border: 1px solid var(--line);
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.section-more,
.pager a,
.pager span,
.hero-search button,
.filter-field select,
.filter-field input {
  border: 0;
  border-radius: 999px;
}

.primary-button,
.hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 18px 40px rgba(74, 158, 255, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(74, 158, 255, 0.36);
}

.ghost-button,
.section-more,
.pager a,
.pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ghost-button:hover,
.section-more:hover,
.pager a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateY(-7deg);
}

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

.hero-poster span {
  position: absolute;
  inset: auto 24px 24px auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(74, 158, 255, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.hero-bottom {
  position: relative;
  z-index: 3;
  padding: 550px 0 34px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.hero-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero-search input::placeholder,
.filter-field input::placeholder {
  color: var(--subtle);
}

.hero-category-links,
.hero-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 2px 4px;
  scrollbar-width: none;
}

.hero-category-links::-webkit-scrollbar,
.hero-thumbs::-webkit-scrollbar {
  display: none;
}

.hero-category-links a {
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
}

.hero-thumb {
  flex: 0 0 170px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(16, 24, 39, 0.78);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-thumb.active,
.hero-thumb:hover {
  color: #fff;
  border-color: rgba(74, 158, 255, 0.8);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 52px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.main-content,
.detail-layout,
.page-content {
  padding: 54px 0 72px;
}

.section-block {
  margin-top: 56px;
}

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

.section-heading h2,
.page-hero h1,
.detail-section h2,
.category-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
}

.section-heading p,
.page-hero p,
.category-card p,
.detail-section p,
.movie-card-body p,
.rank-info p {
  color: var(--muted);
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
}

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

.movie-card,
.category-card,
.detail-section,
.info-card,
.rank-item,
.filter-panel,
.player-shell,
.breadcrumbs {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.88), rgba(16, 24, 39, 0.92));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-sm);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 158, 255, 0.45);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.5s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 54%);
}

.poster-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 158, 255, 0.92);
  color: #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-tags {
  position: absolute;
  inset: 12px auto auto 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.poster-tags span,
.poster-year {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.poster-year {
  position: absolute;
  inset: auto 12px 12px auto;
}

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

.movie-card-body h3 {
  min-height: 3em;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.movie-card-body h3 a:hover {
  color: var(--blue);
}

.movie-card-body p {
  min-height: 3.2em;
  margin: 0 0 12px;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
}

.movie-card-meta a {
  color: var(--blue);
  white-space: nowrap;
}

.movie-card-meta span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card .movie-card-body p {
  display: none;
}

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: auto -35px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.42), rgba(0, 212, 170, 0.36));
  filter: blur(4px);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 170, 0.42);
}

.category-card h2 {
  position: relative;
  font-size: 24px;
}

.category-card p,
.category-card span {
  position: relative;
}

.category-card span {
  display: inline-flex;
  margin-top: 20px;
  color: var(--green);
  font-weight: 800;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
}

.rank-item.top {
  border-color: rgba(255, 138, 61, 0.38);
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.rank-cover img {
  width: 92px;
  height: 116px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.rank-info h3 a:hover {
  color: var(--blue);
}

.rank-info p {
  margin: 0 0 12px;
  font-size: 14px;
}

.rank-info div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rank-info span {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}

.page-hero {
  padding: 74px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 20%, rgba(74, 158, 255, 0.2), transparent 30rem),
    radial-gradient(circle at 85% 20%, rgba(0, 212, 170, 0.12), transparent 22rem);
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  margin: 0 0 24px;
}

.filter-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  outline: 0;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(74, 158, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.13);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.pager span {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  width: fit-content;
  max-width: 100%;
}

.breadcrumbs a {
  color: var(--blue);
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-shell {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 22px 54px rgba(74, 158, 255, 0.42);
}

.player-message {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 4;
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 107, 107, 0.88);
}

.player-shell.has-message .player-message {
  display: block;
}

.detail-title {
  padding: 4px 0 0;
}

.detail-title h1 {
  font-size: clamp(32px, 4.6vw, 56px);
}

.detail-title p {
  color: var(--blue);
  font-size: 20px;
  margin: 16px 0 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-section,
.info-card {
  border-radius: var(--radius);
  padding: 24px;
}

.detail-section h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-section p {
  margin: 0;
  font-size: 16px;
}

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

.info-list div {
  display: grid;
  gap: 4px;
}

.info-list dt {
  color: var(--subtle);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--text);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 20, 0.72);
  padding: 44px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  color: var(--text);
  font-size: 22px;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(74, 158, 255, 0.15);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 76px 0 auto;
    background: rgba(10, 14, 39, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.24s ease;
    backdrop-filter: blur(16px);
  }

  body.menu-open .mobile-panel {
    transform: translateY(0);
  }

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

  .hero {
    min-height: 800px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster {
    width: min(290px, 70vw);
    transform: none;
  }

  .hero-bottom {
    padding-top: 620px;
  }

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

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

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

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

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

  .site-nav {
    height: 68px;
  }

  .logo-main {
    font-size: 18px;
  }

  .logo-sub {
    display: none;
  }

  .mobile-panel {
    top: 68px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    min-height: 540px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-one-line {
    font-size: 17px;
  }

  .hero-actions,
  .page-actions {
    gap: 10px;
  }

  .primary-button,
  .ghost-button,
  .hero-search button,
  .section-more {
    min-height: 44px;
    padding: 0 17px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-bottom {
    padding-top: 596px;
  }

  .section-heading,
  .page-hero-inner {
    display: grid;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 74px 1fr;
    gap: 12px;
  }

  .rank-cover img {
    width: 74px;
    height: 96px;
  }

  .detail-section,
  .info-card {
    padding: 18px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .movie-card-body h3 {
    font-size: 14px;
  }

  .movie-card-body p,
  .movie-card-meta {
    font-size: 12px;
  }
}
