:root {
  color-scheme: light;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #ffedd5;
  --white: #ffffff;
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.18);
  --shadow-xl: 0 24px 70px rgba(15, 23, 42, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 48%, #f8fafc 100%);
  color: var(--slate-900);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  color: var(--white);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.38);
  color: var(--white);
  font-size: 15px;
  transition: transform 0.28s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link,
.mobile-nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.mobile-nav-link:hover,
.nav-link.is-active,
.mobile-nav-link.is-active {
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
}

.quick-search {
  display: flex;
  align-items: center;
  width: 290px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  overflow: hidden;
}

.quick-search input,
.mobile-search input,
.hero-search input,
.filter-panel input,
.category-tools input,
.filter-panel select,
.category-tools select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.quick-search input {
  min-width: 0;
  padding: 10px 12px;
  color: var(--white);
}

.quick-search input::placeholder,
.mobile-search input::placeholder {
  color: #94a3b8;
}

.quick-search button,
.mobile-search button,
.hero-search button,
.filter-panel button {
  border: 0;
  background: var(--orange-500);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 700;
  transition: background 0.25s ease;
}

.quick-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-panel button:hover {
  background: var(--orange-600);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

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

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

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-search {
  display: flex;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.mobile-search input {
  padding: 12px;
  color: var(--white);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(90deg, #0f172a, #7c2d12, #0f172a);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 24px 24px, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px), radial-gradient(circle at 56px 56px, rgba(255, 255, 255, 0.12) 0 2px, transparent 2px);
  background-size: 72px 72px;
  z-index: 2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  z-index: 3;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(1.1) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(124, 45, 18, 0.72), rgba(2, 6, 23, 0.76));
}

.hero-inner {
  position: relative;
  z-index: 4;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--orange-400);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 14px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-copy h3 {
  margin: 0 0 18px;
  color: var(--orange-400);
  font-size: clamp(24px, 3vw, 42px);
}

.hero-copy p {
  max-width: 660px;
  margin: 0 0 32px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.8;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 22px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(249, 115, 22, 0.35);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--orange-600);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 18px -24px -18px 24px;
  background: rgba(249, 115, 22, 0.22);
  border-radius: 28px;
  z-index: -1;
}

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

.hero-poster span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  color: var(--white);
  font-size: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
}

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

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

.hero-dot.is-active {
  width: 56px;
  background: var(--orange-500);
}

.search-band {
  margin-top: -42px;
  position: relative;
  z-index: 20;
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  align-items: center;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid rgba(249, 115, 22, 0.14);
}

.search-band h2,
.orange-panel h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.search-band p,
.orange-panel p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.hero-search {
  display: flex;
  overflow: hidden;
  border-radius: 16px;
  background: var(--slate-100);
  border: 1px solid #e2e8f0;
}

.hero-search input {
  padding: 16px 18px;
  color: var(--slate-900);
}

.section {
  padding: 72px 0;
}

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

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading a {
  color: var(--orange-600);
  font-weight: 800;
}

.section-heading.light h2,
.section-heading.light a {
  color: var(--white);
}

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

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

.list-grid {
  display: grid;
  gap: 18px;
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: var(--shadow-lg);
}

.cover-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #7c2d12);
}

.card-feature .cover-box {
  aspect-ratio: 16 / 9;
}

.card-dark .cover-box,
.card-compact .cover-box {
  aspect-ratio: 4 / 3;
}

.cover-box img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.cover-glow {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  font-weight: 850;
  z-index: 1;
}

.play-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%) scale(0.85);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.92);
  color: var(--white);
  opacity: 0;
  z-index: 3;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--white);
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

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

.meta-row,
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-row span,
.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 12px;
  font-weight: 750;
}

