* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --orange: #f97316;
  --amber: #f59e0b;
  --yellow: #eab308;
  --slate: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 22px 60px rgba(15, 23, 42, 0.2);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 42%, #fff7ed 100%);
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ea580c, #d97706 50%, #ca8a04);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.24);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fef3c7;
  transform: translateY(-1px);
}

.site-search {
  width: 300px;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.site-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

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

.site-search button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 8px 14px;
  color: #92400e;
  background: #ffffff;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.page-main {
  min-height: calc(100vh - 260px);
}

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

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.94), rgba(180, 83, 9, 0.82), rgba(202, 138, 4, 0.72)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(9px);
  transform: scale(1.08);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22), transparent 28%), linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 54px 0 76px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 22px;
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover,
.btn-light:hover,
.btn-secondary:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.btn-light {
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  background-image: linear-gradient(135deg, #f59e0b, #7c2d12), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
  transform: rotate(2deg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster span {
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.64));
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

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

.section {
  padding: 58px 0 0;
}

.section:last-child {
  padding-bottom: 58px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.12;
  color: #1f2937;
}

.section-desc {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  white-space: nowrap;
  color: #ea580c;
  font-weight: 900;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background-image: linear-gradient(135deg, #fef3c7, #fdba74 38%, #0f172a), var(--poster-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.movie-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(15, 23, 42, 0.72));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.duration-badge,
.rank-badge,
.type-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.duration-badge {
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.95);
}

.type-badge {
  left: 12px;
  top: 12px;
  color: #92400e;
  background: rgba(255, 255, 255, 0.92);
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
}

.movie-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.42;
  color: #1f2937;
  font-weight: 900;
}

.movie-line {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: #f1f5f9;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.update-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.update-thumb {
  min-height: 128px;
  background-image: linear-gradient(135deg, #fed7aa, #0f172a), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.update-info {
  padding: 16px 16px 16px 0;
}

.update-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #1f2937;
}

.update-info p {
  margin: 0 0 12px;
  color: #64748b;
  line-height: 1.65;
}

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

.category-card {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.78)), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 58px 86px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(5px);
}

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

.rank-thumb {
  width: 86px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background-image: linear-gradient(135deg, #fed7aa, #0f172a), var(--poster-image);
  background-size: cover;
  background-position: center;
}

.rank-info strong {
  display: block;
  color: #1f2937;
  margin-bottom: 6px;
}

.rank-info span,
.rank-views {
  color: #64748b;
  font-size: 14px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, #7c2d12, #b45309 56%, #d97706);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.22), transparent 28%);
}

.page-hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 72px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 150px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  outline: 0;
  padding: 10px 14px;
  color: #1e293b;
  background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

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

.detail-cover {
  border-radius: 30px;
  min-height: 430px;
  background-image: linear-gradient(135deg, #fed7aa, #0f172a), var(--poster-image);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-hover);
}

.detail-card {
  border-radius: 30px;
  padding: clamp(28px, 4vw, 44px);
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.breadcrumbs {
  padding: 22px 0;
  color: #64748b;
  font-size: 14px;
}

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

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #1f2937;
}

.detail-card .lead {
  margin: 0 0 24px;
  color: #475569;
  font-size: 20px;
  line-height: 1.8;
}

.content-card {
  margin-top: 28px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.content-card h2 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 26px;
}

.content-card p {
  margin: 0 0 20px;
  color: #475569;
  line-height: 1.9;
  font-size: 17px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.player-section {
  scroll-margin-top: 86px;
}

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

.player-box video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.78)), var(--poster-image);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
}

.play-ring {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.35);
  font-size: 34px;
  padding-left: 6px;
}

.player-box.is-playing .player-cover,
.player-box.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 14px;
  font-weight: 800;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  margin-top: 40px;
}

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

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 14px;
  color: #fb923c;
}

.footer-inner p,
.footer-inner a {
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 18px 0;
  text-align: center;
  color: #94a3b8;
}

.empty-state {
  display: none;
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.empty-state.is-visible {
  display: block;
}

[data-search-card].is-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .site-search {
    width: 240px;
  }

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

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    justify-content: space-between;
  }

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

  .nav-links,
  .site-search {
    display: none;
  }

  .site-header.is-open .nav-links,
  .site-header.is-open .site-search {
    position: fixed;
    left: 16px;
    right: 16px;
    display: flex;
    z-index: 60;
  }

  .site-header.is-open .nav-links {
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 24px;
    background: rgba(154, 52, 18, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-hover);
  }

  .site-header.is-open .nav-links a {
    padding: 14px 16px;
    border-radius: 16px;
  }

  .site-header.is-open .nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-open .site-search {
    top: 330px;
    width: auto;
    background: rgba(154, 52, 18, 0.96);
  }

  .hero-slider,
  .hero-inner {
    min-height: 680px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 0 86px;
  }

  .hero-poster {
    max-width: 260px;
    transform: rotate(0deg);
  }

  .split-grid,
  .detail-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .rank-views {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 19px;
  }

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

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

  .movie-body {
    padding: 13px;
  }

  .movie-title {
    min-height: 42px;
    font-size: 15px;
  }

  .movie-line {
    font-size: 13px;
  }

  .update-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .update-thumb {
    min-height: 132px;
  }

  .update-info {
    padding: 13px 13px 13px 0;
  }

  .update-info h3 {
    font-size: 16px;
  }

  .update-info p {
    display: none;
  }

  .detail-cover {
    min-height: 360px;
  }

  .play-ring {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
