:root {
  --bg: #fffbeb;
  --bg-soft: #fef3c7;
  --text: #1f2937;
  --muted: #6b7280;
  --brand: #b45309;
  --brand-deep: #78350f;
  --brand-hot: #ea580c;
  --line: rgba(180, 83, 9, 0.18);
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(120, 53, 15, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.2), transparent 32rem), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
}

.header-inner {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--brand-deep);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
  font-size: 15px;
}

.brand-name {
  font-size: 24px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand-hot), #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  text-decoration: none;
  color: #92400e;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.22s ease;
}

.nav-link {
  padding: 10px 16px;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.2);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 13px;
  background: #fef3c7;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--brand-deep);
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  padding: 10px 18px 18px;
  border-top: 1px solid var(--line);
}

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

.mobile-link {
  padding: 13px 16px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #1c1208;
}

.hero-stage {
  min-height: 680px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(28, 16, 5, 0.93), rgba(88, 43, 7, 0.66), rgba(28, 16, 5, 0.38)), linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-left: max(24px, calc((100vw - 1220px) / 2));
  padding: 110px 24px 120px;
  color: #fff7ed;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero-content h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  color: #fde68a;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: #ffedd5;
  font-size: 17px;
  line-height: 1.9;
}

.hero-tags,
.tag-row,
.mini-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.mini-chip-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

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

.primary-button,
.ghost-button,
.text-link,
.rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 16px 32px rgba(217, 119, 6, 0.28);
}

.primary-button:hover,
.rank-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(217, 119, 6, 0.36);
}

.ghost-button {
  min-height: 48px;
  padding: 0 22px;
  color: #fff7ed;
  border: 1px solid rgba(254, 215, 170, 0.55);
  background: rgba(255, 247, 237, 0.12);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 247, 237, 0.24);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(28, 16, 5, 0.46);
  backdrop-filter: blur(16px);
}

.hero-controls button {
  border: 0;
  color: #fff7ed;
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.hero-controls > button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.14);
  font-size: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  opacity: 0.6;
}

.hero-dot.is-active {
  width: 28px;
  background: #f59e0b;
  opacity: 1;
}

.home-search-panel,
.page-section,
.inner-page,
.detail-page {
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.home-search-panel {
  margin-top: -48px;
  position: relative;
  z-index: 4;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel h2 {
  margin: 0 0 6px;
  color: var(--brand-deep);
  font-size: 24px;
}

.home-search-panel p {
  margin: 0;
  color: var(--muted);
}

.compact-button {
  min-width: 132px;
}

.page-section {
  padding-top: 72px;
}

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

.section-heading > div {
  display: grid;
  gap: 8px;
}

.section-icon {
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fde68a;
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  color: var(--brand-deep);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 14px 35px rgba(120, 53, 15, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  color: #fff;
  background: #451a03;
}

.movie-card.compact .poster-link {
  aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-link img,
.wide-card:hover img,
.category-tile:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 55%);
  opacity: 0.86;
}

.movie-year,
.rank-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(120, 53, 15, 0.86);
  font-size: 12px;
  font-weight: 900;
}

.rank-mark {
  left: 12px;
  right: auto;
  background: linear-gradient(135deg, #f97316, #b45309);
}

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

.movie-title,
.wide-title {
  display: inline-block;
  color: #111827;
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-title:hover,
.wide-title:hover,
.text-link:hover,
.rank-main a:hover {
  color: var(--brand);
}

.movie-card-content p,
.wide-info p,
.category-overview-card p,
.category-tile p,
.rank-main p,
.detail-article p,
.detail-one-line {
  color: var(--muted);
  line-height: 1.75;
}

.movie-card-content p {
  min-height: 52px;
  margin: 9px 0 14px;
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #92400e;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid rgba(180, 83, 9, 0.12);
}

.tag-row {
  margin-top: 12px;
}

.poster-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.poster-row .movie-card-content p,
.poster-row .movie-meta,
.poster-row .tag-row {
  display: none;
}

.poster-row .movie-card-content {
  padding: 12px;
}

.poster-row .movie-title {
  font-size: 14px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  color: #fff7ed;
  text-decoration: none;
  background: #451a03;
  box-shadow: 0 18px 38px rgba(120, 53, 15, 0.18);
}

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

.category-tile > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(69, 26, 3, 0.9), rgba(120, 53, 15, 0.36));
}

.category-tile strong,
.category-tile p {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  display: block;
  margin-top: 84px;
  font-size: 24px;
}

.category-tile p {
  margin: 8px 0 0;
  color: #ffedd5;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.wide-cover {
  overflow: hidden;
  background: #451a03;
}

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

.wide-info {
  padding: 20px;
}

.wide-info p {
  margin: 10px 0 14px;
}

.inner-page,
.detail-page {
  padding-top: 34px;
  padding-bottom: 78px;
}

.page-hero {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #78350f, #b45309 52%, #f59e0b);
  box-shadow: var(--shadow);
}

.small-hero {
  padding: 54px;
  color: #fff7ed;
}

.small-hero h1 {
  max-width: 860px;
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.small-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  line-height: 1.9;
  font-size: 17px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.08);
}

