:root {
  --color-dark: #0f172a;
  --color-darker: #020617;
  --color-panel: #ffffff;
  --color-muted: #64748b;
  --color-soft: #f8fafc;
  --color-border: #e2e8f0;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #f59e0b;
  --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 24px 55px rgba(37, 99, 235, 0.20);
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #1e293b;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
}

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

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

.brand-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.16);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #dbeafe;
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.72);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 8px;
  background: #ffffff;
}

.category-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.76);
}

.category-strip-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.category-strip-inner::-webkit-scrollbar {
  display: none;
}

.category-strip-inner a {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.category-strip-inner a:hover {
  color: #ffffff;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: var(--color-darker);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.1);
}

.hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.78) 46%, rgba(15, 23, 42, 0.28) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.86) 0%, rgba(2, 6, 23, 0.05) 62%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 360px);
  align-items: center;
  gap: 44px;
  padding: 64px 0;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  padding: 7px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
}

.hero-meta,
.movie-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-meta span,
.movie-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions-tight {
  margin-top: 18px;
}

.primary-btn,
.ghost-btn,
.home-search-form button,
.ranking-play {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.home-search-form button,
.ranking-play {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.primary-btn:hover,
.home-search-form button:hover,
.ranking-play:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.36);
}

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

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

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(1deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

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

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

.search-panel {
  padding: 28px 16px 0;
}

.search-panel-inner,
.content-section,
.overview-layout,
.detail-layout,
.player-section {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.search-panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e293b, #2563eb);
  box-shadow: var(--shadow-card);
}

.search-panel h2,
.search-panel p {
  margin: 0;
}

.search-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.search-panel p {
  color: #dbeafe;
}

.home-search-form,
.filter-bar {
  display: flex;
  gap: 12px;
}

.home-search-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.home-search-form button {
  border: 0;
  white-space: nowrap;
}

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

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.section-heading > a {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-weight: 900;
}

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

.category-card,
.category-overview-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card {
  padding: 22px;
}

.category-card:hover,
.category-overview-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-card strong {
  display: block;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
}

.category-card span,
.category-overview-card p {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
}

.category-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-card li {
  margin-top: 6px;
  color: #334155;
  font-size: 14px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(37, 99, 235, 0.32);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

.movie-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.movie-score {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #0f172a;
  background: #facc15;
  font-size: 13px;
  font-weight: 900;
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
}

.movie-card-body h2 a:hover,
.ranking-info h2 a:hover,
.detail-content a:hover {
  color: var(--color-primary);
}

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

.movie-line {
  gap: 6px;
}

.movie-line span {
  min-height: 24px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 13px;
}

.movie-card-foot span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card-foot a {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-weight: 900;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact .movie-card-body h2 {
  font-size: 16px;
}

.movie-card-compact .movie-card-body p {
  min-height: 44px;
  font-size: 13px;
}

.filter-bar {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.filter-bar select {
  max-width: 180px;
}

.sticky-filter {
  position: sticky;
  top: 118px;
  z-index: 20;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.page-hero-inner,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.page-hero h1,
.detail-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
}

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

.breadcrumb em {
  color: rgba(255, 255, 255, 0.45);
  font-style: normal;
}

.overview-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 58px 0 0;
}

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

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

.category-overview-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
}

.category-overview-head a {
  color: var(--color-primary);
  font-weight: 900;
}

.mini-movie-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-movie {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
}

.mini-movie img {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
}

.mini-movie span {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-index {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), #0f172a);
  font-size: 18px;
  font-weight: 900;
}

.ranking-cover img {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.ranking-play {
  min-width: 86px;
}

.detail-hero {
  min-height: 420px;
  background: var(--color-darker);
}

.detail-bg,
.detail-hero-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1);
  transform: scale(1.06);
}

.detail-hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.70)), linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.10));
}

.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.detail-title-row .primary-btn {
  margin-bottom: 8px;
}

.player-section {
  padding: 42px 0 0;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18) 0%, rgba(2, 6, 23, 0.68) 100%);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  box-shadow: 0 0 0 14px rgba(37, 99, 235, 0.18), 0 18px 40px rgba(0, 0, 0, 0.40);
  font-size: 34px;
  transform: translateX(3px);
}

.player-overlay:hover span {
  background: var(--color-primary-dark);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  padding: 42px 0 0;
}

.detail-poster {
  position: sticky;
  top: 126px;
  align-self: start;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.block-btn {
  display: flex;
  margin: 16px;
}

.detail-content {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-content h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
}

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

.detail-content p {
  margin: 0;
  color: #334155;
  font-size: 17px;
  white-space: pre-line;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.detail-info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-info-grid strong,
.detail-info-grid span,
.detail-info-grid a {
  display: block;
}

.detail-info-grid strong {
  color: #64748b;
  font-size: 13px;
}

.detail-info-grid span,
.detail-info-grid a {
  margin-top: 5px;
  color: #0f172a;
  font-weight: 900;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-cloud span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: 13px;
  font-weight: 800;
}

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

.footer-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr);
  gap: 40px;
  padding: 44px 0;
}

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

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

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

.footer-links a {
  color: #cbd5e1;
}

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

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

[data-movie-card].is-filter-hidden {
  display: none;
}

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

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 0 0 18px 18px;
    background: #0f172a;
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.28);
  }

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

  .nav-link {
    border-radius: 12px;
  }

  .hero-content,
  .search-panel-inner,
  .detail-layout,
  .detail-title-row,
  .footer-inner,
  .overview-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .hero-control {
    display: none;
  }

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

  .detail-poster {
    position: static;
    max-width: 320px;
  }

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

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

  .ranking-play {
    grid-column: 2 / -1;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .category-strip-inner,
  .search-panel-inner,
  .content-section,
  .overview-layout,
  .detail-layout,
  .player-section,
  .page-hero-inner,
  .detail-hero-inner {
    width: min(100% - 24px, var(--max-width));
  }

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

  .hero-slider,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding: 46px 0 74px;
  }

  .hero-actions,
  .home-search-form,
  .filter-bar {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .mini-movie-row {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 62px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-info h2 {
    font-size: 18px;
  }

  .ranking-info p {
    display: none;
  }

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

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
