:root {
  --red: #dc2626;
  --red-deep: #b91c1c;
  --pink: #db2777;
  --amber: #d97706;
  --orange: #c2410c;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.10);
  --shadow-card: 0 10px 28px rgba(28, 25, 23, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--stone-50);
  color: var(--stone-900);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(231, 229, 228, 0.8);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
  font-size: 15px;
}

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, var(--red-deep), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  color: var(--stone-700);
  font-weight: 700;
  padding: 8px 0;
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.header-search {
  display: flex;
  align-items: center;
  width: 230px;
  height: 42px;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.header-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 0 0 16px;
  color: var(--stone-800);
  background: transparent;
}

.header-search button {
  width: 44px;
  height: 42px;
  border: 0;
  color: var(--stone-600);
  background: transparent;
  font-size: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--stone-100);
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--stone-700);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  border-top: 1px solid var(--stone-200);
}

.mobile-nav.open {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 8px;
  border-radius: 12px;
  color: var(--stone-700);
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
  color: var(--red);
  background: #fff1f2;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}

.mobile-search input {
  flex: 1;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  padding: 10px 14px;
  outline: 0;
}

.mobile-search button,
.search-page-form button,
.quick-search button,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(90deg, var(--red), var(--pink));
  font-weight: 800;
  padding: 10px 18px;
}

.hero {
  position: relative;
  min-height: 72vh;
  background: var(--stone-900);
  overflow: hidden;
}

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

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 35%, rgba(220, 38, 38, 0.42), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 55%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 70px;
  width: min(720px, calc(100% - 64px));
  color: var(--white);
}

.hero-eyebrow,
.page-hero > .container > p,
.detail-hero-inner > p {
  margin: 0 0 14px;
  color: #fecdd3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 22px 45px rgba(0, 0, 0, 0.36);
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 24px;
  color: #f5f5f4;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
}

.hero-tags,
.card-tags,
.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-bottom: 28px;
}

.hero-tags span,
.page-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.primary-button,
.ghost-button,
.outline-button,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(90deg, var(--red), var(--pink));
  box-shadow: 0 18px 35px rgba(220, 38, 38, 0.30);
}

.primary-button:hover,
.panel-link:hover,
.movie-card:hover,
.horizontal-card:hover {
  transform: translateY(-3px);
}

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

.outline-button {
  border: 1px solid var(--stone-300);
  color: var(--stone-700);
  background: var(--white);
}

.primary-button.full {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
}

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

.hero-arrow.prev {
  left: 24px;
}

.hero-arrow.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: max(32px, calc((100% - 1180px) / 2));
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.40);
}

.hero-dot.active {
  width: 54px;
  background: var(--white);
}

.quick-search-shell {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  padding: 0 16px;
}

.quick-search {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 500px);
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-xl);
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

.quick-search h2 {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.quick-search p {
  margin-top: 8px;
  color: var(--stone-600);
  line-height: 1.7;
}

.quick-search form,
.search-page-form,
.filter-bar {
  display: flex;
  gap: 10px;
}

.quick-search input,
.search-page-form input,
.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  padding: 13px 16px;
  outline: 0;
  background: var(--white);
}

.quick-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.search-filters input:focus,
.search-filters select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.main-flow {
  padding: 54px 0 76px;
}

.content-section {
  margin: 0 0 64px;
}

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

.section-heading.small {
  margin-bottom: 18px;
}

.section-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.22);
  font-size: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--stone-600);
  line-height: 1.6;
}

.tinted-section {
  margin-left: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  margin-right: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  padding: 44px max(16px, calc((100vw - 1180px) / 2));
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

.white-card-section {
  border-radius: var(--radius-xl);
  padding: 28px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.06);
}

.dark-section {
  margin-left: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  margin-right: calc((100vw - min(1180px, calc(100vw - 32px))) / -2);
  border-radius: 32px;
  padding: 44px max(16px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.22), transparent 32%),
    linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.dark-section .section-heading h2,
.dark-section .section-heading p {
  color: var(--white);
}

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

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

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

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

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

