* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 38%, #f8fafc 100%);
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #d97706, #ea580c);
  box-shadow: 0 8px 18px rgba(217, 119, 6, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #d97706, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
  color: #374151;
}

.desktop-nav a,
.desktop-nav button {
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: inherit;
  cursor: pointer;
}

.desktop-nav a:hover,
.desktop-nav button:hover,
.desktop-nav .active {
  color: #d97706;
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 200px;
  padding: 8px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown-panel a:hover {
  background: #fffbeb;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 11px 16px;
  background: white;
  outline: none;
}

.nav-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.nav-search button,
.primary-button,
.ghost-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 750;
  transition: 0.2s ease;
}

.nav-search button,
.primary-button {
  border: 0;
  color: white;
  background: #d97706;
  padding: 11px 18px;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.22);
}

.nav-search button:hover,
.primary-button:hover {
  background: #b45309;
  transform: translateY(-1px) scale(1.01);
}

.ghost-button {
  padding: 11px 18px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-nav a {
  padding: 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #92400e;
  font-weight: 700;
}

.hero-shell {
  padding: 32px 0 18px;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
  background: linear-gradient(135deg, #111827, #92400e);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img,
.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.detail-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 5vw, 56px);
  right: clamp(24px, 5vw, 56px);
  bottom: clamp(32px, 7vw, 70px);
  max-width: 780px;
  color: white;
}

.eyebrow {
  margin: 0 0 10px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.inner-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-meta,
.hero-brief,
.detail-meta,
.detail-one-line {
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.hero-brief {
  max-width: 680px;
  margin-bottom: 28px;
}

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

.hero-controls {
  position: absolute;
  right: 28px;
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 30px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-controls button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 26px;
  display: flex;
  gap: 8px;
}

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

.hero-dot.active {
  width: 28px;
  background: #f59e0b;
}

.section-block {
  padding: 58px 0;
}

.soft-panel {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(4px);
}

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

.compact-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-more {
  color: #d97706;
  white-space: nowrap;
}

.section-more:hover {
  color: #b45309;
}

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

.small-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 64px;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.09);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #fbbf24, #92400e 36%, #111827 100%);
}

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

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

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.86);
  border-radius: 999px;
  color: white;
  background: #d97706;
  opacity: 0;
  transition: 0.24s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #d97706;
}

.card-meta,
.card-brief {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.65;
}

.card-brief {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 8px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags a,
.card-tags span,
.tag-list span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 700;
}

.inner-hero {
  padding: 74px 0;
  color: white;
  background:
    radial-gradient(circle at 75% 20%, rgba(245, 158, 11, 0.42), transparent 30%),
    linear-gradient(135deg, #111827, #78350f 58%, #0f172a);
}

.inner-hero p {
  max-width: 760px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 48px 0 72px;
}

.category-overview-card {
  padding: 24px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.category-overview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 30px;
}

.category-overview-head a {
  color: #d97706;
  font-weight: 800;
}

.mini-poster-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.mini-poster-row a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #fef3c7;
}

.mini-poster-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0;
}

.filter-bar input {
  flex: 1;
  min-width: 220px;
}

.filter-count {
  color: #92400e;
  font-weight: 800;
}

.rank-panel {
  padding: 36px 0 72px;
}

.ranking-featured {
  padding-top: 46px;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 50px 72px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.rank-index {
  color: #d97706;
  font-weight: 900;
  font-size: 24px;
}

.rank-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #fef3c7;
}

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

.rank-info a {
  font-weight: 800;
}

.rank-info a:hover {
  color: #d97706;
}

.rank-info p {
  margin: 7px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: white;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 58px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 38px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  background: #fef3c7;
}

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

.detail-main {
  display: grid;
  gap: 24px;
  padding: 42px 0 72px;
}

.player-card,
.content-card {
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.09);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(217, 119, 6, 0.92);
  font-size: 34px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.play-overlay.hidden {
  display: none;
}

.player-source-line {
  padding: 16px 22px;
  color: #6b7280;
  font-weight: 700;
}

.content-card {
  padding: 26px;
}

.content-card h2,
.related-section h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.95;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}

.info-grid div {
  padding: 16px;
  border-radius: 16px;
  background: #fffbeb;
}

.info-grid dt {
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.info-grid dd {
  margin: 6px 0 0;
  color: #111827;
  font-weight: 750;
}

.related-section {
  margin-top: 18px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(180deg, #0f172a, #020617);
}

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

.footer-grid p {
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: white;
}

.footer-grid a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.footer-grid a:hover {
  color: #f59e0b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 16px;
  color: #9ca3af;
  text-align: center;
}

.hidden-by-filter {
  display: none !important;
}

.image-missing img {
  opacity: 0;
}

@media (max-width: 1180px) {
  .poster-grid,
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .hero-carousel {
    height: 520px;
  }

  .hero-controls {
    right: 18px;
    bottom: 18px;
  }

  .hero-dots {
    left: 28px;
    bottom: 18px;
  }

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

  .category-overview-grid,
  .rank-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    grid-template-columns: 220px 1fr;
    align-items: center;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .brand-name {
    font-size: 20px;
  }

  .hero-shell {
    padding-top: 18px;
  }

  .hero-carousel {
    height: 470px;
    border-radius: 20px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 54px;
  }

  .hero-meta,
  .hero-brief,
  .inner-hero p,
  .detail-one-line,
  .detail-meta {
    font-size: 15px;
  }

  .hero-controls {
    display: none;
  }

  .section-heading,
  .filter-bar,
  .category-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .card-body {
    padding: 12px;
  }

  .card-body h3 {
    font-size: 16px;
  }

  .detail-hero {
    min-height: auto;
  }

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

  .detail-poster {
    width: min(260px, 75vw);
  }

  .detail-info h1 {
    font-size: 34px;
  }

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

  .rank-row {
    grid-template-columns: 42px 58px 1fr;
  }
}
