:root {
  --color-coral: #ff5533;
  --color-coral-soft: #ff7c64;
  --color-peach: #ffe8e1;
  --color-peach-deep: #ffab9d;
  --color-ink: #111827;
  --color-muted: #6b7280;
  --shadow-soft: 0 18px 45px rgba(255, 85, 51, 0.16);
  --shadow-card: 0 12px 30px rgba(17, 24, 39, 0.12);
  --sunrise-gradient: linear-gradient(135deg, #ffd4c7, #ffab9d, #ff9374, #ff7c64, #ff7a47);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fff3ef 0%, #ffffff 42%, #fff7f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--sunrise-gradient);
  box-shadow: 0 12px 30px rgba(255, 85, 51, 0.24);
}

.nav-container {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ff5533;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 212, 199, 0.9);
  padding: 10px 20px 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 11px 8px;
  color: #374151;
  border-radius: 10px;
  font-weight: 650;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--color-coral);
  background: #fff0eb;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.16));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: 104px;
  max-width: 760px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--color-coral);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.72;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  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) scale(1.02);
}

.btn-primary {
  color: #ffffff;
  background: var(--sunrise-gradient);
  box-shadow: 0 14px 30px rgba(255, 85, 51, 0.28);
}

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

.btn.full {
  width: 100%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.34);
}

.slider-prev {
  left: 24px;
}

.slider-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 84px;
  display: flex;
  width: min(390px, calc(100% - 48px));
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  background: transparent;
  color: #111827;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--color-coral);
  font-weight: 800;
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.page-top {
  padding-top: 64px;
}

.content-section {
  margin-bottom: 68px;
}

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

.section-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

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

.text-link {
  color: var(--color-coral);
  font-weight: 800;
  white-space: nowrap;
}

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.18);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

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

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

.card-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.play-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-coral);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.meta-pill {
  position: absolute;
  top: 12px;
  z-index: 2;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
  font-size: 12px;
  font-weight: 800;
}

.meta-pill.top-left {
  left: 12px;
}

.meta-pill.top-right {
  right: 12px;
  background: var(--color-coral);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  color: #111827;
  font-size: 17px;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--color-coral);
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0eb;
}

.movie-card.is-compact .card-body strong {
  min-height: 38px;
  font-size: 15px;
}

.movie-card.is-compact .card-desc,
.movie-card.is-compact .card-meta {
  display: none;
}

.feature-band {
  margin-bottom: 68px;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffe8e1, #ffd4c7, #ffbea9);
  box-shadow: var(--shadow-soft);
}

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

.category-tile {
  min-height: 210px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(255, 85, 51, 0.2);
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile span:last-child {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.rank-section {
  margin-bottom: 32px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.rank-number {
  color: var(--color-coral);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  display: grid;
  gap: 5px;
}

.rank-info strong {
  font-size: 17px;
}

.rank-info em {
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;
}

.rank-score {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-coral);
  font-weight: 900;
}

.sub-hero {
  min-height: 260px;
  display: grid;
  align-content: end;
  padding: 80px max(24px, calc((100vw - 1180px) / 2)) 42px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.32), transparent 28%), var(--sunrise-gradient);
}

.sub-hero span {
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sub-hero h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.75;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-card);
}

.toolbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.toolbar-search span {
  color: var(--color-coral);
  font-weight: 900;
}

.toolbar-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ffd4c7;
  border-radius: 999px;
  outline: 0;
  padding: 0 18px;
  color: #111827;
  background: #ffffff;
}

.toolbar-search input:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 4px rgba(255, 85, 51, 0.12);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: #7c2d12;
  background: #fff0eb;
  font-weight: 800;
  cursor: pointer;
}

.filter-chips button:hover {
  color: #ffffff;
  background: var(--color-coral);
}

.empty-state {
  display: none;
  padding: 36px;
  border-radius: 22px;
  color: var(--color-muted);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow-card);
}

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

.category-preview {
  margin-bottom: 54px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 24px 0;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-coral);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-panel,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  font-weight: 900;
}

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

.play-button {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: var(--color-coral);
  background: rgba(255, 255, 255, 0.94);
  font-size: 32px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.player-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 4px solid #ffab9d;
  border-top-color: transparent;
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  padding: 12px 14px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.score-badge {
  min-width: 62px;
  padding: 11px 13px;
  border-radius: 16px;
  color: #ffffff;
  background: var(--color-coral);
  text-align: center;
  font-size: 22px;
  font-weight: 950;
}

.detail-one-line {
  margin: 18px 0 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.72;
}

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

.detail-meta span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #7c2d12;
  background: #fff0eb;
  font-size: 13px;
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.text-block {
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid #f4d1c7;
}

.text-block h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.text-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.info-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7f4;
}

.info-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--color-muted);
  font-size: 12px;
}

.info-grid strong {
  font-size: 15px;
}

.detail-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 22px;
}

.cover-card {
  padding: 14px;
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}

.side-card {
  padding: 20px;
}

.side-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.related-list .movie-card {
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.site-footer {
  margin-top: 24px;
  color: #4b5563;
  background: #ffffff;
  border-top: 1px solid #ffe2db;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 9px;
  color: var(--color-coral);
  font-size: 22px;
  font-weight: 950;
}

.footer-inner p {
  margin: 0;
  max-width: 560px;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--color-coral);
}

.footer-bottom {
  padding: 18px 16px 24px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1024px) {
  .movie-grid,
  .all-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .detail-side {
    position: static;
  }

  .hero-search {
    left: 24px;
    right: auto;
    bottom: 28px;
  }

  .hero-dots {
    bottom: 94px;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

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

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

  .hero-content {
    bottom: 145px;
    left: 20px;
    right: 20px;
  }

  .slider-arrow {
    display: none;
  }

  .hero-search {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }

  .page-shell {
    width: min(100% - 24px, 1180px);
    padding: 34px 0;
  }

  .section-header,
  .toolbar,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .all-grid,
  .compact-grid,
  .category-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 80px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
  }

  .sub-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .detail-card,
  .side-card {
    padding: 18px;
  }

  .detail-title-row {
    flex-direction: column;
  }
}
