* {
  box-sizing: border-box;
}

:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-300: #fda4af;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --pink-500: #ec4899;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 113, 133, 0.16), transparent 28rem),
    linear-gradient(180deg, #fff8fa 0%, #ffffff 42%, #fff5f7 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 164, 175, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.28);
}

.brand-name,
.footer-logo {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
  background: linear-gradient(90deg, var(--rose-400), var(--pink-500), var(--rose-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
  color: var(--slate-700);
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
  color: var(--rose-500);
}

.header-search,
.mobile-search,
.big-search,
.search-box-page {
  display: flex;
  align-items: center;
  border: 1px solid var(--rose-100);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.08);
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.big-search input,
.search-box-page input {
  width: 250px;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  color: var(--slate-700);
  background: transparent;
}

.header-search button,
.mobile-search button,
.big-search button,
.search-box-page button {
  border: 0;
  padding: 11px 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--rose-500);
  font-size: 28px;
  background: transparent;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--rose-100);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.hero-carousel {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 28px auto 0;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--slate-900);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-mask {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: center;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
  background-position: center;
  background-size: cover;
  filter: blur(20px) saturate(1.24);
  transform: scale(1.12);
  opacity: 0.52;
}

.hero-mask {
  background:
    radial-gradient(circle at 78% 38%, rgba(236, 72, 153, 0.34), transparent 24rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.68) 50%, rgba(15, 23, 42, 0.44) 100%);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rose-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1;
  color: var(--white);
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.hero-copy p {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(253, 164, 175, 0.5);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--rose-500);
  background: rgba(255, 241, 242, 0.88);
  font-size: 13px;
}

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

.btn {
  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;
}

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

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.34);
}

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

.hero-poster {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  right: 42px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

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

.hero-dot.is-active {
  width: 32px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
}

.hero-thumbs {
  position: absolute;
  z-index: 4;
  left: 44px;
  right: 44px;
  bottom: 28px;
  display: flex;
  gap: 12px;
  max-width: 610px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 8px 12px 8px 8px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(10px);
}

.hero-thumb img {
  width: 36px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  max-width: 78px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-thumb.is-active {
  color: var(--white);
  border-color: rgba(251, 113, 133, 0.72);
  background: rgba(251, 113, 133, 0.24);
}

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

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--rose-100);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.intro-copy h2,
.section-head h2,
.panel-head h2,
.detail-article h2,
.category-overview-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(26px, 4vw, 42px);
}

.intro-copy p,
.section-head p,
.page-hero p,
.category-overview-card p,
.detail-article p {
  color: var(--slate-500);
  line-height: 1.8;
}

.big-search input,
.search-box-page input {
  width: min(520px, 56vw);
  padding: 15px 20px;
}

.big-search button,
.search-box-page button {
  padding: 15px 24px;
}

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

.section-more,
.text-link,
.panel-link {
  display: inline-flex;
  align-items: center;
  color: var(--rose-500);
  font-weight: 800;
}

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

.category-tile,
.category-overview-card,
.filter-panel,
.ranking-panel,
.detail-article,
.video-shell,
.search-box-page,
.empty-state {
  border: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.category-tile {
  position: relative;
  min-height: 152px;
  padding: 24px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:before,
.category-overview-card:before {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.22), transparent 70%);
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px rgba(244, 63, 94, 0.16);
}

.category-tile span {
  position: relative;
  display: block;
  margin-bottom: 12px;
  color: var(--slate-900);
  font-size: 22px;
  font-weight: 850;
}

.category-tile small {
  position: relative;
  color: var(--slate-500);
  line-height: 1.7;
}

