:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #44403c;
  --stone-700: #57534e;
  --stone-600: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --orange-600: #ea580c;
  --orange-500: #f97316;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 50px rgba(41, 37, 36, 0.16);
  --shadow-card: 0 14px 30px rgba(41, 37, 36, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fffbeb 0%, #fafaf9 26%, #ffffff 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.96), rgba(41, 37, 36, 0.96), rgba(124, 45, 18, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.22);
  backdrop-filter: blur(14px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.34);
}

.logo-text {
  font-size: 1.18rem;
  background: linear-gradient(90deg, #fde68a, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav,
.mobile-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.footer-links a {
  color: #ffedd5;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.footer-links a:hover {
  color: var(--white);
  background: rgba(245, 158, 11, 0.24);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffedd5;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(28, 25, 23, 0.4);
}

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

.hero-slider {
  position: relative;
  height: min(760px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-950), var(--stone-900));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(22px) brightness(0.42);
  transform: scale(1.12);
}

.hero-overlay,
.detail-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 42%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 760px;
  color: var(--white);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(217, 119, 6, 0.2);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-meta,
.meta-row,
.side-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin-bottom: 20px;
  color: #e7e5e4;
}

.hero-meta span,
.side-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fed7aa;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-copy p,
.detail-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: #e7e5e4;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
}

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

.hero-tags span,
.card-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffedd5;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary,
.row-action,
.btn-filter-clear,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary,
.row-action,
.btn-filter-clear {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
}

.btn-secondary {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-primary:hover,
.btn-secondary:hover,
.row-action:hover,
.btn-filter-clear:hover,
.text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(234, 88, 12, 0.32);
}

.hero-poster {
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
}

.hero-dot.active {
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.content-section,
.page-shell,
.article-section,
.watch-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.content-section.no-top-space {
  padding-top: 32px;
}

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

.section-heading h2,
.movie-article h2,
.watch-side h2,
.category-card-large h2 {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section-heading p,
.category-card-large p,
.movie-article p,
.watch-side p,
.page-hero p {
  margin: 0;
  color: var(--stone-600);
}

.section-link,
.text-link {
  color: var(--amber-800);
  font-weight: 900;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(214, 211, 209, 0.65);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 22px 46px rgba(120, 53, 15, 0.19);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #e7e5e4, #fef3c7);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.rank-badge {
  left: 12px;
  top: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.movie-card:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--stone-900);
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 900;
}

.card-body h3 a:hover,
.row-info h3 a:hover,
.category-card-large h2 a:hover {
  color: var(--amber-700);
}

.meta-row {
  margin-bottom: 10px;
  color: var(--stone-600);
  font-size: 0.85rem;
}

.meta-row span:not(:last-child)::after {
  content: "";
}

.card-body p {
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 0.92rem;
}

.card-tags span {
  color: var(--amber-800);
  background: #ffedd5;
}

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

.category-tile,
.category-card-large {
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid rgba(245, 158, 11, 0.24);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(120, 53, 15, 0.18);
}

.category-tile span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-900);
  font-size: 1.28rem;
  font-weight: 950;
}

.category-tile p {
  margin: 0 0 14px;
  color: var(--stone-600);
}

.category-tile div,
.category-preview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tile div a,
.category-preview-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--amber-900);
  background: rgba(245, 158, 11, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(140px, 180px)) auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(214, 211, 209, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--stone-700);
  font-size: 0.86rem;
  font-weight: 850;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(168, 162, 158, 0.64);
  border-radius: 12px;
  color: var(--stone-900);
  background: var(--white);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.btn-filter-clear {
  align-self: end;
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--stone-600);
  background: #fff7ed;
}

.empty-state.is-visible {
  display: block;
}

.page-shell {
  padding: 42px 0 78px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--stone-900), var(--amber-950), #7c2d12);
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.page-hero p {
  max-width: 820px;
  color: #e7e5e4;
  font-size: 1.08rem;
}

.category-card-large {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffedd5;
}

.category-cover img {
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-cover span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  text-align: center;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10px);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(214, 211, 209, 0.72);
  box-shadow: 0 10px 26px rgba(41, 37, 36, 0.1);
}

.row-rank {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 950;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.row-poster {
  overflow: hidden;
  border-radius: 12px;
}

.row-poster img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.row-info h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 950;
}

.row-info p {
  margin: 0 0 10px;
  color: var(--stone-600);
}

.detail-page {
  background: #ffffff;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--stone-900);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: #ffedd5;
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 62px);
}

.detail-cover {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

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

.watch-section {
  padding: 54px 0 0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: stretch;
}

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

.detail-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--black);
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.42);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid var(--white);
}

.watch-side {
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow-card);
}

.side-meta span {
  color: var(--amber-900);
  background: rgba(245, 158, 11, 0.14);
}

.article-section {
  padding-top: 44px;
}

.movie-article {
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid rgba(214, 211, 209, 0.74);
  box-shadow: var(--shadow-card);
}

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

.movie-article p {
  font-size: 1.05rem;
}

.related-section {
  padding-bottom: 78px;
}

.site-footer {
  margin-top: 76px;
  color: #ffedd5;
  background: linear-gradient(135deg, var(--stone-900), var(--amber-950), var(--stone-900));
}

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

.footer-inner p {
  max-width: 520px;
  margin: 0;
  color: #d6d3d1;
}

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

@media (max-width: 1080px) {
  .movie-grid,
  .small-grid,
  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content,
  .watch-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .nav-toggle {
    display: block;
  }

  .mobile-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-slider {
    min-height: 620px;
    height: auto;
  }

  .hero-slide {
    position: relative;
    min-height: 620px;
    display: none;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    min-height: 620px;
    padding: 70px 0 88px;
  }

  .movie-grid,
  .small-grid,
  .highlight-grid,
  .category-grid,
  .category-overview-grid,
  .filter-panel,
  .category-card-large,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .movie-grid {
    gap: 16px;
  }

  .ranking-row {
    grid-template-columns: 44px 72px minmax(0, 1fr);
  }

  .row-action {
    grid-column: 2 / 4;
  }

  .row-rank {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .row-poster img {
    width: 72px;
  }

  .section-heading {
    display: grid;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .content-section,
  .page-shell,
  .article-section,
  .watch-section,
  .detail-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 0.98rem;
  }

  .card-body p,
  .card-tags,
  .meta-row {
    font-size: 0.78rem;
  }

  .page-hero,
  .movie-article,
  .watch-side {
    border-radius: 20px;
  }

  .hero-actions {
    display: grid;
  }
}
