:root {
  color-scheme: light;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #020617;
  --accent: #e11d48;
  --accent-2: #2563eb;
  --accent-3: #f97316;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.container.narrow {
  width: min(980px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--dark);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  box-shadow: 0 10px 20px rgba(225, 29, 72, 0.24);
}

.brand-text {
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.nav-link {
  padding: 9px 13px;
  color: #334155;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--dark);
}

.top-search,
.mobile-search,
.hero-search div,
.local-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search {
  margin-left: auto;
  width: min(360px, 32vw);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.top-search input,
.mobile-search input,
.hero-search input,
.local-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.top-search input {
  padding: 8px 10px 8px 14px;
}

.top-search button,
.mobile-search button,
.hero-search button,
.local-search button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.local-search button:hover,
.primary-btn:hover,
.outline-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(225, 29, 72, 0.22);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--dark);
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-search {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 8px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  width: min(1240px, calc(100% - 28px));
  min-height: 70vh;
  margin: 22px auto 0;
}

.hero-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 34px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.5) 52%, rgba(2, 6, 23, 0.08)), linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  bottom: clamp(34px, 8vh, 88px);
  width: min(650px, calc(100% - 56px));
  color: #ffffff;
}

.hero-meta,
.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  color: #be123c;
  background: #ffe4e6;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(225, 29, 72, 0.82);
}

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

.primary-btn,
.ghost-btn,
.outline-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
}

.primary-btn.dark {
  background: var(--dark);
}

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

.outline-btn,
.more-link {
  color: var(--accent);
  border: 1px solid #fecdd3;
  background: #fff1f2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  right: 28px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  background: #ffffff;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-search {
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.hero-search label {
  display: block;
  margin-bottom: 12px;
  color: var(--dark);
  font-weight: 900;
}

.hero-search div {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
}

.hero-search input {
  padding: 10px 12px;
}

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

.hero-mini {
  position: relative;
  min-height: 104px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--dark);
  box-shadow: var(--soft-shadow);
}

.hero-mini img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  opacity: 0.82;
  transition: 0.3s ease;
}

.hero-mini:hover img {
  transform: scale(1.05);
  opacity: 0.96;
}

.hero-mini span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.category-strip,
.content-section {
  padding: 54px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.chip-row,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.chip:hover,
.chip.active,
.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: var(--dark);
  border-color: var(--dark);
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(225, 29, 72, 0.35);
  box-shadow: var(--shadow);
}

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

.movie-card.compact .poster-link {
  aspect-ratio: 2 / 3;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0));
  opacity: 0;
  transition: 0.3s ease;
}

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: 0.25s ease;
}

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

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

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.movie-card.compact h3 {
  font-size: 16px;
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.ranking-card,
.side-card {
  position: sticky;
  top: 92px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.ranking-title {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 950;
  color: var(--dark);
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

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

.rank-num,
.ranking-index {
  color: var(--accent);
  font-size: 20px;
  font-weight: 950;
}

.rank-title {
  min-width: 0;
  color: var(--dark);
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.more-link {
  width: 100%;
  margin-top: 18px;
}

.center-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 84px 0 56px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(225, 29, 72, 0.16), transparent 38%), linear-gradient(135deg, #ffffff, #f1f5f9);
  border-bottom: 1px solid var(--line);
}

.compact-hero h1,
.category-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.page-hero .breadcrumb {
  color: var(--muted);
}

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

.page-chips {
  margin-top: 26px;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 156px;
  background: var(--dark);
}

.category-cover img {
  width: 100%;
  height: 156px;
  object-fit: cover;
}

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

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

.category-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

.filter-bar {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.local-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px;
}

.local-search input {
  padding: 10px 14px;
}

.empty-result {
  display: none;
  margin-bottom: 22px;
  padding: 22px;
  color: var(--muted);
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 22px;
  text-align: center;
  font-weight: 800;
}

.empty-result.show {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 64px 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.ranking-poster img {
  width: 110px;
  height: 146px;
  object-fit: cover;
  border-radius: 16px;
}

.ranking-info h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.ranking-info p {
  margin: 12px 0;
  color: var(--muted);
}

.detail-main {
  background: var(--bg);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: var(--dark);
}

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.48;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.76) 58%, rgba(2, 6, 23, 0.5)), linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.3));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 54px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-cover {
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(40px, 6vw, 76px);
}

.detail-info .eyebrow {
  color: #fb7185;
}

.movie-meta.large {
  margin: 18px 0;
}

.movie-meta.large span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-tags {
  margin: 18px 0 28px;
}

.player-section {
  padding: 44px 0 20px;
  background: var(--dark);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(225, 29, 72, 0.34), rgba(2, 6, 23, 0.56) 38%, rgba(2, 6, 23, 0.86));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-bubble {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent);
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
  font-size: 32px;
}

.player-cover strong {
  font-size: clamp(22px, 4vw, 42px);
  line-height: 1.2;
}

.player-cover em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.78);
}

.detail-content {
  padding-top: 58px;
}

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

.detail-article,
.side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-article {
  padding: 30px;
}

.detail-block + .detail-block {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-block h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.detail-block p {
  margin: 0;
  color: #334155;
  font-size: 17px;
}

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

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

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

.site-footer {
  padding: 54px 0;
  color: #cbd5e1;
  background: #020617;
}

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

.footer-brand {
  color: #ffffff;
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 720px;
  margin: 0 0 22px;
  color: #94a3b8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 24px;
}

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

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #64748b;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .hero-mini-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-grid,
  .hot-grid,
  .latest-grid,
  .all-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .ranking-card,
  .side-card {
    position: static;
  }
}

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

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

  body.nav-open .mobile-panel {
    display: block;
  }

  .header-inner {
    height: 66px;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 26px;
  }

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

  .hero-panel,
  .hero-mini-list {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .hot-grid,
  .latest-grid,
  .all-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }

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

  .ranking-item .outline-btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .ranking-poster img {
    width: 88px;
    height: 120px;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero {
    width: min(100% - 20px, 1240px);
    margin-top: 14px;
  }

  .hero-stage {
    min-height: 520px;
    border-radius: 22px;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 24px;
    right: auto;
  }

  .category-strip,
  .content-section {
    padding: 38px 0;
  }

  .movie-grid,
  .hot-grid,
  .latest-grid,
  .all-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .movie-card p {
    min-height: auto;
  }

  .page-hero {
    padding: 56px 0 42px;
  }

  .detail-layout,
  .detail-columns,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .detail-cover {
    max-width: 220px;
  }

  .detail-hero-inner {
    padding-top: 34px;
  }

  .detail-article {
    padding: 22px;
  }

  .player-section {
    padding-top: 28px;
  }

  .player-cover strong {
    padding: 0 18px;
    text-align: center;
  }
}
