* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #111827;
  background: #fffaf0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(146, 64, 14, 0.97), rgba(180, 83, 9, 0.97));
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.25);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

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

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

.nav-link,
.nav-search {
  border: 0;
  color: #fff7ed;
  background: transparent;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-search:hover {
  color: #fde68a;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 16px;
}

.mobile-link {
  display: block;
  width: 100%;
  padding: 12px 0;
  border: 0;
  color: #fff7ed;
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.30), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.40) 58%, rgba(0, 0, 0, 0.10)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.70), transparent 45%);
}

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

.hero-kicker {
  margin: 0 0 18px;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: clamp(18px, 2.4vw, 25px);
}

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

.hero-tags span,
.detail-tags span,
.card-tags span {
  border-radius: 999px;
  padding: 5px 11px;
  color: #92400e;
  background: #fef3c7;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 28px;
  color: #f9fafb;
  font-weight: 700;
}

.hero-meta span,
.detail-meta span {
  border-radius: 12px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-actions,
.section-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.34);
}

.btn-primary:hover {
  background: #b45309;
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.46);
  font-size: 42px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.70);
  transform: translateY(-50%) scale(1.05);
}

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

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

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

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

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

.content-section {
  padding: 72px 0;
  background: #fffaf0;
}

.warm-section {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
}

.dark-section {
  color: #ffffff;
  background: #111827;
}

.editor-section {
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #7c2d12);
}

.section-title {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 14px;
  align-items: start;
}

.section-title span {
  display: block;
  width: 6px;
  height: 38px;
  border-radius: 99px;
  background: #d97706;
  margin-top: 3px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-title p {
  grid-column: 2;
  margin: -8px 0 0;
  color: #6b7280;
}

.dark-title p,
.editor-section .section-title p {
  color: #fde68a;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.10);
  overflow: hidden;
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.22);
}

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

.card-poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.wide-card .card-poster {
  aspect-ratio: 16 / 9;
}

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

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

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

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

.card-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  background: #d97706;
  font-size: 12px;
  font-weight: 900;
}

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: #d97706;
}

.card-body p {
  min-height: 44px;
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 10px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-tags span {
  padding: 3px 8px;
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 210px;
  border-radius: 22px;
  overflow: hidden;
  padding: 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #111827;
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.28);
}

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

.category-tile:hover img {
  transform: scale(1.07);
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 70%);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #fef3c7;
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 74px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
}

.rank-num {
  color: #fbbf24;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 74px;
  height: 98px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 17px;
}

.rank-info em {
  color: #fde68a;
  font-style: normal;
  font-size: 13px;
}

.section-action {
  justify-content: center;
  margin-top: 30px;
}

.inner-hero {
  padding: 92px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.26), transparent 30%),
    linear-gradient(135deg, #111827, #78350f 62%, #92400e);
}

.inner-hero p {
  margin: 0 0 12px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.inner-hero h1 {
  max-width: 840px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.inner-hero span {
  display: block;
  max-width: 740px;
  color: #fffbeb;
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 170px 150px 150px 110px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.10);
}

.filter-panel input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fed7aa;
  border-radius: 13px;
  padding: 0 12px;
  color: #111827;
  background: #fffbeb;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.filter-panel button {
  color: #ffffff;
  border-color: #d97706;
  background: #d97706;
  font-weight: 900;
}

.is-hidden {
  display: none !important;
}

.no-results {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border-radius: 16px;
  color: #92400e;
  background: #fef3c7;
  text-align: center;
  font-weight: 800;
}

.no-results.is-visible {
  display: block;
}

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

.ranking-card a {
  display: grid;
  grid-template-columns: 72px 96px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(120, 53, 15, 0.18);
}

.ranking-number {
  color: #d97706;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-card img {
  width: 96px;
  height: 128px;
  border-radius: 14px;
  object-fit: cover;
  background: #fef3c7;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.ranking-card p {
  margin: 0 0 8px;
  color: #4b5563;
}

.ranking-card em {
  color: #92400e;
  font-style: normal;
  font-weight: 800;
}

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

.detail-backdrop,
.detail-shade {
  position: absolute;
  inset: 0;
}

.detail-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: blur(2px);
  transform: scale(1.03);
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.35)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.95), transparent 58%);
}

.detail-grid {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
  color: #ffffff;
}

.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  background: #fef3c7;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #fde68a;
  font-weight: 800;
}

.detail-info h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.detail-lead {
  max-width: 800px;
  margin: 0;
  color: #e5e7eb;
  font-size: 20px;
}

.player-section {
  background: #111827;
}

.player-section .section-title h2 {
  color: #ffffff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.player-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #d97706;
  font-size: 38px;
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.38);
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

.detail-article,
.detail-side {
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.10);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

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

.detail-article p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

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

.info-list {
  margin: 0;
}

.info-list div {
  padding: 14px 0;
  border-bottom: 1px solid #ffedd5;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: #6b7280;
  font-size: 13px;
}

.info-list dd {
  margin: 4px 0 0;
  color: #111827;
  font-weight: 900;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 78px 16px 24px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(10px);
}

.search-panel.is-open {
  display: flex;
}

.search-open {
  overflow: hidden;
}

.search-card {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 110px));
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
}

.search-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.search-head button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 28px;
  line-height: 1;
}

.search-input {
  width: calc(100% - 48px);
  min-height: 50px;
  margin: 0 24px 18px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: #fffbeb;
}

.search-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.14);
}

.search-results {
  overflow: auto;
  padding: 0 24px 24px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #fff7ed;
}

.search-result-item img {
  width: 62px;
  height: 82px;
  border-radius: 10px;
  object-fit: cover;
  background: #fef3c7;
}

.search-result-item strong,
.search-result-item em,
.search-result-item small {
  display: block;
}

.search-result-item strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.search-result-item em {
  color: #92400e;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.search-result-item small {
  margin-top: 4px;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-empty {
  margin: 0;
  padding: 22px;
  border-radius: 16px;
  color: #92400e;
  background: #fef3c7;
  text-align: center;
  font-weight: 800;
}

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

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-links a {
  color: #fde68a;
  font-weight: 700;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #d97706;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.34);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-3px);
}

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

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

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

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 92px;
  }

  .hero-control {
    display: none;
  }

  .content-section {
    padding: 52px 0;
  }

  .compact-grid,
  .catalog-grid,
  .movie-grid,
  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

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

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

  .ranking-card a {
    grid-template-columns: 52px 76px 1fr;
    gap: 12px;
  }

  .ranking-card img {
    width: 76px;
    height: 104px;
  }

  .detail-grid {
    min-height: auto;
    padding: 56px 0;
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(260px, 78vw);
  }

  .detail-info h1 {
    font-size: 38px;
  }

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

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

@media (max-width: 480px) {
  .brand-text {
    font-size: 20px;
  }

  .compact-grid,
  .catalog-grid,
  .movie-grid,
  .category-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .card-body p,
  .card-tags {
    display: none;
  }

  .category-tile {
    min-height: 168px;
    padding: 16px;
  }

  .category-tile span {
    font-size: 20px;
  }

  .category-tile p {
    display: none;
  }
}
