:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --orange-900: #7c2d12;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-strong: 0 28px 80px rgba(120, 53, 15, 0.22);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --header-height: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(18px);
}

.nav-shell {
  max-width: 1240px;
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.35);
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--gray-700);
  background: rgba(251, 191, 36, 0.18);
}

.mobile-menu {
  display: none;
  padding: 10px 22px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--amber-200);
}

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

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--amber-50);
  font-weight: 650;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 58px 20px 46px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 18%, rgba(251, 191, 36, 0.34), transparent 30%), radial-gradient(circle at 84% 12%, rgba(249, 115, 22, 0.24), transparent 32%), linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
}

.hero-frame {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
}

.hero-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.hero-heading span,
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-600);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-heading h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.03;
  font-weight: 900;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600), #ca8a04);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-heading p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--gray-700);
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.75;
}

.hero-slider {
  position: relative;
  min-height: 460px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(251, 146, 60, 0.82));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  align-items: center;
  gap: 34px;
  padding: 46px;
  opacity: 0;
  transform: translateX(24px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy {
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-weight: 800;
}

.hero-copy h2 {
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.78;
}

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

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-list span,
.detail-tags a,
.genre-pills span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

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

.btn-primary,
.btn-ghost,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.35);
}

.btn-ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-ghost:hover,
.btn-light:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.2);
}

.hero-poster {
  position: relative;
  display: block;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.poster-play,
.compact-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(245, 158, 11, 0.88);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.hero-control {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.hero-control button {
  border: 0;
  border-radius: 999px;
  color: var(--amber-700, #b45309);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-control > button {
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.hero-dots {
  display: inline-flex;
  gap: 8px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--amber-200);
}

.hero-dots button.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.hero-shortcuts a {
  padding: 10px 18px;
  border-radius: 999px;
  color: var(--amber-700, #b45309);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(120, 53, 15, 0.12);
  font-weight: 750;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.45;
}

.hero-glow-one {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 100px;
  background: #fcd34d;
}

.hero-glow-two {
  width: 360px;
  height: 360px;
  right: -110px;
  bottom: 40px;
  background: #fdba74;
}

.float-layer span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  opacity: 0.35;
  animation: floatParticle 14s ease-in-out infinite;
}

.float-layer span:nth-child(1) { left: 10%; top: 18%; animation-delay: 0s; }
.float-layer span:nth-child(2) { left: 24%; top: 72%; animation-delay: 2s; }
.float-layer span:nth-child(3) { left: 46%; top: 12%; animation-delay: 4s; }
.float-layer span:nth-child(4) { left: 68%; top: 68%; animation-delay: 1s; }
.float-layer span:nth-child(5) { left: 84%; top: 24%; animation-delay: 3s; }
.float-layer span:nth-child(6) { left: 92%; top: 78%; animation-delay: 5s; }

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.25; }
  50% { transform: translateY(-36px) rotate(180deg); opacity: 0.66; }
}

.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 22px;
}

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

.section-title h2 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-title p {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
}

.section-title > a {
  color: var(--amber-600);
  font-weight: 800;
}

.center-title {
  justify-content: center;
  text-align: center;
}

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

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

.poster-wrap {
  position: relative;
  height: 258px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
}

.movie-card-featured .poster-wrap {
  height: 342px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.07);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.54));
  opacity: 0.75;
}

