html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 46%, #ecfeff 100%);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.25);
}

.nav-shell {
  max-width: 1180px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
}

.brand-text {
  font-size: 21px;
  line-height: 1;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(8, 145, 178, 0.45);
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-search input,
.page-filter-select {
  border: 0;
  outline: 0;
  color: #0f172a;
  background: #ffffff;
}

.nav-search input {
  width: 210px;
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-search button,
.mobile-search button,
.large-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #ffffff;
}

.mobile-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 22px 20px;
  background: #0f172a;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-links {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  color: #ffffff;
  background: #020617;
}

.hero-track {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  gap: 44px;
  align-items: center;
  padding: 96px max(26px, calc((100vw - 1180px) / 2)) 76px;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.30), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.76) 48%, rgba(2, 6, 23, 0.92) 100%);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #0891b2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: rgba(207, 250, 254, 0.88);
}

.hero-content h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 26px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  padding: 6px 10px;
  color: #0e7490;
  background: rgba(236, 254, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.34);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  aspect-ratio: 2 / 3;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.poster-frame {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  background-color: #164e63;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.active {
  width: 34px;
  background: #22d3ee;
}

.section-block {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px;
}

.search-panel-block {
  padding-top: 34px;
  padding-bottom: 18px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.9fr);
  align-items: center;
  gap: 26px;
  padding: 26px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
  margin: 12px 0 0;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #e0f2fe;
}

.large-search input {
  min-width: 0;
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
}

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

.section-heading h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.section-heading > a,
.text-link {
  color: #0e7490;
  font-weight: 900;
}

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 20px;
  border-radius: 26px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.20);
}

.category-tile span {
  font-size: 24px;
  font-weight: 950;
}

.category-tile strong {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

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

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

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

.movie-card {
  border: 1px solid rgba(14, 165, 233, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background-position: center;
  background-size: cover;
  background-color: #164e63;
}

.card-year,
.card-type {
  position: absolute;
  top: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.card-year {
  left: 10px;
}

.card-type {
  right: 10px;
}

.card-body {
  padding: 14px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 950;
}

.card-body h3 a:hover {
  color: #0891b2;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 6px;
}

.compact .card-body p,
.compact .card-meta,
.compact .tag-row {
  display: none;
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}

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

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.ranking-panel,
.feature-panel,
.content-card,
.category-overview-card,
.filter-bar,
.player-shell {
  border: 1px solid rgba(14, 165, 233, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

.ranking-panel {
  padding: 24px;
}

.compact-heading {
  margin-bottom: 18px;
}

.ranking-list,
.rank-table {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ranking-list li + li,
.rank-row + .rank-row {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ranking-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
}

.ranking-list span,
.rank-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
}

.ranking-list strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em,
.rank-info em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.feature-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 32px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.feature-panel h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.feature-panel p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.35), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 56%, #0f172a 100%);
}

.page-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 22px 66px;
}

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(42px, 5vw, 68px);
}

.page-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-search span {
  display: block;
  margin: 0 0 8px;
  color: #0e7490;
  font-weight: 900;
  font-size: 13px;
}

.filter-search input,
.page-filter-select {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(14, 165, 233, 0.22);
  border-radius: 16px;
  padding: 0 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  height: 42px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: #0e7490;
  font-weight: 900;
  background: #ecfeff;
}

.filter-chip:hover,
.filter-chip.active {
  color: #ffffff;
  background: #0891b2;
}

.empty-state {
  margin-top: 24px;
  padding: 30px;
  border-radius: 24px;
  color: #475569;
  text-align: center;
  background: #ffffff;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  padding: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-cover {
  min-height: 280px;
  display: flex;
  align-items: end;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.category-cover span {
  font-size: 30px;
  font-weight: 950;
}

.category-overview-body h2 {
  margin: 6px 0 10px;
  color: #0f172a;
  font-size: 32px;
  font-weight: 950;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.8;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.rank-table {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
}

.rank-row a {
  display: grid;
  grid-template-columns: 44px 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
}

.rank-poster {
  width: 64px;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  background-color: #164e63;
}

.rank-info {
  min-width: 0;
}

.rank-info strong {
  display: block;
  overflow: hidden;
  color: #0f172a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
}

.rank-heat {
  color: #0891b2;
  font-weight: 950;
}

.detail-hero {
  position: relative;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(34, 211, 238, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 22px 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
  color: rgba(226, 232, 240, 0.84);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.breadcrumb em {
  color: #ffffff;
  font-style: normal;
}

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

.detail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background-position: center;
  background-size: cover;
  background-color: #164e63;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
}

.detail-one-line {
  max-width: 780px;
  margin: 22px 0 24px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.detail-meta li {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.detail-meta span {
  display: block;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
}

.detail-meta strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-section {
  padding-bottom: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  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: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 44%, rgba(8, 145, 178, 0.45), transparent 20%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.30), rgba(2, 6, 23, 0.70));
  transition: opacity 0.22s ease;
}

.player-overlay strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.play-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 4px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  box-shadow: 0 18px 45px rgba(37, 99, 235, 0.44);
  font-size: 30px;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-status {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.content-card {
  padding: 28px;
}

.content-card h2 {
  font-size: 28px;
}

.content-card p {
  margin: 16px 0 0;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  margin-top: 32px;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 20px;
}

.footer-inner p {
  max-width: 650px;
  margin: 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

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

.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .home-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

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

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

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

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

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

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

  .category-overview-card {
    padding: 14px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-shell {
    height: 62px;
    padding: 0 16px;
  }

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

  .hero-carousel,
  .hero-track,
  .hero-slide {
    min-height: 700px;
  }

  .hero-slide {
    padding: 82px 18px 64px;
  }

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

  .section-block {
    padding: 42px 16px;
  }

  .movie-grid,
  .home-grid,
  .listing-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body p,
  .tag-row {
    display: none;
  }

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

  .large-search,
  .mobile-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .large-search input,
  .large-search button,
  .mobile-search input,
  .mobile-search button {
    width: 100%;
  }

  .rank-row a {
    grid-template-columns: 38px 54px 1fr;
  }

  .rank-heat {
    display: none;
  }

  .rank-poster {
    width: 50px;
  }

  .detail-hero-inner {
    padding: 22px 16px 50px;
  }

  .detail-poster {
    width: min(230px, 80vw);
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }

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

  .content-card {
    padding: 22px;
  }
}