.movie-card,
.horizontal-card {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover,
.horizontal-card:hover {
  box-shadow: var(--shadow-card);
}

.movie-card > a {
  display: block;
  height: 100%;
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-card.compact .card-poster {
  aspect-ratio: 2 / 3;
}

.movie-card.large .card-poster {
  aspect-ratio: 16 / 9;
}

.card-poster img,
.horizontal-card img,
.poster-card img,
.related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.movie-card:hover .card-poster img,
.horizontal-card:hover img,
.related-item:hover img {
  transform: scale(1.06);
}

.quality-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  min-width: 42px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.quality-badge {
  right: 12px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(135deg, var(--red), var(--pink));
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.30);
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.28);
  font-size: 42px;
  opacity: 0;
  transition: opacity 180ms ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 9px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-body p {
  margin: 0 0 13px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  margin-bottom: 14px;
}

.card-tags span,
.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--red-deep);
  background: #fff1f2;
  font-size: 12px;
  font-weight: 800;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
}

.card-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
}

.category-chip-row,
.related-categories > div,
.side-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chip-row {
  margin-bottom: 20px;
}

.category-chip-row a,
.related-categories a,
.side-link-grid a {
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--stone-700);
  background: var(--white);
  border: 1px solid var(--stone-200);
  font-weight: 800;
  transition: color 180ms ease, background 180ms ease, border 180ms ease;
}

.category-chip-row a:hover,
.related-categories a:hover,
.side-link-grid a:hover {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

.category-mini-grid,
.category-grid {
  display: grid;
  gap: 20px;
}

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

.category-mini-card,
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
}

.category-mini-card a {
  display: grid;
  min-height: 132px;
  align-content: end;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.18), transparent 36%),
    linear-gradient(135deg, var(--white), #fff1f2);
}

.category-mini-card strong {
  font-size: 18px;
  color: var(--stone-900);
}

.category-mini-card span {
  margin-top: 8px;
  color: var(--stone-600);
  line-height: 1.55;
  font-size: 13px;
}

.split-section,
.detail-layout,
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

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

.horizontal-card a {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-height: 128px;
}

.horizontal-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--stone-200);
}

.horizontal-card h3 {
  margin: 16px 18px 8px 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.horizontal-card p {
  margin: 0 18px 12px 0;
  color: var(--stone-600);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.horizontal-card dl {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 18px 16px 0;
  color: var(--stone-500);
  font-size: 13px;
}

.horizontal-card dt,
.horizontal-card dd {
  margin: 0;
}

.ranking-panel,
.side-card,
.detail-card,
.search-filters,
.search-results-shell {
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
}

.ranking-panel,
.search-filters,
.search-results-shell {
  padding: 22px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  color: var(--stone-700);
  transition: background 180ms ease, color 180ms ease;
}

.rank-list a:hover {
  color: var(--red);
  background: var(--stone-100);
}

.rank-list span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--pink));
  font-weight: 900;
}

.rank-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em {
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

.panel-link {
  width: 100%;
  margin-top: 18px;
  color: var(--white);
  background: linear-gradient(90deg, var(--red), var(--pink));
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(244, 63, 94, 0.32), transparent 34%),
    linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

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

.page-hero h1,
.detail-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.page-intro {
  max-width: 760px;
  margin: 18px 0 0;
  color: #e7e5e4;
  line-height: 1.85;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: #fecdd3;
  font-size: 14px;
  font-weight: 800;
}

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

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

.category-card-main {
  position: relative;
  display: block;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(220, 38, 38, 0.20), transparent 38%),
    linear-gradient(135deg, var(--white), #fff7ed);
}

.category-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0 0 20px;
  color: var(--stone-600);
  line-height: 1.75;
}

.category-card strong {
  display: inline-flex;
  color: var(--red);
}

.category-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 28px 24px;
  list-style: none;
}

.category-card li a {
  display: block;
  overflow: hidden;
  color: var(--stone-700);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-card li a:hover {
  color: var(--red);
}

.filter-bar {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.08);
}

.related-categories {
  margin-top: 38px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
}

.related-categories h2 {
  margin: 0 0 16px;
}