.tile-0 { background: linear-gradient(135deg, #fff1f2, #ffffff); }
.tile-1 { background: linear-gradient(135deg, #fdf2f8, #ffffff); }
.tile-2 { background: linear-gradient(135deg, #fff7ed, #ffffff); }
.tile-3 { background: linear-gradient(135deg, #f8fafc, #fff1f2); }
.tile-4 { background: linear-gradient(135deg, #fff1f2, #fdf2f8); }

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

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 228, 230, 0.92);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  padding: 6px 9px;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  font-size: 13px;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--rose-500);
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.meta-row span + span:before {
  content: "·";
  margin-right: 8px;
  color: var(--rose-300);
}

.tag-row span {
  padding: 4px 9px;
  font-size: 12px;
}

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

.ranking-panel {
  position: sticky;
  top: 94px;
  padding: 24px;
  border-radius: 26px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 241, 242, 0.7);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: var(--white);
  transform: translateX(4px);
}

.rank-item b {
  color: var(--rose-500);
  font-family: Georgia, "Times New Roman", serif;
}

.rank-item span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item em {
  color: var(--pink-500);
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 74px 54px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 25%, rgba(236, 72, 153, 0.34), transparent 20rem),
    linear-gradient(135deg, var(--slate-900), #3a1026 65%, #721436);
  box-shadow: var(--shadow-soft);
}

.page-hero.small-hero h1 {
  max-width: 880px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 760px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.category-overview-card {
  position: relative;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 22px;
  min-height: 220px;
  padding: 20px;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  align-self: stretch;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 86px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 220px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 26px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field label {
  color: var(--slate-500);
  font-size: 13px;
  font-weight: 700;
}

.filter-field input,
.filter-field select {
  width: 100%;
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  outline: 0;
  padding: 12px 14px;
  color: var(--slate-700);
  background: var(--white);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--rose-300);
  box-shadow: 0 0 0 4px rgba(253, 164, 175, 0.22);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 16px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: var(--slate-900);
}

.detail-backdrop,
.detail-mask {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.25);
  transform: scale(1.12);
  opacity: 0.54;
}

.detail-mask {
  background:
    radial-gradient(circle at 68% 30%, rgba(236, 72, 153, 0.25), transparent 24rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.66));
}

.detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 610px;
  margin: 0 auto;
  padding: 50px 0;
}

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

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe4e6, #fdf2f8);
}

.detail-copy p {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.detail-meta span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.1);
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
}

.video-shell video {
  width: 100%;
  max-height: 74vh;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(244, 63, 94, 0.22), transparent 18rem),
    rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-400), var(--pink-500));
  box-shadow: 0 24px 55px rgba(236, 72, 153, 0.36);
  font-size: 34px;
}

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

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.detail-article {
  padding: 34px;
  border-radius: 28px;
}

.detail-article h2 + p {
  margin-top: 14px;
}

.detail-article p + h2 {
  margin-top: 30px;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.info-table div,
.pager-links a {
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: 14px;
  background: var(--rose-50);
}

.info-table b {
  display: block;
  margin-bottom: 6px;
  color: var(--rose-500);
}

.info-table span {
  color: var(--slate-700);
}

.pager-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.pager-links a:hover {
  color: var(--rose-500);
  background: var(--white);
}

.search-page {
  max-width: 1180px;
}

.search-box-page {
  width: min(760px, 100%);
  margin-bottom: 22px;
}

.search-meta {
  margin-bottom: 20px;
  color: var(--slate-500);
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: 24px;
  color: var(--slate-500);
  text-align: center;
}

.site-footer {
  margin-top: 90px;
  padding: 44px 0;
  border-top: 1px solid var(--rose-100);
  background: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  gap: 16px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--slate-500);
}

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

.footer-links a:hover {
  color: var(--rose-500);
}

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

  .header-search input {
    width: 190px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 44px 28px 160px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    justify-self: start;
  }

  .hero-thumbs {
    overflow-x: auto;
    left: 20px;
    right: 20px;
    max-width: none;
    padding-bottom: 4px;
  }

  .home-intro,
  .split-layout,
  .detail-layout,
  .detail-content,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

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

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

  .detail-poster {
    width: min(270px, 70vw);
  }

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

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

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

  .hero-carousel,
  .section-wrap,
  .page-hero,
  .breadcrumb {
    width: min(100% - 20px, 1280px);
  }

  .hero-carousel {
    margin-top: 12px;
    border-radius: 24px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero.small-hero h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .detail-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .section-wrap {
    margin: 48px auto;
  }

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

  .category-grid,
  .movie-grid,
  .library-grid,
  .compact-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p {
    font-size: 13px;
  }

  .page-hero {
    padding: 46px 24px;
    border-radius: 24px;
  }

  .detail-content {
    width: min(100% - 20px, 1180px);
  }

  .detail-article {
    padding: 24px;
  }

  .info-table,
  .pager-links {
    grid-template-columns: 1fr;
  }

  .play-layer span {
    width: 74px;
    height: 74px;
    font-size: 28px;
  }
}
