:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.10), 0 2px 4px -2px rgb(0 0 0 / 0.10);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sky-50), var(--white) 38%, var(--gray-50));
  color: var(--gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgb(240 249 255 / 0.96), rgb(239 246 255 / 0.96));
  border-bottom: 1px solid var(--sky-200);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1280px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 176px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  color: var(--white);
  box-shadow: 0 12px 26px rgb(2 132 199 / 0.25);
  font-size: 15px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-800);
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12px;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
}

.nav-link {
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--sky-600);
}

.header-search {
  position: relative;
  width: 260px;
}

.search-input,
.wide-search input,
.filter-search input {
  width: 100%;
  border: 1px solid var(--sky-200);
  border-radius: 999px;
  outline: none;
  background: var(--white);
  color: var(--gray-800);
  padding: 11px 16px;
  box-shadow: 0 8px 18px rgb(14 165 233 / 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.wide-search input:focus,
.filter-search input:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgb(14 165 233 / 0.14);
}

.search-results {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  width: min(420px, 86vw);
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--sky-100);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-2xl);
  padding: 10px;
}

.search-results.is-open {
  display: grid;
  gap: 8px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--sky-50);
}

.search-result-item img {
  width: 52px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

.search-result-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gray-800);
  font-size: 14px;
}

.search-result-item span {
  color: var(--gray-500);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  border: none;
  border-radius: 12px;
  background: var(--sky-100);
  color: var(--gray-700);
  padding: 8px 11px;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--sky-200);
}

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

.mobile-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--sky-100);
  color: var(--sky-700);
}

.mobile-search {
  position: relative;
  margin-top: 8px;
}

.page-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.page-top {
  padding-top: 32px;
}

.hero-wrap {
  padding-top: 32px;
}

.hero-panel {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-2xl);
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.42) 48%, rgb(0 0 0 / 0.05));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 840px;
  padding: 48px;
  color: var(--white);
}

.hero-kicker,
.detail-kicker,
.inner-hero span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--sky-500);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0;
  max-width: 720px;
  color: rgb(243 244 246 / 0.94);
  font-size: 18px;
  line-height: 1.8;
}

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

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

.primary-btn {
  background: var(--white);
  color: var(--sky-600);
  box-shadow: 0 18px 34px rgb(0 0 0 / 0.18);
}

.ghost-btn {
  border: 1px solid rgb(255 255 255 / 0.45);
  color: var(--white);
  background: rgb(255 255 255 / 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.category-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgb(255 255 255 / 0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-chip:hover {
  background: rgb(255 255 255 / 0.28);
  transform: translateY(-1px);
}

.search-section {
  margin-top: 32px;
}

.wide-search {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(90deg, var(--sky-100), var(--blue-50));
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.wide-search input {
  border-radius: 18px;
  font-size: 17px;
  padding: 16px 18px;
}

.large-results {
  left: 20px;
  right: auto;
  top: calc(100% - 8px);
  width: min(680px, calc(100vw - 64px));
}

.section-gap {
  margin-top: 56px;
}

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

.section-title-row h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
}

.section-title-row h2 span {
  width: 4px;
  height: 32px;
  border-radius: 999px;
  background: var(--sky-600);
}

.section-title-row a,
.rank-head a {
  color: var(--sky-700);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.cover-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

.movie-card.small .cover-frame,
.movie-card.normal .cover-frame {
  aspect-ratio: 3 / 4;
}

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

.cover-frame img.is-missing,
.hero-image.is-missing,
.detail-cover img.is-missing,
.ranking-cover img.is-missing,
.rank-thumb img.is-missing,
.category-overview-thumbs img.is-missing,
.search-result-item img.is-missing {
  opacity: 0;
}

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

.cover-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / 0.55));
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.92);
  color: var(--sky-600);
  box-shadow: var(--shadow-md);
  transform: scale(0.94);
  transition: transform 0.2s ease;
}

.movie-card:hover .play-badge {
  transform: scale(1.06);
}

.card-content {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-title:hover {
  color: var(--sky-700);
}

.card-meta {
  margin-top: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.card-tags span,
.detail-tags span,
.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 750;
  padding: 5px 9px;
}

.highlight-box {
  border-radius: 24px;
  background: linear-gradient(90deg, var(--sky-100), var(--blue-50));
  box-shadow: var(--shadow-md);
  padding: 32px;
}

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

.rank-panel {
  position: sticky;
  top: 88px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  padding: 22px;
}

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

.rank-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 48px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: var(--sky-50);
}

.rank-num {
  color: var(--sky-600);
  font-weight: 900;
}

