:root {
  --deepblue-950: #000e15;
  --deepblue-900: #00151f;
  --deepblue-800: #002a3e;
  --ocean-900: #00444e;
  --ocean-800: #005f70;
  --ocean-700: #00758a;
  --ocean-600: #00879c;
  --ocean-100: #cceef3;
  --ocean-50: #e6f7f9;
  --seagreen-700: #0d684d;
  --seagreen-600: #147c5c;
  --seagreen-50: #e8f5f1;
  --coral-600: #cc543c;
  --coral-500: #ff694b;
  --sand-100: #f5f1e9;
  --text: #09202b;
  --muted: #55707a;
  --white: #ffffff;
  --shadow-ocean: 0 18px 45px rgba(0, 135, 156, 0.18);
  --shadow-soft: 0 10px 28px rgba(0, 21, 31, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f5fbfc 0%, #eef8f9 42%, #ffffff 100%);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 21, 31, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand {
  color: var(--white);
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral-500), var(--ocean-600));
  box-shadow: 0 10px 28px rgba(255, 105, 75, 0.28);
}

.brand-name {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link,
.mobile-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.header-search input,
.mobile-search input {
  width: 190px;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.header-search button,
.mobile-search button {
  color: var(--white);
  background: var(--coral-500);
  border: 0;
  padding: 10px 16px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  border-radius: 999px;
}

.mobile-panel {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-link {
  padding: 10px 12px;
}

main {
  min-height: 70vh;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 26px max(16px, calc((100vw - 1220px) / 2)) 42px;
  background: radial-gradient(circle at 20% 20%, rgba(0, 135, 156, 0.36), transparent 30%), linear-gradient(135deg, var(--deepblue-950), var(--deepblue-900) 42%, var(--ocean-900));
  overflow: hidden;
}

.hero-stage {
  position: relative;
  min-height: 620px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 21, 31, 0.48);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  object-fit: cover;
  opacity: 0.62;
}

.hero-bg.is-empty,
.poster-shell.is-empty,
.compact-cover.is-empty,
.ranking-cover.is-empty,
.tile-image.is-empty {
  background: linear-gradient(135deg, rgba(0, 135, 156, 0.65), rgba(255, 105, 75, 0.44));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 21, 31, 0.96), rgba(0, 21, 31, 0.70) 48%, rgba(0, 21, 31, 0.28)), linear-gradient(0deg, rgba(0, 21, 31, 0.86), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 56px;
}

.hero-text {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text h1,
.hero-text h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  margin-top: 16px !important;
  font-size: clamp(24px, 4vw, 44px) !important;
  color: var(--ocean-100) !important;
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(230, 247, 249, 0.92);
  font-size: clamp(16px, 2vw, 20px);
}

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

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

.hero-tags span,
.tag-row span,
.movie-meta-row span,
.movie-meta-row a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}

.hero-tags span {
  color: var(--white);
  padding: 8px 12px;
  background: rgba(0, 135, 156, 0.30);
  border: 1px solid rgba(204, 238, 243, 0.24);
  backdrop-filter: blur(10px);
}

.hero-actions,
.player-head,
.category-overview-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.section-link,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: var(--coral-500);
  padding: 13px 24px;
  border: 0;
  box-shadow: 0 14px 32px rgba(255, 105, 75, 0.28);
}

.primary-btn:hover {
  transform: translateY(-2px);
  background: var(--coral-600);
  box-shadow: 0 18px 38px rgba(255, 105, 75, 0.34);
}

.primary-btn.small {
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
}

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

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.ghost-btn.dark {
  color: var(--deepblue-900);
  border-color: rgba(0, 135, 156, 0.22);
  background: var(--ocean-50);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 40px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

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

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

.hero-dot.is-active {
  width: 30px;
  background: var(--coral-500);
}

.hero-panel {
  align-self: stretch;
  border-radius: var(--radius-xl);
  padding: 26px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-ocean);
}

.hero-panel h2 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
}

