:root {
  color-scheme: light;
  --bg: #fff7ed;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.82);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --pink: #ec4899;
  --rose: #f43f5e;
  --shadow: 0 22px 55px rgba(124, 45, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(251, 146, 60, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(236, 72, 153, 0.16), transparent 25rem),
    linear-gradient(180deg, #fff7ed 0%, #fff 34%, #fff7ed 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(253, 242, 248, 0.96));
  box-shadow: 0 12px 36px rgba(124, 45, 18, 0.10);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
}

.brand-text {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: #374151;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--orange-dark);
  background: rgba(255, 237, 213, 0.78);
}

.top-search {
  margin-left: auto;
  width: min(360px, 30vw);
  display: flex;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(251, 146, 60, 0.34);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.top-search input,
.mobile-search input,
.filter-input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: none;
  color: #374151;
  background: transparent;
}

.top-search input {
  padding: 0 12px;
}

.top-search button,
.mobile-search button,
.primary-btn,
.ghost-btn,
.section-more,
.filter-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.primary-btn,
.filter-button {
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.26);
}

.top-search button {
  padding: 8px 16px;
  white-space: nowrap;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.primary-btn:hover,
.ghost-btn:hover,
.top-search button:hover,
.mobile-search button:hover,
.section-more:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(251, 146, 60, 0.25);
}

.mobile-search input {
  padding: 0 10px;
}

.mobile-search button {
  padding: 8px 16px;
}

.mobile-nav {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-link {
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 237, 213, 0.70);
  color: #9a3412;
  font-weight: 800;
  text-align: center;
}

.mobile-link.is-active {
  background: linear-gradient(135deg, var(--orange), var(--pink));
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  color: white;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.03);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 32%, rgba(249, 115, 22, 0.48), transparent 28rem),
    radial-gradient(circle at 76% 28%, rgba(236, 72, 153, 0.42), transparent 30rem),
    linear-gradient(90deg, rgba(17, 24, 39, 0.93) 0%, rgba(17, 24, 39, 0.72) 45%, rgba(17, 24, 39, 0.36) 100%);
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  min-height: 540px;
  margin: 0 auto;
  padding: 76px 24px 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker,
.section-title span,
.page-kicker,
.detail-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.78;
}

.hero-meta,
.detail-meta,
.rank-tags,
.card-meta,
.tag-row,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin: 24px 0 30px;
}

.hero-meta span,
.detail-meta span,
.rank-tags span,
.card-meta span,
.tag-row span,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta span {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

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

.hero-side {
  display: grid;
  gap: 16px;
}

.hero-mini {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  color: white;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-mini:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.20);
}

.hero-mini img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border-radius: 18px;
}

.hero-mini strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.hero-mini p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.hero-dot.is-active {
  width: 48px;
  background: white;
}

.main-content,
.page-content,
.detail-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-block {
  margin-bottom: 74px;
}

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

.section-title h2 {
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-title p,
.page-hero p,
.category-card p,
.detail-intro,
.rank-info p,
.card-desc,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.section-more {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #9a3412;
  background: #ffedd5;
}

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid rgba(254, 215, 170, 0.75);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 68px rgba(124, 45, 18, 0.20);
}

.poster-link {
  display: block;
}

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

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

.movie-card:hover .poster-frame img,
.hero-mini:hover img,
.category-card:hover img,
.rank-row:hover img {
  transform: scale(1.06);
}

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.card-content {
  padding: 16px;
}

.card-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover,
.rank-title:hover,
.breadcrumb a:hover {
  color: var(--orange-dark);
}

.card-desc {
  margin: 8px 0 12px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta span {
  color: #9a3412;
  background: #ffedd5;
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  color: #9d174d;
  background: #fce7f3;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border-radius: var(--radius);
  padding: 18px;
  color: #111827;
  background: var(--panel);
  border: 1px solid rgba(254, 215, 170, 0.75);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 58px rgba(124, 45, 18, 0.18);
}

.category-card img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(124, 45, 18, 0.16);
}

.category-card h2,
.category-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0;
  color: white;
  background:
    radial-gradient(circle at 18% 18%, rgba(251, 146, 60, 0.58), transparent 28rem),
    radial-gradient(circle at 86% 0%, rgba(236, 72, 153, 0.48), transparent 30rem),
    linear-gradient(135deg, #111827, #431407 58%, #831843);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 68px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 18px 0 14px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.filter-panel {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(254, 215, 170, 0.85);
  box-shadow: var(--shadow);
}

.filter-input {
  padding: 13px 16px;
  border-radius: 16px;
  background: #fff7ed;
}

.filter-button {
  padding: 0 22px;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: var(--radius);
  background: white;
  color: var(--muted);
  box-shadow: var(--shadow);
  text-align: center;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 72px 56px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(254, 215, 170, 0.72);
  box-shadow: 0 14px 36px rgba(124, 45, 18, 0.10);
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  background: #ffedd5;
}

.rank-cover img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rank-index {
  color: var(--orange-dark);
  font-size: 26px;
  font-weight: 950;
}

.rank-title {
  display: inline-block;
  color: #111827;
  font-size: 19px;
  font-weight: 900;
}

.rank-info p {
  margin: 6px 0 10px;
}

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

.rank-score {
  text-align: right;
}

.rank-score strong {
  display: block;
  color: var(--pink);
  font-size: 30px;
  line-height: 1;
}

.rank-score span {
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  margin-bottom: 22px;
}

.breadcrumb a,
.breadcrumb span {
  color: #9a3412;
  background: #ffedd5;
}

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

.detail-panel,
.aside-panel {
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(254, 215, 170, 0.76);
  box-shadow: var(--shadow);
}

.detail-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 18rem),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-weight: 900;
  font-size: 18px;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 22px 54px rgba(236, 72, 153, 0.34);
  font-size: 30px;
}

.detail-body {
  padding: 28px;
}

.detail-kicker {
  margin-bottom: 12px;
}

.detail-body h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-bottom: 18px;
}

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

.detail-intro {
  margin: 0 0 22px;
  font-size: 18px;
}

.content-block {
  margin-top: 24px;
}

.content-block h2 {
  margin: 0 0 12px;
  font-size: 25px;
}

.content-block p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
  font-size: 16px;
}

.aside-panel {
  padding: 18px;
}

.aside-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.related-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #fff7ed;
  transition: transform 0.2s ease, background 0.2s ease;
}

.related-item:hover {
  transform: translateX(4px);
  background: #ffedd5;
}

.related-item img {
  width: 74px;
  height: 92px;
  border-radius: 14px;
  object-fit: cover;
}

.related-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.3;
}

.related-item span {
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, #111827, #431407 55%, #831843);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

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

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: auto;
  }

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

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

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

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

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

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

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

  .brand-text {
    font-size: 20px;
  }

  .main-nav {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 56px 18px 86px;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .main-content,
  .page-content,
  .detail-main {
    padding: 42px 18px;
  }

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

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

  .card-content {
    padding: 13px;
  }

  .card-title {
    font-size: 16px;
  }

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

  .rank-index,
  .rank-score {
    display: none;
  }

  .rank-cover img {
    width: 62px;
    height: 82px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .movie-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }
}
