:root {
  color-scheme: light;
  --bg: #fff7ed;
  --card: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --amber: #b45309;
  --orange: #ea580c;
  --dark: #2b1708;
  --gold: #f59e0b;
  --shadow: 0 18px 45px rgba(91, 33, 6, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #78350f, #9a3412, #78350f);
  box-shadow: 0 14px 35px rgba(69, 26, 3, 0.24);
}

.header-inner {
  width: min(1240px, 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-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fdba74);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), 0 8px 18px rgba(0, 0, 0, 0.18);
}

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

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

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  border: 0;
  color: #fff7ed;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  color: #374151;
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 280px;
  margin-left: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  outline: none;
  font: inherit;
}

.header-search input {
  padding: 11px 76px 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.header-search button,
.mobile-search button {
  position: absolute;
  right: 4px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #78350f;
  background: #fde68a;
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff7ed;
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.mobile-search {
  position: relative;
  margin-top: 10px;
}

.mobile-search input {
  padding: 12px 86px 12px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  color: #ffffff;
  background: #431407;
}

.hero-slides {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.hero-content {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 110px;
}

.hero-kicker,
.detail-kicker,
.page-title-block span,
.category-header-block span {
  display: inline-flex;
  width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fbbf24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #ffedd5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

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

.tag-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-glass,
.btn-text,
.category-entry,
.search-page-form button,
.search-panel button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.btn-primary,
.search-page-form button,
.search-panel button,
.filter-panel button,
.category-entry {
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #b45309);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-text {
  color: #fde68a;
  padding-inline: 10px;
}

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

.hero-dot {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.page-section,
.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.page-section {
  padding: 60px 0;
}

.page-main {
  padding: 42px 0 70px;
}

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

.intro-card,
.search-panel,
.category-overview-card,
.detail-article,
.player-section,
.filter-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: 26px;
}

.intro-card span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.intro-card strong {
  display: block;
  margin-top: 8px;
  font-size: 21px;
}

.intro-card p,
.section-heading p,
.page-title-block p,
.category-header-block p,
.search-panel p,
.detail-line,
.detail-article p {
  color: var(--muted);
  line-height: 1.8;
}

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

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

.section-heading p {
  margin: 0;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange);
  font-weight: 900;
}

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

.category-movie-grid {
  margin-top: 26px;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(91, 33, 6, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(91, 33, 6, 0.2);
}

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

.small-card .poster-frame {
  aspect-ratio: 3 / 4;
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.74));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.88);
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.2s ease;
}

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

.poster-type,
.poster-year {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(69, 26, 3, 0.74);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  left: 12px;
}

.poster-year {
  right: 12px;
}

.movie-card-body {
  display: block;
  padding: 16px;
}

.movie-card-body strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-line {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.featured-band {
  background: linear-gradient(90deg, #78350f, #9a3412, #78350f);
  color: #ffffff;
}

.featured-band .section-heading h2,
.featured-band .section-heading p {
  color: #ffffff;
}

.featured-band .section-more {
  color: #fde68a;
}

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

.category-card,
.category-overview-hero {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.category-card:hover,
.category-overview-hero:hover {
  transform: translateY(-5px);
}

.category-card strong,
.category-overview-hero span {
  font-size: 24px;
  font-weight: 900;
}

.category-card span,
.category-overview-hero strong {
  color: #ffedd5;
  line-height: 1.65;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 380px;
  gap: 28px;
}

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

.rank-row,
.rank-card {
  display: grid;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(91, 33, 6, 0.1);
  transition: transform 0.2s ease;
}

.rank-row {
  grid-template-columns: 48px 76px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.rank-row:hover,
.rank-card:hover {
  transform: translateX(4px);
}

.rank-num,
.rank-badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ea580c, #b45309);
  font-weight: 900;
}

.rank-row img {
  width: 76px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-row strong,
.rank-card strong {
  display: block;
  color: #111827;
  font-weight: 900;
}

.rank-row small,
.rank-card span,
.rank-card em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
}

.search-panel {
  align-self: start;
  padding: 28px;
}

.search-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.search-panel form,
.search-page-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.search-panel input,
.search-page-form input {
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.quick-links,
.search-hotwords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-links a,
.search-hotwords a {
  padding: 7px 11px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.page-title-block,
.category-header-block {
  margin-bottom: 30px;
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #c2410c);
  box-shadow: var(--shadow);
}

.page-title-block h1,
.category-header-block h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
}

.page-title-block p,
.category-header-block p {
  max-width: 760px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
}

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

.category-overview-card {
  overflow: hidden;
}

.category-overview-hero {
  min-height: 220px;
  border-radius: 0;
}

.category-overview-samples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.category-entry {
  width: calc(100% - 36px);
  margin: 0 18px 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(150px, 0.5fr) minmax(160px, 0.6fr) auto;
  gap: 12px;
  padding: 18px;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  border-color: var(--line);
  color: var(--ink);
  background: #ffffff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb strong {
  color: #374151;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 34px;
  padding: 28px;
  border-radius: 30px;
  color: #ffffff;
  background: radial-gradient(circle at 22% 15%, rgba(251, 191, 36, 0.36), transparent 34%), linear-gradient(135deg, #451a03, #9a3412 58%, #1f2937);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.detail-info h1 {
  margin: 20px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-line {
  max-width: 820px;
  color: #ffedd5;
  font-size: 18px;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 800;
}

.detail-info .btn-primary {
  margin-top: 24px;
}

.player-section,
.detail-article {
  margin-top: 28px;
  padding: 26px;
}

.player-section h2,
.detail-article h2 {
  margin: 0 0 18px;
  color: #111827;
  font-size: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
  cursor: pointer;
  text-align: center;
}

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

.player-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.player-overlay strong {
  max-width: 80%;
  font-size: clamp(22px, 4vw, 38px);
}

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

.related-section {
  width: 100%;
  padding-bottom: 0;
}

.rank-title-block {
  background: radial-gradient(circle at 18% 18%, rgba(253, 230, 138, 0.26), transparent 32%), linear-gradient(135deg, #431407, #9a3412);
}

.rank-card {
  grid-template-columns: 58px 140px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

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

.rank-card strong {
  font-size: 20px;
}

.search-page-panel {
  margin-bottom: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  padding: 42px 0;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-brand p {
  max-width: 460px;
  margin: 8px 0 0;
  line-height: 1.7;
}

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

.footer-links a {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #fed7aa;
  font-size: 14px;
}

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

.search-empty {
  grid-column: 1 / -1;
  padding: 46px;
  border-radius: 24px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

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

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

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

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

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

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

  .brand-text small {
    display: none;
  }

  .hero-carousel,
  .hero-slides {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0 92px;
  }

  .intro-strip,
  .movie-grid,
  .feature-grid,
  .category-grid,
  .category-overview-grid,
  .category-overview-samples,
  .filter-panel,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-title-block,
  .category-header-block,
  .detail-hero,
  .player-section,
  .detail-article {
    padding: 22px;
    border-radius: 22px;
  }

  .search-panel form,
  .search-page-form {
    flex-direction: column;
  }

  .rank-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
