:root {
  --primary-50: #fef7ee;
  --primary-100: #fdecd3;
  --primary-400: #f38d33;
  --primary-500: #f07315;
  --primary-600: #e1590b;
  --primary-700: #b9450d;
  --accent-50: #fdf8f3;
  --accent-500: #d9804f;
  --secondary-500: #0fcaaa;
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --shadow-sm: 0 6px 18px rgba(41, 37, 36, 0.08);
  --shadow-md: 0 16px 42px rgba(41, 37, 36, 0.12);
  --shadow-lg: 0 26px 70px rgba(41, 37, 36, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1180px;
}

* {
  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", "PingFang SC", sans-serif;
  color: var(--neutral-800);
  background: var(--neutral-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(214, 211, 209, 0.85);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  box-shadow: 0 12px 28px rgba(240, 115, 21, 0.28);
}

.brand-text {
  font-size: 21px;
  color: var(--neutral-800);
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--neutral-600);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.header-search {
  width: 300px;
  height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: none;
  color: var(--neutral-700);
}

.header-search button,
.mobile-search button {
  height: 100%;
  border: 0;
  padding: 0 18px;
  color: #fff;
  background: var(--primary-600);
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
}

.mobile-menu-button span {
  display: block;
  width: 23px;
  height: 2px;
  margin: 5px auto;
  background: var(--neutral-700);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--neutral-200);
  padding: 14px 16px 18px;
  background: rgba(255, 255, 255, 0.96);
}

.mobile-nav.open {
  display: block;
}

.mobile-search {
  display: flex;
  height: 42px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

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

.mobile-nav-links,
.mobile-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mobile-nav-links a,
.mobile-category-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-size: 14px;
}

.hero-section {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500) 52%, var(--secondary-500));
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34) 0, transparent 22%), radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.25) 0, transparent 24%), linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

.hero-container {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 36px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.07fr) minmax(280px, 0.62fr);
  align-items: center;
  gap: 64px;
  min-height: 514px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.45s ease both;
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.detail-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-kicker,
.detail-kicker,
.section-kicker.light {
  color: rgba(255, 255, 255, 0.84);
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(37px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 20px;
  color: var(--primary-100);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span,
.footer-tags a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

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

.primary-button {
  color: var(--primary-700);
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.05;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.38));
}

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

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

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

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

.hero-mini-search form {
  display: flex;
  width: min(470px, 52vw);
  height: 50px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
}

.hero-mini-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 18px;
  color: #fff;
  background: transparent;
}

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

.hero-mini-search button {
  border: 0;
  padding: 0 22px;
  color: var(--primary-700);
  background: #fff;
  font-weight: 800;
}

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

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

.section-heading.no-margin {
  margin-bottom: 22px;
}

.section-heading h2,
.ranking-head h2,
.detail-article h2,
.side-ranking-card h2,
.detail-side-card h2 {
  margin: 0;
  color: var(--neutral-800);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

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

.white-section {
  background: #fff;
}

.soft-section {
  background: linear-gradient(135deg, var(--accent-50), var(--primary-50));
}

.featured-grid,
.movie-grid,
.category-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.95;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-100), var(--accent-50));
}

.large-card .movie-cover {
  aspect-ratio: 21 / 12;
}

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

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

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 24%, rgba(0, 0, 0, 0.68));
  transition: opacity 0.25s ease;
}

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

.movie-year,
.play-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.movie-year {
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
  color: #fff;
  background: rgba(240, 115, 21, 0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--neutral-300);
}

.movie-body h3 {
  margin: 0 0 8px;
  color: var(--neutral-800);
  font-size: 17px;
  line-height: 1.35;
}

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

.movie-body h3 a:hover {
  color: var(--primary-600);
}

.movie-body p {
  margin: 0 0 13px;
  min-height: 44px;
  color: var(--neutral-600);
  font-size: 14px;
}

.movie-tags span {
  padding: 5px 9px;
  color: var(--primary-700);
  background: var(--primary-50);
}

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

.category-card {
  position: relative;
  min-height: 252px;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.category-label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  font-size: 12px;
  font-weight: 800;
}

.category-preview {
  display: flex;
  align-items: flex-end;
  height: 92px;
  margin: 16px 0 14px;
}

.category-preview img {
  width: 58px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 3px solid #fff;
}

.category-preview img + img {
  margin-left: -20px;
}

.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--neutral-800);
}

.category-card p,
.channel-desc {
  margin: 0;
  color: var(--neutral-600);
  font-size: 14px;
}

.two-column-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 34px;
  align-items: start;
}

.ranking-panel,
.side-ranking-card,
.detail-side-card,
.detail-article,
.player-card {
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.ranking-panel {
  padding: 24px;
  position: sticky;
  top: 92px;
}

.ranking-head span {
  color: var(--primary-600);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-head h2 {
  margin-top: 4px;
  margin-bottom: 18px;
}

.ranking-panel ol,
.side-ranking-card ol,
.ranking-page-list ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-item + .rank-item {
  border-top: 1px solid var(--neutral-100);
}

.rank-link {
  display: grid;
  grid-template-columns: 42px 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
}

.rank-no {
  color: var(--primary-600);
  font-size: 18px;
  font-weight: 900;
}

.rank-thumb {
  width: 46px;
  height: 60px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--primary-50);
}

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

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

.rank-info strong,
.rank-info em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: var(--neutral-800);
  font-size: 15px;
}

