:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: rgba(15, 23, 42, 0.78);
  --panel-deep: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --brand: #14b8a6;
  --brand-deep: #0891b2;
  --orange: #f97316;
  --red: #dc2626;
  --purple: #a855f7;
  --pink: #db2777;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 8%, rgba(20, 184, 166, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(8, 145, 178, 0.18), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.88);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.28);
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(-3deg);
}

.logo-icon {
  font-size: 22px;
}

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

.logo-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

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

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.main-nav a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
  color: #f8fafc;
  padding: 0 44px 0 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus {
  border-color: rgba(20, 184, 166, 0.72);
  background: rgba(2, 6, 23, 0.86);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.search-button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  cursor: pointer;
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(460px, calc(100vw - 32px));
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.search-result:hover {
  background: rgba(20, 184, 166, 0.08);
}

.search-result img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.search-result-title {
  font-weight: 800;
  color: white;
}

.search-result-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.search-empty {
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  color: white;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

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

.mobile-nav a {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(30, 41, 59, 0.45);
  color: #cbd5e1;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #111827);
  transform: scale(1.02);
}

.hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.76) 44%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.38) 54%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  align-items: flex-end;
  padding-bottom: 64px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #5eead4;
  font-weight: 750;
}

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

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 700;
}

.pill.brand {
  border-color: rgba(20, 184, 166, 0.65);
  background: rgba(20, 184, 166, 0.92);
  color: white;
}

.pill.gold {
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.22);
}

.btn-soft {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(12px);
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(560px, 100%);
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.74);
  backdrop-filter: blur(14px);
}

.hero-search input {
  min-height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  padding: 0 16px;
}

.hero-search button {
  border: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  padding: 0 22px;
  font-weight: 800;
  cursor: pointer;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-control {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 30px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #5eead4;
}

.section {
  padding: 72px 0 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: white;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.title-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.title-icon.teal {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.title-icon.orange {
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.title-icon.purple {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.title-icon.gold {
  background: linear-gradient(135deg, #eab308, var(--gold));
}

.section-link {
  color: #5eead4;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.poster-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent);
}

.card-score {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  color: #fde68a;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.94);
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.24);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: white;
  font-size: 16px;
  line-height: 1.5;
}

.card-desc {
  display: -webkit-box;
  min-height: 3em;
  margin: 10px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--muted);
  font-size: 13px;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 138px 1fr;
}

.movie-card.horizontal .poster-wrap {
  min-height: 190px;
  aspect-ratio: auto;
}

.movie-card.horizontal .card-title {
  min-height: auto;
}

.category-hero,
.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.98));
}

.page-hero .container,
.category-hero .container,
.detail-hero .container {
  padding: 68px 0;
}

.page-kicker {
  margin: 0 0 14px;
  color: #5eead4;
  font-weight: 800;
}

.page-title {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 780px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 17px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px 180px;
  gap: 12px;
  margin: 0 0 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  padding: 14px;
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
  color: white;
  padding: 0 12px;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(20, 184, 166, 0.64);
}

.category-card {
  display: grid;
  min-height: 190px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(168, 85, 247, 0.1)),
    rgba(15, 23, 42, 0.74);
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(20, 184, 166, 0.48);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 12px;
  color: white;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 88px 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  padding: 12px;
}

.rank-no {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.rank-item img {
  width: 88px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.rank-title {
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
}

.rank-desc {
  margin: 0;
  color: var(--muted);
}

.library-list {
  columns: 4 220px;
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-list li {
  break-inside: avoid;
  margin: 0 0 10px;
}

.library-list a {
  display: inline-flex;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.54);
  color: #cbd5e1;
  padding: 8px 10px;
}

.library-list a:hover {
  border-color: rgba(20, 184, 166, 0.42);
  color: white;
}

.detail-hero .container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

.detail-title {
  margin: 0 0 18px;
  color: white;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 780px;
  margin: 18px 0 26px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.player-card,
.content-card,
.side-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.player-card {
  overflow: hidden;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.player-top h2 {
  margin: 0;
  font-size: 20px;
}

.video-shell {
  position: relative;
  background: #000;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.18));
  pointer-events: none;
}

.video-shell.is-playing .play-overlay {
  display: none;
}

.play-action {
  pointer-events: auto;
  display: inline-grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(20, 184, 166, 0.35);
}

.player-message {
  min-height: 24px;
  margin: 0;
  padding: 12px 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.content-card {
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: white;
}

.content-card p {
  margin: 0 0 18px;
  color: #cbd5e1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.1);
  color: #99f6e4;
  padding: 4px 10px;
  font-size: 13px;
}

.side-card {
  padding: 18px;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  align-items: center;
}

.side-link img {
  width: 64px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.side-link strong {
  display: block;
  color: white;
  line-height: 1.35;
}

.side-link span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(51, 65, 85, 0.88);
  background: rgba(15, 23, 42, 0.86);
}

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

.footer-grid h3 {
  margin: 0 0 12px;
  color: white;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 14px;
}

.footer-grid a:hover {
  color: #5eead4;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .grid-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
  }

  .hero {
    height: 680px;
  }

  .hero-content {
    align-items: center;
    padding: 90px 0 70px;
  }

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

  .hero-search button {
    min-height: 46px;
  }

  .hero-controls,
  .hero-dots {
    bottom: 20px;
  }

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

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

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

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

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

  .rank-item .btn {
    grid-column: 2 / -1;
  }

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

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

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

  .logo-sub {
    display: none;
  }

  .hero h1,
  .hero h2,
  .page-title,
  .detail-title {
    font-size: 36px;
  }

  .grid-6,
  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 110px 1fr;
  }

  .movie-card.horizontal .poster-wrap {
    min-height: 158px;
  }

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

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

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