body {
  min-height: 100vh;
  background: #fff7f7;
  color: #111827;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 8% 12%, rgba(244, 63, 94, 0.16), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(249, 115, 22, 0.13), transparent 30%),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 42%, #fff7ed 100%);
}

a {
  color: inherit;
}

img {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 18px 40px rgba(190, 18, 60, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark,
.footer-brand span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #db2777, #f97316);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(244, 63, 94, 0.28);
}

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

.brand-text strong {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, #f43f5e, #db2777, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  margin-top: 5px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav a,
.nav-dropdown > a {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown > a.active {
  color: #e11d48;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.nav-dropdown-menu {
  position: absolute;
  top: 68px;
  left: -18px;
  width: 180px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.22s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.nav-dropdown-menu a:hover {
  background: #fff1f2;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  height: 42px;
  border: 1px solid rgba(244, 63, 94, 0.18);
  background: rgba(255, 255, 255, 0.9);
  outline: none;
  transition: 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 0 16px;
  border-radius: 999px 0 0 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f43f5e;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button,
.mobile-search button {
  height: 42px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(90deg, #f43f5e, #db2777);
  border: 0;
  border-radius: 0 999px 999px 0;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  color: #e11d48;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  padding: 14px 24px 24px;
  border-top: 1px solid rgba(244, 63, 94, 0.12);
  background: #ffffff;
}

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

.mobile-panel a {
  padding: 10px 0;
  color: #374151;
  font-weight: 700;
}

.mobile-search input {
  flex: 1;
  padding: 0 14px;
  border-radius: 999px 0 0 999px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(115deg, #e11d48, #db2777, #f97316);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.hero-bg img,
.detail-bg img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15);
}

.hero-bg::after,
.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(136, 19, 55, 0.88), rgba(190, 24, 93, 0.62), rgba(249, 115, 22, 0.56)),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.28), transparent 24%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 620px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 50px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 74px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #fff7ed;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-tags,
.tag-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
  color: #be123c;
  background: #fff1f2;
}

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

.small-actions {
  margin-top: 24px;
}

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-btn {
  color: #e11d48;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.hero-poster,
.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(76, 5, 25, 0.38);
  transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-poster:hover img,
.detail-poster:hover img,
.movie-card:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.detail-poster span,
.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-poster span,
.detail-poster span {
  width: 72px;
  height: 72px;
  font-size: 28px;
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #ffffff;
}

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.white-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: rgba(255, 255, 255, 0.72);
}

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

.section-head h2,
.rank-panel h2,
.detail-article h2,
.detail-side h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: 10px;
  color: #6b7280;
  line-height: 1.7;
}

.section-link {
  min-height: 40px;
  color: #e11d48;
  background: #fff1f2;
}

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

.category-tile,
.category-overview-card,
.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(136, 19, 55, 0.16);
}

.category-tile {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-6px);
}

.category-tile::after,
.category-overview-card::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.32));
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  mix-blend-mode: screen;
}

.category-tile strong,
.category-tile em,
.category-tile .tile-icon {
  position: relative;
  z-index: 2;
}

.tile-icon {
  margin-bottom: 14px;
  font-size: 34px;
}

.category-tile strong {
  font-size: 20px;
  font-weight: 950;
}

.category-tile em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.cat-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.cat-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.cat-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.cat-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.cat-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.cat-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.cat-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.cat-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.cat-green { background: linear-gradient(135deg, #22c55e, #15803d); }
.cat-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 24px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fed7aa);
}

.movie-cover img {
  aspect-ratio: 16 / 10;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.archive-grid .movie-cover img,
.related-grid .movie-cover img {
  aspect-ratio: 3 / 4;
}

.play-dot {
  width: 50px;
  height: 50px;
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
}

.duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.duration {
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f43f5e, #f97316);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: 0.2s ease;
}

.movie-title:hover {
  color: #e11d48;
}

.movie-info p {
  margin-top: 10px;
  min-height: 46px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
}

.tag-row {
  margin-top: 14px;
}

.tag-row span {
  min-height: 26px;
  font-size: 12px;
}

.two-column-section {
  max-width: 1280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 98px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

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

.rank-panel-head h2 {
  font-size: 28px;
}

.rank-panel-head a {
  color: #e11d48;
  font-weight: 900;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 32px 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: #fff1f2;
}

.rank-index {
  color: #e11d48;
  font-size: 18px;
  font-weight: 950;
}

.rank-row img {
  width: 58px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
}

.rank-copy em {
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  color: #f59e0b;
  font-weight: 950;
  font-size: 13px;
}

.page-hero {
  max-width: 1280px;
  min-height: 340px;
  margin: 30px auto 0;
  padding: 72px 42px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f43f5e, #db2777, #f97316);
}

.page-hero > div {
  position: relative;
  z-index: 2;
}

.compact-hero,
.ranking-hero,
.search-hero {
  background: linear-gradient(135deg, #f43f5e, #db2777, #f97316);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 63, 94, 0.12);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 0 14px;
  color: #111827;
  border-radius: 14px;
}

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

.category-overview-card {
  min-height: 270px;
  padding: 28px;
  transition: 0.25s ease;
}

.category-overview-card > * {
  position: relative;
  z-index: 2;
}

.overview-main span {
  font-size: 42px;
}

.overview-main h2 {
  margin-top: 16px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 950;
}

.overview-main p {
  max-width: 680px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.overview-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-links a {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #881337, #be185d, #ea580c);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.detail-poster {
  transform: none;
}

.breadcrumb {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a:hover {
  color: #ffffff;
}

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

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

.detail-tags span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #030712;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030712;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.20), rgba(3, 7, 18, 0.28));
  cursor: pointer;
}

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

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #e11d48;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 34px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.26);
}

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

.detail-article,
.detail-side {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(244, 63, 94, 0.10);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.detail-article {
  padding: 32px;
}

.detail-article h2 {
  margin-top: 28px;
  font-size: 28px;
}

.detail-article h2:first-child {
  margin-top: 0;
}

.detail-article p {
  margin-top: 14px;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.detail-side {
  position: sticky;
  top: 98px;
  padding: 26px;
}

.detail-side h2 {
  font-size: 26px;
}

.detail-side dl {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.detail-side dt {
  color: #9f1239;
  font-size: 13px;
  font-weight: 950;
}

.detail-side dd {
  margin: 4px 0 0;
  color: #374151;
  line-height: 1.6;
}

.detail-nav-links {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.detail-nav-links a {
  padding: 14px 16px;
  color: #be123c;
  background: #fff1f2;
  border-radius: 16px;
  font-weight: 900;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #881337, #9f1239, #c2410c);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
}

.footer-brand span {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  max-width: 560px;
  margin-top: 16px;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 950;
}

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

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .category-grid,
  .featured-grid,
  .latest-grid,
  .archive-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-wrap {
    gap: 16px;
  }

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

  .hero-poster,
  .detail-poster {
    max-width: 320px;
    transform: none;
  }

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

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

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

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .hero-carousel,
  .hero-inner {
    min-height: 720px;
  }

  .hero-inner,
  .detail-hero-inner,
  .content-section,
  .page-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    min-height: 300px;
    margin-top: 16px;
    border-radius: 0;
  }

  .category-grid,
  .featured-grid,
  .latest-grid,
  .archive-grid,
  .related-grid,
  .category-overview-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .rank-row {
    grid-template-columns: 28px 52px 1fr;
  }

  .rank-score {
    display: none;
  }

  .detail-article,
  .detail-side {
    padding: 22px;
  }
}
