:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --surface: #ffffff;
  --surface-strong: #fffaf2;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --brand: #f97316;
  --brand-dark: #ea580c;
  --brand-soft: #ffedd5;
  --amber: #f59e0b;
  --shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 48%, #ffffff 100%);
  line-height: 1.6;
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 35px rgba(251, 146, 60, 0.12);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
}

.brand-name {
  font-size: 21px;
  color: #111827;
  white-space: nowrap;
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.08);
}

.header-search {
  flex: 1 1 320px;
  max-width: 420px;
}

.header-search input,
.mobile-search input,
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 16px;
  color: var(--text);
  background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  color: #ffffff;
  cursor: pointer;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

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

.nav-link {
  color: #374151;
  font-weight: 650;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--brand-dark);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  background-color: #111827;
}

.hero-slide::before,
.poster-media::before,
.small-poster::before,
.rank-poster::before,
.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--poster-image);
  background-size: cover;
  background-position: center;
}

.hero-slide::before {
  filter: saturate(1.1);
  transform: scale(1.04);
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 44%, rgba(0, 0, 0, 0.08) 100%),
    radial-gradient(circle at 25% 45%, rgba(249, 115, 22, 0.42), transparent 34%);
}

.hero-copy {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  color: #ffffff;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow {
  color: #fed7aa;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
}

.hero-desc {
  max-width: 680px;
  margin: 22px 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.72);
  backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.35);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.active {
  width: 28px;
  border-radius: 999px;
  background: #ffffff;
}

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

.page-wrap {
  padding: 54px 0 20px;
}

.page-main {
  padding: 44px 0 24px;
}

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

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

.section-title-row h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-title-row p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more {
  color: var(--brand-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.1);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(254, 215, 170, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.38), transparent 34%),
    linear-gradient(135deg, #111827, #431407 52%, #f97316);
}

.poster-media {
  position: absolute;
  inset: 0;
}

.poster-media::before,
.small-poster::before,
.rank-poster::before,
.category-tile::before {
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.movie-card:hover .poster-media::before,
.small-card:hover .small-poster::before,
.category-tile:hover::before {
  transform: scale(1.08);
}

.poster-link::after,
.category-tile::after,
.rank-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.58));
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.9);
  font-size: 13px;
  font-weight: 800;
}

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

.movie-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h2 a:hover,
.rank-body h2 a:hover {
  color: var(--brand-dark);
}

.movie-meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-small h2 {
  font-size: 16px;
}

.movie-card-small .movie-desc {
  min-height: auto;
}

.rail-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-card-rail {
  scroll-snap-align: start;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 25% 20%, rgba(249, 115, 22, 0.45), transparent 34%),
    linear-gradient(135deg, #111827, #7c2d12);
  box-shadow: 0 18px 38px rgba(146, 64, 14, 0.14);
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-tile span {
  bottom: 48px;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(249, 115, 22, 0.2), transparent 30%),
    linear-gradient(135deg, #ffffff, #fff7ed 58%, #ffedd5);
  box-shadow: var(--shadow);
}

.list-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.05em;
}

.list-hero p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-search {
  width: min(460px, 100%);
  flex: 0 0 auto;
}

.large-search {
  width: min(540px, 100%);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.pagination strong {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  border-color: transparent;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  overflow: hidden;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.1);
}

.rank-poster {
  position: relative;
  min-height: 124px;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.4), transparent 40%),
    #111827;
}

.rank-poster span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.88);
  font-weight: 900;
}

.rank-body h2,
.detail-card h1,
.info-card h2 {
  margin: 0;
}

.rank-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-title-row strong {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.search-panel,
.info-card,
.detail-card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
}

.quick-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.quick-terms a,
.info-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
}

.search-status {
  color: var(--muted);
  margin-bottom: 18px;
}

.watch-main {
  padding: 28px 0;
}

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

.breadcrumb a:hover {
  color: var(--brand-dark);
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background:
    radial-gradient(circle at center, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.62)),
    rgba(0, 0, 0, 0.28);
}

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

.play-circle {
  width: 78px;
  height: 78px;
  display: inline-grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  font-size: 32px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 16px 0;
  color: #4b5563;
  font-size: 19px;
}

.detail-card section {
  margin-top: 26px;
}

.detail-card h2,
.watch-aside h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-card p {
  color: #374151;
}

.watch-aside {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(146, 64, 14, 0.1);
}

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

.small-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
}

.small-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 40%),
    #111827;
}

.small-card-body strong,
.small-card-body em {
  display: block;
}

.small-card-body strong {
  font-size: 15px;
  line-height: 1.35;
}

.small-card-body em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  margin-top: 4px;
}

.related-section {
  margin-top: 46px;
}

.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.site-footer {
  margin-top: 60px;
  color: #d1d5db;
  background: linear-gradient(90deg, #1f2937, #111827);
}

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

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.footer-brand p {
  max-width: 420px;
  color: #9ca3af;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
}

.footer-col a,
.footer-col span {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-col a:hover {
  color: #fdba74;
}

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

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

  .site-header.menu-open .mobile-panel {
    display: block;
  }

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

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

  .watch-layout {
    grid-template-columns: 1fr;
  }

  .watch-aside {
    position: static;
  }

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

@media (max-width: 760px) {
  .hero-slider {
    height: 620px;
  }

  .hero-copy {
    padding: 0 16px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .hero-arrow {
    display: none;
  }

  .section-title-row,
  .list-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .small-card {
    grid-template-columns: 100px 1fr;
  }

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

@media (max-width: 520px) {
  .header-inner,
  .mobile-panel,
  .page-wrap,
  .page-main,
  .watch-main,
  .footer-inner {
    width: min(100% - 22px, 1280px);
  }

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

  .list-hero,
  .search-panel,
  .info-card,
  .detail-card,
  .watch-aside {
    padding: 20px;
    border-radius: 20px;
  }
}
