:root {
  --bg-start: #fff7ed;
  --bg-mid: #ffffff;
  --bg-end: #ecfeff;
  --text-main: #111827;
  --text-soft: #6b7280;
  --text-muted: #9ca3af;
  --line: rgba(229, 231, 235, 0.9);
  --card: rgba(255, 255, 255, 0.92);
  --orange: #f97316;
  --orange-dark: #ea580c;
  --cyan: #06b6d4;
  --cyan-dark: #0891b2;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 70px rgba(249, 115, 22, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-mid) 46%, var(--bg-end) 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

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, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
  transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
  transform: scale(1.08) rotate(8deg);
}

.logo-text {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #374151;
  font-weight: 650;
}

.nav-menu a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-menu a:hover {
  color: var(--orange);
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  position: relative;
  width: min(290px, 28vw);
}

.search-form input {
  width: 100%;
  height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 44px 0 18px;
  color: #111827;
  background: #ffffff;
  outline: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.search-form button {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #111827;
  background: #f3f4f6;
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  width: min(1240px, calc(100% - 32px));
  min-height: 620px;
  margin: 32px auto 50px;
  border-radius: var(--radius-xl);
  background: #111827;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: stretch;
  padding: 54px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.015);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.25);
  transform: scale(1.08);
  opacity: 0.45;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 28%), linear-gradient(105deg, rgba(17, 24, 39, 0.95) 0%, rgba(17, 24, 39, 0.78) 45%, rgba(8, 145, 178, 0.66) 100%);
}

.hero-content,
.hero-poster-wrap {
  position: relative;
  z-index: 2;
}

.hero-content {
  align-self: center;
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero h2 a:hover {
  color: #fed7aa;
}

.hero-text {
  max-width: 690px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.hero-meta,
.card-meta,
.detail-meta,
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #6b3a13;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 700;
}

.pill.soft {
  color: #155e75;
  background: #cffafe;
}

.hero .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.25);
}

.btn.light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn.ghost {
  color: var(--orange-dark);
  border-color: #fed7aa;
  background: #fff7ed;
}

.hero-poster-wrap {
  align-self: center;
}

.hero-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: rotate(2deg);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 54px;
  bottom: 38px;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.section {
  margin: 54px auto;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-desc {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

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

.poster-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.06);
}

.poster-link::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-link::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
}

.card-title a:hover {
  color: var(--orange);
}

.card-text {
  min-height: 48px;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-genre {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 22px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: #111827;
  box-shadow: var(--shadow);
}

.feature-card img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.25));
}

.feature-card .feature-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 38px;
}

.feature-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(28px, 5vw, 54px);
  line-height: 1.05;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.85;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateX(4px);
}

.rank-no {
  font-size: 20px;
  font-weight: 900;
  color: var(--orange);
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

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

.rank-title {
  margin: 0 0 4px;
  font-weight: 800;
}

.rank-desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 254, 255, 0.84));
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.category-tile::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -34px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(6, 182, 212, 0.22));
}

.category-tile h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 24px;
}

.category-tile p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.page-hero {
  overflow: hidden;
  margin: 32px auto 34px;
  padding: 44px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 18% 24%, rgba(249, 115, 22, 0.22), transparent 34%), radial-gradient(circle at 82% 18%, rgba(6, 182, 212, 0.20), transparent 32%), rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.85;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 36px 0 12px;
}

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

.pagination span,
.pagination a:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #ffedd5, #cffafe);
}

.detail-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-copy p {
  color: var(--text-soft);
  line-height: 1.9;
}

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

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(17, 24, 39, 0.28), rgba(2, 6, 23, 0.64));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
}

.play-icon {
  width: 82px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  box-shadow: 0 20px 45px rgba(249, 115, 22, 0.35);
  font-size: 34px;
}

.play-label {
  font-size: 18px;
  font-weight: 900;
}

.content-panel {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.content-panel h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-panel p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.95;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags a,
.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 14px;
  font-weight: 700;
}

.tags a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
}

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.search-page-form input {
  flex: 1;
  min-height: 52px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 0 20px;
  outline: none;
}

.search-page-form input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.search-page-form button {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  cursor: pointer;
}

.empty-state {
  padding: 42px;
  border: 1px dashed #fed7aa;
  border-radius: var(--radius-lg);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.footer-inner p,
.footer-inner li {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-inner a:hover {
  color: #fb923c;
}

.copyright {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 14px;
}

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

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

@media (max-width: 960px) {
  .header-inner {
    height: auto;
    min-height: 66px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0 2px;
  }

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

  .header-actions {
    margin-left: auto;
  }

  .search-form {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .hero-poster-wrap {
    max-width: 280px;
  }

  .hero-dots {
    left: 32px;
  }

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

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

@media (max-width: 720px) {
  .container,
  .hero,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

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

  .hero {
    min-height: 720px;
    margin-top: 18px;
    border-radius: 22px;
  }

  .hero-slide {
    padding: 24px;
  }

  .hero h1,
  .hero h2 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 16px;
  }

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

  .card-body {
    padding: 13px;
  }

  .feature-card .feature-content,
  .page-hero,
  .content-panel {
    padding: 24px;
  }

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

  .search-page-form {
    flex-direction: column;
  }

  .search-page-form button {
    min-height: 48px;
  }

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

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

  .hero {
    min-height: 780px;
  }
}
