:root {
  color-scheme: dark;
  --stone-950: #0c0a09;
  --stone-925: #11100f;
  --stone-900: #1c1917;
  --stone-850: #241f1d;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-500: #78716c;
  --stone-400: #a8a29e;
  --stone-300: #d6d3d1;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --red-900: #7f1d1d;
  --red-700: #b91c1c;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --soft-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top left, rgba(180, 83, 9, 0.16), transparent 28rem), var(--stone-950);
  color: var(--stone-300);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 70% 10%, rgba(127, 29, 29, 0.22), transparent 24rem),
    linear-gradient(180deg, rgba(28, 25, 23, 0.25), rgba(12, 10, 9, 0.95));
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(127, 29, 29, 0.96), rgba(120, 53, 15, 0.96));
  border-bottom: 1px solid rgba(252, 211, 77, 0.22);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand-mark i,
.play-float i,
.player-play i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--white);
}

.brand-text strong {
  display: block;
  color: #fff7ed;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.brand-text small {
  display: block;
  color: rgba(253, 230, 138, 0.82);
  font-size: 12px;
  margin-top: 4px;
}

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

.desktop-nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  background: rgba(120, 53, 15, 0.52);
  color: var(--amber-300);
}

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

.header-search input,
.mobile-search input,
.wide-search input,
.filter-toolbar input,
.filter-toolbar select {
  border: 1px solid rgba(252, 211, 77, 0.22);
  outline: none;
  background: rgba(41, 37, 36, 0.54);
  color: #fff7ed;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: rgba(245, 158, 11, 0.92);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  background: rgba(28, 25, 23, 0.82);
}

.header-search button,
.mobile-search button,
.wide-search button,
.filter-toolbar button,
.primary-button {
  border: 0;
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 750;
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.24);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 10px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.filter-toolbar button:hover,
.primary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 18px 34px rgba(180, 83, 9, 0.28);
}

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

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff7ed;
}

.mobile-panel {
  display: none;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(252, 211, 77, 0.18);
  background: rgba(68, 29, 9, 0.95);
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff7ed;
  background: rgba(120, 53, 15, 0.35);
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
}

.mobile-search button {
  padding: 11px 14px;
}

.site-main {
  min-height: 70vh;
}

.hero {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--stone-900);
}

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

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

.hero-slide > img,
.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade,
.detail-hero > span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.68) 45%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, var(--stone-950), transparent 45%);
}

.hero-slide.poster-missing {
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.24), transparent 24rem), linear-gradient(135deg, var(--stone-900), #090706);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

.hero-kicker,
.eyebrow,
.section-heading > span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  color: var(--amber-500);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.04;
  color: var(--white);
  text-shadow: 0 22px 50px rgba(0, 0, 0, 0.58);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(231, 229, 228, 0.92);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  color: var(--stone-300);
  background: rgba(28, 25, 23, 0.68);
  border: 1px solid rgba(252, 211, 77, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
}

.ghost-button {
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 750;
  background: rgba(41, 37, 36, 0.55);
  border: 1px solid rgba(252, 211, 77, 0.25);
  backdrop-filter: blur(16px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover {
  background: rgba(120, 53, 15, 0.58);
  transform: translateY(-1px);
}

.hero-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 247, 237, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

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

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

.hero-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff7ed;
  border-right: 3px solid #fff7ed;
}

.hero-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.hero-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

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

.hero-dots button {
  width: 38px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 247, 237, 0.34);
  transition: background 0.2s ease, width 0.2s ease;
}

.hero-dots button.is-active {
  width: 58px;
  background: var(--amber-500);
}

.section-block {
  padding: 34px 0;
}

.intro-panel {
  margin-top: -56px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(252, 211, 77, 0.15);
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-hero h1 {
  margin: 8px 0 10px;
  color: #fff7ed;
  line-height: 1.12;
}

.intro-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-panel p {
  margin: 0;
  color: var(--stone-400);
}

.wide-search {
  display: flex;
  gap: 10px;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.wide-search button {
  padding: 13px 18px;
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 4vw, 34px);
}

.section-heading p {
  margin: 0;
  color: var(--stone-500);
}

.section-link {
  align-self: center;
  color: var(--amber-500);
  font-weight: 750;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.94), rgba(28, 25, 23, 0.94));
  border: 1px solid rgba(120, 113, 108, 0.22);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0, rgba(245, 158, 11, 0.25), transparent 18rem), var(--stone-850);
}

.is-compact .poster-frame {
  aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-frame img {
  transform: scale(1.075);
  filter: brightness(0.82);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 52%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
  transform: translate(-50%, -50%) scale(0.82);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 850;
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: #fff7ed;
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--amber-500);
}

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

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

.movie-meta span:not(:last-child)::after {
  content: "·";
  margin-left: 7px;
}

.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber-300);
  font-size: 12px;
  background: rgba(120, 53, 15, 0.35);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.7fr);
  gap: 34px;
  align-items: start;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.ranking-item a {
  display: grid;
  grid-template-columns: 48px 62px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(28, 25, 23, 0.82);
  border: 1px solid rgba(120, 113, 108, 0.18);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(41, 37, 36, 0.92);
  transform: translateX(4px);
}

