:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --blue-100: #dbeafe;
  --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-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.15);
  --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.22);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--sky-50) 0%, #ffffff 42%, var(--gray-50) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(186, 230, 253, 0.85);
  background: linear-gradient(90deg, rgba(240, 249, 255, 0.95), rgba(219, 234, 254, 0.95));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-500), var(--sky-700));
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.25);
  font-size: 15px;
}

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

.brand-copy strong,
.footer-brand strong {
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-copy small,
.footer-brand small {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

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

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(224, 242, 254, 0.85);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--gray-700);
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid rgba(186, 230, 253, 0.75);
}

.mobile-menu a {
  display: block;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.5);
}

.mobile-menu a:hover {
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.95);
}

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

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

.hero-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  min-height: 500px;
  margin-bottom: 46px;
  padding: 48px;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.54), rgba(15, 23, 42, 0.22)),
    var(--hero-image) center / cover no-repeat;
  box-shadow: var(--shadow-xl);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-media img.is-hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 165, 233, 0.34), transparent 30%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.24));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 720px;
  min-height: 404px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sky-500);
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(243, 244, 246, 0.95);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 13px;
}

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

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

.primary-button {
  color: var(--sky-700);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.14);
}

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

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
  padding: 22px;
  border: 1px solid var(--sky-200);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
}

.search-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-copy strong {
  color: var(--gray-800);
  font-size: 19px;
}

.search-copy span {
  color: var(--gray-500);
  font-size: 14px;
}

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

.search-controls input,
.search-controls select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--sky-200);
  border-radius: 15px;
  outline: 0;
  background: #ffffff;
  color: var(--gray-700);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-controls select {
  width: 140px;
  flex: 0 0 140px;
}

.search-controls input:focus,
.search-controls select:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.content-section {
  margin-bottom: 56px;
}

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

.section-head h2 {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.section-head h2 span {
  display: inline-block;
  width: 5px;
  height: 34px;
  margin-right: 12px;
  border-radius: 999px;
  background: var(--sky-600);
}

.section-more {
  color: var(--sky-700);
  font-size: 14px;
  font-weight: 800;
}

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

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: var(--sky-200);
  box-shadow: var(--shadow-lg);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.28), transparent 32%),
    linear-gradient(135deg, #dbeafe, #f0f9ff 52%, #f8fafc);
}

.movie-card-small .poster-frame {
  aspect-ratio: 3 / 4;
}

.movie-card-wide .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.poster-frame img.is-hidden,
.ranking-thumb img.is-hidden,
.side-poster img.is-hidden {
  opacity: 0;
}

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

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

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.poster-type {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(224, 242, 254, 0.94);
  font-size: 12px;
  font-weight: 800;
}

.movie-card-body {
  padding: 16px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card-body h3 a:hover {
  color: var(--sky-600);
}

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

.movie-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-tags {
  margin-top: 10px;
  color: var(--sky-700);
  font-size: 12px;
  font-weight: 700;
}

.highlight-section {
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(90deg, var(--sky-100), var(--blue-100));
  box-shadow: var(--shadow-md);
}

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

.category-tile,
.category-overview-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  border: 1px solid rgba(186, 230, 253, 0.85);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 0 0 10px;
  color: var(--gray-800);
  font-size: 20px;
  font-weight: 850;
}

.category-tile span,
.category-overview-card p {
  color: var(--gray-600);
  font-size: 14px;
}

.category-preview-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.category-preview-links a {
  color: var(--sky-700);
  font-size: 14px;
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--sky-600);
  font-weight: 850;
}

.ranking-thumb {
  display: block;
  width: 64px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
}

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