.hero-panel-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.compact-cover {
  width: 72px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

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

.compact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.compact-copy strong,
.compact-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-copy strong {
  color: var(--white);
  font-size: 15px;
}

.compact-copy em {
  color: rgba(230, 247, 249, 0.72);
  font-size: 12px;
  font-style: normal;
}

.panel-link {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  color: var(--white);
  background: rgba(255, 105, 75, 0.88);
}

.content-section,
.ranking-list,
.filter-bar,
.detail-content,
.player-area {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

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

.highlight-section,
.category-overview-card,
.player-area,
.story-block {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-ocean);
}

.highlight-section {
  padding: 42px;
  background: linear-gradient(135deg, var(--ocean-50), var(--seagreen-50));
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.category-overview-head h2,
.player-head h2,
.story-block h2 {
  margin: 0;
  color: var(--deepblue-900);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.section-heading p,
.category-overview-head p,
.page-hero p,
.story-block p,
.detail-intro,
.ranking-copy p,
.movie-card-body p {
  color: var(--muted);
}

.section-heading p,
.category-overview-head p {
  margin: 8px 0 0;
}

.section-link {
  color: var(--ocean-700);
  padding: 10px 16px;
  background: var(--ocean-50);
}

.section-link:hover {
  color: var(--white);
  background: var(--ocean-600);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px rgba(0, 21, 31, 0.18);
}

.poster-shell {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-50), var(--seagreen-50));
}

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

.movie-card:hover .poster-shell img,
.category-tile:hover img,
.ranking-row:hover img {
  transform: scale(1.06);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(0, 21, 31, 0.78), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--coral-500);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-glow,
.movie-card:hover .play-badge {
  opacity: 1;
}

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

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

.movie-meta-row {
  justify-content: space-between;
  margin-bottom: 8px;
}

.movie-meta-row span,
.movie-meta-row a {
  color: var(--ocean-700);
  background: var(--ocean-50);
  padding: 5px 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--deepblue-900);
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.ranking-copy h2 a:hover {
  color: var(--ocean-600);
}

.movie-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.tag-row span {
  color: var(--seagreen-700);
  background: var(--seagreen-50);
  padding: 4px 8px;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.movie-card-horizontal .poster-shell {
  aspect-ratio: 1 / 1;
}

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

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

.category-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--deepblue-900);
}

.tile-image,
.tile-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile-image img {
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.45s ease;
}

.tile-copy {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 6px;
  padding: 20px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 21, 31, 0.92), transparent);
}

.tile-copy strong {
  font-size: 22px;
}

.tile-copy em {
  color: rgba(230, 247, 249, 0.78);
  font-style: normal;
}

.split-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 28px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.rank-no {
  grid-row: span 2;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  font-weight: 900;
  background: linear-gradient(135deg, var(--coral-500), var(--ocean-600));
}

.rank-title {
  color: var(--deepblue-900);
  font-weight: 800;
}

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

.page-hero,
.detail-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 28px auto 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 15% 20%, rgba(255, 105, 75, 0.26), transparent 28%), linear-gradient(135deg, var(--deepblue-900), var(--ocean-900));
  box-shadow: 0 24px 70px rgba(0, 21, 31, 0.24);
}

.compact-hero {
  padding: 48px;
}

.compact-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.compact-hero p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(230, 247, 249, 0.82);
  font-size: 18px;
}

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

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

.category-overview-head {
  margin-bottom: 24px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  color: var(--text);
  background: var(--ocean-50);
  border-radius: 999px;
}

.filter-bar-large {
  margin-bottom: 14px;
}

.ranking-list {
  display: grid;
  gap: 16px;
  padding: 38px 0 56px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 92px 72px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.ranking-cover {
  display: block;
  width: 92px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ocean-50);
}

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

.ranking-number {
  color: var(--coral-500);
  font-size: 30px;
  font-weight: 900;
}

.ranking-copy h2 {
  margin: 0 0 8px;
  color: var(--deepblue-900);
  font-size: 22px;
}

.ranking-copy p {
  margin: 0 0 12px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  color: var(--white);
}

.detail-poster {
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.30);
}

.detail-copy h1 {
  font-size: clamp(34px, 5vw, 64px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(230, 247, 249, 0.78);
  font-size: 14px;
}

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

.detail-intro {
  margin: 18px 0 0;
  color: rgba(230, 247, 249, 0.88);
  font-size: 19px;
}

.player-area {
  margin-top: 32px;
  padding: 30px;
}

.player-head {
  margin-bottom: 22px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 21, 31, 0.28), rgba(0, 21, 31, 0.72));
  border: 0;
  cursor: pointer;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--coral-500);
  box-shadow: 0 18px 38px rgba(255, 105, 75, 0.36);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.story-block {
  padding: 30px;
}

.story-block p {
  margin: 16px 0 0;
  font-size: 16px;
}

.site-footer {
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.74);
  background: var(--deepblue-900);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.footer-brand {
  color: var(--white);
  font-size: 20px;
}

.footer-inner p {
  max-width: 600px;
  margin: 0;
}

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

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

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

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

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

  .hero-panel {
    display: none;
  }

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

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

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

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

  .hero-section {
    min-height: auto;
    padding-top: 16px;
  }

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

  .hero-content {
    padding: 32px 24px 88px;
    align-items: flex-end;
  }

  .hero-controls {
    left: 24px;
    bottom: 24px;
  }

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

  .highlight-section,
  .category-overview-card,
  .compact-hero,
  .player-area,
  .story-block,
  .detail-hero {
    padding: 24px;
  }

  .section-heading,
  .category-overview-head,
  .player-head,
  .filter-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-poster {
    max-width: 260px;
  }

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

  .ranking-number {
    grid-column: 1;
    grid-row: 1;
    font-size: 22px;
  }

  .ranking-cover {
    width: 72px;
    grid-row: 2;
  }

  .ranking-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .ranking-row .primary-btn {
    grid-column: 1 / -1;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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

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

  .movie-card-horizontal {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .filter-bar input,
  .filter-bar a,
  .filter-bar button {
    width: 100%;
  }
}
