/*
  Static movie site stylesheet.
  Visual language follows the uploaded original site: dark slate background,
  ocean-blue buttons, gradient Hero area, rounded cards and responsive grids.
*/

:root {
  --color-bg: #020617;
  --color-panel: #0f172a;
  --color-card: #1e293b;
  --color-card-soft: #162033;
  --color-border: #233047;
  --color-text: #ffffff;
  --color-muted: #94a3b8;
  --color-soft: #cbd5e1;
  --color-ocean: #0ea5e9;
  --color-ocean-dark: #0284c7;
  --color-ocean-light: #38bdf8;
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.28);
  --radius-large: 24px;
  --radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34%), var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

img,
video {
  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: 100;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-ocean), var(--color-ocean-dark));
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.38);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

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

.brand-text small {
  color: var(--color-muted);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-nav-link {
  color: var(--color-soft);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: var(--color-ocean-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: #111c30;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  font-weight: 600;
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--color-bg);
}

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

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

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-slide img[src$=".jpg"] {
  min-height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.05));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  max-width: 720px;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  animation: fadeIn 0.6s ease both;
}

.hero-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--color-ocean-dark);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-info p {
  max-width: 680px;
  margin: 0;
  color: var(--color-soft);
  font-size: 18px;
}

.hero-meta,
.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--color-muted);
  font-size: 14px;
}

.hero-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span:not(:last-child)::after,
.movie-meta-line span:not(:last-child)::after {
  content: "•";
  color: rgba(148, 163, 184, 0.62);
  margin-left: 10px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: var(--color-ocean);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.28);
}

.btn.primary:hover {
  background: var(--color-ocean-dark);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 38px;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

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

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #ffffff;
}

.section {
  padding: 56px 0;
}

.page-main {
  min-height: 70vh;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-more {
  flex: 0 0 auto;
  color: var(--color-ocean-light);
  font-weight: 700;
}

.search-panel,
.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-large);
  padding: 28px;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow-soft);
}

.search-copy span {
  color: var(--color-ocean-light);
  font-weight: 800;
}

.search-copy h2 {
  margin: 4px 0 0;
  font-size: 24px;
}

.quick-search,
.filter-search {
  display: flex;
  width: min(520px, 100%);
  gap: 12px;
}

.quick-search input,
.filter-search input {
  flex: 1;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0 16px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.78);
  outline: none;
}

.quick-search input:focus,
.filter-search input:focus {
  border-color: var(--color-ocean);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.quick-search button,
.filter-groups button {
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #ffffff;
  background: var(--color-ocean-dark);
  cursor: pointer;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-card);
  background: var(--color-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #0f172a 45%, #0284c7);
}

.movie-card.default .movie-poster,
.movie-card.compact .movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-card.compact {
  width: 230px;
  flex: 0 0 230px;
}

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

.movie-card:hover .movie-poster img,
.rank-item:hover .rank-cover img {
  transform: scale(1.06);
}

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

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: #f59e0b;
  font-weight: 900;
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 8px 0 8px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.3;
}

.movie-info h3 a:hover,
.rank-content h3 a:hover,
.category-overview-card a:hover {
  color: var(--color-ocean-light);
}

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

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

.tag-row span {
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--color-soft);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
}

.dark-band {
  background: rgba(15, 23, 42, 0.72);
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

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

.category-tile {
  min-height: 168px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-card);
  padding: 20px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(14, 165, 233, 0.18));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  border-color: rgba(56, 189, 248, 0.44);
  transform: translateY(-4px);
}

.category-tile strong {
  display: block;
  font-size: 20px;
}

.category-tile span {
  display: inline-block;
  margin: 8px 0;
  color: var(--color-ocean-light);
  font-weight: 800;
}

.category-tile p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

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

.hot-sidebar {
  align-self: start;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-large);
  padding: 20px;
  background: rgba(15, 23, 42, 0.84);
  position: sticky;
  top: 92px;
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sidebar-head h2 {
  margin: 0;
  font-size: 24px;
}

.sidebar-head a {
  color: var(--color-ocean-light);
  font-weight: 800;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  padding: 12px;
  background: var(--color-card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(56, 189, 248, 0.34);
  transform: translateY(-2px);
}

.hot-sidebar .rank-item {
  grid-template-columns: auto 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
}

.hot-number {
  min-width: 34px;
  color: #f59e0b;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827, #0f172a 45%, #0284c7);
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-cover span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
}

.rank-content h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rank-content p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hot-sidebar .rank-content p,
.hot-sidebar .movie-meta-line span:nth-child(n+3) {
  display: none;
}

.page-hero {
  margin-top: 34px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-large);
  padding: 56px;
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.20), transparent 42%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  box-shadow: var(--shadow-soft);
}

.compact-hero h1,
.category-hero h1 {
  margin-top: 16px;
}

.filter-panel {
  display: grid;
  align-items: stretch;
}

.filter-search.wide,
.filter-search {
  width: 100%;
}

.filter-groups {
  display: grid;
  gap: 16px;
}

.filter-groups > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-groups strong {
  min-width: 44px;
  color: var(--color-soft);
}

.filter-groups button {
  min-height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
}

.filter-groups button.active,
.filter-groups button:hover {
  background: var(--color-ocean-dark);
}

.result-count {
  margin-bottom: 18px;
  color: var(--color-muted);
  font-weight: 700;
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-large);
  padding: 20px;
  background: var(--color-card);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: 16px;
}

.category-cover-stack img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

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

.category-overview-card span {
  color: var(--color-ocean-light);
  font-weight: 900;
}

.category-overview-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--color-soft);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--color-bg);
}

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(2px);
  transform: scale(1.02);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.55));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 560px;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding: 56px 0;
}

.detail-cover {
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(135deg, #111827, #0f172a 45%, #0284c7);
}

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

.detail-info {
  display: grid;
  gap: 18px;
}

.detail-info h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.detail-tags span {
  font-size: 13px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-large);
  background: #000000;
  box-shadow: var(--shadow-soft);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.player-start.hidden {
  display: none;
}

.player-start span {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 0 44px rgba(14, 165, 233, 0.44);
}

.player-start strong {
  font-size: 18px;
}

.player-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--color-soft);
  background: rgba(15, 23, 42, 0.82);
  font-size: 13px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 20px;
}

.content-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-large);
  padding: 24px;
  background: rgba(15, 23, 42, 0.84);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--color-soft);
}

.info-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.info-card dt {
  color: var(--color-muted);
}

.info-card dd {
  margin: 0;
  color: #ffffff;
}

.info-card a {
  color: var(--color-ocean-light);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--color-muted);
}

.site-footer h3 {
  margin: 0 0 12px;
}

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

.site-footer a:hover {
  color: var(--color-ocean-light);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  padding: 16px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-ocean-dark);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.back-top.show {
  display: block;
}

[hidden],
.movie-card.is-hidden,
.rank-item.is-hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .feature-grid,
  .small-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .hot-sidebar {
    position: static;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    width: calc(100% - 72px);
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-arrow.prev {
    left: 10px;
  }

  .hero-arrow.next {
    right: 10px;
  }

  .search-panel,
  .filter-panel {
    padding: 20px;
  }

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

  .quick-search {
    display: grid;
  }

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

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

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

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

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

  .page-hero {
    padding: 32px 22px;
  }

  .rank-item,
  .hot-sidebar .rank-item {
    grid-template-columns: auto 96px minmax(0, 1fr);
  }

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

@media (max-width: 520px) {
  .feature-grid,
  .small-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .hot-number {
    text-align: left;
  }

  .rank-cover {
    width: 100%;
  }
}
