@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --amber-50: #fff8e6;
  --amber-100: #ffe9ae;
  --amber-200: #f7d27c;
  --orange-50: #fff2e7;
  --red-50: #fff1ee;
  --red-100: #ffd9d2;
  --red-600: #c73722;
  --red-700: #a92719;
  --red-800: #851b12;
  --red-900: #5f120d;
  --red-950: #2a0705;
  --ink: #2a1814;
  --muted: #77635c;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(95, 18, 13, 0.18);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Microsoft YaHei", "PingFang SC", serif;
  background: linear-gradient(180deg, var(--amber-50), var(--orange-50) 45%, var(--red-50));
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 248, 230, 0.96), rgba(255, 242, 231, 0.96), rgba(255, 241, 238, 0.96));
  border-bottom: 2px solid var(--red-800);
  box-shadow: 0 12px 30px rgba(95, 18, 13, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(95, 18, 13, 0.25);
  transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
  transform: rotate(6deg) scale(1.03);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text span {
  font-size: 24px;
  font-weight: 800;
  color: var(--red-900);
}

.logo-text small {
  margin-top: 5px;
  color: var(--red-700);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--red-900);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--red-700);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--red-700);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--amber-100);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 248, 230, 0.95);
  box-shadow: var(--shadow);
}

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

.mobile-link {
  padding: 12px 14px;
  color: var(--red-900);
  border-radius: 12px;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--white);
  background: var(--red-700);
}

.hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  background: var(--red-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 35%, rgba(255, 210, 124, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(42, 7, 5, 0.88), rgba(95, 18, 13, 0.62), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 55%);
}

.hero-content {
  position: absolute;
  left: max(6vw, 36px);
  bottom: 112px;
  width: min(760px, calc(100% - 72px));
  color: var(--white);
}

.hero-kicker,
.page-hero span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 233, 174, 0.56);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.05;
  text-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.hero p {
  width: min(680px, 100%);
  margin: 0 0 24px;
  color: #ffe8c2;
  font-size: clamp(18px, 2.5vw, 25px);
  line-height: 1.75;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

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

.hero-tags span,
.detail-meta span,
.tag-row span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.14);
}

.hero-actions,
.page-hero .primary-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  padding: 13px 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red-600), var(--red-900));
  box-shadow: 0 16px 32px rgba(95, 18, 13, 0.28);
}

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

.ghost-btn {
  padding: 13px 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: max(6vw, 36px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 5;
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  color: var(--red-900);
  background: rgba(255, 233, 174, 0.92);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dot.active {
  width: 34px;
  background: var(--amber-100);
}

.content-section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

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

.section-head h2 {
  margin: 0;
  color: var(--red-900);
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.section-more,
.text-link {
  padding: 10px 16px;
  color: var(--red-900);
  background: var(--amber-100);
}

.featured-grid,
.movie-grid,
.latest-grid,
.category-grid,
.category-large-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(133, 27, 18, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(95, 18, 13, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 58px rgba(95, 18, 13, 0.22);
}

.poster-frame,
.land-poster,
.category-card-cover,
.category-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red-900), var(--red-600));
}

.poster-frame {
  aspect-ratio: 16 / 10;
}

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

.poster-frame img,
.land-poster img,
.category-card-cover img,
.category-tile img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover img,
.land-card:hover img,
.category-tile:hover img,
.category-card-large:hover img {
  transform: scale(1.08);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 42px;
  padding: 7px 8px;
  color: var(--white);
  background: var(--red-700);
  border-radius: 999px;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(199, 55, 34, 0.88);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.card-content strong {
  color: var(--red-900);
  font-size: 20px;
  line-height: 1.35;
}

.card-desc {
  display: -webkit-box;
  min-height: 3.4em;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-row {
  color: #8a6d63;
  font-size: 13px;
}

.meta-row span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 10px;
  display: inline-flex;
  vertical-align: middle;
  border-radius: 999px;
  background: #bc8a7d;
}

.tag-row span,
.tag-pill {
  padding: 6px 9px;
  color: var(--red-800);
  background: var(--red-100);
  font-size: 12px;
}

.dark-section {
  background: linear-gradient(90deg, var(--red-950), var(--red-800), var(--red-950));
  box-shadow: inset 0 18px 60px rgba(0, 0, 0, 0.22);
}

.dark-inner .section-head h2,
.dark-inner .section-head p {
  color: var(--amber-100);
}

.dark-inner .movie-card {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 233, 174, 0.18);
}

.dark-inner .card-content strong {
  color: var(--white);
}

.dark-inner .card-desc,
.dark-inner .meta-row {
  color: #ffe7be;
}

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

.category-tile {
  min-height: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(42, 7, 5, 0.82), rgba(42, 7, 5, 0.16));
}

.category-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
}

.category-info strong {
  display: block;
  font-size: 24px;
}

.category-info em {
  display: block;
  margin-top: 8px;
  color: var(--amber-100);
  font-style: normal;
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 36px;
  align-items: start;
}

.rank-panel,
.side-card,
.article-card,
.player-card,
.category-card-large,
.filter-panel {
  border: 1px solid rgba(133, 27, 18, 0.12);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 104px;
  padding: 22px;
}

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

