:root {
  --ice-50: #f0f9ff;
  --ice-100: #e0f2fe;
  --ice-200: #bae6fd;
  --ice-300: #7dd3fc;
  --ice-400: #38bdf8;
  --ice-500: #0ea5e9;
  --ice-600: #0284c7;
  --ice-700: #0369a1;
  --glacier-50: #ecfeff;
  --glacier-500: #06b6d4;
  --glacier-600: #0891b2;
  --snow-50: #ffffff;
  --snow-100: #fafafa;
  --snow-200: #e5e7eb;
  --snow-300: #d4d4d8;
  --snow-500: #71717a;
  --snow-700: #3f3f46;
  --snow-800: #27272a;
  --snow-900: #18181b;
  --shadow: 0 12px 30px rgba(2, 132, 199, 0.12);
  --deep-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--snow-900);
  background: linear-gradient(180deg, var(--ice-50), #ffffff 38%, var(--snow-100));
  -webkit-font-smoothing: antialiased;
}

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

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

img {
  background: linear-gradient(135deg, var(--ice-100), var(--glacier-50));
  object-fit: cover;
}

button,
input,
select {
  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(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--snow-200);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.28);
}

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

.desktop-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  color: var(--snow-700);
  font-weight: 650;
}

.desktop-nav a:hover,
.footer-links a:hover {
  color: var(--ice-600);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.search-hero-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--snow-200);
  background: #ffffff;
  color: var(--snow-900);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-hero-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--ice-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
}

.header-search button,
.mobile-panel button,
.search-hero-form button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 750;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.22);
}

.header-search button:hover,
.mobile-panel button:hover,
.search-hero-form button:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(2, 132, 199, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--snow-200);
  border-radius: 12px;
  background: #ffffff;
  color: var(--snow-900);
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--snow-200);
}

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

.mobile-panel nav,
.mobile-panel form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ice-50);
  font-weight: 700;
}

.hero {
  padding: 24px 0 32px;
}

.hero-stage {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  height: 560px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--deep-shadow);
  background: var(--snow-900);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 20, 35, 0.88), rgba(10, 20, 35, 0.52) 45%, rgba(10, 20, 35, 0.14)),
    linear-gradient(0deg, rgba(2, 132, 199, 0.35), transparent 55%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 7vw, 84px);
  bottom: clamp(32px, 8vw, 82px);
  width: min(720px, calc(100% - 48px));
  color: #ffffff;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 750;
  color: var(--ice-700);
  background: rgba(224, 242, 254, 0.92);
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ghost-btn {
  display: inline-flex;
  border-radius: 999px;
  padding: 10px 18px;
  color: #ffffff;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}

.ghost-btn.light {
  color: var(--ice-700);
  background: #ffffff;
  border-color: var(--ice-100);
}

.hero-control {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: var(--snow-900);
  background: rgba(255, 255, 255, 0.9);
  font-size: 34px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-stage:hover .hero-control {
  opacity: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.page-main,
.feature-section,
.container + .container {
  margin-top: 36px;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: var(--snow-900);
  letter-spacing: -0.04em;
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.card-body p,
.featured-copy p,
.row-body p,
.detail-article p,
.detail-one-line,
.category-overview-card p,
.category-card strong {
  color: var(--snow-500);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--ice-600);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 28px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.featured-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 54px);
}

.featured-copy h2 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

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

.movie-card,
.compact-card,
.category-overview-card,
.ranking-row,
.movie-row {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card {
  overflow: hidden;
  border-radius: 20px;
}

.movie-card:hover,
.compact-card:hover,
.category-overview-card:hover,
.ranking-row:hover,
.movie-row:hover {
  transform: translateY(-4px);
  border-color: var(--ice-200);
  box-shadow: 0 20px 42px rgba(2, 132, 199, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.movie-card:hover .card-cover img,
.compact-card:hover img,
.category-card:hover img,
.ranking-row:hover img,
.movie-row:hover img {
  transform: scale(1.06);
}

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ice-600);
  font-size: 34px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.68);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.card-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.card-body h2 a:hover,
.row-title:hover,
.ranking-info h2 a:hover {
  color: var(--ice-600);
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ice-600);
}

.category-band {
  margin: 58px 0;
  padding: 54px 0;
  background: linear-gradient(135deg, var(--ice-50), var(--glacier-50));
}

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

.category-card {
  position: relative;
  min-height: 188px;
  overflow: hidden;
  border-radius: 20px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.12));
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 188px;
}

.category-card span,
.category-card strong {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
}

