:root {
  --rose-50: #fff1f5;
  --rose-100: #ffe4ec;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --slate-950: #0f172a;
  --slate-900: #111827;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(244, 63, 94, 0.16);
  --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-500));
  box-shadow: 0 12px 22px rgba(244, 63, 94, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong,
.footer-logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  color: var(--slate-500);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--slate-700);
  font-weight: 700;
}

.nav-link,
.nav-button {
  position: relative;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 0;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
  color: var(--rose-500);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 220px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--slate-700);
}

.dropdown-panel a:hover {
  color: var(--rose-600);
  background: var(--rose-50);
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-box input,
.filter-box select {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 999px;
  outline: none;
  background: #ffffff;
  color: var(--slate-900);
  transition: 0.2s ease;
}

.header-search input {
  width: 240px;
  padding: 11px 16px;
  border-radius: 999px 0 0 999px;
}

.header-search button {
  border: 0;
  min-width: 48px;
  padding: 11px 14px;
  border-radius: 0 999px 999px 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500));
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-box input:focus,
.filter-box select:focus {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--rose-600);
  background: var(--rose-50);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  padding: 16px;
  background: #ffffff;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-search {
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 11px 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500));
}

.mobile-link {
  display: block;
  padding: 12px 4px;
  color: var(--slate-700);
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: linear-gradient(120deg, #e11d48, #db2777, #f97316);
}

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

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

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(90deg, rgba(159, 18, 57, 0.9), rgba(219, 39, 119, 0.74), rgba(249, 115, 22, 0.45)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  max-width: 760px;
}

.eyebrow,
.section-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff7fb;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-content p,
.page-hero p,
.detail-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: clamp(17px, 2.4vw, 24px);
  color: rgba(255, 255, 255, 0.9);
}

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

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

.hero-tags span,
.detail-tags span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.primary-button,
.glass-button,
.section-link,
.filter-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 0 24px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--rose-500), var(--pink-500), var(--orange-500));
  box-shadow: 0 16px 30px rgba(225, 29, 72, 0.32);
}

.glass-button {
  padding: 0 22px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
}

.primary-button:hover,
.glass-button:hover,
.section-link:hover,
.filter-chips button:hover {
  transform: translateY(-2px);
}

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

.hero-dots button {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.46);
  transition: 0.2s ease;
}

.hero-dots button.is-active {
  width: 36px;
  background: #ffffff;
}

.feature-strip {
  position: relative;
  z-index: 10;
  width: min(var(--container), calc(100% - 32px));
  margin: -46px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-strip a {
  min-height: 112px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.96), rgba(236, 72, 153, 0.92), rgba(249, 115, 22, 0.9));
  box-shadow: var(--shadow-soft);
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip strong {
  font-size: 22px;
  margin-bottom: 6px;
}

.feature-strip span {
  color: rgba(255, 255, 255, 0.86);
}

.page-section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.white-section {
  width: 100%;
  padding-left: max(16px, calc((100vw - var(--container)) / 2));
  padding-right: max(16px, calc((100vw - var(--container)) / 2));
  background: #ffffff;
}

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

.section-heading span {
  color: var(--rose-600);
  background: var(--rose-50);
  border-color: rgba(244, 63, 94, 0.12);
}

.section-heading h2,
.category-preview h2,
.side-panel h2,
.detail-article h2,
.detail-side h2 {
  margin: 10px 0 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p,
.category-preview p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--slate-500);
  font-size: 17px;
}

.section-link {
  flex: 0 0 auto;
  padding: 0 18px;
  color: var(--rose-600);
  background: var(--rose-50);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: linear-gradient(135deg, #fb7185, #ec4899 52%, #fb923c);
  box-shadow: var(--shadow-soft);
  transition: 0.24s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f43f5e, #db2777 55%, #f97316);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #be123c, #e11d48 55%, #fb7185);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -36px;
  bottom: -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.category-card:hover,
.movie-card:hover,
.mini-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.16);
}

.category-icon {
  display: inline-flex;
  font-size: 36px;
  margin-bottom: 18px;
}

.category-card strong,
.category-card em,
.category-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card strong {
  font-size: 24px;
  font-weight: 950;
  margin-bottom: 10px;
}

.category-card em {
  min-height: 72px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

.category-card small {
  margin-top: 16px;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #fff7fa);
  box-shadow: var(--shadow-card);
  transition: 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), #ffffff);
}

.movie-card-compact .poster-link {
  aspect-ratio: 4 / 5;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(15, 23, 42, 0.75));
}

.badge,
.rating {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.badge {
  left: 12px;
  top: 12px;
  background: rgba(244, 63, 94, 0.9);
}

.rating {
  right: 12px;
  bottom: 12px;
  background: rgba(15, 23, 42, 0.72);
}

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

.movie-card-body h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 950;
}

.movie-card-body h3 a:hover {
  color: var(--rose-600);
}

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

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f8fafc;
}