.detail-hero {
  min-height: 420px;
  background-image: var(--detail-bg);
  background-size: cover;
  background-position: center;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.26)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 55%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 84px 0 76px;
}

.detail-layout {
  padding: 34px 0 76px;
}

.detail-main {
  min-width: 0;
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
  transition: opacity 180ms ease, visibility 180ms ease;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px);
  font-size: 36px;
  text-indent: 5px;
}

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

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
  font-size: 13px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.player-status.show {
  opacity: 1;
}

.detail-card,
.side-card {
  padding: 24px;
}

.detail-card h2,
.side-card h2,
.search-filters h2,
.search-result-head h2 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

.detail-card p {
  margin: 0;
  color: var(--stone-700);
  line-height: 1.95;
  font-size: 17px;
}

.review-card {
  border-left: 5px solid var(--red);
  background: #fff7ed;
}

.detail-sidebar {
  display: grid;
  gap: 18px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.info-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stone-200);
}

.info-list dt {
  color: var(--stone-500);
  font-size: 13px;
}

.info-list dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 800;
  line-height: 1.55;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 180ms ease;
}

.related-item:hover {
  background: var(--stone-100);
}

.related-item img {
  aspect-ratio: 16 / 10;
  border-radius: 10px;
}

.related-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.related-item em {
  display: block;
  margin-top: 5px;
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

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

.search-layout {
  padding-bottom: 76px;
}

.search-filters {
  display: grid;
  gap: 18px;
}

.search-filters label {
  display: grid;
  gap: 8px;
  color: var(--stone-700);
  font-weight: 800;
}

.search-filters input,
.search-filters select {
  width: 100%;
  border: 1px solid var(--stone-300);
  border-radius: 12px;
  padding: 11px 12px;
  outline: 0;
  background: var(--white);
}

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

.search-result-head h2 {
  margin: 0;
}

.search-result-head span {
  color: var(--stone-500);
  font-size: 14px;
}

.sticky-panel {
  position: sticky;
  top: 96px;
}

.ranking-grid .movie-card.compact .card-body p {
  -webkit-line-clamp: 3;
}

.site-footer {
  color: var(--stone-300);
  background:
    radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.16), transparent 28%),
    linear-gradient(135deg, var(--stone-900), var(--stone-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 1fr 1fr;
  gap: 40px;
  padding: 46px 0 34px;
}

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

.footer-about p {
  max-width: 560px;
  color: var(--stone-400);
  line-height: 1.85;
}

.footer-block h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-block ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-block a {
  color: var(--stone-400);
  transition: color 180ms ease;
}

.footer-block a:hover {
  color: #fb7185;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(214, 211, 209, 0.16);
  color: var(--stone-500);
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

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

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

  .large-grid,
  .four-grid,
  .compact-grid,
  .three-grid,
  .category-mini-grid,
  .category-grid,
  .editor-layout,
  .split-section,
  .detail-layout,
  .search-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .sticky-panel {
    position: static;
  }
}

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

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

  .hero {
    min-height: 76vh;
  }

  .hero-content {
    left: 20px;
    bottom: 72px;
    width: calc(100% - 40px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-summary {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 20px;
  }

  .quick-search {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .quick-search form,
  .search-page-form,
  .filter-bar {
    flex-direction: column;
  }

  .large-grid,
  .four-grid,
  .compact-grid,
  .three-grid,
  .category-mini-grid,
  .category-grid,
  .editor-layout,
  .split-section,
  .detail-layout,
  .search-layout {
    grid-template-columns: 1fr;
  }

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

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

  .movie-card .card-body p,
  .movie-card .card-tags {
    display: none;
  }

  .horizontal-card a {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 12px;
  }

  .horizontal-card h3 {
    margin: 12px 12px 7px 0;
    font-size: 16px;
  }

  .horizontal-card p {
    margin-right: 12px;
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .horizontal-card dl {
    display: none;
  }

  .page-hero {
    padding: 46px 0;
  }

  .detail-hero-inner {
    padding: 54px 0 58px;
  }

  .detail-layout {
    padding-top: 22px;
  }

  .player-start span {
    width: 68px;
    height: 68px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
