:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --ring: rgba(245, 158, 11, 0.28);
  --shadow: 0 24px 70px rgba(146, 64, 14, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fffbeb 0%, #fefce8 45%, #fff7ed 100%);
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(253, 230, 138, 0.72);
  background: rgba(255, 251, 235, 0.9);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #fb923c);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35);
}

.logo-text,
.footer-logo {
  font-size: 24px;
  background: linear-gradient(90deg, #d97706, #ca8a04, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #92400e;
  background: rgba(253, 230, 138, 0.72);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.top-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  min-width: 0;
  border: 1px solid rgba(245, 158, 11, 0.22);
  outline: none;
  border-radius: 14px;
  color: #374151;
  background: rgba(255, 255, 255, 0.86);
}

.top-search input {
  width: 220px;
  padding: 9px 12px;
  border: 0;
  background: transparent;
}

.top-search button,
.mobile-search button {
  padding: 9px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 14px;
  background: rgba(253, 230, 138, 0.65);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #92400e;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(253, 230, 138, 0.72);
  padding: 16px;
  background: rgba(255, 251, 235, 0.96);
}

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

.mobile-nav,
.mobile-search {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(254, 243, 199, 0.8);
  font-weight: 800;
}

.mobile-search {
  grid-template-columns: 1fr auto;
  margin-top: 12px;
}

.mobile-search input {
  padding: 12px 14px;
}

.honey-gradient,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 55%, #fb923c);
}

.honey-text,
.section-heading h2,
.page-hero h1 {
  background: linear-gradient(90deg, #d97706, #ca8a04, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.honey-card {
  border: 1px solid rgba(253, 230, 138, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.card-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  border-color: rgba(245, 158, 11, 0.42);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 80px rgba(146, 64, 14, 0.24);
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #78350f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  background-position: center;
  background-size: cover;
}

.hero-slide.is-active {
  display: flex;
  animation: heroFade 0.7s ease both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 74% 28%, rgba(251, 191, 36, 0.34), transparent 34%),
    linear-gradient(90deg, rgba(42, 24, 5, 0.92) 0%, rgba(92, 45, 8, 0.72) 48%, rgba(92, 45, 8, 0.22) 100%),
    linear-gradient(0deg, rgba(255, 251, 235, 0.95) 0%, transparent 24%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 112px 0 150px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 900;
  background: rgba(254, 243, 199, 0.92);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-shadow: 0 18px 55px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-meta span {
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

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

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

.primary-button:hover,
.panel-link:hover {
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.36);
}

.glass-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: #ffffff;
  background: rgba(69, 26, 3, 0.48);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero-dot.is-active {
  background: rgba(245, 158, 11, 0.8);
}

.hero-dot span,
.rank-thumb {
  flex: 0 0 auto;
  background-position: center;
  background-size: cover;
}

.hero-dot span {
  width: 48px;
  height: 36px;
  border-radius: 12px;
}

.hero-dot strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: -28px;
  position: relative;
  z-index: 4;
}

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.category-tile span,
.category-letter {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.28);
}

.category-tile strong,
.category-overview-card strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 950;
}

.category-tile em,
.category-overview-card em {
  display: block;
  color: #6b7280;
  font-style: normal;
  line-height: 1.7;
}

.section-block,
.page-main {
  padding-top: 64px;
  padding-bottom: 56px;
}

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

.section-heading h2,
.page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.section-heading a,
.panel-link {
  color: #92400e;
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.75);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.12);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f59e0b;
  background-position: center;
  background-size: cover;
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(245, 158, 11, 0.9);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-meta {
  margin: 0 0 8px;
  color: #d97706;
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-line {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-tags span,
.detail-tags span {
  padding: 5px 9px;
  color: #92400e;
  font-size: 12px;
  background: rgba(254, 243, 199, 0.92);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
}

.ranking-panel,
.ranking-column,
.side-card {
  padding: 24px;
}

.ranking-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ranking-title span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
}

.ranking-title h2 {
  margin: 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 950;
}

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

.rank-link {
  display: grid;
  grid-template-columns: 36px 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 251, 235, 0.86);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-link:hover {
  background: rgba(254, 243, 199, 0.98);
  transform: translateX(4px);
}

.rank-number {
  color: #d97706;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-thumb {
  width: 64px;
  height: 46px;
  border-radius: 14px;
}

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

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

.rank-copy strong {
  color: #1f2937;
  font-weight: 950;
}

.rank-copy em {
  margin-top: 3px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
}

.panel-link {
  margin-top: 18px;
  background: rgba(254, 243, 199, 0.92);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 800;
}

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

.page-hero {
  padding: 34px;
  margin-bottom: 28px;
  overflow: hidden;
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.category-cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  opacity: 0.16;
  transform: scale(1.04);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, 180px);
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(253, 230, 138, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 42px rgba(146, 64, 14, 0.1);
}

.filter-panel label {
  display: grid;
  gap: 8px;
}

.filter-panel span {
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: #92400e;
  font-weight: 900;
}

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

.detail-main {
  padding-top: 32px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 30px;
  padding: 26px;
  align-items: stretch;
}

.detail-cover {
  min-height: 430px;
  border-radius: 22px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -90px 90px rgba(0, 0, 0, 0.28), 0 24px 60px rgba(146, 64, 14, 0.18);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info h1 {
  margin: 18px 0 14px;
  color: #1f2937;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.detail-one-line {
  margin: 0;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta span {
  padding: 8px 12px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.95);
}

.detail-play-link {
  width: fit-content;
  margin-top: 26px;
}

.player-card {
  padding: 18px;
  margin-top: 28px;
}

.stream-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  color: #ffffff;
  text-align: center;
  background-position: center;
  background-size: cover;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.82), rgba(146, 64, 14, 0.36));
}

.player-cover strong,
.player-play-icon {
  position: relative;
  z-index: 2;
}

.player-play-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #fb923c);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.player-cover strong {
  font-size: 24px;
  letter-spacing: 0.08em;
}

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

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

.detail-article {
  padding: 30px;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #92400e;
  font-size: 24px;
  font-weight: 950;
}

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

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

.wide-tags {
  margin-top: 0;
}

.related-block {
  padding-top: 40px;
}

.site-footer {
  margin-top: 60px;
  color: #fffbeb;
  background: linear-gradient(135deg, #78350f, #92400e 48%, #451a03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 40px;
  padding: 46px 0;
}

.footer-logo {
  margin-bottom: 12px;
  color: #fcd34d;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: #fde68a;
  line-height: 1.8;
}

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

.site-footer a:not(.footer-logo) {
  display: block;
  margin: 8px 0;
  color: #fef3c7;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: #fde68a;
  text-align: center;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

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

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

  .detail-cover {
    min-height: 380px;
  }
}

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

  .mobile-toggle {
    display: block;
  }

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

  .hero-copy {
    padding: 92px 0 240px;
  }

  .hero-dots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    bottom: 22px;
  }

  .category-strip,
  .movie-grid,
  .catalog-grid,
  .category-overview-grid,
  .movie-grid-small,
  .ranking-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

  .logo-text {
    font-size: 20px;
  }

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

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-copy p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-dots,
  .category-strip,
  .movie-grid,
  .catalog-grid,
  .category-overview-grid,
  .movie-grid-small,
  .ranking-grid,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .detail-article,
  .ranking-panel,
  .ranking-column,
  .side-card {
    padding: 20px;
  }

  .detail-cover {
    min-height: 300px;
  }

  .rank-link {
    grid-template-columns: 32px 56px minmax(0, 1fr);
  }
}