.category-overview-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: #451a03;
}

.category-overview-cover img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.category-overview-cover span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(69, 26, 3, 0.78);
  font-weight: 900;
}

.category-overview-card h2 {
  margin: 4px 0 8px;
  color: var(--brand-deep);
  font-size: 24px;
}

.category-overview-card h2 a,
.rank-main a {
  color: inherit;
  text-decoration: none;
}

.text-link {
  margin-top: 14px;
  color: var(--brand);
}

.filter-bar {
  margin: 30px 0 24px;
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--brand-deep);
  background: #fff;
  box-shadow: 0 12px 26px rgba(120, 53, 15, 0.06);
  outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.filter-bar:not(.search-filter) {
  grid-template-columns: 1fr 180px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 116px 1fr 88px;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.07);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  font-weight: 900;
}

.rank-cover {
  overflow: hidden;
  height: 76px;
  border-radius: 14px;
  background: #451a03;
}

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

.rank-main h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111827;
}

.rank-main p {
  margin: 0 0 8px;
}

.rank-play {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0 22px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

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

.breadcrumb a:hover {
  color: var(--brand-hot);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff, #fffbeb);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  background: #451a03;
  box-shadow: 0 22px 48px rgba(120, 53, 15, 0.18);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

.detail-tags {
  margin: 18px 0 0;
}

.player-section {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f0a05;
  box-shadow: 0 28px 60px rgba(15, 10, 5, 0.32);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f0a05;
  object-fit: contain;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff7ed;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), rgba(15, 10, 5, 0.66));
  cursor: pointer;
}

.player-start span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-hot));
  box-shadow: 0 20px 50px rgba(249, 115, 22, 0.35);
  font-size: 34px;
}

.player-start strong {
  font-size: 24px;
}

.player-shell.is-playing .player-start {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 26px;
  margin-top: 34px;
}

.detail-article,
.detail-side {
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(120, 53, 15, 0.07);
}

.detail-article {
  padding: 30px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 26px;
  font-size: 16px;
}

.detail-side {
  padding: 24px;
}

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

.detail-side dt {
  color: #92400e;
  font-weight: 900;
}

.detail-side dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 80px;
  color: #ffedd5;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.6fr;
  gap: 34px;
}

.brand-footer .brand-name {
  color: #fde68a;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand p {
  max-width: 420px;
  color: #fed7aa;
  line-height: 1.8;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-group a {
  color: #ffedd5;
  text-decoration: none;
}

.footer-group a:hover {
  color: #fbbf24;
}

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

.footer-categories h2 {
  grid-column: 1 / -1;
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  border-top: 1px solid rgba(253, 230, 138, 0.18);
  color: #fed7aa;
  font-size: 14px;
  text-align: center;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .three-cols,
  .four-cols,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .wide-grid,
  .category-overview-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 260px 1fr;
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand-name {
    font-size: 20px;
  }

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

  .hero-content {
    margin-left: 0;
    padding: 96px 22px 110px;
  }

  .home-search-panel {
    flex-direction: column;
    align-items: stretch;
    margin-left: 14px;
    margin-right: 14px;
  }

  .three-cols,
  .four-cols,
  .category-grid,
  .poster-row,
  .wide-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .wide-card,
  .category-overview-card,
  .detail-hero,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .filter-bar,
  .filter-bar:not(.search-filter) {
    grid-template-columns: 1fr;
  }

  .small-hero {
    padding: 34px 24px;
  }

  .detail-cover img {
    min-height: 360px;
  }

  .player-start span {
    width: 74px;
    height: 74px;
  }

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