* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 48%, #ecfdf5 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #facc15 0%, #fde047 48%, #86efac 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-weight: 900;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ca8a04;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.22);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

.logo-text {
  font-size: clamp(20px, 2vw, 28px);
}

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

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #374151;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ca8a04;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(202, 138, 4, 0.18);
  transform: translateY(-1px);
}

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

.top-search input,
.search-page-form input,
.filter-panel input,
.filter-panel select {
  border: 2px solid rgba(255, 255, 255, 0.82);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #1f2937;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-search input {
  width: min(260px, 24vw);
  padding: 10px 16px;
}

.top-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #1f2937;
  background: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.top-search input:focus,
.search-page-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  background: #ffffff;
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.24);
}

.mobile-nav {
  display: none;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.mobile-link {
  flex: 1;
  padding: 10px 6px;
  text-align: center;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.mobile-link.active {
  color: #ca8a04;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: clamp(72px, 11vh, 120px);
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #1f2937;
  background: #facc15;
  font-weight: 900;
  box-shadow: 0 18px 48px rgba(250, 204, 21, 0.28);
}

.hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.54);
}

.hero p {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

.hero-actions,
.card-bottom,
.section-topline,
.detail-tags,
.detail-meta,
.detail-chip-row,
.compact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.primary-button {
  padding: 14px 28px;
  color: #111827;
  background: #facc15;
  box-shadow: 0 18px 48px rgba(250, 204, 21, 0.32);
}

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

.primary-button.light {
  background: #ffffff;
  color: #ca8a04;
}

.ghost-button {
  padding: 13px 26px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section,
.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.wide-section {
  padding-top: 48px;
}

.section-topline {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.section-line {
  width: 8px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, #facc15, #ca8a04);
}

.section-heading.blue .section-line {
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.section-heading.purple .section-line {
  background: linear-gradient(180deg, #a855f7, #6366f1);
}

.section-heading.red .section-line {
  background: linear-gradient(180deg, #f97316, #ef4444);
}

.more-link {
  color: #ca8a04;
  font-weight: 900;
}

.category-grid,
.movie-grid,
.featured-grid,
.overview-grid {
  display: grid;
  gap: 24px;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: #111827;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover,
.movie-card:hover,
.overview-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
}

.category-tile::before,
.overview-card::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.86), rgba(34, 197, 94, 0.78));
  z-index: 1;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.category-tile:hover img {
  opacity: 0.48;
  transform: scale(1.08);
}

.category-icon,
.category-tile strong,
.category-tile small {
  position: relative;
  z-index: 2;
}

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.category-tile strong {
  font-size: 22px;
  font-weight: 950;
}

.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x proximity;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  scroll-snap-align: start;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fde047, #86efac);
}

.large-card .poster-link {
  aspect-ratio: 16 / 12;
}

.poster-link img,
.compact-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img,
.compact-card:hover .compact-cover img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  background: #facc15;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 18px;
}

.card-tags,
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.card-tags span,
.detail-tags span,
.detail-tags a,
.detail-chip-row span,
.compact-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 800;
}

.card-tags span {
  padding: 5px 9px;
}

.detail-tags span,
.detail-tags a,
.detail-chip-row span {
  padding: 8px 12px;
}

.detail-tags a {
  color: #1f2937;
  background: linear-gradient(90deg, #facc15, #fde047);
}

.card-body h3,
.compact-info h3 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 950;
}

.compact-info h3 {
  margin-top: 0;
  font-size: 17px;
}

.card-body p,
.compact-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-bottom {
  justify-content: space-between;
  margin-top: 18px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.card-bottom a {
  color: #ca8a04;
}

.ranking-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.13);
}

.full-ranking {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-card {
  display: grid;
  grid-template-columns: auto 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #facc15, #ca8a04);
  font-weight: 950;
}

.compact-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #fde047, #86efac);
}

.compact-meta span {
  padding: 4px 8px;
}

.callout-panel {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto 72px;
  padding: clamp(32px, 6vw, 62px);
  border-radius: 34px;
  text-align: center;
  background: linear-gradient(90deg, #facc15, #fde047, #86efac);
  box-shadow: 0 28px 70px rgba(202, 138, 4, 0.22);
}

.callout-panel h2 {
  margin: 0 0 14px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 950;
}

.callout-panel p {
  max-width: 560px;
  margin: 0 auto 26px;
  color: #374151;
  line-height: 1.8;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #1f2937;
  background: linear-gradient(90deg, #facc15, #fde047, #86efac);
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 84px) 0;
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 740px;
  margin: 0;
  color: #374151;
  font-size: 18px;
  line-height: 1.8;
}

.ranking-hero {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316, #facc15);
}

.ranking-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 170px));
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  padding: 12px 14px;
  border-color: #e5e7eb;
  background: #ffffff;
}

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

.overview-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.overview-card::before {
  height: 150px;
  bottom: auto;
}

.overview-card a {
  position: relative;
  z-index: 2;
  display: block;
}

.overview-images {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 18px 0;
}

.overview-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.overview-body {
  padding: 22px;
}

.overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

.overview-body p {
  margin: 0 0 18px;
  color: #6b7280;
  line-height: 1.7;
}

.overview-body span {
  color: #ca8a04;
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #6b7280;
  font-weight: 800;
}

.breadcrumb a {
  color: #ca8a04;
}

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

.player-card,
.movie-detail-card,
.side-panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.13);
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.video-player {
  position: relative;
  overflow: hidden;
  background: #000000;
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #111827;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #facc15;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  font-size: 34px;
  transform: translateX(3px);
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.movie-detail-card,
.side-panel {
  padding: 26px;
}

.movie-detail-card h1 {
  margin: 18px 0 12px;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 18px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta {
  color: #6b7280;
  font-weight: 800;
  margin-bottom: 18px;
}

.detail-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.detail-section h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.detail-section p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.review-box {
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, #fffbeb, #ecfdf5);
}

.detail-side {
  position: sticky;
  top: 96px;
}

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

.side-list .compact-card {
  grid-template-columns: 88px minmax(0, 1fr);
}

.side-list .rank-number {
  display: none;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-page-form input {
  padding: 14px 18px;
  border-color: #e5e7eb;
  background: #ffffff;
}

.search-status {
  min-height: 28px;
  margin-bottom: 24px;
  color: #6b7280;
  font-weight: 800;
}

.is-hidden-card {
  display: none !important;
}

.site-footer {
  margin-top: 40px;
  color: #e5e7eb;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

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

.footer-brand h2,
.footer-group h3 {
  margin: 0 0 14px;
  color: #facc15;
  font-weight: 950;
}

.footer-brand p,
.footer-group p,
.footer-group a {
  color: #d1d5db;
  line-height: 1.8;
}

.footer-group a {
  display: block;
  margin: 4px 0;
}

.footer-group a:hover {
  color: #facc15;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

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

  .mobile-nav {
    display: flex;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .overview-grid,
  .full-ranking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-side {
    position: static;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .top-search {
    width: 100%;
  }

  .top-search input {
    width: 100%;
    flex: 1;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .overview-grid,
  .full-ranking {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .search-page-form {
    grid-template-columns: 1fr;
  }

  .compact-card,
  .side-list .compact-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .rank-number {
    display: none;
  }

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