:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --green-600: #16a34a;
  --green-700: #15803d;
  --shadow: 0 18px 48px rgba(28, 25, 23, 0.14);
  --soft-shadow: 0 10px 26px rgba(28, 25, 23, 0.09);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.9);
  border-bottom: 1px solid rgba(214, 211, 209, 0.78);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--green-600));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  font-size: 23px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--amber-700), var(--green-700));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--stone-700);
  font-weight: 700;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--amber-600);
  transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-search,
.mobile-search,
.quick-search form,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.quick-search input,
.inline-filter input {
  width: 240px;
  height: 42px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--stone-800);
  background: #fff;
  outline: none;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.04);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search input:focus,
.inline-filter input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.quick-search button,
.inline-filter button,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--amber-600), var(--green-600));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.quick-search button:hover,
.inline-filter button:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.34);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stone-200);
  border-radius: 14px;
  background: #fff;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 9px;
  background: var(--stone-800);
}

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

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

.mobile-link {
  border: 1px solid var(--stone-200);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: var(--stone-700);
  font-weight: 800;
}

.mobile-link.active {
  color: var(--amber-700);
  border-color: var(--amber-300);
  background: var(--amber-100);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--stone-900);
}

.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-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 24% 34%, rgba(245, 158, 11, 0.22), transparent 28%), radial-gradient(circle at 76% 62%, rgba(22, 163, 74, 0.18), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 54px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber-300);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--amber-700);
}

.hero h1,
.page-hero h1,
.detail-head h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-text,
.page-hero p,
.detail-head p {
  max-width: 700px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.page-hero p,
.page-hero .breadcrumb {
  color: var(--stone-600);
}

.hero-tags,
.tag-list,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.tag-list span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--amber-800);
  background: rgba(254, 243, 199, 0.96);
  font-size: 13px;
  font-weight: 800;
}

.detail-tags a:hover {
  color: #fff;
  background: var(--amber-600);
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
}

.hero-dot.active {
  width: 30px;
  border-radius: 999px;
  background: var(--amber-300);
}

.quick-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -44px;
  position: relative;
  z-index: 6;
  border: 1px solid rgba(214, 211, 209, 0.76);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search h2,
.section-head h2,
.ranking-panel h2,
.detail-content h2,
.detail-side h2,
.collection-body h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.quick-search input {
  width: min(440px, 44vw);
}

.section {
  padding: 74px 0 0;
}

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

.inline-head {
  align-items: center;
}

.text-link {
  color: var(--amber-700);
  font-weight: 900;
}

.text-link:hover {
  color: var(--green-700);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  background: var(--stone-900);
  box-shadow: var(--soft-shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.02);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.18));
}

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

.category-card span {
  display: block;
  margin-top: 118px;
  font-size: 23px;
  font-weight: 900;
}

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.category-card:hover img {
  opacity: 0.78;
  transform: scale(1.08);
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 28px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.76);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stone-200);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28, 25, 23, 0.74), transparent 58%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.watch-now {
  position: absolute;
  left: 14px;
  bottom: 14px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .watch-now {
  opacity: 1;
  transform: translateY(0);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--green-600));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.movie-info {
  padding: 15px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 8px 0 8px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--stone-600);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card.compact .movie-info {
  padding: 12px;
}

.movie-card.compact h2 {
  font-size: 15px;
}

.movie-card.compact p,
.movie-card.compact .tag-list {
  display: none;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(214, 211, 209, 0.82);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fffbeb);
  box-shadow: var(--soft-shadow);
}

.rank-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.rank-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.rank-row b {
  color: var(--amber-700);
}

.rank-row span {
  overflow: hidden;
  color: var(--stone-800);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

.rank-row:hover {
  background: var(--amber-100);
}

.primary-btn.wide {
  width: 100%;
}

.subpage {
  padding-bottom: 70px;
}

.page-hero {
  padding: 70px 0 34px;
}

.page-hero h1 {
  color: var(--stone-900);
}

.breadcrumb {
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-700);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill,
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--stone-700);
  background: #fff;
  font-weight: 800;
  transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.pill:hover,
.pill.active,
.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: var(--amber-600);
  background: var(--amber-600);
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(214, 211, 209, 0.78);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.sticky-filter {
  position: sticky;
  top: 92px;
  z-index: 15;
  backdrop-filter: blur(14px);
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.collection-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.82);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.collection-art {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  min-height: 260px;
  background: var(--stone-900);
}

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

.collection-body {
  padding: 24px;
}

.collection-body p {
  color: var(--stone-600);
}

.rank-table {
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.82);
  border-radius: var(--radius);
  background: #fff;
}

.table-rank-row {
  display: grid;
  grid-template-columns: 70px 1fr 180px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--stone-200);
  padding: 16px 20px;
}

.table-rank-row:last-child {
  border-bottom: 0;
}

.table-rank-row b {
  color: var(--amber-700);
}

.table-rank-row span {
  color: var(--stone-900);
  font-weight: 900;
}

.table-rank-row em {
  color: var(--stone-500);
  font-style: normal;
}

.table-rank-row:hover {
  background: var(--amber-100);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #fff;
  background: var(--stone-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.detail-head {
  position: relative;
  z-index: 1;
  padding: 64px 0 58px;
}

.detail-title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: end;
  gap: 42px;
}

.detail-title-grid > div > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.detail-cover {
  width: 260px;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.34);
}

.player-section {
  margin-top: -120px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.32);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(28, 25, 23, 0.10), rgba(28, 25, 23, 0.46));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-ready .play-layer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-500), var(--green-600));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  font-size: 30px;
  padding-left: 5px;
}

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

.detail-content,
.detail-side {
  border: 1px solid rgba(214, 211, 209, 0.82);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.detail-content h2,
.detail-side h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.detail-content p {
  margin: 0 0 24px;
  color: var(--stone-700);
  font-size: 17px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.detail-side dt {
  color: var(--stone-500);
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: var(--stone-800);
}

.neighbor-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.neighbor-links a {
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  color: #fff;
  background: var(--stone-800);
  font-weight: 900;
}

.neighbor-links a:hover {
  background: var(--amber-700);
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--stone-200);
  background: var(--stone-100);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: var(--stone-600);
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--stone-800);
  font-size: 18px;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: var(--amber-700);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--stone-200);
  padding: 18px 0;
  font-size: 14px;
}

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

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

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

  .hero-content,
  .detail-title-grid {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster,
  .detail-cover {
    width: min(260px, 76vw);
    margin: 0 auto;
  }

  .quick-search,
  .filter-panel,
  .section-head,
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-search input,
  .inline-filter input {
    width: 100%;
  }

  .quick-search form,
  .inline-filter,
  .mobile-search {
    width: 100%;
  }

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

  .collection-card {
    grid-template-columns: 1fr;
  }

  .collection-art {
    min-height: 220px;
  }

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

  .player-section {
    margin-top: -80px;
  }

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

  .table-rank-row {
    grid-template-columns: 48px 1fr;
  }

  .table-rank-row em {
    grid-column: 2;
  }
}

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

  .topbar {
    min-height: 66px;
  }

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

  .hero h1,
  .page-hero h1,
  .detail-head h1 {
    font-size: 38px;
  }

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

  .category-grid,
  .catalog-grid,
  .movie-grid,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-card h2 {
    font-size: 16px;
  }

  .movie-card p,
  .movie-meta,
  .tag-list {
    display: none;
  }

  .detail-content,
  .detail-side {
    padding: 20px;
  }

  .play-icon {
    width: 66px;
    height: 66px;
    font-size: 24px;
  }
}
