:root {
  --sunrise: #ff6916;
  --sunrise-dark: #c73a0c;
  --morning: #f0601f;
  --gold: #ffb347;
  --ink: #171717;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --soft: #fff7ed;
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 45px rgba(255, 105, 22, 0.16);
  --dark-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 105, 22, 0.13), transparent 34rem),
    linear-gradient(180deg, #fffaf6 0%, #ffffff 42%, #fff8f2 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(255, 105, 22, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-nav {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.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(--sunrise), var(--morning));
  box-shadow: 0 10px 24px rgba(255, 105, 22, 0.28);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(90deg, var(--sunrise), var(--morning));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: #374151;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--sunrise);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff3e9;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--sunrise-dark);
}

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

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #431407 0%, #9a3412 42%, #ff6916 100%);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  filter: blur(5px) saturate(1.15);
  transform: scale(1.04);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.3)),
    radial-gradient(circle at 78% 18%, rgba(255, 179, 71, 0.34), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  min-height: 620px;
  margin: 0 auto;
  padding: 92px 22px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--sunrise-dark);
  background: #fff1e6;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--sunrise-dark);
  background: #fff1e6;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.search-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-bar button {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  box-shadow: 0 14px 30px rgba(255, 105, 22, 0.34);
}

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

.primary-button:hover,
.ghost-button:hover,
.search-bar button:hover {
  transform: translateY(-2px);
}

.hero-poster,
.detail-poster,
.poster-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #2f1307, #ff8a3d);
  box-shadow: var(--dark-shadow);
}

.hero-poster {
  min-height: 520px;
}

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

.hero-poster::after,
.detail-poster::after,
.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

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

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

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

.panel-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 64px 22px;
}

.quick-search {
  margin-top: -38px;
  position: relative;
  z-index: 5;
  padding-top: 0;
}

.quick-search,
.panel-card {
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-search {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  gap: 24px;
  padding: 26px;
}

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

.compact-heading,
.sub-heading {
  display: block;
  margin-bottom: 0;
}

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

.section-heading a,
.text-link {
  color: var(--sunrise-dark);
  font-weight: 900;
}

.search-bar,
.inline-filter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar input,
.inline-filter input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 105, 22, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-bar input:focus,
.inline-filter input:focus {
  border-color: var(--sunrise);
  box-shadow: 0 0 0 4px rgba(255, 105, 22, 0.12);
}

.inline-filter {
  margin-bottom: 28px;
}

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

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

.category-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 105, 22, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 105, 22, 0.18), transparent 10rem),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.rank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(255, 105, 22, 0.16);
}

.category-tile-name {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.category-tile-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.category-poster-strip {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.category-poster-strip img {
  width: 44px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.category-poster-strip img + img {
  margin-left: -12px;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 105, 22, 0.12);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  aspect-ratio: 3 / 4;
  border-radius: 0;
  box-shadow: none;
}

.poster-glow {
  position: absolute;
  inset: auto 14px 14px;
  height: 34%;
  border-radius: 999px;
  background: rgba(255, 105, 22, 0.28);
  filter: blur(28px);
}

.card-body {
  padding: 18px;
}

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

.card-meta span,
.detail-meta span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-card h3 {
  margin: 12px 0 9px;
  font-size: 20px;
  line-height: 1.25;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.soft-link {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sunrise-dark);
  background: #fff1e6;
  font-size: 12px;
  font-weight: 900;
}

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

.rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 52px 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 105, 22, 0.12);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunrise), var(--morning));
  font-weight: 900;
}

.rank-thumb {
  width: 64px;
  height: 86px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #331307, #ff8a3d);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.rank-info strong,
.rank-info em {
  display: block;
}

.rank-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

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

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  color: #ffffff;
  background: linear-gradient(135deg, #431407, #f0601f);
}

.page-hero {
  max-width: none;
  margin: 0;
  padding: 88px max(22px, calc((100vw - 1220px) / 2 + 22px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 15%, rgba(255, 255, 255, 0.2), transparent 20rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.detail-hero {
  min-height: 560px;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(5px) saturate(1.15);
  transform: scale(1.04);
}

.detail-wrap {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 78px 22px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: center;
  gap: 46px;
}

.detail-poster {
  min-height: 430px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  margin-bottom: 14px;
}

.detail-meta {
  margin: 22px 0;
}

.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  max-width: 1220px;
  margin: -70px auto 0;
  padding: 0 22px;
  position: relative;
  z-index: 3;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: var(--dark-shadow);
  aspect-ratio: 16 / 9;
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #0f172a;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(255, 105, 22, 0.32), transparent 19rem),
    rgba(15, 23, 42, 0.72);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--sunrise-dark);
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(255, 105, 22, 0.28);
  font-size: 36px;
  line-height: 1;
}

.player-cover strong {
  font-size: 24px;
}

.narrow-section {
  max-width: 960px;
}

.detail-content p {
  color: #374151;
  font-size: 18px;
  line-height: 2;
}

.sub-heading {
  margin-top: 38px;
}

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

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 46px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.6fr) minmax(0, 1.2fr);
  gap: 28px;
}

.footer-brand {
  color: #ffffff;
  font-size: 24px;
}

.footer-inner p {
  max-width: 460px;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-links,
.footer-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a,
.footer-category-links a {
  color: #d1d5db;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 22px 26px;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content,
  .quick-search,
  .detail-wrap,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .hero-content {
    min-height: 760px;
  }

  .hero-poster,
  .detail-poster {
    min-height: 360px;
    max-width: 280px;
  }

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

  .page-hero {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-nav {
    height: 62px;
    padding: 0 16px;
  }

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

  .hero-content {
    padding: 66px 16px 86px;
  }

  .panel-section,
  .player-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    padding: 64px 16px;
  }

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

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

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    width: 100%;
  }

  .detail-wrap {
    padding: 58px 16px 96px;
  }

  .player-section {
    margin-top: -58px;
  }

  .player-box {
    border-radius: 20px;
  }

  .rank-card {
    grid-template-columns: 44px 54px minmax(0, 1fr);
  }

  .rank-thumb {
    width: 54px;
    height: 74px;
  }
}
