:root {
  --amber: #f59e0b;
  --amber-dark: #92400e;
  --orange: #f97316;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f8fafc 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(146, 64, 14, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.32);
}

.brand-text strong {
  display: block;
  color: #78350f;
  font-size: 20px;
  line-height: 1.1;
}

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

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

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

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  transform: translateY(-1px);
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 360px;
}

.header-search input,
.mobile-panel input,
.local-filter input,
.quick-search input {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.38);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--slate-900);
}

.header-search input:focus,
.mobile-panel input:focus,
.local-filter input:focus,
.quick-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-panel button,
.local-filter button,
.quick-search button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.22);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: var(--amber-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

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

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-links,
.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mobile-categories a {
  padding: 8px 10px;
  color: #78350f;
  background: #fff7ed;
  border-radius: 10px;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 42px;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--slate-900);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 74% 26%, rgba(251, 191, 36, 0.36), transparent 28%), linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.16));
}

.hero-copy {
  position: absolute;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(28px, 7vw, 74px);
  width: min(660px, calc(100% - 48px));
  color: #ffffff;
}

.hero-eyebrow,
.section-kicker,
.detail-kicker,
.page-title p {
  margin: 0 0 10px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.1;
}

.hero-copy p {
  margin: 0 0 18px;
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

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

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.3);
}

.btn.ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

.btn.wide {
  width: 100%;
  margin-top: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  color: var(--slate-900);
  font-size: 34px;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--amber);
}

.panel,
.section,
.page-shell,
.detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-search {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.quick-search h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-search p {
  margin: 0;
  color: var(--slate-500);
  line-height: 1.7;
}

.quick-search form,
.local-filter {
  display: flex;
  gap: 10px;
}

.section {
  margin-top: 54px;
}

.section.tinted {
  width: 100%;
  max-width: none;
  padding: 54px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-more {
  color: #b45309;
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}

.movie-card.hidden {
  display: none;
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 28px;
  opacity: 0;
  background: rgba(15, 23, 42, 0.32);
  transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
}

.corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  color: var(--slate-500);
  font-size: 12px;
}

.card-meta a {
  color: #c2410c;
  font-weight: 800;
}

.card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  min-height: 46px;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #92400e;
  font-size: 12px;
  background: #ffedd5;
}

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

.compact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.compact-card img {
  width: 118px;
  height: 78px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 14px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  margin-bottom: 6px;
  line-height: 1.35;
}

.compact-card em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
}

.category-tile span,
.category-tile strong,
.category-tile p,
.category-tile em,
.category-tile a {
  display: block;
}

.category-tile span {
  color: #b45309;
  font-weight: 900;
}

.category-tile strong {
  margin: 8px 0;
  font-size: 30px;
}

.category-tile p {
  margin: 0 0 12px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.6;
}

.category-tile em {
  color: var(--slate-700);
  font-style: normal;
  font-size: 12px;
  line-height: 1.7;
}

.category-tile em a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 1fr auto 80px;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rank-num {
  color: #f97316;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.rank-title {
  font-weight: 900;
}

.rank-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.rank-heat,
.score-pill {
  justify-self: end;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.page-shell {
  padding-top: 34px;
  padding-bottom: 36px;
}

.page-title {
  margin-bottom: 26px;
  padding: 32px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.page-title h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.05em;
}

.page-title span {
  display: block;
  color: var(--slate-500);
  line-height: 1.75;
}

.library-title,
.category-page-title {
  display: grid;
  gap: 14px;
}

.local-filter {
  max-width: 660px;
}

.filter-count {
  display: inline-flex;
  width: max-content;
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--slate-900);
}

.category-overview {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.category-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: var(--slate-800);
}

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

.category-cover span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: #ffffff;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-card p {
  color: var(--slate-500);
  line-height: 1.8;
}

.sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sample-links a {
  padding: 7px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
}

.ranking-card {
  display: grid;
  grid-template-columns: 70px 148px 1fr 86px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.ranking-card img {
  width: 148px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-num.big {
  font-size: 28px;
}

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

.ranking-info strong {
  font-size: 20px;
  margin-bottom: 6px;
}

.ranking-info em {
  color: var(--slate-500);
  font-style: normal;
  margin-bottom: 6px;
}

.ranking-info small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--slate-500);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--slate-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-dark);
}

.breadcrumb.dark {
  color: #cbd5e1;
}

.detail-body {
  color: #ffffff;
  background: linear-gradient(180deg, #0f172a, #1e293b 52%, #0f172a);
}

.detail-shell {
  padding-top: 26px;
  padding-bottom: 50px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.38) 42%, rgba(0, 0, 0, 0.52));
  cursor: pointer;
}

.player-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.38);
  font-size: 34px;
}

.player-cover.is-hidden {
  display: none;
}

.detail-info {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  margin-top: 26px;
}

.detail-copy,
.detail-side,
.related-section {
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(51, 65, 85, 0.9), rgba(30, 41, 59, 0.9));
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.detail-copy {
  padding: 30px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.05em;
}

.detail-copy h2 {
  margin: 28px 0 12px;
  color: #fbbf24;
}

.detail-copy p {
  color: #dbeafe;
  line-height: 1.95;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-side {
  padding: 18px;
  align-self: start;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  background: var(--slate-800);
}

.related-section {
  width: 100%;
  margin-top: 32px;
  padding: 28px;
}

.related-section .section-kicker,
.related-section h2 {
  color: #ffffff;
}

.related-section .section-kicker {
  color: #fbbf24;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.footer-inner h2 {
  margin: 0 0 10px;
  color: #fbbf24;
}

.footer-inner p {
  margin: 0;
  line-height: 1.8;
}

.footer-links,
.footer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.footer-categories a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

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

  .menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

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

  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.92));
  }

  .hero-copy {
    left: 22px;
    right: 22px;
    width: auto;
  }

  .quick-search {
    grid-template-columns: 1fr;
  }

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

  .category-overview-card,
  .detail-info,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ranking-card {
    grid-template-columns: 52px 92px 1fr;
  }

  .ranking-card img {
    width: 92px;
    height: 68px;
  }

  .ranking-card .score-pill {
    grid-column: 3;
    justify-self: start;
  }

  .rank-row {
    grid-template-columns: 44px 1fr 72px;
  }

  .rank-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: min(100% - 20px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .panel,
  .section,
  .page-shell,
  .detail-shell,
  .footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .movie-grid,
  .latest-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-slider {
    min-height: 650px;
    border-radius: 22px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search form,
  .local-filter,
  .mobile-panel form {
    flex-direction: column;
  }

  .page-title,
  .detail-copy,
  .related-section {
    padding: 22px;
  }

  .ranking-card {
    grid-template-columns: 44px 82px 1fr;
    gap: 10px;
  }

  .ranking-info small {
    display: none;
  }
}