.tag-row span {
  padding: 6px 9px;
  color: var(--rose-600);
  background: var(--rose-50);
}

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

.ranking-list {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.ranking-item a {
  display: grid;
  grid-template-columns: 54px 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.ranking-item a:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--rose-600);
  font-weight: 950;
  background: var(--rose-50);
}

.top-rank .rank-number {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose-500), var(--orange-500));
}

.ranking-item img {
  width: 74px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}

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

.rank-info strong,
.rank-info em,
.rank-info small {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-900);
  font-size: 18px;
  font-weight: 950;
}

.rank-info em,
.rank-info small,
.rank-views {
  color: var(--slate-500);
  font-style: normal;
}

.rank-info small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rank-views {
  font-weight: 900;
  color: var(--rose-600);
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #fff1f5);
  box-shadow: var(--shadow-card);
}

.side-panel h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

.mini-list {
  display: grid;
  gap: 13px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  transition: 0.2s ease;
}

.mini-card img {
  width: 64px;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-900);
  font-weight: 950;
}

.mini-card em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, #be123c, #db2777, #f97316);
}

.page-hero {
  min-height: 360px;
  display: grid;
  place-items: center;
  padding: 74px 16px;
  text-align: center;
}

.compact-hero,
.category-hero,
.ranking-hero,
.search-hero {
  min-height: 330px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
}

.page-hero .eyebrow {
  margin: 0 auto;
}

.category-preview {
  padding: 32px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.category-preview:last-child {
  border-bottom: 0;
}

.category-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
}

.category-preview .category-icon {
  margin: 0 12px 0 0;
  vertical-align: middle;
}

.filter-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.filter-box input {
  flex: 1 1 300px;
  padding: 13px 18px;
}

.filter-box select {
  flex: 1 1 210px;
  padding: 13px 18px;
}

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

.filter-chips button {
  min-height: 38px;
  border: 0;
  padding: 0 14px;
  color: var(--rose-600);
  cursor: pointer;
  background: var(--rose-50);
}

.podium-section {
  padding-bottom: 26px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expanded-ranking .ranking-item a {
  grid-template-columns: 64px 90px minmax(0, 1fr) 100px;
}

.detail-hero {
  min-height: 650px;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(159, 18, 57, 0.74), rgba(15, 23, 42, 0.42)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.88));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.detail-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.36);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  margin-bottom: 12px;
}

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

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
  width: min(var(--container), calc(100% - 32px));
  margin: -54px auto 0;
  position: relative;
  z-index: 5;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #050816;
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050816;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(244, 63, 94, 0.35), rgba(15, 23, 42, 0.72));
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 34px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500), var(--orange-500));
  box-shadow: 0 20px 36px rgba(225, 29, 72, 0.35);
}

.player-start strong {
  font-size: 20px;
  letter-spacing: 0.04em;
}

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

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
}

.detail-article,
.detail-side {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-article h2,
.detail-side h2 {
  font-size: 28px;
  margin: 0 0 14px;
}

.detail-article p {
  margin: 0 0 24px;
  color: var(--slate-700);
  font-size: 17px;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-side dt {
  color: var(--slate-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--slate-900);
  font-weight: 700;
}

.search-page-form {
  width: min(720px, 100%);
  gap: 10px;
  margin: 28px auto 0;
}

.search-page-form input {
  min-height: 54px;
  padding: 0 20px;
}

.global-filter {
  justify-content: center;
}

.search-result-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.search-result-head h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.search-result-head p {
  margin: 0;
  color: var(--slate-500);
}

.site-footer {
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.78);
  background: radial-gradient(circle at 20% 0%, rgba(244, 63, 94, 0.48), transparent 32%), #0f172a;
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-inner p {
  max-width: 720px;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 0;
}

.footer-links a,
.footer-cats a {
  color: rgba(255, 255, 255, 0.86);
}

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

.copyright {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero-carousel {
    height: 590px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .feature-strip,
  .category-grid,
  .three-cols,
  .four-cols,
  .podium-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-strip {
    margin-top: 18px;
  }

  .section-heading,
  .category-preview-head,
  .search-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-item a,
  .expanded-ranking .ranking-item a {
    grid-template-columns: 46px 64px minmax(0, 1fr);
  }

  .rank-views {
    display: none;
  }

  .detail-hero-content {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 58px 0 110px;
  }

  .detail-poster {
    width: min(280px, 72vw);
  }

  .player-section {
    padding: 18px;
  }
}

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

  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy small {
    display: none;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 40px;
  }

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

  .feature-strip,
  .category-grid,
  .three-cols,
  .four-cols,
  .podium-grid {
    grid-template-columns: 1fr;
  }

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

  .white-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .movie-card-body h3 {
    font-size: 18px;
  }

  .detail-meta span,
  .hero-tags span,
  .detail-tags span {
    font-size: 12px;
  }

  .player-start span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}
