*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: #0d1117;
  color: #e9ecef;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid #343a40;
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8f9fa;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.logo:hover {
  color: #4da6ff;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0073e6, #4da6ff);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 115, 230, 0.35);
}

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

.nav-links a,
.nav-drop-button {
  color: #dee2e6;
  font-size: 14px;
  font-weight: 650;
  background: transparent;
  padding: 22px 0;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-drop:hover .nav-drop-button {
  color: #1a8cff;
}

.nav-drop {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid #343a40;
  border-radius: 14px;
  background: #212529;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-drop:hover .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #dee2e6;
}

.nav-menu a:hover {
  background: #343a40;
  color: #80bfff;
}

.nav-search {
  position: relative;
  flex: 0 0 260px;
}

.nav-search input,
.filter-box input {
  width: 100%;
  border: 1px solid #343a40;
  border-radius: 12px;
  background: #212529;
  color: #f8f9fa;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  padding: 10px 14px 10px 40px;
}

.filter-box input {
  padding: 14px 18px;
}

.nav-search input:focus,
.filter-box input:focus {
  border-color: #0073e6;
  box-shadow: 0 0 0 4px rgba(0, 115, 230, 0.18);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #212529;
  color: #f8f9fa;
}

.mobile-menu {
  display: none;
  border-top: 1px solid #343a40;
  background: #212529;
}

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

.mobile-menu-inner {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mobile-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  color: #dee2e6;
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  background: #343a40;
  color: #80bfff;
}

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

.home-wrap,
.page-wrap {
  padding: 32px 0 60px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-radius: 22px;
  background: #212529;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

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

.hero-slide.is-active .hero-image {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.84) 44%, rgba(13, 17, 23, 0.16) 100%);
}

.hero-content {
  position: relative;
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
  padding: 64px 0;
}

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

.hero-label,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.hero-label {
  padding: 8px 13px;
  margin-bottom: 18px;
}

.badge {
  padding: 7px 10px;
}

.hero h1 {
  margin: 0 0 18px;
  color: #f8f9fa;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-text {
  margin: 0 0 24px;
  color: #dee2e6;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 28px;
  color: #ced4da;
  font-size: 14px;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #6c757d;
}

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

.primary-btn,
.secondary-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.primary-btn {
  min-height: 48px;
  padding: 0 22px;
  background: #0073e6;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 115, 230, 0.32);
}

.primary-btn:hover {
  background: #005ab3;
  transform: translateY(-2px) scale(1.02);
}

.secondary-btn {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #495057;
  background: rgba(33, 37, 41, 0.72);
  color: #e9ecef;
  backdrop-filter: blur(12px);
}

.secondary-btn:hover {
  border-color: #0073e6;
  color: #80bfff;
  transform: translateY(-2px);
}

.text-btn {
  color: #80bfff;
}

.text-btn:hover {
  color: #ffffff;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.78);
  color: #dee2e6;
  backdrop-filter: blur(14px);
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-control:hover {
  background: rgba(52, 58, 64, 0.86);
  color: #ffffff;
}

.hero-prev {
  left: 18px;
  transform: translateY(-50%);
}

.hero-next {
  right: 18px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: #6c757d;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 36px;
  background: #1a8cff;
}

.section {
  margin-top: 54px;
}

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

.section-title {
  margin: 0;
  color: #f8f9fa;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: #adb5bd;
  max-width: 720px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 20px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #212529;
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  outline: 2px solid #0073e6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.card-link {
  display: block;
  height: 100%;
}

.poster {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #212529, #343a40);
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.03) 0%, rgba(13, 17, 23, 0.36) 46%, rgba(13, 17, 23, 0.9) 100%);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(0, 115, 230, 0.92);
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 16px 36px rgba(0, 115, 230, 0.38);
}

.card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.82);
  color: #f8f9fa;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 13px 13px 15px;
}

.card-title {
  margin: 0 0 6px;
  color: #f8f9fa;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta {
  margin: 0;
  color: #ced4da;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  margin: 8px 0 0;
  color: #adb5bd;
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.wide-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.strip-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid #343a40;
  border-radius: 16px;
  background: #212529;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.strip-card:hover {
  border-color: #0073e6;
  transform: translateY(-3px);
}

.strip-card img {
  width: 108px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
}

.strip-card h3 {
  margin: 0 0 8px;
  color: #f8f9fa;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
}

.strip-card p {
  margin: 0;
  color: #adb5bd;
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.feature-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(0, 115, 230, 0.28);
  border-radius: 24px;
  background: radial-gradient(circle at 20% 10%, rgba(0, 115, 230, 0.28), transparent 34%), #212529;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.feature-panel h2 {
  margin: 14px 0 14px;
  color: #f8f9fa;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.1;
}

.feature-panel p {
  color: #ced4da;
  font-size: 16px;
  line-height: 1.85;
}

