:root {
  --orange: #ea580c;
  --amber: #d97706;
  --yellow: #f59e0b;
  --red: #ef4444;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7ed 0, #f8fafc 360px, #f8fafc 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #d97706 50%, #f59e0b);
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.24);
}

.nav-inner {
  width: min(1280px, calc(100% - 32px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  font-size: 15px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

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

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

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 11px 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.nav-search input::placeholder,
.wide-search input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.nav-search input {
  width: 220px;
}

.nav-search button,
.wide-search button,
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: #9a3412;
  background: #fff7ed;
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button:hover,
.wide-search button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(154, 52, 18, 0.22);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 12px;
  padding: 7px 11px;
}

.hero-carousel {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(12px) saturate(1.05);
  transform: scale(1.08);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(146, 64, 14, 0.82) 42%, rgba(245, 158, 11, 0.60));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 60px;
}

.hero-copy {
  color: #fff;
  max-width: 720px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.16;
}

.hero-copy p {
  margin: 0 0 22px;
  font-size: clamp(17px, 2vw, 23px);
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.detail-tags,
.card-tags,
.filter-chips,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.filter-chips a,
.quick-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

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

.btn.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.btn.ghost {
  display: inline-flex;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.btn.small {
  padding: 9px 16px;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  transform: perspective(900px) rotateY(-8deg);
}

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

.hero-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(249, 115, 22, 0.9);
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.45);
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.quick-search-panel {
  margin-top: -38px;
  position: relative;
  z-index: 4;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.wide-search {
  display: flex;
  gap: 12px;
}

.wide-search input {
  flex: 1 1 auto;
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.wide-search input::placeholder {
  color: #c2410c;
}

.wide-search button {
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(90deg, #f97316, #f59e0b);
}

.quick-links {
  margin-top: 14px;
}

.quick-links a,
.filter-chips a {
  color: #9a3412;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(245, 158, 11, 0.16));
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.card-badge,
.card-play {
  position: absolute;
  z-index: 2;
  color: #fff;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
}

.card-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--orange);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
}

.card-tags {
  margin-top: 10px;
}

.card-tags span {
  color: #9a3412;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.category-panel,
.content-card,
.player-shell,
.detail-poster,
.filter-bar {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 22px;
  position: sticky;
  top: 90px;
}

.rank-head,
.category-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.rank-head strong,
.category-panel h2,
.ranking-side h2 {
  font-size: 24px;
}

.rank-head a {
  color: var(--orange);
  font-weight: 800;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border-radius: 16px;
  background: #fff7ed;
}

.rank-row img,
.mini-card img,
.ranking-line img {
  width: 54px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-no,
.ranking-number {
  color: var(--orange);
  font-weight: 900;
}

.rank-info strong,
.mini-card strong,
.ranking-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em,
.mini-card em,
.ranking-title em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  font-weight: 900;
  color: #b91c1c;
}

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

.category-tile {
  min-height: 210px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.2);
}

.category-tile strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.category-tile span {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.category-tile em {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  font-size: 13px;
  font-style: normal;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(120deg, #9a3412, #ea580c 48%, #f59e0b);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.1;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.inline-search {
  max-width: 680px;
  margin-top: 24px;
}

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

.category-panel {
  padding: 26px;
}

.category-panel h2 {
  margin: 0 0 6px;
}

.category-panel p {
  margin: 0;
  color: var(--muted);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.filter-bar input,
.filter-bar select {
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.filter-bar input {
  flex: 1 1 auto;
  max-width: 420px;
}

.filter-bar select {
  min-width: 150px;
  cursor: pointer;
}

.empty-state {
  display: none;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  background: #fff;
}

.empty-state.show {
  display: block;
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

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

.ranking-line {
  display: grid;
  grid-template-columns: 48px 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}

.ranking-side {
  padding: 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.single-column {
  grid-template-columns: 1fr;
}

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  color: #fff;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image: var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.08);
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(154, 52, 18, 0.84), rgba(245, 158, 11, 0.56));
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 48px 0;
}

.detail-poster {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  margin-bottom: 16px;
}

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

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

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

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.detail-meta dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.player-section {
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #050505;
  aspect-ratio: 16 / 9;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #050505;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.26), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-overlay span {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 18px 46px rgba(249, 115, 22, 0.35);
  font-size: 28px;
}

.player-overlay strong {
  font-size: 20px;
}

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

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

.content-card {
  padding: 26px;
}

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

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.site-footer {
  margin-top: 72px;
  padding: 46px 0 0;
  color: #fff;
  background: linear-gradient(135deg, #7c2d12, #9a3412 48%, #b45309);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 38px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom {
  margin-top: 36px;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 1120px) {
  .nav-menu {
    gap: 10px;
  }

  .nav-search input {
    width: 180px;
  }

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

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

  .split-layout,
  .ranking-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: rgba(154, 52, 18, 0.38);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-search {
    width: 100%;
    order: 4;
  }

  .nav-search input {
    width: 100%;
    flex: 1 1 auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: 720px;
    height: 720px;
  }

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

  .hero-poster {
    width: min(260px, 75vw);
    transform: none;
  }

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

  .mini-grid,
  .footer-grid,
  .detail-content,
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .detail-hero-grid {
    gap: 24px;
  }

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

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container,
  .nav-inner,
  .hero-content {
    width: min(100% - 22px, 1180px);
  }

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

  .wide-search,
  .filter-bar,
  .category-panel-head,
  .rank-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .ranking-line {
    grid-template-columns: 40px 54px minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 3;
  }

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

  .player-overlay span {
    width: 64px;
    height: 64px;
  }
}
