:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --stone-50: #fafaf9;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --emerald-700: #047857;
  --emerald-50: #ecfdf5;
  --amber-50: #fffbeb;
  --orange-50: #fff7ed;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(28, 25, 23, 0.12);
  --shadow-card: 0 10px 24px rgba(28, 25, 23, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-800);
  background: linear-gradient(180deg, var(--stone-50), var(--white));
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--stone-800), var(--green-700));
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 229, 228, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(28, 25, 23, 0.06);
}

.header-inner {
  max-width: var(--max-width);
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-600), var(--emerald-700));
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06) rotate(-2deg);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 20px;
  color: var(--stone-800);
}

.brand-text small {
  margin-top: 4px;
  color: var(--stone-500);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  color: var(--stone-600);
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid var(--stone-200);
  border-radius: 12px;
  background: var(--stone-50);
  color: var(--stone-800);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 220px;
  padding: 10px 12px;
}

.header-search input:focus,
.large-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.header-search button,
.large-search button {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  background: var(--green-600);
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.large-search button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

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

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--stone-200);
  background: var(--white);
  padding: 12px 20px 18px;
}

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

.mobile-nav-link {
  padding: 12px 0;
  color: var(--stone-700);
  font-weight: 800;
  border-bottom: 1px solid var(--stone-100);
}

.mobile-nav-link.active {
  color: var(--green-700);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-image {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(34, 197, 94, 0.26), transparent 36%),
    linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.62) 46%, rgba(12, 10, 9, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  color: var(--white);
}

.hero-badges,
.detail-tags,
.movie-tags,
.detail-meta,
.movie-meta,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-badges span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-badges span:first-child,
.detail-badges span:first-child {
  color: var(--white);
  background: var(--green-600);
}

.hero-badges span:not(:first-child),
.detail-badges span:not(:first-child) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1,
.hero-site-title {
  margin: 18px 0 6px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h2:not(.hero-site-title) {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
}

.hero p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 18px;
}

.hero-meta {
  margin-bottom: 30px;
  color: var(--stone-300);
}

.hero-meta span {
  position: relative;
  padding-right: 14px;
}

.hero-meta span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--stone-400);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  padding: 12px 22px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: var(--green-600);
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.32);
}

.btn-primary:hover {
  background: var(--green-700);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-ghost.dark {
  color: var(--stone-800);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.hero-control.prev {
  left: 22px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 22px;
  transform: translateY(-50%);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max-width)) / 2 + 20px));
  bottom: 34px;
  z-index: 5;
  width: min(360px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.hero-panel strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

.hero-picks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.hero-pick {
  position: relative;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid transparent;
  opacity: 0.72;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-pick:hover,
.hero-pick.active {
  opacity: 1;
  border-color: var(--green-500);
  transform: translateY(-2px);
}

.hero-pick span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 5px;
  z-index: 2;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.hero-pick::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

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

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

.quick-search-block,
.category-strip,
.content-section,
.ranking-section,
.page-block,
.category-preview,
.detail-content,
.player-section,
.related-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 20px 0;
}

.quick-search-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 34px;
  align-items: center;
}

.quick-search-block h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-content h2,
.player-section h2 {
  margin: 0;
  color: var(--stone-800);
  line-height: 1.15;
}

.quick-search-block h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.quick-search-block p,
.section-heading p,
.page-hero p,
.detail-content p {
  color: var(--stone-600);
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.large-search input {
  flex: 1;
  padding: 14px 16px;
  border: 0;
  background: transparent;
}

.large-search input:focus {
  box-shadow: none;
}

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

.section-heading.compact {
  align-items: center;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: var(--green-700);
  font-weight: 900;
}

.section-more:hover {
  color: var(--green-600);
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.category-card:hover img {
  opacity: 0.7;
  transform: scale(1.08);
}

.category-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.06), rgba(12, 10, 9, 0.88));
}

.category-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: var(--white);
}

.category-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.category-card p {
  margin: 0;
  color: var(--stone-200);
  font-size: 13px;
}

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

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

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 74, 0.34);
  box-shadow: var(--shadow-soft);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone-900);
}

.movie-poster img {
  transition: transform 0.5s ease;
}

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

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.82));
  transition: opacity 0.25s ease;
}

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

.movie-type,
.movie-score,
.movie-watch {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.movie-type {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--green-600);
}

.movie-score {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(28, 25, 23, 0.82);
  backdrop-filter: blur(10px);
}

.movie-watch {
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  opacity: 0;
  background: rgba(22, 163, 74, 0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(8px);
}

.movie-card:hover .movie-watch {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 16px;
}

.movie-info h2 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h2 a {
  transition: color 0.2s ease;
}

.movie-card:hover h2 a {
  color: var(--green-700);
}

.movie-info p {
  min-height: 45px;
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  color: var(--stone-500);
  font-size: 12px;
}

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 8px;
  color: var(--stone-300);
}