.category-card span {
  bottom: 62px;
  font-size: 22px;
  font-weight: 850;
}

.category-card strong {
  bottom: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.compact-card {
  overflow: hidden;
  border-radius: 16px;
}

.compact-card a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  color: #ffffff;
  background: var(--snow-900);
}

.compact-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 58%);
}

.compact-card span,
.compact-card strong {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
}

.compact-card span {
  top: 10px;
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
}

.compact-card strong {
  bottom: 12px;
  font-size: 15px;
  line-height: 1.35;
}

.ranking-panel {
  position: sticky;
  top: 88px;
  border-radius: 22px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.section-heading.slim {
  align-items: center;
  margin-bottom: 14px;
}

.section-heading.slim h2 {
  font-size: 24px;
}

.section-heading.slim a {
  color: var(--ice-600);
  font-weight: 800;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: var(--snow-100);
}

.rank-item span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  font-weight: 850;
}

.rank-item a {
  font-weight: 800;
}

.rank-item em {
  grid-column: 2;
  color: var(--snow-500);
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 58px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.32), transparent 32%),
    linear-gradient(135deg, var(--ice-700), var(--snow-900));
}

.compact-hero h1 {
  max-width: 850px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.compact-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

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

.category-overview-card {
  overflow: hidden;
  border-radius: 22px;
}

.category-overview-card a {
  display: block;
  padding: 18px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  height: 190px;
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.category-overview-card h2 {
  margin: 18px 0 8px;
  font-size: 26px;
}

.category-overview-card span {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ice-600);
  font-weight: 850;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 70px 110px minmax(0, 1fr) 80px;
  gap: 18px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
}

.ranking-num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  font-weight: 900;
}

.ranking-cover {
  height: 82px;
  overflow: hidden;
  border-radius: 14px;
}

.ranking-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--snow-500);
  line-height: 1.6;
}

.ranking-score {
  color: var(--ice-600);
  font-size: 24px;
  text-align: right;
}

.search-hero-form {
  display: flex;
  gap: 10px;
  max-width: 620px;
  margin-top: 24px;
}

.search-hero-form input {
  flex: 1;
}

.search-results:empty::before {
  content: "输入关键词后显示匹配影片";
  display: block;
  padding: 28px;
  border-radius: 18px;
  color: var(--snow-500);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  color: #ffffff;
  background: var(--snow-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  filter: blur(2px);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58)),
    linear-gradient(0deg, var(--snow-900), transparent 44%);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--deep-shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

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

.detail-copy h1 {
  color: #ffffff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
}

.detail-meta {
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.detail-one-line {
  max-width: 780px;
  margin: 22px 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.player-section {
  margin-top: -86px;
  position: relative;
  z-index: 3;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--deep-shadow);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ice-600);
  background: rgba(15, 23, 42, 0.28);
  z-index: 2;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 6px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ice-600), var(--glacier-600));
  font-size: 38px;
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.32);
}

.play-overlay.hidden {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  margin-top: 36px;
}

.detail-article,
.detail-side {
  border-radius: 24px;
  padding: clamp(24px, 4vw, 38px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.detail-article h2 + p {
  margin: 0 0 28px;
  font-size: 17px;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  border-radius: 18px;
  padding: 12px;
}

.row-cover {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

.row-title {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 850;
}

.row-meta {
  margin: 0 0 8px;
  color: var(--snow-500);
  font-size: 14px;
}

.row-actions a {
  color: var(--ice-600);
  font-weight: 850;
}

.site-footer {
  margin-top: 72px;
  color: var(--snow-300);
  background: var(--snow-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: var(--snow-300);
  line-height: 1.8;
}

.site-footer h2 {
  color: #ffffff;
  font-size: 18px;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--snow-500);
  text-align: center;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--ice-600);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 30;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

[hidden] {
  display: none !important;
}

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

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

  .two-column-section,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-stage {
    height: 620px;
    border-radius: 22px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.25));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 46px;
    width: auto;
  }

  .hero-content p {
    font-size: 16px;
  }

  .featured-panel,
  .detail-hero-inner,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    padding: 42px 0 112px;
  }

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

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

  .ranking-row {
    grid-template-columns: 50px 84px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 3;
    text-align: left;
  }
}

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

  .hero-stage {
    width: min(100% - 24px, 1180px);
    height: 560px;
  }

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

  .card-body h2 {
    font-size: 17px;
  }

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

  .search-hero-form {
    flex-direction: column;
  }

  .movie-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .row-body p {
    display: none;
  }

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

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