.ranking-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ranking-copy strong {
  overflow: hidden;
  color: var(--gray-800);
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-copy em {
  overflow: hidden;
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-hero {
  margin-bottom: 34px;
  padding: 42px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 10% 15%, rgba(14, 165, 233, 0.25), transparent 28%),
    linear-gradient(135deg, #0f172a, #0369a1);
  box-shadow: var(--shadow-xl);
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
}

.compact-hero {
  padding: 34px;
}

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

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

.category-search,
.inline-search {
  margin-bottom: 32px;
}

.all-movies-grid {
  align-items: stretch;
}

.detail-shell {
  padding-top: 26px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.62fr);
  gap: 26px;
  margin-bottom: 34px;
}

.player-card,
.detail-info,
.text-panel,
.side-card,
.next-prev-panel {
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.player-card {
  overflow: hidden;
  background: #020617;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(14, 165, 233, 0.24), transparent 30%),
    #020617;
  cursor: pointer;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.big-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: var(--sky-700);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-size: 26px;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  pointer-events: none;
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.94);
}

.detail-info h1 {
  color: var(--gray-900);
  font-size: clamp(28px, 3.2vw, 42px);
}

.detail-one-line {
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 16px;
}

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

.detail-meta-grid span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--sky-200);
  border-radius: 16px;
  background: #ffffff;
  color: var(--gray-700);
}

.detail-meta-grid b {
  color: var(--gray-500);
  font-size: 12px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-cloud span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--sky-700);
  background: var(--sky-100);
  font-size: 13px;
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  margin-bottom: 48px;
}

.detail-main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.text-panel,
.next-prev-panel,
.side-card {
  padding: 24px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 24px;
}

.text-panel p,
.side-card p {
  margin: 0;
  color: var(--gray-600);
}

.side-card p + p {
  margin-top: 10px;
}

.side-card a {
  color: var(--sky-700);
  font-weight: 800;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sky-100), #ffffff);
  box-shadow: var(--shadow-md);
}

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

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.next-prev-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.next-prev-panel a {
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--sky-700);
  background: var(--sky-50);
  font-weight: 750;
}

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

.footer-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 0.7fr 0.9fr;
  gap: 32px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.footer-main p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--gray-600);
  font-size: 14px;
}

.footer-column h3 {
  margin: 0 0 12px;
  color: var(--gray-800);
  font-size: 16px;
}

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

.footer-column a {
  color: var(--gray-600);
  font-size: 14px;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  text-align: center;
  font-size: 13px;
}

.is-filtered-out {
  display: none !important;
}

.no-results {
  display: none;
  padding: 24px;
  border: 1px dashed var(--sky-200);
  border-radius: var(--radius-xl);
  color: var(--gray-600);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.no-results.is-visible {
  display: block;
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 14px;
  }

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

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

  .hero-panel {
    max-width: 520px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .hero-feature {
    min-height: 560px;
    padding: 32px;
  }

  .hero-content {
    min-height: 0;
  }

  .search-panel,
  .split-section,
  .detail-hero,
  .detail-layout,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .search-panel {
    display: grid;
  }

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

  .detail-hero {
    display: grid;
  }

  .detail-layout {
    display: grid;
  }

  .detail-side {
    display: none;
  }
}

@media (max-width: 620px) {
  .page-shell,
  .nav-wrap,
  .mobile-menu,
  .footer-wrap {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy strong,
  .footer-brand strong {
    font-size: 18px;
  }

  .hero-feature {
    min-height: 620px;
    padding: 24px;
    border-radius: 22px;
  }

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

  .hero-content p,
  .page-hero p {
    font-size: 15px;
  }

  .hero-panel {
    padding: 14px;
  }

  .search-controls,
  .next-prev-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .search-controls select {
    width: 100%;
    flex-basis: auto;
  }

  .three-grid,
  .four-grid,
  .six-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .highlight-section,
  .page-hero,
  .detail-info,
  .text-panel,
  .side-card,
  .next-prev-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .ranking-item {
    grid-template-columns: auto 54px minmax(0, 1fr);
  }

  .ranking-thumb {
    width: 54px;
  }

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

  .video-player {
    min-height: 210px;
  }
}