.movie-tags {
  margin-top: 12px;
}

.movie-tags span {
  padding: 4px 8px;
  color: var(--stone-600);
  background: var(--stone-100);
  font-size: 12px;
}

.ranking-section {
  padding-bottom: 60px;
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.ranking-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--stone-100);
}

.ranking-list li:last-child {
  border-bottom: 0;
}

.ranking-list span {
  color: var(--green-700);
  font-size: 22px;
  font-weight: 900;
}

.ranking-list a {
  font-weight: 900;
}

.ranking-list a:hover {
  color: var(--green-700);
}

.ranking-list em {
  justify-self: end;
  color: var(--stone-500);
  font-style: normal;
  font-weight: 900;
}

.page-main,
.detail-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(34px, 6vw, 70px);
  color: var(--stone-800);
  background: linear-gradient(135deg, var(--emerald-50), var(--amber-50));
  box-shadow: var(--shadow-card);
}

.page-hero.soft {
  background:
    radial-gradient(circle at 90% 12%, rgba(34, 197, 94, 0.2), transparent 34%),
    linear-gradient(135deg, var(--white), var(--emerald-50));
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 17px;
}

.category-hero {
  color: var(--white);
  background: var(--stone-900);
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0.46;
}

.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.5));
}

.category-hero > * {
  position: relative;
  z-index: 1;
}

.category-hero h1,
.category-hero p {
  color: var(--white);
}

.category-actions {
  margin-top: 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--stone-500);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0;
  padding: 18px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--stone-600);
  font-size: 13px;
  font-weight: 900;
}

.filter-panel .wide {
  grid-column: span 1;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.page-grid {
  padding-top: 8px;
}

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

.mini-card a {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--stone-900);
  box-shadow: var(--shadow-card);
}

.mini-card img {
  transition: transform 0.5s ease;
}

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

.mini-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: var(--white);
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}

.mini-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 128px minmax(0, 1fr) 90px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.36);
  box-shadow: var(--shadow-soft);
}

.rank-number {
  color: var(--green-700);
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
}

.rank-title {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-title:hover {
  color: var(--green-700);
}

.rank-body p {
  margin: 0 0 8px;
  color: var(--stone-600);
  font-size: 14px;
}

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

.rank-action {
  justify-self: end;
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--white);
  font-weight: 900;
  background: var(--green-600);
}

.rank-action:hover {
  background: var(--green-700);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  min-height: 480px;
  padding: 42px;
  border-radius: 32px;
  color: var(--white);
  background: var(--stone-950);
  box-shadow: var(--shadow-soft);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.72), rgba(12, 10, 9, 0.38)),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.detail-cover,
.detail-info {
  position: relative;
  z-index: 1;
}

.detail-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 58px);
}

.detail-one-line {
  max-width: 760px;
  margin: 16px 0 18px;
  color: var(--stone-200);
  font-size: 18px;
}

.detail-meta {
  margin-bottom: 18px;
  color: var(--stone-300);
}

.detail-meta span {
  padding: 6px 0;
}

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

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.player-section {
  padding-left: 0;
  padding-right: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--stone-950);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--stone-950);
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(22, 163, 74, 0.26), transparent 28%),
    rgba(12, 10, 9, 0.42);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding-left: 5px;
  background: var(--green-600);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.35);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-left: 0;
  padding-right: 0;
}

.detail-content article {
  padding: 28px;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.detail-content p {
  margin: 14px 0 0;
  white-space: pre-line;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 28px;
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 48px;
}

.brand-footer .brand-text strong {
  color: var(--white);
}

.footer-brand p {
  max-width: 420px;
  color: var(--stone-400);
}

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

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

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

.footer-columns a:hover {
  color: var(--green-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
  color: var(--stone-400);
}

.footer-bottom p {
  margin: 0;
}

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

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

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

  .hero-panel {
    display: none;
  }

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-inner {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .hero-control {
    display: none;
  }

  .quick-search-block,
  .footer-inner,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .large-search {
    flex-direction: column;
  }

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

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

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

  .rank-row {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .detail-cover {
    width: min(260px, 100%);
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

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

  .hero h1,
  .hero-site-title {
    font-size: 38px;
  }

  .hero h2:not(.hero-site-title) {
    font-size: 30px;
  }

  .hero p {
    font-size: 16px;
  }

  .quick-search-block,
  .category-strip,
  .content-section,
  .ranking-section,
  .page-block,
  .category-preview {
    padding-top: 40px;
  }

  .movie-grid,
  .category-grid,
  .mini-grid,
  .filter-panel,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .movie-info h2 {
    min-height: auto;
  }

  .movie-info p {
    min-height: auto;
  }

  .page-main,
  .detail-main {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-hero {
    border-radius: 22px;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number {
    text-align: left;
  }

  .rank-cover {
    width: 100%;
  }

  .rank-action {
    grid-column: auto;
  }

  .detail-hero {
    border-radius: 24px;
  }
}
