:root {
  --page-bg: #f7fbff;
  --surface: #ffffff;
  --surface-soft: #eff8ff;
  --text: #102033;
  --muted: #64748b;
  --line: #dbeafe;
  --cyan: #0891b2;
  --cyan-soft: #e0f7ff;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --navy: #07111f;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 28px rgba(37, 99, 235, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.12), transparent 28%), var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 24px rgba(8, 145, 178, 0.3);
}

.logo-mark span {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-44%, -50%);
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #ffffff;
}

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

.logo-text strong {
  font-size: 22px;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.logo-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--cyan);
  background: linear-gradient(120deg, #ecfeff, #eff6ff);
  transform: translateY(-1px);
}

.nav-link.compact {
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--cyan-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--cyan);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 52%, #1e3a8a 100%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.42;
}

.hero-glow.one {
  top: -180px;
  left: -120px;
  background: #22d3ee;
}

.hero-glow.two {
  right: -180px;
  bottom: -220px;
  background: #60a5fa;
}

.hero-wrap {
  position: relative;
  min-height: 640px;
  padding: 72px 0 92px;
  z-index: 1;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-pill {
  display: inline-flex;
  padding: 8px 16px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  margin: 0 0 20px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-lead {
  margin: 0 0 16px;
  max-width: 720px;
  color: #e0f2fe;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
}

.hero-summary {
  max-width: 740px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn.primary {
  color: var(--blue-deep);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.btn.ghost {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn.soft {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags a,
.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

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

.hero-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.86));
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.hero-poster strong {
  display: block;
  font-size: 28px;
  line-height: 1.2;
}

.hero-poster em {
  display: block;
  margin-top: 8px;
  color: #bfdbfe;
  font-style: normal;
}

.hero-control {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  line-height: 1;
}

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

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

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

.section {
  padding: 64px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading > span {
  align-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--cyan);
  background: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

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

.category-card {
  position: relative;
  display: block;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.8));
}

.category-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  color: #ffffff;
}

.category-card strong {
  display: block;
  font-size: 20px;
}

.category-card em {
  display: block;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: #dbeafe;
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-link:hover {
  transform: translateY(-6px);
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: var(--shadow);
}

.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

.movie-link:hover .poster-box img {
  transform: scale(1.05);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.75));
}

.type-badge,
.year-badge,
.rank-badge {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.92);
}

.year-badge {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(8, 145, 178, 0.88);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 8px 16px rgba(239, 68, 68, 0.28);
}

.play-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info em {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: block;
  margin-top: 12px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 800;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

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

.rank-panel {
  position: sticky;
  top: 102px;
  overflow: hidden;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.rank-title span {
  font-size: 18px;
  font-weight: 900;
}

.rank-title a {
  font-size: 13px;
  font-weight: 800;
}

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

.compact-card {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-card:hover {
  background: #f0f9ff;
  transform: translateX(3px);
}

.compact-card img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #e0f2fe;
}

.compact-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-card em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.list-rank {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-size: 12px;
  font-weight: 900;
}

.sub-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #0e7490, #2563eb 58%, #1e3a8a);
}

.sub-hero .container {
  padding: 70px 0;
}

.sub-hero span {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sub-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 780px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.search-box input,
.filter-controls select,
.filter-controls button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.search-box input {
  padding: 0 16px;
}

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

.filter-controls select {
  padding: 0 12px;
}

.filter-controls button {
  cursor: pointer;
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

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

.category-overview-card {
  padding: 22px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.category-overview-head span {
  font-size: 24px;
  font-weight: 900;
}

.category-overview-head a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 900;
}

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

.overview-samples {
  display: grid;
  gap: 8px;
}

.detail-hero {
  background: linear-gradient(135deg, #e0f2fe, #eff6ff);
}

.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  color: #0f766e;
  font-size: 14px;
  font-weight: 800;
}

.detail-page {
  padding: 36px 0 72px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.player-button {
  display: flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
}

.player-title {
  max-width: min(720px, calc(100% - 32px));
  font-size: clamp(22px, 4vw, 44px);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 6px 20px rgba(2, 6, 23, 0.45);
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 32px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: #e0f2fe;
  box-shadow: var(--shadow-soft);
}

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

.detail-info {
  padding: 28px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.detail-one-line {
  margin: 18px 0 0;
  color: #334155;
  font-size: 19px;
  font-weight: 700;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--cyan);
  background: var(--cyan-soft);
  font-weight: 900;
}

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

.detail-text {
  margin-top: 32px;
  padding: 30px;
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-text h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.detail-text h2:not(:first-child) {
  margin-top: 28px;
}

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

.related-section {
  padding-bottom: 0;
}

.site-footer {
  color: #cbd5e1;
  background: #07111f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 38px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  max-width: 460px;
  color: #94a3b8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

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

.footer-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(8, 145, 178, 0.45);
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  text-align: center;
}

.is-filtered-out {
  display: none;
}

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

  .nav-toggle {
    display: block;
  }

  .hero-slide,
  .split-section,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

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

  .header-inner {
    height: 68px;
  }

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

  .hero-wrap {
    min-height: auto;
    padding: 46px 0 86px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

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

  .filter-controls button,
  .filter-controls select:first-child {
    grid-column: 1 / -1;
  }

  .detail-page {
    padding-top: 24px;
  }

  .detail-info,
  .detail-text {
    padding: 20px;
  }
}

@media (max-width: 520px) {
  .mobile-nav.is-open,
  .category-grid,
  .category-overview-grid,
  .movie-grid,
  .home-grid,
  .all-grid,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .hero-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .compact-card {
    grid-template-columns: auto 52px 1fr;
  }
}
