:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #1e293b;
  --panel-glass: rgba(15, 23, 42, 0.74);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --line: #334155;
  --orange: #f97316;
  --orange-soft: #fb923c;
  --red: #dc2626;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.16), transparent 28%), var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 18px;
}

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

.logo-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.32);
}

.logo-text {
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--orange-soft), #ef4444);
  -webkit-background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a,
.mobile-panel a {
  color: #e2e8f0;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.mobile-panel a:hover {
  color: var(--orange-soft);
}

.nav-search {
  display: flex;
  align-items: center;
  width: min(280px, 28vw);
  min-width: 210px;
  border: 1px solid #475569;
  border-radius: 12px;
  background: #1e293b;
  overflow: hidden;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.nav-search button {
  padding: 10px 13px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #475569;
  border-radius: 12px;
  color: #ffffff;
  background: #1e293b;
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
  border-top: 1px solid #334155;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-links {
  display: grid;
  gap: 13px;
  padding-top: 16px;
}

.mobile-search {
  display: flex;
  margin-top: 15px;
  border: 1px solid #475569;
  border-radius: 13px;
  overflow: hidden;
  background: #0f172a;
}

.mobile-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
  padding: 11px 13px;
}

.mobile-search button {
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide:focus {
  outline: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #020617 2%, rgba(15, 23, 42, 0.86) 38%, rgba(15, 23, 42, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 600px;
  padding: 86px 0 70px;
}

.hero-copy {
  max-width: 720px;
}

.kicker-row,
.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.pill.hot {
  background: linear-gradient(135deg, var(--orange), var(--red));
  border-color: transparent;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 8vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 650px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

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

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

.btn-soft {
  color: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.72);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(249, 115, 22, 0.86);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #64748b;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--orange);
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: rgba(15, 23, 42, 0.36);
}

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

.section-title h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-title p,
.page-title p,
.detail-title p {
  margin: 8px 0 0;
  color: var(--subtle);
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.33);
  transform: translateY(-4px);
}

.movie-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111827;
}

.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.16), transparent);
}

.badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.88);
}

.badge.type {
  background: var(--orange);
}

.play-float {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .play-float {
  opacity: 1;
}

.play-circle {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--orange);
  box-shadow: 0 14px 32px rgba(249, 115, 22, 0.35);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 56px;
  margin: 0 0 7px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-info p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #94a3b8;
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  background: #0f172a;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), transparent 68%);
  content: "";
}

.category-card:hover {
  border-color: rgba(249, 115, 22, 0.65);
  transform: translateY(-4px);
}

.category-card h3 {
  position: relative;
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  position: relative;
  margin: 0 0 18px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 52px 92px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(51, 65, 85, 0.78);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(249, 115, 22, 0.7);
  transform: translateX(4px);
}

.rank-no {
  font-size: 24px;
  font-weight: 900;
  color: var(--orange-soft);
  text-align: center;
}

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

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

.rank-copy h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.rank-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.page-hero {
  padding: 54px 0 34px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.7);
  background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 34%), rgba(15, 23, 42, 0.58);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange-soft);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin: 26px 0;
  padding: 16px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
}

.search-input {
  width: 100%;
  border: 1px solid #475569;
  border-radius: 12px;
  outline: 0;
  padding: 13px 14px;
  color: #ffffff;
  background: #1e293b;
}

.filter-button {
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--orange), var(--red));
}

.empty-state {
  display: none;
  padding: 30px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: var(--radius);
  color: #cbd5e1;
  text-align: center;
  background: rgba(15, 23, 42, 0.76);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.24);
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.big-play {
  position: relative;
  z-index: 5;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.35);
}

.detail-title {
  margin: 24px 0 22px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.content-panel {
  padding: 24px;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
}

.content-panel + .content-panel {
  margin-top: 18px;
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 23px;
}

.content-panel p {
  margin: 0;
  color: #cbd5e1;
}

.sidebar {
  position: sticky;
  top: 92px;
}

.sidebar-card {
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.82);
  border-radius: var(--radius);
  background: #0f172a;
}

.sidebar-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sidebar-body {
  padding: 16px;
}

.sidebar-body h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.related-list {
  display: grid;
  gap: 11px;
  margin-top: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.78);
  transition: background 0.2s ease, transform 0.2s ease;
}

.related-item:hover {
  background: rgba(51, 65, 85, 0.88);
  transform: translateX(3px);
}

.related-item img {
  width: 80px;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  object-fit: cover;
}

.related-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-item span {
  color: #94a3b8;
  font-size: 12px;
}

.site-footer {
  margin-top: 58px;
  border-top: 1px solid rgba(51, 65, 85, 0.82);
  color: #94a3b8;
  background: #020617;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 38px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-grid p {
  margin: 0;
}

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

.footer-links a:hover {
  color: var(--orange-soft);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.32);
}

.back-top.is-visible {
  display: grid;
  place-items: center;
}

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

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

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

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

  .sidebar {
    position: static;
  }
}

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

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

  .hero-control {
    display: none;
  }

  .section-head,
  .filter-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

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

  .rank-item .btn {
    display: none;
  }

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

@media (max-width: 520px) {
  .navbar {
    height: 62px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

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

  .hero h1 {
    font-size: 38px;
  }

  .movie-info h3 {
    min-height: auto;
  }
}