.rank-thumb {
  display: block;
  width: 48px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-arrow {
  color: var(--gray-500);
  font-size: 22px;
}

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

.category-card,
.category-overview {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.category-card {
  padding: 22px;
}

.category-card-title {
  display: block;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 900;
}

.category-card-desc {
  display: block;
  min-height: 66px;
  margin-top: 10px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}

.category-card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--sky-700);
  font-weight: 850;
}

.inner-hero {
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 20% 20%, rgb(14 165 233 / 0.18), transparent 26%), linear-gradient(135deg, var(--sky-100), var(--blue-50));
  box-shadow: var(--shadow-md);
  padding: 42px;
}

.inner-hero h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.8;
}

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

.category-overview-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  height: 138px;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

.category-overview-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-overview-body p {
  min-height: 50px;
  margin: 10px 0 16px;
  color: var(--gray-600);
  line-height: 1.65;
}

.category-overview-body span {
  color: var(--sky-700);
  font-weight: 850;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

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

.filter-line strong {
  margin-right: 8px;
  color: var(--gray-800);
}

.filter-line button {
  border: none;
  border-radius: 999px;
  background: var(--sky-50);
  color: var(--gray-700);
  padding: 8px 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-line button:hover,
.filter-line button.is-active {
  background: var(--sky-600);
  color: var(--white);
}

.filter-search {
  max-width: 460px;
}

.category-list {
  margin-top: 24px;
}

.ranking-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 14px;
}

.ranking-cover {
  position: relative;
  display: block;
  overflow: hidden;
  height: 156px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
}

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

.ranking-cover span {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  background: var(--sky-600);
  color: var(--white);
  font-weight: 900;
  padding: 5px 9px;
}

.ranking-info {
  align-self: center;
}

.ranking-info a {
  color: var(--gray-800);
  font-size: 22px;
  font-weight: 900;
}

.ranking-info a:hover {
  color: var(--sky-700);
}

.ranking-info p {
  margin: 10px 0;
  color: var(--gray-600);
  line-height: 1.7;
}

.ranking-info em {
  color: var(--gray-500);
  font-style: normal;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sky-700);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
  box-shadow: var(--shadow-xl);
  padding: 28px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--sky-100), var(--blue-50));
  box-shadow: var(--shadow-md);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-copy h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-copy p {
  max-width: 880px;
  margin: 20px 0 0;
  color: var(--gray-700);
  font-size: 18px;
  line-height: 1.85;
}

.watch-section {
  margin-top: 32px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow-2xl);
  aspect-ratio: 16 / 9;
}

.movie-player video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: none;
  background: radial-gradient(circle at center, rgb(14 165 233 / 0.22), transparent 30%), linear-gradient(180deg, rgb(0 0 0 / 0.12), rgb(0 0 0 / 0.72));
  color: var(--white);
  cursor: pointer;
  z-index: 2;
}

.player-cover.is-hidden {
  display: none;
}

.player-pulse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.96);
  color: var(--sky-600);
  font-size: 28px;
  box-shadow: 0 18px 60px rgb(14 165 233 / 0.38);
}

.player-cover strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.25;
  text-align: center;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.content-card {
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 24px;
  font-weight: 900;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(180deg, var(--gray-50), var(--gray-100));
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 900;
}

.footer-brand p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--gray-600);
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--gray-600);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--sky-700);
}

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

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

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

  .header-search {
    width: min(360px, 42vw);
  }

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

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

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

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

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .site-nav {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
  }

  .header-search {
    display: none;
  }

  .hero-panel,
  .hero-image {
    min-height: 520px;
    height: 520px;
  }

  .hero-content {
    padding: 28px;
  }

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

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

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

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

  .detail-cover img {
    max-height: 520px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-wrap,
  .site-nav,
  .mobile-menu,
  .footer-inner {
    width: min(100% - 20px, 1280px);
  }

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

  .hero-panel,
  .hero-image {
    min-height: 560px;
    height: 560px;
    border-radius: 18px;
  }

  .hero-content {
    padding: 22px;
  }

  .hero-actions a {
    width: 100%;
  }

  .highlight-box,
  .inner-hero,
  .detail-hero,
  .content-card {
    padding: 20px;
    border-radius: 18px;
  }

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

  .card-content {
    padding: 12px;
  }

  .card-title {
    min-height: 40px;
    font-size: 15px;
  }

  .card-desc {
    display: none;
  }

  .ranking-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .ranking-cover {
    height: 120px;
  }

  .ranking-info a {
    font-size: 17px;
  }

  .ranking-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
