:root {
  color-scheme: light;
  --bg: #fff8ed;
  --bg-soft: #fff3d7;
  --card: #ffffff;
  --text: #2d2116;
  --muted: #7c6348;
  --line: rgba(146, 94, 32, 0.16);
  --brand: #f97316;
  --brand-dark: #c2410c;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(124, 45, 18, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.24), transparent 28%), linear-gradient(135deg, #fff8ed 0%, #fff3d7 48%, #fff7ed 100%);
  color: var(--text);
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(124, 45, 18, 0.08);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

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

.brand-text strong,
.footer-logo {
  font-size: 22px;
  font-weight: 900;
  color: #92400e;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 4px;
  font-style: normal;
  font-size: 12px;
  color: #b45309;
}

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

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: #7c2d12;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, #fb923c, #f97316);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.header-search,
.mobile-search,
.quick-search-panel form,
.search-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.quick-search-panel input,
.search-main input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(180, 83, 9, 0.22);
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.quick-search-panel input:focus,
.search-main input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.quick-search-panel button,
.search-main button,
.primary-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
  font-weight: 900;
}

.header-search button {
  padding: 10px 16px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 22px;
}

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

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

main {
  min-height: 68vh;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  color: #ffffff;
  background: #1f130b;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 76px max(24px, calc((100vw - 1240px) / 2)) 92px;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, rgba(67, 20, 7, 0.92) 0%, rgba(154, 52, 18, 0.72) 46%, rgba(234, 88, 12, 0.48) 100%), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 55%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.52), transparent 62%);
  filter: blur(22px);
}

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.page-hero span,
.section-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffedd5;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 860px;
  margin: 24px 0 10px;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

.hero p {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.9;
  color: #fff7ed;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

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

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-tile:hover,
.category-panel:hover {
  transform: translateY(-3px);
}

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

.hero-poster {
  min-height: 500px;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.12)), var(--hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-poster-title {
  font-size: 30px;
  font-weight: 900;
}

.hero-poster-meta {
  margin-top: 8px;
  color: #fed7aa;
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: #ffffff;
}

.quick-search-panel,
.content-section,
.breadcrumb,
.detail-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  padding-top: 24px;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search-panel input,
.search-main input {
  flex: 1;
  min-height: 52px;
  padding: 0 18px;
}

.quick-search-panel button,
.search-main button {
  min-height: 52px;
  padding: 0 22px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-links a,
.section-more a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
}

.content-section {
  padding-top: 72px;
  padding-bottom: 10px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.section-head span {
  background: #ffedd5;
  color: #c2410c;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.category-tile,
.category-panel,
.movie-card,
.side-card,
.detail-content,
.player-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(180, 83, 9, 0.14);
  box-shadow: 0 18px 48px rgba(124, 45, 18, 0.1);
}

.category-tile {
  min-height: 150px;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong,
.category-title {
  font-size: 22px;
  font-weight: 900;
  color: #9a3412;
}

.category-tile span,
.category-panel p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

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

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

.movie-card {
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.18);
}

.card-link {
  display: block;
  height: 100%;
}

.poster {
  position: relative;
  min-height: 238px;
  background-color: #7c2d12;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.05)), var(--poster-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.compact-grid .poster {
  min-height: 190px;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.88);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: all 0.2s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 12px;
  font-weight: 800;
}

.rank-badge {
  left: 12px;
  right: auto;
  top: 12px;
  bottom: auto;
  background: linear-gradient(135deg, #f97316, #f59e0b);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: #2d2116;
}

.card-body p {
  min-height: 46px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.section-more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 78px max(22px, calc((100vw - 1240px) / 2));
  color: #ffffff;
  background: #431407;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, rgba(67, 20, 7, 0.9), rgba(194, 65, 12, 0.68)), var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.page-hero > * {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 900px;
  margin: 22px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #fff7ed;
  line-height: 1.85;
  font-size: 18px;
}

.small-hero {
  min-height: 280px;
  background: linear-gradient(135deg, #7c2d12, #f97316);
}

.small-hero::before {
  background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.26), transparent 28%), linear-gradient(135deg, rgba(67, 20, 7, 0.95), rgba(249, 115, 22, 0.76));
}

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

.category-panel {
  border-radius: 26px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-samples a {
  padding: 9px 12px;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  width: 160px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto 72px;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(180, 83, 9, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 16px 36px rgba(124, 45, 18, 0.12);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: #c2410c;
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  padding-top: 24px;
  padding-bottom: 20px;
  color: #9a3412;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000000;
}

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

.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #f59e0b);
  box-shadow: 0 24px 60px rgba(249, 115, 22, 0.32);
  transform: translate(-50%, -50%);
  cursor: pointer;
  font-size: 28px;
}

.player-card.playing .big-play {
  opacity: 0;
  pointer-events: none;
}

.player-shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent);
  font-weight: 900;
}

.player-card.playing .player-shade {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.player-message {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  max-width: calc(100% - 36px);
  padding: 10px 12px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.56);
  display: none;
}

.player-message.show {
  display: block;
}

.detail-content {
  border-radius: 28px;
  padding: 30px;
}

.detail-content h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.035em;
}

.lead-text {
  color: #7c2d12;
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags span {
  color: #9a3412;
  background: #ffedd5;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-stats span {
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 900;
}

.detail-content h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: #7c2d12;
}

.detail-content p {
  color: #4c3a2a;
  line-height: 1.9;
}

.side-poster {
  min-height: 440px;
  border-radius: 28px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.02)), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.side-poster span {
  font-size: 24px;
  font-weight: 900;
}

.side-card {
  border-radius: 24px;
  padding: 22px;
}

.side-card h2 {
  margin-top: 0;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-links a {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
  color: #7c2d12;
  font-weight: 900;
}

.side-links span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-section {
  padding-bottom: 80px;
}

.search-main {
  max-width: 820px;
  margin-bottom: 18px;
}

.search-status {
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 86px;
  padding: 54px 22px 28px;
  color: #ffedd5;
  background: linear-gradient(135deg, #431407, #9a3412);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
}

.footer-logo {
  color: #ffffff;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.1);
}

.copyright {
  max-width: 1240px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 237, 213, 0.18);
  color: #fed7aa;
  text-align: center;
}

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

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

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

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

  .mobile-search input {
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
  }

  .mobile-search button {
    min-height: 46px;
    padding: 0 16px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 54px;
  }

  .hero-poster {
    min-height: 320px;
  }

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

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

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

  .side-poster {
    min-height: 320px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand {
    min-width: auto;
  }

  .brand-text em {
    display: none;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    padding: 38px 18px 86px;
  }

  .hero p {
    font-size: 16px;
  }

  .quick-search-panel {
    margin-left: 14px;
    margin-right: 14px;
    grid-template-columns: 1fr;
  }

  .quick-search-panel form,
  .search-main,
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    width: 100%;
  }

  .content-section {
    padding-top: 52px;
  }

  .category-grid,
  .category-panels,
  .movie-grid,
  .compact-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .poster,
  .compact-grid .poster {
    min-height: 260px;
  }

  .page-hero {
    padding: 56px 18px;
  }

  .rank-item {
    grid-template-columns: 44px minmax(0, 1fr) 54px;
  }

  .rank-meta {
    grid-column: 2 / 4;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .detail-content {
    padding: 22px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
