* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0f172a;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.96);
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  font-size: 14px;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.25);
}

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

.desktop-nav a,
.mobile-panel a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
  color: #ffffff;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 230px;
}

.search-form input,
.list-tools input,
.list-tools select {
  width: 100%;
  border: 1px solid #334155;
  border-radius: 12px;
  background: #1e293b;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form input {
  height: 40px;
  padding: 0 42px 0 16px;
}

.search-form input:focus,
.list-tools input:focus,
.list-tools select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}

.search-form button {
  position: absolute;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.search-form button:hover {
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  cursor: pointer;
}

.mobile-panel {
  border-top: 1px solid #1e293b;
  padding: 14px 24px 22px;
  background: #0f172a;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
}

.mobile-panel .search-form {
  margin-top: 12px;
}

.page-main {
  min-height: 100vh;
  padding-top: 64px;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.hero-section:hover .hero-image {
  transform: scale(1.06);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: 980px;
  padding: 48px clamp(24px, 7vw, 96px);
}

.hero-kicker,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-kicker span,
.detail-meta span,
.eyebrow {
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
}

.hero-kicker em {
  color: #cbd5e1;
  font-style: normal;
  font-size: 14px;
}

.hero-content h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h2 {
  margin: 0 0 16px;
  color: #f8fafc;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

.hero-content p {
  max-width: 820px;
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 19px;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  background: #fbbf24;
  color: #0f172a;
}

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

.primary-btn:hover {
  background: #fcd34d;
}

.ghost-btn {
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.48);
  color: #f8fafc;
}

.ghost-btn:hover {
  border-color: rgba(251, 191, 36, 0.6);
  color: #fbbf24;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 10px;
}

.content-wrap,
.detail-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-block {
  margin-bottom: 72px;
}

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

.section-head h2,
.text-panel h2,
.site-footer h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.section-head a {
  color: #fbbf24;
  font-weight: 700;
}

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

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

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

.poster-card,
.landscape-card,
.movie-card-wide,
.rank-item {
  color: inherit;
}

.poster-cover,
.landscape-cover,
.wide-cover,
.rank-cover,
.detail-cover,
.category-tile {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.poster-cover {
  display: block;
  aspect-ratio: 3 / 4;
  margin-bottom: 12px;
  border-radius: 14px;
}

.poster-cover img,
.landscape-cover img,
.wide-cover img,
.rank-cover img,
.detail-cover img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.poster-card:hover img,
.landscape-card:hover img,
.movie-card-wide:hover img,
.rank-item:hover img,
.category-tile:hover img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.18), transparent);
  color: #ffffff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.poster-card:hover .poster-shade {
  opacity: 1;
  transform: translateY(0);
}

.poster-shade span,
.wide-desc,
.rank-body span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.poster-shade span {
  -webkit-line-clamp: 3;
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
}

.poster-card strong,
.landscape-card strong {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.poster-card span:last-child,
.landscape-card span:last-child {
  color: #94a3b8;
  font-size: 14px;
}

.poster-card:hover strong,
.landscape-card:hover strong,
.movie-card-wide:hover .wide-title,
.rank-item:hover strong {
  color: #fbbf24;
}

.scroll-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scrollbar-width: thin;
}

.scroll-row::-webkit-scrollbar {
  height: 8px;
}

.scroll-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #334155;
}

.landscape-card {
  flex: 0 0 288px;
}

.landscape-cover {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 12px;
  border-radius: 14px;
}

.play-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.54);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.movie-card-wide:hover,
.rank-item:hover {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.wide-cover {
  min-height: 230px;
}

.wide-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

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

.card-meta strong {
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  font-size: 12px;
  padding: 4px 8px;
}

.card-meta em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
}

.wide-title {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.35;
}

.wide-desc {
  color: #94a3b8;
  -webkit-line-clamp: 3;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 90px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.48);
  padding: 12px;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rank-index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.16);
  color: #fbbf24;
  font-weight: 900;
}

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

.rank-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.rank-body strong {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

.rank-body em {
  color: #fbbf24;
  font-style: normal;
  font-size: 13px;
}

.rank-body span {
  color: #94a3b8;
  -webkit-line-clamp: 2;
}

.inner-main {
  background: radial-gradient(circle at top right, rgba(251, 191, 36, 0.1), transparent 360px), #0f172a;
}

.inner-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 20px;
}

.inner-hero h1 {
  margin: 14px 0 12px;
  color: #ffffff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 780px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.compact-actions {
  margin-top: 24px;
}

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

.category-tile {
  min-height: 260px;
  border-radius: 20px;
  background: #111827;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.25));
}

.category-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 24px;
}

.category-body strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 8px;
}

.category-body em {
  display: block;
  color: #cbd5e1;
  font-style: normal;
}

.list-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  margin-bottom: 28px;
}

.list-tools input,
.list-tools select {
  height: 46px;
  padding: 0 16px;
}

.search-status {
  margin-bottom: 20px;
  color: #fbbf24;
  font-weight: 700;
}

.empty-state {
  border: 1px solid rgba(51, 65, 85, 0.64);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  color: #cbd5e1;
  padding: 38px;
  text-align: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #fbbf24;
}

.player-section {
  margin-bottom: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.72));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #fbbf24;
  color: #0f172a;
  font-size: 30px;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.4);
}

.detail-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.54);
  padding: 24px;
  margin-bottom: 28px;
}

.detail-cover {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.detail-info h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.lead-text {
  color: #cbd5e1;
  font-size: 18px;
  margin: 0 0 22px;
}

.text-panel {
  border: 1px solid rgba(51, 65, 85, 0.62);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.48);
  padding: 28px;
  margin-bottom: 28px;
}

.text-panel p {
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.85;
}

.site-footer {
  border-top: 1px solid #1e293b;
  background: #0f172a;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
}

.footer-brand {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 430px;
  margin: 0;
  color: #94a3b8;
}

.site-footer h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.copyright {
  border-top: 1px solid #1e293b;
  padding: 20px 24px;
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-wrap > .search-form {
    display: none;
  }

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

  .wide-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .hero-section {
    height: 560px;
  }

  .hero-content {
    padding: 34px 20px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .content-wrap,
  .detail-wrap,
  .inner-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

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

  .movie-card-wide,
  .detail-card {
    grid-template-columns: 1fr;
  }

  .wide-cover {
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

  .list-tools {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 42px 74px 1fr;
    gap: 12px;
  }

  .rank-cover {
    width: 74px;
  }

  .rank-body span {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    padding: 36px 16px;
  }
}

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

  .poster-card strong {
    font-size: 15px;
  }

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

  .rank-cover {
    display: none;
  }
}