.poster-play {
  z-index: 2;
  width: 54px;
  height: 54px;
  opacity: 0;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.poster-year,
.poster-region {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.poster-year {
  left: 12px;
  bottom: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
}

.poster-region {
  right: 12px;
  top: 12px;
  color: var(--amber-700, #b45309);
  background: rgba(255, 255, 255, 0.88);
}

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

.movie-card-body h2 {
  margin: 0 0 9px;
  font-size: 20px;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  margin: 0 0 14px;
  min-height: 46px;
  color: var(--gray-600);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list span,
.detail-tags a,
.genre-pills span {
  color: var(--amber-700, #b45309);
  background: var(--amber-50);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.category-band {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.7), rgba(255, 237, 213, 0.7));
}

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

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

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

.category-tile span,
.category-overview-card > span {
  color: var(--amber-500);
  font-weight: 900;
}

.category-tile h2,
.category-overview-card h2 {
  margin: 12px 0 10px;
  font-size: 23px;
}

.category-tile p,
.category-overview-card p {
  margin: 0 0 16px;
  color: var(--gray-600);
  line-height: 1.65;
}

.category-tile strong,
.category-overview-card strong {
  color: var(--orange-600);
}

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

.category-overview-card {
  min-height: 260px;
  padding-top: 138px;
}

.category-cover-stack {
  position: absolute;
  inset: 20px 20px auto 20px;
  height: 94px;
  display: flex;
  align-items: center;
}

.category-cover-stack img {
  width: 76px;
  height: 94px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.16);
}

.category-cover-stack img + img {
  margin-left: -18px;
}

.rank-preview-grid,
.rank-list {
  display: grid;
  gap: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-no {
  font-size: 24px;
  font-weight: 900;
  color: var(--amber-500);
  text-align: center;
}

.rank-row img {
  width: 82px;
  height: 104px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-info {
  min-width: 0;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info p {
  margin: 0 0 8px;
  color: var(--gray-600);
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 700;
}

.rank-row strong {
  color: var(--orange-600);
  white-space: nowrap;
}

.cta-section {
  margin-top: 28px;
  padding: 82px 22px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.cta-section h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
}

.cta-section p {
  margin: 0 0 28px;
  font-size: 20px;
  opacity: 0.92;
}

.btn-light {
  color: var(--amber-600);
  background: var(--white);
}

.page-hero {
  padding: 74px 22px 52px;
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.page-hero-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.75;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.filter-search {
  position: relative;
}

.filter-search span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber-600);
  font-weight: 900;
}

.filter-search input,
.filter-selects select {
  width: 100%;
  border: 2px solid var(--amber-200);
  border-radius: 999px;
  outline: 0;
  background: var(--white);
  color: var(--gray-700);
}

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

.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-selects select {
  min-height: 48px;
  padding: 0 38px 0 16px;
}

.filter-result {
  color: var(--amber-600);
  font-weight: 800;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  color: var(--white);
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.detail-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.24));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 70px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.detail-hero-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fde68a;
  font-weight: 800;
}

.detail-hero-copy h1 {
  max-width: 900px;
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
}

.detail-hero-copy p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

.detail-wrap {
  max-width: 1240px;
  margin: -52px auto 0;
  padding: 0 22px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
  position: relative;
  z-index: 5;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 24px;
}

.detail-side {
  position: sticky;
  top: 88px;
}

.player-card,
.content-card,
.side-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.player-frame video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.player-frame video {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #000000;
}

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

.player-cover img {
  object-fit: cover;
  opacity: 0.72;
}

.player-cover span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  font-size: 24px;
}

.player-title {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.player-title h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.player-title p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.65;
}

.player-title a {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--amber-700, #b45309);
  background: var(--amber-50);
  font-weight: 800;
}

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

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  font-size: 17px;
}

.detail-tags a:hover {
  background: var(--amber-100);
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.side-card dt {
  color: var(--gray-500);
}

.side-card dd {
  margin: 0;
  text-align: right;
  color: var(--gray-900);
  font-weight: 750;
}

.genre-pills {
  margin-top: 18px;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 13px;
  padding: 10px;
  border-radius: 16px;
  background: var(--amber-50);
  transition: background 0.22s ease, transform 0.22s ease;
}

.compact-card:hover {
  transform: translateX(3px);
  background: #fff7ed;
}

.compact-card img {
  width: 104px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-play {
  width: 34px;
  height: 34px;
  font-size: 12px;
  left: 62px;
}

.compact-card h3 {
  margin: 1px 0 6px;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card p {
  margin: 0 0 6px;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-meta {
  display: flex;
  gap: 8px;
  color: var(--amber-700, #b45309);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, #78350f, #7c2d12);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 22px 36px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: var(--white);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p,
.footer-col p,
.footer-col a,
.footer-bottom {
  color: rgba(255, 237, 213, 0.88);
}

.footer-brand p,
.footer-col p {
  line-height: 1.75;
}

.footer-col h2 {
  margin: 0 0 15px;
  color: #fde68a;
  font-size: 18px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 18px 22px 26px;
  text-align: center;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .detail-wrap {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-section {
    padding-top: 36px;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .hero-poster {
    height: 320px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .rank-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-result {
    white-space: normal;
  }

  .player-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    padding: 0 16px;
  }

  .site-logo,
  .footer-logo {
    font-size: 18px;
  }

  .hero-heading h1 {
    font-size: 40px;
  }

  .hero-slider {
    min-height: 690px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 22px;
  }

  .hero-poster {
    height: 270px;
  }

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

  .section-wrap {
    padding: 52px 16px;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid,
  .rank-preview-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card-featured .poster-wrap {
    height: 270px;
  }

  .rank-row {
    grid-template-columns: 38px 72px minmax(0, 1fr);
  }

  .rank-row strong {
    grid-column: 3;
  }

  .rank-row img {
    width: 72px;
    height: 92px;
  }

  .detail-wrap {
    padding: 0 16px 54px;
  }

  .breadcrumb {
    margin-bottom: 42px;
  }

  .content-card,
  .side-card,
  .player-title {
    padding: 20px;
  }

  .compact-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .compact-card img {
    width: 92px;
  }

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