
:root {
  --bg: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #d97706;
  --primary-dark: #92400e;
  --primary-light: #f59e0b;
  --accent: #0ea5e9;
  --line: rgba(146, 64, 14, 0.16);
  --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
  --shadow-strong: 0 26px 70px rgba(120, 53, 15, 0.22);
  --radius: 24px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fffbeb 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary-dark);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-light), #ea580c);
  box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

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

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #78350f;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: var(--primary);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--primary-dark);
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 42px;
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 48%, #fef9c3 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.34;
  pointer-events: none;
}

.hero-glow-one {
  width: 260px;
  height: 260px;
  left: 8%;
  top: 8%;
  background: #f59e0b;
}

.hero-glow-two {
  width: 320px;
  height: 320px;
  right: 5%;
  bottom: 0;
  background: #fb923c;
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 500px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.22);
  font-weight: 750;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.02;
  color: #78350f;
  letter-spacing: -0.04em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 44px);
  color: #9a3412;
}

.hero-copy p,
.page-hero p,
.search-panel p {
  max-width: 760px;
  color: #92400e;
  font-size: 19px;
  line-height: 1.85;
}

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

.primary-button,
.ghost-button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button,
.search-panel button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  box-shadow: 0 16px 34px rgba(217, 119, 6, 0.28);
}

.ghost-button {
  color: var(--primary-dark);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ghost-button.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.primary-button:hover,
.ghost-button:hover,
.search-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.hero-poster {
  height: 430px;
  border: 12px solid rgba(255, 255, 255, 0.68);
  border-radius: 34px;
  background: linear-gradient(145deg, #fde68a, #fed7aa);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

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

.hero-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.22);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  background: var(--primary);
}

.hero-categories {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 16px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-pill {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 119, 6, 0.16);
  box-shadow: 0 12px 30px rgba(120, 53, 15, 0.10);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  background: #ffffff;
}

.category-pill span {
  color: var(--primary-dark);
  font-weight: 800;
}

.category-pill strong {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.soft-section {
  background: linear-gradient(90deg, #eff6ff 0%, #ecfeff 100%);
}

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

.section-heading h2,
.detail-side h2,
.text-block h2,
.search-panel h2,
.region-box h3 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-link {
  flex: none;
  color: var(--primary);
  font-weight: 800;
}

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

.poster-card,
.horizontal-card,
.category-overview-card,
.region-box,
.search-panel,
.detail-side,
.detail-main,
.text-block {
  background: var(--surface);
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.poster-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover,
.horizontal-card:hover,
.compact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

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

.poster-cover img,
.horizontal-cover img,
.compact-cover img,
.detail-poster img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.image-frame {
  position: relative;
  background: radial-gradient(circle at top left, #fde68a, #fb923c 54%, #92400e 100%);
}

.img-hidden {
  opacity: 0;
}

.poster-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.poster-body,
.horizontal-body,
.compact-body {
  padding: 16px;
}

.card-topline,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.poster-body h3,
.horizontal-body h3,
.compact-body h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.poster-body h3 a:hover,
.horizontal-body h3 a:hover,
.compact-body h3 a:hover {
  color: var(--primary);
}

.poster-body p,
.horizontal-body p,
.compact-body p,
.category-overview-card p,
.text-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.poster-body p {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag-row span,
.genre-links a,
.card-topline a {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #9a3412;
  background: #fffbeb;
  border: 1px solid rgba(217, 119, 6, 0.16);
  font-size: 12px;
  font-weight: 700;
}

.large-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-cover {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  font-weight: 900;
}

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

.region-box,
.category-overview-card {
  padding: 22px;
}

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

.category-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), #ea580c);
}

.category-main-link span {
  font-size: 22px;
  font-weight: 900;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.compact-cover {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
}

.compact-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.search-panel-wrap {
  padding-top: 24px;
}

.search-panel {
  padding: clamp(26px, 5vw, 52px);
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
}

.search-panel h2,
.search-panel p {
  color: #ffffff;
  margin-left: auto;
  margin-right: auto;
}

.home-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(720px, 100%);
  margin: 26px auto 0;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  min-height: 50px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: #ffffff;
  outline: 0;
}

.home-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 20px;
  text-align: center;
  background: linear-gradient(135deg, #fef3c7, #ffedd5 52%, #fef9c3);
}

.small-hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

.small-hero p {
  margin: 0 auto;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(217, 119, 6, 0.12);
  box-shadow: 0 10px 30px rgba(120, 53, 15, 0.08);
}

.wide-filter {
  grid-template-columns: minmax(0, 1fr) 180px 180px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #451a03;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.92), rgba(120, 53, 15, 0.74), rgba(69, 26, 3, 0.64));
}

.detail-backdrop img {
  filter: blur(10px) saturate(1.12);
  transform: scale(1.06);
}

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

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 34px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fed7aa;
  font-weight: 700;
}

.detail-copy h1 {
  color: #ffffff;
}

.detail-one-line {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.8;
  color: #ffedd5;
}

.detail-meta span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.12);
}

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

.detail-main,
.detail-side {
  padding: 22px;
}

.player-section {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.22);
}

.media-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.20), rgba(0, 0, 0, 0.52));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-section.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  position: relative;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 22px solid var(--primary);
}

.text-block {
  padding: 24px;
  margin-top: 22px;
}

.text-block p {
  margin-top: 12px;
  font-size: 16px;
}

.genre-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.site-footer {
  margin-top: 34px;
  background: linear-gradient(135deg, #451a03, #78350f);
  color: #ffedd5;
}

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

.footer-brand p {
  color: #fed7aa;
  line-height: 1.8;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links a {
  color: #ffedd5;
  font-weight: 650;
}

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

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

@media (max-width: 980px) {
  .hero-slide,
  .detail-hero-inner,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 820px;
  }

  .hero-poster {
    height: 420px;
  }

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

  .detail-hero-inner {
    padding: 40px 0;
  }

  .detail-poster {
    width: min(360px, 100%);
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-strong);
  }

  .main-nav.open {
    display: grid;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-stage {
    min-height: 820px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-copy h1,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-poster {
    height: 360px;
  }

  .hero-categories,
  .poster-grid,
  .region-grid,
  .category-overview-grid,
  .filter-bar,
  .wide-filter,
  .home-search {
    grid-template-columns: 1fr;
  }

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

  .horizontal-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-hero {
    min-height: unset;
  }

  .detail-hero-inner {
    min-height: unset;
  }
}
