:root {
  --blue-950: #0f172a;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 48%, #eff6ff 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, var(--slate-900), #172554 48%, var(--slate-900));
  color: var(--white);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
}

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

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

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(90deg, #dbeafe, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 12px;
  color: #93c5fd;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  color: #dbeafe;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(37, 99, 235, 0.82);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.26), transparent 30%), linear-gradient(135deg, #1e3a8a 0%, #1e293b 52%, #111827 100%);
  min-height: 620px;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0 96px;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bae6fd;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #dbeafe, #cffafe 55%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  max-width: 710px;
  margin: 24px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  color: #dbeafe;
}

.hero-chips,
.card-tags,
.detail-tags,
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.chip,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.hero-chips .chip {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  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(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.32);
}

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

.btn.subtle {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
  min-height: 470px;
  background: rgba(255, 255, 255, 0.08);
  transform: perspective(1200px) rotateY(-6deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: perspective(1200px) rotateY(0deg) translateY(-6px);
}

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

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

.hero-poster-tag,
.hero-poster strong {
  position: absolute;
  z-index: 2;
  left: 22px;
}

.hero-poster-tag {
  top: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.85);
  font-size: 13px;
  font-weight: 800;
}

.hero-poster strong {
  right: 22px;
  bottom: 22px;
  font-size: 24px;
  line-height: 1.3;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 54px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 56px;
  background: var(--cyan-400);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #f8fafc);
}

.feature-section,
.section {
  padding: 72px 0;
}

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

.feature-card,
.category-overview-card,
.content-panel,
.side-panel,
.search-panel,
.movie-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  border-radius: var(--radius-md);
  padding: 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3,
.movie-card h3,
.category-overview-card h2,
.content-panel h2,
.side-panel h2 {
  margin: 0 0 10px;
  color: var(--slate-900);
}

.feature-card p,
.movie-card p,
.category-overview-card p,
.rank-copy p,
.section-heading p,
.page-hero p,
.detail-one-line,
.content-panel p {
  color: var(--slate-600);
  margin: 0;
}

.section-soft {
  background: linear-gradient(90deg, #f8fafc, #eff6ff);
}

.section-blue {
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0e7490);
}

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

.section-heading h2,
.rank-copy h2,
.page-hero h1,
.player-section h2 {
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.section-blue h2,
.section-blue p {
  color: var(--white);
}

.section-link,
.text-button {
  color: var(--blue-700);
  font-weight: 800;
}

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

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

.movie-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cbd5e1);
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.62));
}

.play-pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  transition: transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

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

.movie-meta-line {
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

.movie-card h3 {
  font-size: 20px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--blue-700);
}

.movie-card p {
  min-height: 52px;
  margin-bottom: 14px;
}

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

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32), rgba(15, 23, 42, 0.86));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  display: block;
  margin-top: 96px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile p {
  margin: 8px 0 0;
  color: #e0f2fe;
  font-size: 14px;
}

.rank-home {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: center;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.rank-row span {
  font-weight: 900;
  color: #67e8f9;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em {
  color: #bfdbfe;
  font-size: 13px;
  font-style: normal;
}

.page-hero {
  padding: 78px 0;
  color: var(--white);
  background: radial-gradient(circle at 22% 12%, rgba(34, 211, 238, 0.26), transparent 28%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0e7490);
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #bfdbfe;
  font-size: 14px;
}

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

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-overview-image {
  display: block;
  height: 190px;
  border-radius: 18px;
  overflow: hidden;
}

.category-overview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.mini-link-list a {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue-700);
  background: #dbeafe;
  font-size: 13px;
  font-weight: 700;
}

.page-toolbar,
.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 24px;
}

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

.page-toolbar input,
.page-toolbar select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 14px;
  background: var(--white);
  color: var(--slate-800);
  outline: none;
}

.page-toolbar input:focus,
.page-toolbar select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.detail-hero {
  padding: 42px 0 70px;
  color: var(--white);
  background: radial-gradient(circle at 78% 16%, rgba(34, 211, 238, 0.22), transparent 26%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #111827);
}

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

.detail-cover {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.38);
  background: rgba(255, 255, 255, 0.08);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--white);
}

.detail-one-line {
  max-width: 850px;
  color: #dbeafe;
  font-size: 20px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-section h2 {
  margin-bottom: 18px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.3);
  aspect-ratio: 16 / 9;
}

.movie-player video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-player video {
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #020617;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
}

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

.player-play-icon {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  transition: transform 0.25s ease;
}

.player-cover:hover .player-play-icon {
  transform: scale(1.08);
}

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

.content-panel,
.side-panel {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.content-panel h2 + p {
  margin-bottom: 26px;
}

.content-panel p {
  font-size: 17px;
}

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

.side-panel dt {
  color: var(--slate-500);
  font-weight: 700;
}

.side-panel dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 700;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
  padding: 48px 0 30px;
}

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

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.footer-main h2 {
  margin: 0 0 8px;
  color: var(--white);
}

.footer-main p {
  max-width: 560px;
  margin: 0;
  color: #94a3b8;
}

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

.footer-links a,
.footer-categories a {
  color: #bfdbfe;
}

.footer-links a:hover,
.footer-categories a:hover {
  color: #67e8f9;
}

.footer-categories {
  padding: 22px 0;
}

.footer-bottom {
  color: #64748b;
  font-size: 14px;
}

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

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

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

  .hero-poster {
    display: none;
  }

  .rank-home,
  .detail-layout,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header-inner {
    height: 68px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

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

  .brand-subtitle {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 18px;
    background: #0f172a;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.32);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 16px;
  }

  .hero-section,
  .hero-inner {
    min-height: 560px;
  }

  .hero-slide {
    padding: 50px 0 86px;
  }

  .hero-dots {
    bottom: 38px;
  }

  .feature-section,
  .section {
    padding: 48px 0;
  }

  .movie-grid,
  .featured-grid,
  .feature-grid,
  .category-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-toolbar,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .rank-row em {
    grid-column: 2;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .feature-grid,
  .category-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

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

  .movie-player {
    border-radius: 18px;
  }

  .player-play-icon {
    width: 68px;
    height: 68px;
  }
}
