:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-mid: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #06b6d4;
  --cyan-deep: #0891b2;
  --blue: #2563eb;
  --yellow: #eab308;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.35);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(6, 182, 212, 0.25);
  transition: transform 0.2s ease;
}

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

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  color: var(--text);
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--soft);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -18px;
  width: 210px;
  padding: 10px;
  display: grid;
  gap: 4px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.18s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--soft);
  font-size: 14px;
}

.dropdown-panel a:hover {
  color: var(--cyan);
  background: rgba(51, 65, 85, 0.72);
}

.nav-search {
  display: flex;
  align-items: center;
  width: 280px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.nav-search input {
  min-width: 0;
  flex: 1;
  padding: 9px 12px 9px 16px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.nav-search button {
  padding: 9px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border: 0;
  font-weight: 700;
}

.mobile-menu-button {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 5px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
}

.mobile-menu-button span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--soft);
}

.hero-carousel {
  position: relative;
  height: min(82vh, 760px);
  min-height: 540px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 38%, rgba(6, 182, 212, 0.14), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.84) 43%, rgba(2, 6, 23, 0.24) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.1) 46%, rgba(2, 6, 23, 0.35) 100%);
}

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

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 5px 14px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 780px;
  margin: 22px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  padding: 5px 10px;
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.26);
}

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

.ghost-button {
  color: var(--soft);
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.55);
}

.text-link {
  padding: 8px 0;
  color: var(--cyan);
}

.hero-rating {
  color: #fde68a;
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  right: clamp(24px, 7vw, 80px);
  bottom: 42px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-controls button,
.rail-button {
  border: 0;
  color: #fff;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.hero-controls > button:hover,
.rail-button:hover {
  background: rgba(8, 145, 178, 0.92);
  transform: scale(1.05);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 18px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #475569;
}

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

.home-search-block {
  padding: 28px 16px 0;
  background: linear-gradient(180deg, #020617, #0f172a);
}

.search-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 24px;
  align-items: center;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.search-panel h2,
.search-result-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.search-panel p,
.search-result-heading p {
  margin: 0;
  color: var(--muted);
}

.wide-search-form {
  display: flex;
  min-height: 54px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.wide-search-form input {
  min-width: 0;
  flex: 1;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.wide-search-form button {
  border: 0;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.content-section {
  padding: 70px 16px;
}

.section-dark {
  background: linear-gradient(180deg, #020617, #0f172a);
}

.section-mid {
  background: #0f172a;
}

.section-featured {
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading a {
  color: var(--cyan);
  font-weight: 900;
}

.movie-grid,
.category-grid,
.featured-layout,
.ranking-strip,
.category-overview-grid,
.ranking-list,
.detail-article,
.player-shell,
.filter-panel,
.search-result-heading {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  background: rgba(30, 41, 59, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.11);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.72);
  box-shadow: 0 24px 55px rgba(6, 182, 212, 0.16);
}

.movie-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 60%);
}

.movie-score,
.movie-duration {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 900;
}

.movie-score {
  top: 10px;
  right: 10px;
  color: #fde68a;
}

.movie-duration {
  bottom: 10px;
  right: 10px;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card-link:hover h2 {
  color: var(--cyan);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.movie-card-compact p {
  display: none;
}

.rail {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.rail-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.rail-track .movie-card {
  flex: 0 0 290px;
}

.rail-button {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.rail-left {
  left: -12px;
}

.rail-right {
  right: -12px;
}

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

.category-tile {
  position: relative;
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.13);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.25);
}

.category-tile img,
.category-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  opacity: 0.44;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-overlay {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.94));
}

.category-tile:hover img {
  transform: scale(1.1);
  opacity: 0.62;
}

.category-icon,
.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 1;
}

.category-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 900;
}

.category-tile strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.category-tile small {
  color: var(--soft);
  font-size: 13px;
}

.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
}

.featured-main {
  position: relative;
  min-height: 560px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.featured-main img,
.featured-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-main img {
  object-fit: cover;
  transition: transform 0.45s ease;
}

.featured-main:hover img {
  transform: scale(1.08);
}

.featured-shade {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.18));
}

.featured-main .eyebrow,
.featured-main h2,
.featured-main p {
  position: relative;
  z-index: 1;
}

.featured-main h2 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.featured-main p {
  max-width: 660px;
  margin: 0;
  color: var(--soft);
}

.featured-side {
  display: grid;
  gap: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover,
.ranking-row-link:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.62);
}

