:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --amber: #f59e0b;
  --yellow: #facc15;
  --red: #ef4444;
  --pink: #ec4899;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--orange), var(--amber), var(--yellow));
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.25);
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  fill: var(--orange);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(4deg);
}

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

.brand-copy strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-copy em {
  margin-top: 5px;
  font-size: 12px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.86);
}

.header-search {
  flex: 1;
  max-width: 430px;
  position: relative;
}

.header-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 20px;
  height: 20px;
  color: var(--gray-500);
  fill: currentColor;
  transform: translateY(-50%);
}

.header-search input,
.mobile-search input,
.local-search-box input,
.search-main input {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  height: 44px;
  padding: 0 18px 0 48px;
}

.header-search input:focus,
.mobile-search input:focus,
.local-search-box input:focus,
.search-main input:focus {
  background: var(--white);
  border-color: #fed7aa;
  box-shadow: 0 0 0 5px rgba(255, 237, 213, 0.5);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--white);
  font-weight: 700;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.94);
  transition: color 0.2s ease;
}

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

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

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--white);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

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

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

.mobile-search input {
  height: 42px;
  padding: 0 16px;
}

.mobile-nav {
  display: grid;
  gap: 6px;
}

.mobile-nav a {
  padding: 10px 6px;
  color: var(--white);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 35%), linear-gradient(135deg, var(--orange), var(--amber) 52%, #eab308);
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 98px;
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(249, 115, 22, 0.68)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.12) blur(1px);
  transform: scale(1.06);
}

.hero-slide::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.72));
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

.hero h1 {
  max-width: 780px;
  margin: 24px 0 20px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.2vw, 23px);
}

.hero-tags,
.detail-tags,
.movie-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.movie-card__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

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

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

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

.btn-primary {
  background: var(--white);
  color: var(--orange-dark);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.20);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  transform: perspective(900px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.3s ease;
}

.hero-poster:hover {
  transform: perspective(900px) rotateY(-3deg) translateY(-8px);
}

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

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

.hero-poster span,
.movie-card__play {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--orange);
  fill: currentColor;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 78px;
  height: 78px;
  transform: translate(-50%, -50%);
}

.hero-poster svg {
  width: 38px;
  height: 38px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.28);
  backdrop-filter: blur(10px);
}

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

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

.stats-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -46px auto 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stats-strip a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 96px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats-strip a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.stats-strip strong {
  color: var(--orange-dark);
  font-size: 20px;
}

.stats-strip span {
  color: var(--gray-600);
  font-size: 14px;
}

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

.bg-white {
  background: var(--white);
}

.bg-soft {
  background: linear-gradient(135deg, #fff7ed, #fffbeb 48%, #f9fafb);
}

.bg-dark {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: var(--white);
}

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

.section-heading > div:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
}

.section-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  font-weight: 950;
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.24);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.section-heading p {
  grid-column: 2;
  margin: 6px 0 0;
  color: var(--gray-500);
}

.bg-dark .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-dark);
  font-weight: 900;
}

.bg-dark .section-link {
  color: #fed7aa;
}

.section-link span {
  font-size: 24px;
}

.featured-grid,
.movie-grid,
.category-grid,
.category-overview-grid {
  display: grid;
  gap: 24px;
}

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

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

.movie-grid--six {
  grid-template-columns: repeat(6, 1fr);
}

.movie-card {
  min-width: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.bg-dark .movie-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.movie-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-200);
}

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

.movie-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.58));
  opacity: 0.86;
}

.movie-card__play {
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card__play svg {
  width: 26px;
  height: 26px;
}

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

.movie-card__type,
.movie-card__duration,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 10px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.movie-card__type {
  left: 12px;
  top: 12px;
  background: var(--orange);
}

.movie-card__duration {
  right: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.66);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--red), var(--pink));
}

.movie-card__body {
  padding: 16px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 52px;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--gray-900);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.movie-card__title:hover {
  color: var(--orange-dark);
}

.bg-dark .movie-card__title {
  color: var(--white);
}

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

.bg-dark .movie-card__body p {
  color: rgba(255, 255, 255, 0.72);
}

.movie-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.movie-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.movie-card__meta svg,
.detail-meta svg {
  width: 16px;
  height: 16px;
  fill: #facc15;
  color: #facc15;
}

.movie-card__tags span {
  background: #ffedd5;
  color: var(--orange-dark);
}

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 180px;
  padding: 26px;
  border-radius: 24px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-strong);
}

.category-tile::after,
.category-overview-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -38px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(245, 158, 11, 0.24));
}

