:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --surface-soft: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --dark: #111827;
  --emerald: #059669;
  --emerald-dark: #047857;
  --emerald-soft: #ecfdf5;
  --teal-soft: #f0fdfa;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), #14b8a6);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.24);
}

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

.brand strong {
  color: #111827;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color 0.2s ease;
}

.brand small {
  margin-top: 4px;
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand:hover strong {
  color: var(--emerald);
}

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

.nav-link {
  position: relative;
  padding: 23px 0;
  color: #374151;
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease;
}

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

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

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

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.top-search input,
.mobile-search input,
.hero-search input {
  width: 210px;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  color: #111827;
  background: transparent;
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  padding: 10px 14px;
  background: var(--emerald);
  color: #ffffff;
  font-weight: 700;
  transition: background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
  background: var(--emerald-dark);
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  color: #111827;
  background: transparent;
}

.menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 16px 18px;
}

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

.mobile-link {
  display: block;
  border-radius: 10px;
  padding: 10px 12px;
  color: #374151;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: var(--emerald-soft);
  color: var(--emerald);
}

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

.mobile-search input {
  width: 100%;
}

.hero {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

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

.hero-slide img,
.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.5), transparent 34%), linear-gradient(135deg, #111827, #1f2937);
}

.hero-slide img.image-hidden,
.movie-card img.image-hidden,
.movie-row img.image-hidden,
.category-card img.image-hidden,
.category-entry img.image-hidden,
.detail-poster img.image-hidden,
.detail-backdrop.image-hidden,
.video-player.image-hidden {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 76px;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(5, 150, 105, 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 16px;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 6vw, 78px);
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

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

.hero-tags span,
.detail-tags a,
.card-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}

.card-tags span {
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

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

.primary-button {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(5, 150, 105, 0.28);
}

.primary-button:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.32);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  right: 50%;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(50%);
}

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.main-sections,
.listing-wrap,
.categories-page,
.ranking-page,
.detail-content,
.watch-section {
  padding-block: 56px;
}

.content-section {
  margin-bottom: 72px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 900;
}

.section-title h2,
.section-head h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--emerald);
  font-weight: 800;
}

.section-more span {
  transition: transform 0.2s ease;
}

.section-more:hover span {
  transform: translateX(4px);
}

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

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

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

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.55), transparent 34%), linear-gradient(135deg, #1f2937, #111827);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-soft);
}

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

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent 68%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--emerald);
  font-size: 20px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

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

.card-body h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-large .card-body h3 {
  font-size: 22px;
}

.card-body h3 a {
  transition: color 0.2s ease;
}

.movie-card:hover .card-body h3 a {
  color: var(--emerald);
}

.card-body p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.category-section {
  border-radius: 28px;
  padding: 34px;
  background: linear-gradient(135deg, var(--emerald-soft), var(--teal-soft));
}

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

.category-card,
.category-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.75);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  min-height: 150px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-entry:hover {
  border-color: rgba(5, 150, 105, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-card span,
.category-entry span {
  display: inline-flex;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 900;
}

.category-card strong,
.category-entry h2 {
  display: block;
  margin: 0 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
}

.category-card small,
.category-entry p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 13px;
}

.category-card img,
.category-entry img {
  position: absolute;
  right: -28px;
  bottom: -32px;
  width: 130px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
  opacity: 0.16;
  transform: rotate(-8deg);
}

.split-section,
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

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

.movie-row {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.row-poster {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f2937, #111827);
  aspect-ratio: 16 / 10;
}

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

.row-poster span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.24);
  color: #ffffff;
  font-size: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-row:hover .row-poster span {
  opacity: 1;
}

.row-body {
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.row-body h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
}

.row-body h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  transition: color 0.2s ease;
}

.movie-row:hover .row-body h3 a {
  color: var(--emerald);
}

.rank-num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 900;
}

.row-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

