:root {
  --color-bg: #fff7ed;
  --color-surface: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-amber: #f59e0b;
  --color-orange: #ea580c;
  --color-brown: #78350f;
  --color-border: #fed7aa;
  --shadow-soft: 0 18px 50px rgba(120, 53, 15, 0.12);
  --shadow-card: 0 12px 30px rgba(31, 41, 55, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
  line-height: 1.65;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 48%, #78350f 100%);
  box-shadow: 0 10px 28px rgba(120, 53, 15, 0.24);
}

.header-inner {
  max-width: 1200px;
  min-height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.03em;
}

.brand-text small {
  margin-top: 4px;
  color: #fde68a;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-weight: 700;
}

.desktop-nav a,
.desktop-nav button {
  color: #ffffff;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav button:hover {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 34px;
  left: 0;
  width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  color: #1f2937;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1f2937;
}

.dropdown-panel a:hover {
  color: #9a3412;
  background: #fff7ed;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input {
  width: 220px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.header-search input::placeholder,
.mobile-panel input::placeholder {
  color: #fde68a;
}

.header-search button,
.mobile-panel button {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: #78350f;
  background: #fde68a;
  font-weight: 800;
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.mobile-panel a {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-panel form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.mobile-panel input {
  width: 100%;
}

.hero-section,
.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 10%, rgba(253, 230, 138, 0.28), transparent 32%),
    linear-gradient(120deg, #78350f 0%, #c2410c 48%, #7c2d12 100%);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 76px 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 42px;
}

.hero-title-block h1,
.page-hero h1,
.detail-info h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.hero-title-block p,
.page-hero p,
.detail-one-line {
  max-width: 650px;
  margin: 0 0 28px;
  color: #ffedd5;
  font-size: 19px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c2410c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #fde68a;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #78350f;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

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

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

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

.hero-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #92400e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.hero-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

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

.hero-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.94) 100%);
}

.hero-label {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #78350f;
  background: #fbbf24;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
}

.hero-copy strong {
  font-size: 23px;
  line-height: 1.2;
}

.hero-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #e5e7eb;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.stats-strip {
  max-width: 1120px;
  margin: -34px auto 32px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 2;
}

.stats-strip div {
  padding: 20px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stats-strip strong {
  display: block;
  color: #c2410c;
  font-size: 30px;
  line-height: 1;
}

.stats-strip span {
  color: var(--color-muted);
  font-size: 13px;
}

.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 20px;
}

.detail-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

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

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

.section-heading h2 {
  margin: 4px 0 0;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-link {
  min-height: 38px;
  padding: 0 14px;
  color: #c2410c;
  background: #ffedd5;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(120, 53, 15, 0.20);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
}

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

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

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

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

.badge {
  position: absolute;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.type-badge {
  left: 10px;
  top: 10px;
  background: rgba(120, 53, 15, 0.9);
}

.year-badge {
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, 0.58);
}

.play-mask {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2410c;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.24s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
}

.card-body h3 a:hover {
  color: #c2410c;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span:first-child {
  min-width: max-content;
  padding: 3px 8px;
  border-radius: 8px;
  color: #b45309;
  background: #fef3c7;
  font-weight: 800;
}

.card-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 26px;
  align-items: start;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 48px 70px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  border-color: #fdba74;
}

.rank-number {
  color: #c2410c;
  font-size: 22px;
  font-weight: 900;
}

.ranking-item img {
  width: 70px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #fef3c7;
}

.ranking-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ranking-copy strong,
.ranking-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-copy small {
  color: #6b7280;
}

.ranking-item em {
  color: #92400e;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

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

.category-grid,
.category-card-grid {
  display: grid;
  gap: 14px;
}

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

.category-tile,
.category-card-large {
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  box-shadow: 0 14px 32px rgba(120, 53, 15, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-tile strong,
.category-card-large h2 {
  display: block;
  margin: 0 0 4px;
  color: #111827;
  font-size: 20px;
}

.category-tile span {
  display: block;
  color: #c2410c;
  font-weight: 900;
}

.category-tile small,
.category-card-large p {
  display: block;
  margin-top: 8px;
  color: #6b7280;
}

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

.category-card-large {
  min-height: 170px;
  padding: 26px;
}

.page-main {
  min-height: 70vh;
}

.page-hero.small-hero {
  padding: 58px 20px;
  text-align: center;
}

.page-hero.small-hero > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #ffedd5;
  font-size: 14px;
}

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

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.filter-toolbar strong {
  color: #9a3412;
}

.filter-toolbar span {
  color: #6b7280;
  font-size: 14px;
}

.search-panel {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-panel label {
  display: grid;
  gap: 7px;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #fdba74;
  border-radius: 12px;
  color: #1f2937;
  background: #fff7ed;
  outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.23;
  filter: blur(3px);
}

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

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(154, 52, 18, 0.84));
}

.detail-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 58px 20px 74px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  background: #f59e0b;
}

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

.detail-info h1 {
  max-width: 820px;
}

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

.detail-meta span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.1);
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags span {
  color: #78350f;
  background: #fde68a;
}

.video-player-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.movie-video {
  width: 100%;
  min-height: 540px;
  display: block;
  background: #000000;
}

.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.62));
  cursor: pointer;
}

.video-player-box.is-playing .play-button {
  display: none;
}

.play-button span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.94);
  font-size: 36px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.play-button strong {
  font-size: 18px;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: #ffedd5;
  font-size: 14px;
  text-align: center;
  pointer-events: none;
}

.video-player-box.is-playing .player-status {
  opacity: 0;
}

.article-panel {
  padding: 28px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.article-panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 28px;
}

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

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

.site-footer {
  margin-top: 40px;
  color: #ffedd5;
  background: linear-gradient(90deg, #78350f 0%, #9a3412 100%);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 650px;
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}

.footer-links a:hover {
  color: #fde68a;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

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

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

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

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

@media (max-width: 760px) {
  .header-inner {
    min-height: 62px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .hero-inner {
    padding: 48px 16px;
  }

  .hero-feature-grid,
  .stats-strip,
  .movie-grid,
  .compact-grid,
  .large-ranking,
  .category-grid,
  .category-card-grid,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-card img {
    min-height: 320px;
  }

  .stats-strip {
    margin-top: -20px;
  }

  .section-heading,
  .filter-toolbar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-section {
    padding: 32px 16px;
  }

  .ranking-item {
    grid-template-columns: 42px 64px 1fr;
  }

  .ranking-item em {
    display: none;
  }

  .detail-content {
    padding: 38px 16px 48px;
  }

  .detail-layout {
    gap: 24px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .movie-video {
    min-height: 260px;
  }
}