.rank-info em {
  color: var(--neutral-500);
  font-size: 12px;
  font-style: normal;
}

.rank-heat {
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 900;
}

.page-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500) 54%, var(--secondary-500));
}

.page-hero .container {
  padding: 72px 0;
}

.page-hero h1,
.ranking-hero h1,
.detail-title-block h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.page-hero p,
.ranking-hero p,
.detail-title-block p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

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

.channel-row + .channel-row {
  margin-top: 64px;
}

.channel-desc {
  max-width: 820px;
  margin: -14px 0 24px;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.filter-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.filter-search-row input,
.filter-select-row select {
  height: 46px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: #fff;
  color: var(--neutral-700);
  outline: none;
}

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

.filter-search-row button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #fff;
  background: var(--primary-600);
  font-weight: 800;
}

.filter-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.filter-select-row select {
  padding: 0 12px;
}

.filter-count {
  color: var(--neutral-500);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 50px 20px;
  border-radius: 22px;
  color: var(--neutral-500);
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.empty-state.show {
  display: block;
}

.ranking-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: center;
  padding: 74px 0;
}

.ranking-hero-card {
  display: block;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.ranking-hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.ranking-hero-card strong,
.ranking-hero-card span {
  display: block;
}

.ranking-hero-card strong {
  margin-top: 12px;
  font-size: 18px;
}

.ranking-hero-card span {
  color: rgba(255, 255, 255, 0.78);
}

.ranking-page-list {
  max-width: 920px;
}

.ranking-page-list .rank-link {
  grid-template-columns: 60px 58px minmax(0, 1fr) 70px;
  padding: 15px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--neutral-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  filter: blur(12px);
  transform: scale(1.08);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.96), rgba(28, 25, 23, 0.72), rgba(28, 25, 23, 0.52));
}

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

.detail-hero-inner {
  position: relative;
  padding: 70px 0 84px;
}

.detail-title-block {
  max-width: 820px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
  margin-top: -48px;
  position: relative;
  z-index: 4;
}

.player-card {
  overflow: hidden;
  padding: 12px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.main-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-cover-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.player-cover-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
}

.player-cover-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.player-play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  padding-left: 4px;
  font-size: 26px;
  background: rgba(240, 115, 21, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.detail-side-card {
  overflow: hidden;
}

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

.detail-side-card > div {
  padding: 20px;
}

.detail-side-card dl {
  margin: 16px 0 0;
}

.detail-side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-top: 1px solid var(--neutral-100);
}

.detail-side-card dt {
  color: var(--neutral-500);
  font-weight: 700;
}

.detail-side-card dd {
  margin: 0;
  color: var(--neutral-800);
  text-align: right;
  font-weight: 800;
}

.detail-side-card dd a {
  color: var(--primary-600);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding-top: 42px;
}

.detail-article {
  padding: 30px;
}

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

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

.detail-article p {
  margin: 0;
  color: var(--neutral-700);
  font-size: 16px;
}

.detail-tags span {
  padding: 7px 11px;
  color: var(--primary-700);
  background: var(--primary-50);
}

.side-ranking-card {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 92px;
}

.side-ranking-card h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.site-footer {
  color: var(--neutral-300);
  background: var(--neutral-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 54px 0;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
}

.site-footer p {
  max-width: 360px;
  color: var(--neutral-400);
  font-size: 14px;
}

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

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

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

.site-footer a:hover {
  color: var(--primary-400);
}

.footer-tags a {
  padding: 7px 10px;
  color: var(--neutral-200);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: var(--neutral-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 34px;
  }

  .hero-poster {
    max-width: 360px;
  }

  .hero-control-row,
  .ranking-hero-inner,
  .two-column-layout,
  .player-layout,
  .detail-content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-mini-search form {
    width: 100%;
  }

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

  .ranking-panel,
  .side-ranking-card {
    position: static;
  }

  .detail-side-card {
    display: grid;
    grid-template-columns: 160px 1fr;
  }
}

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

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

  .hero-section,
  .hero-container {
    min-height: auto;
  }

  .hero-container {
    padding: 44px 0 30px;
  }

  .hero-copy p,
  .page-hero p,
  .ranking-hero p,
  .detail-title-block p {
    font-size: 16px;
  }

  .hero-poster {
    max-width: 100%;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 12px;
  }

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

  .filter-search-row {
    flex-direction: column;
  }

  .filter-search-row button {
    height: 44px;
  }

  .rank-link,
  .ranking-page-list .rank-link {
    grid-template-columns: 42px 48px minmax(0, 1fr);
  }

  .rank-heat {
    display: none;
  }

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

  .detail-side-card > img {
    max-height: 460px;
  }

  .detail-article {
    padding: 22px;
  }
}
