* {
  box-sizing: border-box;
}

:root {
  --bluestone-950: #020617;
  --bluestone-900: #0f172a;
  --bluestone-800: #1e293b;
  --bluestone-700: #334155;
  --bluestone-600: #475569;
  --bluestone-200: #e2e8f0;
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --accent-400: #f59e0b;
  --accent-500: #d97706;
  --accent-600: #b45309;
  --accent-700: #92400e;
  --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 24px 42px rgba(15, 23, 42, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--stone-50);
  color: var(--stone-700);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--bluestone-900);
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.25);
}

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

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

.nav-link,
.mobile-link {
  color: var(--bluestone-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
}

.top-search input,
.mobile-search input,
.big-search input,
.tool-card input,
.tool-card select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bluestone-900);
}

.top-search input {
  width: 188px;
  padding: 8px 6px 8px 12px;
}

.top-search button,
.mobile-search button,
.big-search button {
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-500);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  background: var(--accent-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--stone-100);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--bluestone-800);
}

.mobile-nav {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--stone-200);
  background: #fff;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: var(--stone-100);
}

.mobile-search input {
  flex: 1;
  padding: 10px 12px;
}

.hero-slider {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--bluestone-900);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.90), rgba(15, 23, 42, 0.64) 48%, rgba(15, 23, 42, 0.10));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(660px, 100%);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-400);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 900;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--stone-200);
  font-size: 18px;
}

.hero-tags,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-tags span,
.detail-stats span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

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

.primary-button {
  color: #fff;
  background: var(--accent-500);
  box-shadow: 0 16px 30px rgba(217, 119, 6, 0.32);
}

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

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

.hero-pill-row,
.tag-row,
.detail-tags,
.search-chips,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill-row span,
.tag-row span,
.detail-tags a,
.search-chips a,
.quick-links a {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 13px;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 5;
}

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
  line-height: 1;
}

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

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

.hero-dot.active {
  width: 28px;
  background: var(--accent-400);
}

.quick-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  padding: 28px;
  margin-top: -34px;
  position: relative;
  z-index: 8;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.quick-panel h2 {
  margin: 0 0 8px;
  color: var(--bluestone-900);
  font-size: 26px;
}

.quick-panel p {
  margin: 0;
  color: var(--stone-600);
}

.quick-links a {
  color: var(--accent-700);
  background: var(--accent-50);
}

.home-block {
  padding-top: 54px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--bluestone-900);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
}

.section-icon {
  color: var(--accent-500);
}

.more-link {
  color: var(--accent-600);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

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

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

.card-cover {
  position: relative;
  height: 268px;
  overflow: hidden;
  background: var(--stone-200);
}

.compact-card .card-cover {
  height: 218px;
}

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

.card-link:hover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.68));
  transition: opacity 0.25s ease;
}

.card-link:hover .card-cover::after {
  opacity: 1;
}

.year-badge,
.rank-mark {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-mark {
  left: 12px;
  right: auto;
  background: var(--accent-500);
}

.play-badge {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--bluestone-900);
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body p {
  display: -webkit-box;
  min-height: 45px;
  margin: 0 0 14px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--stone-500);
  font-size: 12px;
}

.tag-row span {
  color: var(--accent-700);
  background: var(--accent-50);
}

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

.latest-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.latest-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.latest-item div {
  padding: 18px 18px 18px 0;
}

.latest-item h3 {
  margin: 0 0 8px;
  color: var(--bluestone-900);
  font-size: 20px;
}

.latest-item p {
  margin: 0 0 10px;
  color: var(--stone-600);
}

.latest-item span {
  color: var(--accent-600);
  font-size: 13px;
  font-weight: 700;
}

.page-main {
  min-height: 70vh;
}

.page-hero {
  padding: 78px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--bluestone-700), var(--bluestone-900));
}

.compact-hero {
  padding: 56px 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--bluestone-200);
  font-size: 18px;
}

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

.breadcrumb a:hover {
  color: var(--accent-400);
}

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

.category-card a {
  display: block;
  height: 100%;
  padding: 26px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.category-card h2 {
  margin: 0;
  color: var(--bluestone-900);
  font-size: 23px;
}

.category-card-head span {
  color: var(--accent-600);
  font-weight: 800;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--stone-600);
}

.category-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-preview span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--bluestone-700);
  background: var(--stone-100);
  font-size: 13px;
}

.category-tools {
  padding: 30px 0 18px;
}

.tool-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.tool-card label {
  display: grid;
  gap: 8px;
  color: var(--bluestone-800);
  font-weight: 750;
}

.tool-card input,
.tool-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--stone-100);
  border: 1px solid var(--stone-200);
}

.category-movies {
  padding-bottom: 40px;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-top: 42px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 24px;
  color: #fff;
  background: var(--bluestone-900);
  box-shadow: var(--shadow-card);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.86));
}

.podium-card h2,
.podium-card p,
.podium-rank {
  position: relative;
  z-index: 2;
}

.podium-rank {
  display: inline-flex;
  margin: 24px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-500);
  font-weight: 900;
}

.podium-card h2 {
  margin: 210px 24px 10px;
  font-size: 28px;
}

.podium-card p {
  margin: 0 24px 24px;
  color: var(--stone-200);
}

.search-page .page-hero {
  padding-bottom: 72px;
}

.big-search {
  display: flex;
  width: min(700px, 100%);
  gap: 10px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  color: #fff;
}

.big-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-chips {
  margin-top: 16px;
}

.search-results-section {
  padding-bottom: 46px;
}

.detail-hero-section {
  padding: 38px 0 42px;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(217, 119, 6, 0.20), transparent 36%), linear-gradient(135deg, var(--bluestone-800), var(--bluestone-950));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: center;
}

.detail-player {
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.55));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.94);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.34);
  font-size: 38px;
  padding-left: 6px;
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.1;
  font-weight: 900;
}

.detail-info p {
  margin: 0 0 22px;
  color: var(--bluestone-200);
  font-size: 17px;
}

.detail-tags a {
  color: var(--accent-700);
  background: var(--accent-50);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 36px 0 8px;
}

.content-panel {
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.main-story {
  grid-column: 1 / -1;
}

.content-panel h2 {
  margin: 0 0 14px;
  color: var(--bluestone-900);
  font-size: 24px;
}

.content-panel p {
  margin: 0;
  color: var(--stone-700);
}

.movie-facts dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.movie-facts div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
}

.movie-facts dt {
  color: var(--stone-500);
}

.movie-facts dd {
  margin: 0;
  color: var(--bluestone-900);
  font-weight: 700;
}

.movie-facts dd a {
  display: inline-block;
  margin: 0 8px 6px 0;
  color: var(--accent-600);
}

.related-block {
  padding-bottom: 54px;
}

.site-footer {
  margin-top: 64px;
  color: var(--stone-200);
  background: var(--bluestone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
  padding: 48px 0;
}

.footer-logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: #cbd5e1;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  color: #94a3b8;
}

@media (max-width: 1080px) {
  .movie-grid,
  .small-grid,
  .ranking-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 860px) {
  .main-nav,
  .top-search {
    display: none;
  }

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

  .hero-slider {
    height: 74vh;
    min-height: 580px;
  }

  .hero-mask {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.90));
  }

  .quick-panel,
  .tool-card,
  .footer-grid,
  .detail-content-grid {
    grid-template-columns: 1fr;
  }

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

  .latest-item div {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

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

  .card-cover,
  .compact-card .card-cover {
    height: 260px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .big-search {
    border-radius: 22px;
    flex-direction: column;
  }
}
