:root {
  --bg: #071114;
  --bg-soft: #0f1f26;
  --panel: #102832;
  --panel-2: #13333e;
  --text: #eef7f5;
  --muted: #9db8b8;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #14b8a6;
  --teal-2: #0f766e;
  --amber: #f59e0b;
  --card: #ffffff;
  --card-text: #102028;
  --card-muted: #61717b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.2), transparent 34rem),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 28rem),
    linear-gradient(180deg, #071114 0%, #0a1519 42%, #081216 100%);
  min-height: 100vh;
}

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;
  background: linear-gradient(90deg, rgba(12, 74, 68, 0.97), rgba(15, 23, 42, 0.97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), #f97316);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.35);
}

.brand-text strong,
.footer-logo {
  display: block;
  font-size: 22px;
  letter-spacing: 0.06em;
  font-weight: 900;
}

.brand-text em {
  display: block;
  margin-top: 2px;
  color: #67e8f9;
  font-size: 12px;
  font-style: normal;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.83);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #5eead4;
  border-color: #5eead4;
}

.header-search {
  display: flex;
  align-items: center;
  width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.header-search input,
.wide-search input,
.search-page-panel input,
.page-filter-input,
.page-year-filter {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.header-search input {
  width: 100%;
  padding: 11px 12px;
}

.header-search button,
.wide-search button,
.search-page-panel button {
  border: 0;
  padding: 11px 16px;
  background: var(--teal);
  color: #021817;
  font-weight: 900;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 10px 24px 22px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel a {
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-panel input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel button {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  background: var(--teal);
  color: #06201e;
  font-weight: 900;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.93) 0%, rgba(2, 6, 23, 0.75) 42%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 112px 28px 120px;
  margin-left: max(24px, calc((100vw - 1280px) / 2));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  border: 1px solid rgba(94, 234, 212, 0.26);
  color: #8ff7e9;
  font-size: 14px;
  font-weight: 900;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 22px 0 16px;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.lead-text {
  margin: 0;
  max-width: 690px;
  color: rgba(238, 247, 245, 0.85);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-info div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta {
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span,
.rank-info div span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.center-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--teal), #5eead4);
  color: #06201e;
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.26);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.movie-card:hover,
.category-card:hover,
.ranking-card:hover,
.category-tile:hover {
  transform: translateY(-3px);
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: max(52px, calc((100vw - 1280px) / 2 + 28px));
  bottom: 54px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dots button.active {
  width: 54px;
  background: #5eead4;
}

.quick-panel,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.story-section,
.filter-panel,
.search-page-panel {
  width: min(1280px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  margin-top: -42px;
  position: relative;
  z-index: 6;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 31, 38, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.wide-search,
.search-page-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.wide-search input,
.search-page-panel input {
  min-height: 56px;
  padding: 0 18px;
}

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

.quick-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.83);
  font-weight: 800;
}

.content-section {
  margin-top: 70px;
}

.dark-section,
.rank-section {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 31, 38, 0.95), rgba(19, 51, 62, 0.78));
  box-shadow: var(--shadow);
}

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

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 8px 0 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  color: var(--card-text);
  background: var(--card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-link img,
.category-tile:hover img,
.rank-cover:hover img,
.detail-poster:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 17px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.34;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-title:hover,
.rank-info a:hover,
.category-card h2 a:hover {
  color: var(--teal-2);
}

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

.card-meta {
  gap: 8px;
  color: #60707a;
  font-size: 12px;
  font-weight: 800;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: #c4cdd2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.tag-row.large span {
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: #99f6e4;
}

.movie-card.compact .card-body {
  padding: 14px;
}

.movie-card.compact .card-title {
  min-height: 42px;
  font-size: 16px;
}

.movie-card.compact .card-body p {
  min-height: auto;
  -webkit-line-clamp: 1;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0f172a;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  margin: 142px 18px 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 0 18px 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

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

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

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

.ranking-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.rank-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: #0f172a;
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--amber);
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

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

.rank-info a {
  display: block;
  color: white;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

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

.page-hero {
  margin-top: 40px;
  padding: 62px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.15), transparent 42%),
    linear-gradient(120deg, rgba(15, 31, 38, 0.96), rgba(19, 51, 62, 0.78));
  box-shadow: var(--shadow);
}

.page-hero.small {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.category-page-head {
  min-height: 360px;
}

.filter-panel,
.search-page-panel {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.page-filter-input,
.page-year-filter {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.page-year-filter {
  color: white;
}

.page-year-filter option {
  color: #111827;
}

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

.category-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

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

.category-card p {
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  min-height: 0;
  padding: 0;
  color: #5eead4;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  margin-top: 44px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 24% 24%, rgba(20, 184, 166, 0.25), transparent 22rem),
    linear-gradient(135deg, rgba(15, 31, 38, 0.98), rgba(8, 18, 22, 0.9));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #5eead4;
}

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

.detail-meta {
  margin-top: 22px;
}

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

.compact-title {
  align-items: center;
  margin-bottom: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.08));
  cursor: pointer;
}

.play-layer.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-layer span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), #5eead4);
  color: #06201e;
  font-size: 30px;
  box-shadow: 0 18px 42px rgba(20, 184, 166, 0.35);
}

.play-layer strong {
  font-size: 18px;
  letter-spacing: 0.12em;
}

.player-state {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  pointer-events: none;
}

.player-state:empty {
  display: none;
}

.story-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 36px;
}

.story-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
}

.story-card h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.story-card p {
  margin: 0;
  color: rgba(238, 247, 245, 0.83);
  font-size: 17px;
  line-height: 1.9;
}

.global-search-results {
  display: grid;
  gap: 18px;
}

.search-result-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.search-result-card img {
  width: 120px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.search-result-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.search-result-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.empty-result {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.site-footer {
  margin-top: 84px;
  padding: 48px 24px 26px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), #020617);
  border-top: 1px solid var(--line);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 48px;
}

.footer-grid p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
}

.footer-grid a:hover {
  color: #5eead4;
}

.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

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

  .header-search {
    margin-left: auto;
  }

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

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

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

  .category-overview-grid,
  .ranking-list,
  .rank-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .header-search {
    display: none;
  }

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

  .hero-content {
    margin-left: 0;
    padding: 88px 24px 104px;
  }

  .hero-dots {
    left: 24px;
  }

  .quick-panel,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .story-section,
  .filter-panel,
  .search-page-panel {
    width: min(100% - 30px, 1280px);
  }

  .dark-section,
  .rank-section,
  .page-hero,
  .detail-hero,
  .story-card {
    padding: 24px;
    border-radius: 24px;
  }

  .section-title {
    display: block;
  }

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

  .detail-hero,
  .story-section,
  .category-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .brand-text em {
    font-size: 11px;
  }

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

  .wide-search,
  .search-page-panel form {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .full-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .ranking-card,
  .search-result-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .rank-cover span {
    min-width: 28px;
    height: 24px;
    font-size: 11px;
  }

  .search-result-card img {
    width: 88px;
  }
}