.feature-poster {
  align-self: center;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.feature-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.category-tile {
  min-height: 150px;
  padding: 22px;
  border: 1px solid #343a40;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 115, 230, 0.2), rgba(33, 37, 41, 0.96));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  border-color: #0073e6;
  transform: translateY(-4px);
  background: linear-gradient(135deg, rgba(0, 115, 230, 0.32), rgba(33, 37, 41, 0.96));
}

.category-tile strong {
  display: block;
  color: #f8f9fa;
  font-size: 22px;
  font-weight: 900;
}

.category-tile span {
  display: block;
  margin-top: 12px;
  color: #ced4da;
  font-size: 14px;
  line-height: 1.7;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 76px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #343a40;
  border-radius: 16px;
  background: #212529;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: #0073e6;
  transform: translateX(4px);
}

.rank-number {
  color: #80bfff;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  margin: 0 0 6px;
  color: #f8f9fa;
  font-size: 17px;
  font-weight: 850;
}

.rank-desc {
  margin: 0;
  color: #adb5bd;
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.rank-meta {
  color: #ced4da;
  font-size: 13px;
}

.page-hero {
  padding: 48px;
  border: 1px solid rgba(0, 115, 230, 0.25);
  border-radius: 24px;
  background: radial-gradient(circle at 12% 0%, rgba(0, 115, 230, 0.28), transparent 35%), #212529;
}

.page-hero h1 {
  margin: 0 0 12px;
  color: #f8f9fa;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 820px;
  color: #ced4da;
  font-size: 17px;
  line-height: 1.85;
}

.filter-box {
  margin: 28px 0 26px;
}

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid #343a40;
  border-radius: 16px;
  color: #ced4da;
  background: #212529;
}

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

.detail-panel,
.side-panel,
.player-card {
  border: 1px solid #343a40;
  border-radius: 22px;
  background: #212529;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.detail-panel {
  overflow: hidden;
}

.detail-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  padding: 26px;
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

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

.detail-copy h1 {
  margin: 0 0 16px;
  color: #f8f9fa;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-copy .lead {
  margin: 0 0 22px;
  color: #dee2e6;
  font-size: 18px;
  line-height: 1.85;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(0, 115, 230, 0.3);
  border-radius: 999px;
  color: #80bfff;
  background: rgba(0, 115, 230, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.player-card {
  margin: 0 26px 26px;
  padding: 18px;
}

.player-card h2,
.text-block h2,
.side-panel h2 {
  margin: 0 0 16px;
  color: #f8f9fa;
  font-size: 24px;
  font-weight: 900;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0d1117;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0d1117;
  cursor: pointer;
}

.play-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(0, 115, 230, 0.26), rgba(13, 17, 23, 0.7));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .play-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: #0073e6;
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 48px rgba(0, 115, 230, 0.38);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  background: #005ab3;
  transform: scale(1.06);
}

.text-block {
  padding: 0 26px 26px;
}

.text-block p {
  margin: 0 0 18px;
  color: #ced4da;
  font-size: 16px;
  line-height: 1.95;
}

.side-panel {
  padding: 20px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
}

.side-card img {
  width: 76px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.side-card h3 {
  margin: 0 0 6px;
  color: #f8f9fa;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
}

.side-card p {
  margin: 0;
  color: #adb5bd;
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid #343a40;
  background: #0d1117;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(180px, 1fr));
  gap: 30px;
  padding: 42px 0;
}

.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #f8f9fa;
  font-size: 20px;
  font-weight: 900;
}

.footer-text,
.footer-links a {
  color: #adb5bd;
  font-size: 14px;
  line-height: 1.8;
}

.footer-heading {
  margin: 0 0 12px;
  color: #f8f9fa;
  font-weight: 850;
}

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

.footer-links a:hover {
  color: #80bfff;
}

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

  .mobile-toggle {
    display: grid;
    place-items: center;
  }

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

  .feature-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  .home-wrap,
  .page-wrap {
    padding: 18px 0 42px;
  }

  .hero {
    min-height: 620px;
    border-radius: 18px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.48) 0%, rgba(13, 17, 23, 0.96) 72%);
  }

  .hero-content {
    width: min(100% - 32px, 1120px);
    align-self: end;
    padding-bottom: 86px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
  }

  .hero-prev {
    left: 10px;
  }

  .hero-next {
    right: 10px;
  }

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

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

  .feature-panel,
  .page-hero {
    padding: 22px;
    border-radius: 18px;
  }

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

  .rank-meta {
    display: none;
  }

  .detail-top {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .detail-cover {
    max-width: 280px;
  }

  .player-card {
    margin: 0 18px 18px;
    padding: 12px;
  }

  .text-block {
    padding: 0 18px 18px;
  }
}

@media (max-width: 460px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .strip-card {
    grid-template-columns: 88px 1fr;
  }

  .strip-card img {
    width: 88px;
  }

  .button-row {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}
