:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-light: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --cyan-dark: #0891b2;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

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

.brand-icon,
.footer-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: white;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
  color: var(--muted-strong);
}

.desktop-nav > a,
.nav-dropdown > button {
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > button:hover {
  color: white;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a,
.mobile-panel a,
.mobile-cats a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted-strong);
}

.dropdown-panel a:hover,
.mobile-panel a:hover,
.mobile-cats a:hover {
  background: rgba(34, 211, 238, 0.1);
  color: white;
}

.header-search {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.home-search-panel input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 10px 14px;
}

.header-search input:focus,
.home-search-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.header-search button,
.home-search-panel button,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.home-search-panel button,
.primary-btn {
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: white;
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.26);
}

.header-search button {
  padding: 10px 16px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: white;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
  display: grid;
  gap: 6px;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
}

.hero-carousel {
  position: relative;
  height: min(82vh, 760px);
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #083344);
}

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

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

.hero-slide > img,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.82)),
    linear-gradient(0deg, var(--bg), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 0 0 96px;
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.hero-meta span,
.poster-badge,
.tag-row span,
.section-kicker {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: var(--cyan-light);
  font-size: 13px;
  font-weight: 700;
}

.hero-meta span {
  padding: 7px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.hero-content h1 {
  max-width: 780px;
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted-strong);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

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

.primary-btn,
.ghost-btn {
  min-height: 48px;
  padding: 0 26px;
}

.primary-btn:hover,
.header-search button:hover,
.home-search-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.38);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.6);
  color: white;
}

.ghost-btn:hover {
  border-color: var(--cyan-light);
  transform: translateY(-2px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  color: white;
  font-size: 42px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

.hero-dots {
  position: absolute;
  right: 40px;
  bottom: 38px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--cyan-light);
}

.home-search-panel {
  position: relative;
  z-index: 5;
  width: min(1100px, calc(100% - 32px));
  margin: -44px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel form {
  display: flex;
  gap: 12px;
}

.home-search-panel input {
  flex: 1;
  min-height: 52px;
  padding: 0 20px;
}

.home-search-panel button {
  padding: 0 28px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-tags a {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.82);
  color: var(--muted-strong);
  transition: all 0.2s ease;
}

.quick-tags a:hover {
  background: rgba(6, 182, 212, 0.18);
  color: white;
}

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

.home-shell {
  display: grid;
  gap: 90px;
}

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

.section-kicker {
  padding: 6px 11px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  letter-spacing: -0.04em;
}

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

.section-heading p,
.page-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: var(--cyan-light);
  font-weight: 800;
}

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

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
}

.card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #083344);
}

.large-card .poster-frame {
  aspect-ratio: 16 / 11;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), transparent 58%);
}

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 10px;
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.9);
  color: white;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
}

.card-body {
  padding: 16px;
}

.meta-line {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 10px;
  overflow: hidden;
  color: white;
  font-size: 18px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--cyan-light);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}

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

.rank-item,
.ranking-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover,
.ranking-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(30, 41, 59, 0.9);
}

.rank-num,
.ranking-index {
  width: 44px;
  color: var(--cyan-light);
  font-weight: 900;
  text-align: center;
}

.rank-item img,
.ranking-row img {
  width: 92px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #083344);
}

.rank-info,
.ranking-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.rank-info strong,
.ranking-main strong {
  overflow: hidden;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.ranking-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.compact-card .card-body p,
.compact-card .tag-row {
  display: none;
}

.compact-card .card-body h3 {
  min-height: auto;
}

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

.category-column,
.text-panel,
.filter-panel,
.result-head,
.category-card a {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.category-column {
  padding: 18px;
}

.column-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.column-title h3 {
  margin: 0;
}

.column-title a {
  color: var(--cyan-light);
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 0, rgba(6, 182, 212, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.8));
  box-shadow: var(--shadow);
}

.small-hero {
  margin-bottom: 36px;
  padding: 44px;
}

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

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

.category-card a {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  padding: 24px;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

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

.category-card span {
  justify-self: start;
  align-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.18);
  color: var(--cyan-light);
  font-weight: 800;
}

.category-card h2 {
  align-self: end;
  margin: auto 0 8px;
  font-size: 28px;
}

.category-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.74);
  color: var(--muted-strong);
}

.pagination a:hover,
.pagination a.is-current {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.16);
  color: white;
}

.ranking-row .heat-score {
  margin-left: auto;
  color: var(--cyan-light);
  font-weight: 800;
  white-space: nowrap;
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px;
}

.filter-panel label {
  display: grid;
  gap: 9px;
  color: var(--muted-strong);
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 22px;
}

.result-head h2 {
  margin: 0;
}

.result-head span {
  color: var(--cyan-light);
  font-weight: 800;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #020617, #083344);
}

.detail-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 38px;
  color: var(--muted-strong);
}

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

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

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

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

.detail-info h1 {
  max-width: 850px;
  margin: 20px 0 18px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
}

.one-line {
  max-width: 780px;
  color: var(--muted-strong);
  font-size: 20px;
  line-height: 1.8;
}

.detail-tags {
  margin: 22px 0 28px;
}

.detail-shell {
  display: grid;
  gap: 64px;
}

.player-section {
  scroll-margin-top: 90px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 28px;
  background: black;
  box-shadow: var(--shadow);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2), rgba(2, 6, 23, 0.72));
  color: white;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  font-size: 36px;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.36);
}

.player-overlay strong {
  font-size: 22px;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-panel {
  padding: 26px;
}

.text-panel h2 {
  margin: 0 0 15px;
}

.text-panel p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-brand {
  margin-bottom: 16px;
  font-size: 19px;
}

.site-footer p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--cyan-light);
}

.empty-result {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 22px;
  color: var(--muted-strong);
  text-align: center;
}

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

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

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

  .split-section,
  .content-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 62px;
  }

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

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-nav {
    display: none;
  }

  .hero-dots {
    right: auto;
    left: 20px;
  }

  .home-search-panel form,
  .section-heading,
  .detail-grid,
  .result-head {
    align-items: stretch;
    flex-direction: column;
  }

  .home-search-panel form {
    display: grid;
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .category-columns,
  .mini-grid,
  .top-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .small-hero {
    padding: 30px;
  }

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

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

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

  .ranking-row {
    align-items: flex-start;
  }

  .ranking-row .heat-score {
    display: none;
  }
}

@media (max-width: 520px) {
  .brand-text {
    font-size: 18px;
  }

  .page-shell,
  .header-inner,
  .mobile-panel,
  .detail-content,
  .footer-grid {
    width: min(100% - 24px, 1240px);
  }

  .movie-grid,
  .wide-grid,
  .category-grid,
  .category-columns,
  .mini-grid,
  .top-three {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .detail-info h1 {
    font-size: 40px;
  }

  .card-body h3 {
    min-height: auto;
  }

  .rank-item img,
  .ranking-row img {
    width: 76px;
    height: 52px;
  }
}
