:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --cyan: #06b6d4;
  --cyan-soft: #e0f7ff;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.96), rgba(6, 182, 212, 0.94));
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.25);
  backdrop-filter: blur(16px);
}

.nav-bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-text em {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-style: normal;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  white-space: nowrap;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  position: relative;
  flex: 0 1 245px;
}

.header-search input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  padding: 0 44px 0 18px;
  background: rgba(255, 255, 255, 0.17);
  outline: none;
}

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

.header-search button {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 28px;
  height: 28px;
  border: 0;
  color: #ffffff;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.mobile-panel input,
.mobile-panel button {
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
}

.mobile-panel input {
  width: 100%;
  color: var(--ink);
}

.mobile-panel button {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.24);
}

.mobile-panel a {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #0e7490);
}

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

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

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

.image-missing {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.78), rgba(15, 23, 42, 0.56), rgba(14, 165, 233, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  padding: 9px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-row span,
.detail-tags a,
.footer-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--cyan), var(--primary));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

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

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

.home-search-band {
  padding: 34px 0;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
}

.search-band-inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 28px;
  align-items: center;
}

.home-search-band h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
}

.home-search-band p {
  margin: 0;
  color: var(--muted);
}

.wide-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.wide-search input {
  width: 100%;
  border: 0;
  outline: none;
  padding: 0 18px;
  min-height: 44px;
  color: var(--ink);
  background: transparent;
}

.wide-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  cursor: pointer;
}

.page-section {
  padding: 70px 0;
}

.pattern-section {
  position: relative;
}

.pattern-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.12), transparent 28%), radial-gradient(circle at 85% 10%, rgba(37, 99, 235, 0.12), transparent 24%);
  pointer-events: none;
}

.pattern-section > .container {
  position: relative;
}

.light-panel {
  background: rgba(255, 255, 255, 0.62);
}

.blue-section {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-more {
  color: var(--primary);
  font-weight: 800;
}

.section-title-light .section-more,
.section-title-light h2 {
  color: #ffffff;
}

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

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

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

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.poster-frame img,
.category-preview img,
.rank-thumb img,
.detail-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.poster-type {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.9));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-title:hover {
  color: var(--primary);
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span,
.movie-meta a {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

.tag-row span,
.detail-tags a {
  color: #0369a1;
  background: #e0f2fe;
}

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

.rank-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-number {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.rank-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.rank-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-text strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-text em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-thumb {
  overflow: hidden;
  flex: 0 0 auto;
  width: 128px;
  height: 80px;
  border-radius: 16px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-rail {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
}

.rail-item {
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.editor-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 24px;
}

.large-card {
  grid-row: span 2;
}

.large-card .poster-frame {
  aspect-ratio: 16 / 12;
}

.side-card .movie-desc,
.side-card .tag-row {
  display: none;
}

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

.category-card,
.category-overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.24), rgba(37, 99, 235, 0.12));
}

.category-card strong {
  font-size: 24px;
}

.category-card span {
  color: var(--muted);
  font-size: 14px;
}

.cta-card {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 32px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #14b8a6);
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
}

.cta-card p {
  margin: 0 auto 24px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

.sub-hero,
.detail-hero {
  padding: 62px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #1d4ed8, #0891b2);
}

.sub-hero h1,
.detail-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.category-overview-card {
  min-height: 260px;
}

.category-preview {
  display: grid;
  height: 100%;
}

.preview-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 150px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.preview-stack img:nth-child(2) {
  transform: scale(1.08);
}

.category-title-block {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.category-title-block strong {
  font-size: 24px;
}

.category-title-block em {
  color: var(--muted);
  font-style: normal;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 180px));
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 28px;
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.empty-state.is-visible {
  display: block;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}

.detail-poster {
  overflow: hidden;
  height: 460px;
  border-radius: 30px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
}

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.detail-tags {
  margin-bottom: 26px;
}

.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 54px 0 0;
  background: #020617;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: #000000;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #020617, #0e7490);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img,
.cover-shade {
  position: absolute;
  inset: 0;
}

.cover-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.42));
}

.cover-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  box-shadow: 0 22px 50px rgba(6, 182, 212, 0.36);
}

.cover-title {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  z-index: 2;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
  text-align: left;
}

.detail-content-section {
  background: #f8fafc;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
}

.content-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

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

.related-side .rank-card {
  padding: 10px;
}

.related-side .rank-thumb {
  width: 110px;
  height: 70px;
}

.search-page .movie-grid:empty {
  display: none;
}

.site-footer {
  color: #cbd5e1;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 22px;
}

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

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

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #22d3ee;
}

.footer-tags a {
  display: inline-flex;
  margin: 0;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
  }

  .header-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-carousel {
    height: 560px;
  }

  .search-band-inner,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-search {
    border-radius: 22px;
  }

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

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

  .detail-poster {
    width: min(360px, 100%);
    height: 500px;
  }
}

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

  .nav-bar {
    min-height: 64px;
  }

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

  .hero-carousel {
    height: 540px;
  }

  .hero-content {
    align-items: flex-end;
    padding-bottom: 84px;
  }

  .page-section {
    padding: 48px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .rank-body {
    align-items: flex-start;
  }

  .rank-thumb {
    width: 104px;
    height: 72px;
  }

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

  .rail-item {
    flex-basis: 82vw;
  }

  .player-box {
    border-radius: 18px 18px 0 0;
  }

  .cover-play {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