.ranking-number {
  color: var(--amber-500);
  font-weight: 900;
  font-size: 20px;
  text-align: center;
}

.ranking-item img {
  width: 62px;
  height: 78px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--stone-800);
}

.ranking-item img.is-hidden {
  display: none;
}

.ranking-text {
  min-width: 0;
}

.ranking-text strong,
.ranking-text em {
  display: block;
}

.ranking-text strong {
  color: #fff7ed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-text em {
  margin-top: 3px;
  color: var(--stone-500);
  font-size: 13px;
  font-style: normal;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 16px;
}

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

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

.category-tile,
.category-overview-card {
  position: relative;
  min-height: 172px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 16rem), var(--stone-850);
  border: 1px solid rgba(245, 158, 11, 0.17);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-overview-card {
  min-height: 210px;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-tile img,
.category-overview-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
  opacity: 0.58;
}

.category-tile span,
.category-overview-card span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.16));
}

.category-tile strong,
.category-tile em,
.category-overview-card strong,
.category-overview-card em {
  position: relative;
  z-index: 2;
}

.category-tile strong,
.category-overview-card strong {
  color: #fff7ed;
  font-size: 22px;
  line-height: 1.2;
}

.category-tile em,
.category-overview-card em {
  margin-top: 6px;
  color: var(--stone-300);
  font-size: 14px;
  font-style: normal;
}

.page-shell {
  padding-bottom: 42px;
}

.page-hero {
  padding: 70px 0;
  background:
    radial-gradient(circle at 28% 12%, rgba(245, 158, 11, 0.24), transparent 26rem),
    linear-gradient(90deg, rgba(120, 53, 15, 0.48), rgba(127, 29, 29, 0.46), rgba(12, 10, 9, 0.8));
  border-bottom: 1px solid rgba(245, 158, 11, 0.16);
}

.page-hero h1 {
  max-width: 800px;
  font-size: clamp(36px, 6vw, 58px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--stone-300);
  font-size: 18px;
}

.search-panel {
  padding-top: 26px;
}

.filter-toolbar {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 150px 140px auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(28, 25, 23, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.filter-toolbar input,
.filter-toolbar select {
  min-width: 0;
  padding: 12px 13px;
}

.filter-toolbar button {
  padding: 12px 16px;
}

.empty-state {
  padding: 70px 20px;
  color: var(--stone-500);
  text-align: center;
  border: 1px dashed rgba(120, 113, 108, 0.34);
  border-radius: var(--radius-lg);
}

.detail-hero {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: var(--stone-900);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
}

.back-link {
  width: fit-content;
  margin-bottom: 18px;
  color: var(--amber-300);
  font-weight: 750;
}

.detail-hero h1 {
  max-width: 860px;
  font-size: clamp(38px, 7vw, 66px);
}

.detail-hero p {
  max-width: 790px;
  margin: 0 0 24px;
  color: var(--stone-300);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  margin-top: -70px;
  position: relative;
  z-index: 4;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
  align-content: start;
}

.player-card,
.content-card,
.side-card {
  border-radius: var(--radius-xl);
  background: rgba(28, 25, 23, 0.94);
  border: 1px solid rgba(120, 113, 108, 0.2);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  color: #fff7ed;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-600), var(--red-700));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

.player-overlay strong {
  font-size: 20px;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.48);
}

.content-card,
.side-card {
  padding: 24px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #fff7ed;
  font-size: 22px;
}

.content-card p {
  margin: 0;
  color: var(--stone-300);
  line-height: 1.9;
  text-align: justify;
}

.accent-card {
  border-color: rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.35), rgba(28, 25, 23, 0.94));
}

.poster-side img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 18px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--stone-800);
}

.poster-side dl {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px 12px;
  margin: 16px 0 0;
}

.poster-side dt {
  color: var(--stone-500);
}

.poster-side dd {
  margin: 0;
  color: var(--stone-300);
}

.side-recommendations {
  display: grid;
  gap: 14px;
}

.side-recommendations .movie-card {
  box-shadow: none;
}

.site-footer {
  margin-top: 40px;
  padding: 44px 0 24px;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.96), rgba(12, 10, 9, 1));
  border-top: 1px solid rgba(120, 113, 108, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--amber-500);
}

.footer-grid p {
  margin: 0;
  color: var(--stone-500);
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: var(--stone-400);
  transition: color 0.2s ease;
}

.footer-grid a:hover,
.footer-bottom a:hover {
  color: var(--amber-500);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(120, 113, 108, 0.2);
  color: var(--stone-500);
}

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

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

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

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

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

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

  .mobile-menu-button {
    display: flex;
    margin-left: auto;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-content p,
  .detail-hero p,
  .page-hero p {
    font-size: 16px;
  }

  .intro-panel {
    grid-template-columns: 1fr;
    margin-top: -36px;
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

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

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

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

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

  .hero {
    height: 540px;
  }

  .hero-content h1,
  .detail-hero h1 {
    font-size: 38px;
  }

  .hero-meta span {
    font-size: 13px;
  }

  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .ranking-list-large {
    grid-template-columns: 1fr;
  }

  .movie-card-body p {
    min-height: 0;
  }

  .filter-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .ranking-item a {
    grid-template-columns: 42px 56px 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
