:root {
  --bg: #fff7ed;
  --bg-soft: #fffaf0;
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(15, 23, 42, 0.1);
  --card: rgba(255, 255, 255, 0.86);
  --brand: #f97316;
  --brand-dark: #c2410c;
  --shadow: 0 24px 80px rgba(124, 45, 18, 0.16);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 40%, #fffaf0 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

a {
  text-decoration: none;
}

img {
  object-fit: cover;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 247, 237, 0.86);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner,
.content-section,
.page-main,
.hero-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

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

.brand__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.3);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.main-nav a:hover {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #9a3412;
  background: rgba(251, 146, 60, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86) 0%, rgba(17, 24, 39, 0.58) 42%, rgba(17, 24, 39, 0.08) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-slide__content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 100px 0 190px;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.82);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-meta-card h1 {
  margin-top: 18px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
}

.hero-desc {
  width: min(680px, 92vw);
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions,
.intro-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 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: white;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 36px rgba(220, 38, 38, 0.22);
}

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

.intro-card .btn--ghost,
.section-head .btn--ghost,
.detail-meta-card .btn--ghost {
  color: #9a3412;
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 237, 213, 0.74);
}

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.hero-search label {
  display: block;
  margin-bottom: 8px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 800;
}

.hero-search input,
.inline-search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

.hero-categories {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.hero-categories a {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.hero-dot.is-active {
  width: 32px;
  background: #fb923c;
}

.content-section {
  padding: 56px 0;
}

.content-section--intro {
  padding-bottom: 18px;
}

.intro-card,
.page-hero,
.category-card,
.detail-meta-card,
.detail-text {
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.intro-card {
  padding: clamp(28px, 5vw, 54px);
}

.intro-card h2,
.section-head h2,
.detail-text h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.intro-card p,
.section-head p,
.page-hero p,
.detail-text p,
.category-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.9;
}

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

.text-link {
  flex: 0 0 auto;
  color: #ea580c;
  font-weight: 900;
}

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

.movie-grid--home {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(124, 45, 18, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(124, 45, 18, 0.16);
}

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

.movie-card__poster img {
  width: 100%;
  height: 100%;
}

.movie-card__score {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.movie-card__body {
  padding: 16px;
}

.movie-card__title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card__meta {
  margin-top: 8px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

.movie-card__desc {
  display: -webkit-box;
  min-height: 63px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

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

.tag-row span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.tag-row--hero span {
  color: #ffedd5;
  background: rgba(255, 255, 255, 0.16);
}

.category-grid,
.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.category-tile,
.category-card__main {
  display: block;
  padding: 24px;
  border-radius: 26px;
  color: #111827;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 237, 213, 0.72));
  box-shadow: 0 18px 45px rgba(124, 45, 18, 0.1);
}

.category-tile span,
.category-card__name {
  display: block;
  font-size: 22px;
  font-weight: 950;
}

.category-tile em,
.category-card p {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
}

.page-main {
  padding: 38px 0 20px;
}

.page-hero {
  padding: clamp(28px, 5vw, 58px);
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 146, 60, 0.24), transparent 30rem),
    rgba(255, 255, 255, 0.82);
}

.page-hero--small h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.inline-search {
  width: min(560px, 100%);
  margin-top: 24px;
}

.category-card {
  padding: 10px;
}

.category-card__links {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.category-card__links a {
  color: #9a3412;
  font-size: 14px;
  font-weight: 800;
}

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

.rank-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: auto 64px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  color: #111827;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 38px rgba(124, 45, 18, 0.08);
}

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

.rank-item img {
  width: 64px;
  height: 86px;
  border-radius: 14px;
}

.rank-item__content {
  min-width: 0;
}

.rank-item strong,
.rank-item em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item strong {
  font-weight: 950;
}

.rank-item em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #ea580c;
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.detail-player,
.player-shell {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #111827;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #111827;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  color: white;
  background: rgba(17, 24, 39, 0.38);
  transition: opacity 0.2s ease;
}

.player-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #f97316, #dc2626);
  font-size: 34px;
  box-shadow: 0 18px 46px rgba(220, 38, 38, 0.28);
}

.player-overlay strong {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  font-weight: 900;
}

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

.detail-info {
  display: grid;
  gap: 16px;
}

.detail-poster {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 3;
}

.detail-meta-card {
  padding: 24px;
}

.detail-meta-card h1 {
  font-size: clamp(28px, 3vw, 44px);
}

.detail-meta-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-facts span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.86);
  font-size: 13px;
  font-weight: 900;
}

.detail-text {
  padding: clamp(24px, 4vw, 42px);
}

.detail-text h2 + p {
  margin-bottom: 28px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(251, 146, 60, 0.14);
  background: rgba(255, 247, 237, 0.8);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
  color: var(--muted);
}

.brand--footer {
  font-size: 18px;
}

.no-results {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 24px;
  color: #7c2d12;
  background: rgba(255, 237, 213, 0.88);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 20px;
  }

  .hero-slide__content {
    padding: 80px 0 270px;
  }

  .section-head,
  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }

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

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

@media (max-width: 560px) {
  .site-header__inner,
  .site-footer__inner,
  .content-section,
  .page-main,
  .hero-panel,
  .hero-slide__content {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

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

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

  .movie-card__body {
    padding: 12px;
  }

  .movie-card__desc {
    display: none;
  }

  .rank-item {
    grid-template-columns: auto 54px 1fr;
  }

  .rank-item img {
    width: 54px;
    height: 72px;
  }
}