.rank-panel h2,
.side-card h2,
.article-card h2 {
  margin: 0;
  color: var(--red-900);
}

.rank-panel-head a {
  color: var(--red-700);
  font-weight: 800;
}

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

.land-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 248, 230, 0.8);
  transition: transform 0.25s ease, background 0.25s ease;
}

.land-card:hover {
  transform: translateX(4px);
  background: #fff1cc;
}

.land-poster {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
}

.land-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.land-info strong {
  overflow: hidden;
  color: var(--red-900);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.land-info em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.land-info span {
  color: #8a6d63;
  font-size: 12px;
}

.land-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 26px;
  padding: 3px 6px;
  color: var(--white);
  background: var(--red-700);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.horizontal-scroll {
  display: grid;
  grid-auto-columns: minmax(220px, 260px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 22px;
  scroll-snap-type: x mandatory;
}

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

.page-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 72px 24px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 233, 174, 0.25), transparent 32%),
    linear-gradient(135deg, var(--red-950), var(--red-800));
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
}

.page-hero p {
  width: min(760px, 100%);
  margin: 16px auto 0;
  color: var(--amber-100);
  font-size: 18px;
  line-height: 1.75;
}

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

.category-card-large {
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.category-card-cover {
  min-height: 260px;
}

.category-card-body {
  padding: 28px;
}

.category-card-body h2 {
  margin: 0 0 12px;
  color: var(--red-900);
  font-size: 28px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.mini-links a {
  padding: 7px 10px;
  color: var(--red-800);
  background: var(--red-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px;
}

.search-box {
  display: grid;
  gap: 8px;
  color: var(--red-900);
  font-weight: 800;
}

.search-box input {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  border: 2px solid rgba(133, 27, 18, 0.16);
  border-radius: 14px;
  outline: 0;
  background: #fffdfa;
}

.search-box input:focus {
  border-color: var(--red-700);
  box-shadow: 0 0 0 4px rgba(199, 55, 34, 0.12);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 9px 13px;
  color: var(--red-900);
  border: 0;
  border-radius: 999px;
  background: var(--amber-100);
  cursor: pointer;
  font-weight: 800;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--white);
  background: var(--red-700);
}

.wide-list .land-card {
  grid-template-columns: 160px minmax(0, 1fr);
}

.detail-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--red-950);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-backdrop-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 7, 5, 0.94), rgba(95, 18, 13, 0.76), rgba(42, 7, 5, 0.42)),
    radial-gradient(circle at 30% 25%, rgba(255, 233, 174, 0.18), transparent 35%);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  color: var(--white);
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 6px solid rgba(255, 233, 174, 0.65);
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--amber-100);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: var(--white);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
}

.detail-one-line {
  width: min(780px, 100%);
  color: #ffe6bc;
  font-size: 20px;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  color: var(--red-950);
  background: var(--amber-100);
}

.detail-tags {
  margin-bottom: 28px;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
  background: var(--red-950);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.24));
  cursor: pointer;
}

.player-cover span {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  padding-left: 7px;
  border-radius: 999px;
  background: rgba(199, 55, 34, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  font-size: 40px;
}

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

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.article-card p {
  margin: 0 0 16px;
  color: #58423b;
  line-height: 1.95;
  font-size: 17px;
}

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

.prev-next a {
  padding: 18px;
  color: var(--red-900);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(95, 18, 13, 0.12);
  font-weight: 800;
}

.side-card {
  padding: 22px;
}

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

.side-card dt {
  color: #8a6d63;
}

.side-card dd {
  margin: 0;
  color: var(--red-900);
  font-weight: 800;
}

.side-card dd a {
  color: var(--red-700);
}

.side-recommend {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.side-recommend .land-card {
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 8px;
}

.site-footer {
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--red-950), #050101);
  border-top: 4px solid var(--red-800);
}

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

.footer-brand {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 800;
}

.site-footer p {
  color: #ffdca4;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 20px;
}

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

.footer-links a {
  padding: 7px 10px;
  color: #ffdda8;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  color: #d9b785;
  border-top: 1px solid rgba(255, 233, 174, 0.18);
  font-size: 14px;
}

.js-movie-card.is-hidden {
  display: none;
}

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

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

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

  .rank-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .hero {
    height: 600px;
  }

  .hero-content {
    left: 24px;
    bottom: 105px;
    width: calc(100% - 48px);
  }

  .hero-controls {
    left: 24px;
  }

  .featured-grid,
  .latest-grid,
  .movie-grid,
  .medium-grid,
  .dense-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .category-card-large {
    grid-template-columns: 1fr;
  }

  .detail-wrap {
    min-height: auto;
    padding: 48px 0;
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

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

@media (max-width: 620px) {
  .header-inner {
    height: 72px;
  }

  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-text span {
    font-size: 19px;
  }

  .logo-text small {
    font-size: 10px;
  }

  .hero {
    height: 560px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions,
  .page-hero .primary-btn {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .featured-grid,
  .latest-grid,
  .movie-grid,
  .medium-grid,
  .dense-grid {
    grid-template-columns: 1fr;
  }

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

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

  .land-card,
  .wide-list .land-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .detail-hero {
    min-height: auto;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .detail-layout {
    padding-top: 32px;
  }

  .prev-next {
    grid-template-columns: 1fr;
  }

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