.rank-number {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

.rank-item img {
  width: 92px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

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

.rank-copy small {
  color: var(--muted);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.page-hero {
  min-height: 390px;
  display: flex;
  align-items: center;
}

.slim-hero {
  min-height: 330px;
}

.page-hero-image,
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-image {
  object-fit: cover;
  opacity: 0.35;
}

.page-hero-bg {
  background:
    radial-gradient(circle at 72% 20%, rgba(6, 182, 212, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.8)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(2, 6, 23, 1));
}

.page-hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0;
}

.page-hero-content h1 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero-content p {
  max-width: 760px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: var(--text);
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
}

.empty-state {
  display: none;
  width: min(1180px, 100%);
  margin: 22px auto 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 16px;
}

.empty-state.is-visible {
  display: block;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.category-overview-cover {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 18px;
}

.category-overview-cover img,
.category-overview-cover span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-overview-cover img {
  object-fit: cover;
}

.category-overview-cover span {
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent);
}

.category-overview-body h2 {
  margin: 12px 0 10px;
  font-size: 26px;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--soft);
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mini-link-list a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.7);
  font-size: 12px;
}

.mini-link-list a:hover {
  color: var(--cyan);
}

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

.ranking-row-link {
  display: grid;
  grid-template-columns: 72px 148px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-index {
  color: var(--cyan);
  font-size: 27px;
  font-weight: 900;
}

.ranking-row img {
  width: 148px;
  height: 86px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-info strong {
  font-size: 20px;
}

.ranking-info small {
  color: var(--muted);
}

.ranking-info em {
  color: var(--soft);
  font-style: normal;
}

.ranking-score {
  justify-self: end;
  color: #fde68a;
  font-weight: 900;
}

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

.detail-bg,
.detail-bg-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-bg {
  object-fit: cover;
  opacity: 0.28;
  filter: blur(2px);
}

.detail-bg-shade {
  background:
    radial-gradient(circle at 80% 18%, rgba(6, 182, 212, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(2, 6, 23, 1), rgba(15, 23, 42, 0.82)),
    linear-gradient(0deg, #020617, transparent 48%);
}

.detail-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 20px;
}

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

.detail-meta span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-weight: 800;
}

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

.player-section {
  padding: 42px 16px;
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.32));
  border: 0;
  text-align: center;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-size: 30px;
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.35);
}

.player-overlay strong {
  max-width: min(680px, 86%);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.15;
}

.player-overlay small {
  color: var(--soft);
  font-size: 16px;
  font-weight: 800;
}

.detail-content-section {
  padding-top: 60px;
}

.detail-article {
  max-width: 940px;
  padding: 34px;
  border-radius: 24px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.13);
}

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

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

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

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

.info-list div {
  padding: 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
}

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

.info-list dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 800;
}

.page-link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.page-link-strip a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.8);
}

.page-link-strip a:hover {
  color: var(--cyan);
}

.search-result-heading {
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .movie-grid,
  .home-grid,
  .category-movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .category-overview-grid,
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .featured-main {
    min-height: 440px;
  }
}

@media (max-width: 880px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .mobile-menu-button {
    display: grid;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    padding: 10px 0;
  }

  .nav-dropdown:hover .dropdown-panel,
  .dropdown-panel {
    position: static;
    width: 100%;
    margin-top: 6px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-search {
    width: 100%;
  }

  .hero-carousel {
    height: 720px;
    min-height: 620px;
  }

  .hero-controls {
    left: 16px;
    right: auto;
    bottom: 26px;
  }

  .search-panel,
  .filter-panel,
  .detail-grid,
  .ranking-row-link,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    align-items: start;
  }

  .detail-poster {
    max-width: 320px;
  }

  .ranking-row-link {
    gap: 12px;
  }

  .ranking-row img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-score {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .content-section {
    padding: 52px 16px;
  }

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

  .movie-grid,
  .home-grid,
  .category-movie-grid,
  .related-grid,
  .category-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .detail-copy h1,
  .page-hero-content h1 {
    letter-spacing: -0.03em;
  }

  .hero-actions,
  .page-link-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .wide-search-form {
    flex-direction: column;
  }

  .wide-search-form input,
  .wide-search-form button {
    min-height: 52px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .detail-article {
    padding: 24px;
  }

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

.site-footer {
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.5fr) minmax(180px, 0.7fr);
  gap: 34px;
}

.footer-main p {
  max-width: 620px;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 15px;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-group h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--soft);
}

.footer-group a {
  color: var(--muted);
  font-size: 14px;
}

.footer-group a:hover {
  color: var(--cyan);
}

.footer-bottom {
  padding: 18px 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 13px;
}