.ranking-panel {
  position: sticky;
  top: 92px;
  border-radius: 22px;
  background: #111827;
  padding: 24px;
  color: #ffffff;
}

.ranking-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.ranking-panel .movie-row {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.ranking-panel .row-body h3,
.ranking-panel .row-body h3 a {
  color: #ffffff;
}

.ranking-panel .row-body p {
  color: #d1d5db;
}

.ranking-panel .row-meta {
  color: #9ca3af;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}

.small-hero {
  padding: 76px 0;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #e5e7eb;
  font-size: 18px;
}

.category-hero {
  background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.34), transparent 36%), linear-gradient(135deg, #064e3b, #111827);
}

.ranking-hero {
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.3), transparent 32%), linear-gradient(135deg, #111827, #064e3b);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-bar a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-bar a:hover,
.filter-bar a.is-active {
  border-color: rgba(5, 150, 105, 0.28);
  background: var(--emerald-soft);
  color: var(--emerald-dark);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 44px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: #374151;
  font-weight: 800;
}

.pagination a:hover,
.pagination a.is-current {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #ffffff;
}

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

.category-entry {
  min-height: 220px;
}

.category-entry h2 {
  font-size: 25px;
}

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

.search-wrap {
  min-height: 360px;
}

.search-state {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

.hero-search {
  width: min(100%, 560px);
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
}

.hero-search input {
  flex: 1;
  width: auto;
  color: #ffffff;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  background: #111827;
  color: #ffffff;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  filter: blur(1px);
  transform: scale(1.02);
}

.detail-backdrop-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.38));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  min-height: 600px;
  padding-block: 76px;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(135deg, #1f2937, #111827);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  aspect-ratio: 2 / 3;
}

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

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

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-copy h1 {
  max-width: 900px;
  font-size: clamp(42px, 6vw, 76px);
}

.detail-copy p {
  max-width: 860px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 19px;
}

.detail-tags a {
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease;
}

.detail-tags a:hover {
  background: rgba(5, 150, 105, 0.72);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.detail-meta span {
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 800;
}

.watch-section {
  padding-top: 48px;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #0b1120;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.video-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle at center, rgba(5, 150, 105, 0.30), rgba(0, 0, 0, 0.52));
  color: #ffffff;
  text-align: center;
}

.player-start strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--emerald);
  font-size: 32px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.player-start:hover .player-icon {
  transform: scale(1.06);
}

.video-shell.is-playing .player-start {
  display: none;
}

.watch-copy {
  padding: 24px;
  color: #ffffff;
}

.watch-copy h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.watch-copy p {
  margin: 0;
  color: #d1d5db;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 0;
}

.story-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #ffffff;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.story-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.story-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.info-card {
  grid-column: 1 / -1;
}

.info-card dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 18px;
  margin: 0;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: #111827;
}

.related-section {
  padding-top: 0;
}

.site-footer {
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 42px;
  padding-block: 48px;
}

.footer-logo .brand-mark {
  background: linear-gradient(135deg, var(--emerald), #10b981);
}

.footer-logo strong {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 16px;
  color: #6b7280;
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .menu-button {
    display: flex;
  }

  .nav-container {
    min-height: 64px;
  }

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

  .hero-content {
    align-items: flex-end;
    padding-bottom: 88px;
  }

  .movie-grid,
  .listing-grid,
  .five-grid,
  .large-ranking,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: end;
  }

  .detail-poster {
    width: min(70vw, 280px);
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

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

  .brand small {
    display: none;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .listing-grid,
  .five-grid,
  .category-grid,
  .category-entry-grid,
  .large-ranking,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .category-section {
    padding: 22px;
  }

  .movie-row {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .row-body p {
    -webkit-line-clamp: 1;
  }

  .detail-hero,
  .detail-hero-inner {
    min-height: auto;
  }

  .detail-hero-inner {
    padding-block: 42px;
  }

  .detail-poster {
    display: none;
  }

  .story-card,
  .watch-copy {
    padding: 20px;
  }

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