.category-tile span,
.category-overview-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  font-weight: 950;
}

.category-tile strong,
.category-overview-card h2 {
  display: block;
  margin: 18px 0 8px;
  color: var(--gray-900);
  font-size: 21px;
  font-weight: 950;
}

.category-tile em,
.category-overview-card p {
  display: block;
  color: var(--gray-600);
  font-style: normal;
  font-size: 14px;
}

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

.category-overview-card strong {
  display: inline-flex;
  margin-top: 18px;
  color: var(--orange-dark);
}

.ranking-panel {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 28px;
  align-items: stretch;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.14);
}

.ranking-row span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  color: var(--white);
  font-weight: 950;
}

.ranking-row strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-row em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  color: var(--white);
  background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.25), transparent 32%), linear-gradient(135deg, var(--orange), var(--amber) 58%, #eab308);
  overflow: hidden;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -55% -15%;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

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

.page-hero--small {
  padding: 86px 0 72px;
  text-align: center;
}

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

.page-hero span,
.page-hero--category > .container > span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.page-hero--category p {
  margin-left: 0;
}

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

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

.breadcrumb em {
  font-style: normal;
  color: var(--white);
}

.hero-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-inline-links a {
  max-width: 190px;
  padding: 8px 12px;
  border-radius: 999px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.toolbar h2 {
  margin: 0 0 4px;
  font-size: 30px;
}

.toolbar p {
  margin: 0;
  color: var(--gray-500);
}

.local-search-box {
  position: relative;
  width: min(100%, 360px);
}

.local-search-box span {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--gray-500);
  fill: currentColor;
  transform: translateY(-50%);
}

.local-search-box input {
  height: 44px;
  padding: 0 16px 0 44px;
}

.search-main {
  display: flex;
  max-width: 720px;
  margin: 28px auto 0;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.search-main input {
  flex: 1;
  height: 52px;
  padding: 0 18px;
  border: 0;
}

.search-main button {
  min-width: 108px;
  border: 0;
  border-radius: 999px;
  background: var(--gray-900);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.search-state {
  margin-bottom: 20px;
  color: var(--gray-600);
  font-weight: 800;
}

.detail-hero {
  padding: 42px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: center;
}

.detail-player-card {
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(12px);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #000000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #000000;
  cursor: pointer;
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--orange);
  fill: currentColor;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.player-cover svg {
  width: 40px;
  height: 40px;
}

.detail-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-kicker {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  font-weight: 900;
}

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

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

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

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

.detail-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-content,
.side-panel {
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-content {
  padding: 34px;
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.detail-content p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
}

.movie-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.movie-fields div {
  padding: 16px;
  border-radius: 16px;
  background: var(--gray-50);
}

.movie-fields dt {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 900;
}

.movie-fields dd {
  margin: 4px 0 0;
  color: var(--gray-900);
  font-weight: 900;
}

.side-panel {
  align-self: start;
  padding: 24px;
  position: sticky;
  top: 100px;
}

.side-panel h2 {
  margin: 0 0 16px;
}

.side-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 900;
}

.side-panel a:hover {
  color: var(--orange-dark);
}

.site-footer {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 34px;
  padding: 54px 0 36px;
}

.footer-brand__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand__head .brand-mark {
  width: 42px;
  height: 42px;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

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

.footer-brand span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.footer-brand p {
  max-width: 450px;
  margin: 0;
}

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

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.70);
}

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

.footer-links--wide div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 16px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

  .site-header__inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 56px;
  }

  .hero-poster {
    min-height: 300px;
    transform: none;
  }

  .hero-poster img {
    min-height: 300px;
  }

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

  .featured-grid,
  .category-overview-grid,
  .movie-grid--four,
  .movie-grid--six {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .brand-copy strong {
    font-size: 19px;
  }

  .brand-copy em {
    display: none;
  }

  .site-header__inner {
    height: 66px;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    padding-bottom: 110px;
  }

  .hero-actions,
  .toolbar,
  .section-heading,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-strip,
  .featured-grid,
  .movie-grid--four,
  .movie-grid--six,
  .category-grid,
  .category-overview-grid,
  .movie-fields {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 42px 1fr;
  }

  .ranking-row em {
    grid-column: 2;
  }

  .search-main {
    border-radius: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .search-main input,
  .search-main button {
    width: 100%;
  }

  .search-main button {
    height: 48px;
  }

  .detail-player-card {
    padding: 8px;
    border-radius: 20px;
  }

  .player {
    border-radius: 16px;
  }

  .detail-content {
    padding: 24px;
  }

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