.meta-pills span:nth-child(2n) {
  background: rgba(15, 23, 42, 0.75);
  color: var(--white);
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.movie-card-link:hover h3 {
  color: var(--orange-600);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 650;
}

.card-feature .movie-card-link {
  border-radius: var(--radius-xl);
}

.card-feature .movie-card-body {
  padding: 24px;
}

.card-feature h3 {
  font-size: 25px;
}

.card-list .movie-card-link {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
}

.card-list .cover-box {
  aspect-ratio: auto;
  height: 100%;
  min-height: 200px;
}

.dark-section {
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.masonry-grid {
  columns: 3 280px;
  column-gap: 24px;
}

.card-dark {
  break-inside: avoid;
  margin-bottom: 24px;
}

.card-dark .movie-card-link {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}

.card-dark h3,
.card-dark .movie-card-link:hover h3 {
  color: var(--white);
}

.card-dark p {
  color: #cbd5e1;
}

.orange-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.orange-panel p {
  color: #ffedd5;
}

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

.latest-links a {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.latest-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.latest-links strong {
  display: block;
  margin-bottom: 6px;
}

.latest-links span {
  color: #ffedd5;
  font-size: 13px;
}

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

.category-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.category-main-link {
  display: block;
  padding: 20px;
  min-height: 150px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(124, 45, 18, 0.9));
  color: var(--white);
}

.category-main-link span {
  display: block;
  color: var(--orange-400);
  font-weight: 900;
  margin-bottom: 14px;
}

.category-main-link strong {
  font-size: 18px;
  line-height: 1.55;
}

.category-samples {
  display: grid;
  padding: 14px 18px 18px;
  gap: 8px;
}

.category-samples a {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.4;
}

.category-samples a:hover {
  color: var(--orange-600);
}

.page-hero,
.detail-hero {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--slate-950), #7c2d12, var(--slate-900));
  color: var(--white);
  overflow: hidden;
}

.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.36), transparent 26%), radial-gradient(circle at 80% 50%, rgba(249, 115, 22, 0.42), transparent 32%);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.page-hero h1,
.detail-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.page-hero p,
.detail-hero p {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.stacked-previews {
  display: grid;
  gap: 56px;
}

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

.category-tools,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr)) auto;
}

.category-tools input,
.category-tools select,
.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: var(--slate-900);
}

.empty-state {
  margin: 36px 0 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--slate-600);
  text-align: center;
  border: 1px solid #e2e8f0;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 62px 98px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow-lg);
}

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

.rank-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--slate-900), var(--orange-600));
}

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

.rank-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.rank-main em {
  display: block;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.55;
  font-style: normal;
}

.rank-meta {
  color: var(--slate-500);
  font-weight: 700;
  white-space: nowrap;
}

.detail-hero {
  min-height: 430px;
  display: flex;
  align-items: end;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(1px) saturate(1.1);
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(124, 45, 18, 0.72));
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.detail-back {
  flex: 0 0 auto;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(15, 23, 42, 0.18);
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.player-center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.95);
  color: var(--white);
  font-size: 34px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.player-shell.is-playing .player-center-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
}

.player-top-title,
.player-state,
.player-controls {
  position: absolute;
  z-index: 4;
}

.player-top-title {
  top: 18px;
  left: 18px;
  right: 18px;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.player-state {
  left: 18px;
  bottom: 18px;
  color: #e2e8f0;
  font-size: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.player-controls {
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.player-shell:hover .player-controls,
.player-shell:focus-within .player-controls {
  opacity: 1;
}

.player-controls button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.78);
}

.detail-article {
  margin-top: 38px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-lg);
}

.detail-article h2 {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 26px;
}

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

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

.large-tags span {
  min-height: 34px;
  padding: 0 13px;
  background: var(--orange-100);
  color: var(--orange-600);
}

.site-footer {
  background: var(--slate-950);
  color: #cbd5e1;
  padding: 56px 0 0;
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 420px;
  margin: 20px 0 0;
  line-height: 1.8;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  gap: 12px;
  align-content: start;
}

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

.footer-links a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  margin-top: 42px;
  padding: 18px;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--orange-600);
}

[hidden] {
  display: none !important;
}

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

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

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

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

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

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

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

  .hero-inner {
    min-height: 720px;
    grid-template-columns: 1fr;
    align-content: center;
    padding: 46px 0 88px;
  }

  .hero-poster {
    width: min(300px, 80vw);
    margin-inline: auto;
  }

  .search-band {
    margin-top: 0;
  }

  .search-band-inner,
  .orange-panel,
  .footer-inner,
  .detail-title-row {
    grid-template-columns: 1fr;
    display: grid;
  }

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

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

  .card-list .movie-card-link,
  .rank-item {
    grid-template-columns: 1fr;
  }

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

  .rank-cover {
    display: none;
  }

  .rank-meta {
    white-space: normal;
  }

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

  .player-controls {
    display: none;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .mobile-nav {
    width: min(100% - 22px, 1200px);
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 38px;
  }

  .hero-actions,
  .hero-search,
  .latest-links {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .page-hero,
  .detail-hero {
    padding: 52px 0;
  }

  .player-center-button {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
