* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 45%, #fffbeb 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #1f2937;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.28);
  font-size: 15px;
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
}

.site-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
}

.site-search-form input {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  outline: none;
}

.site-search-form input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.site-search-form button {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: #f59e0b;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-search-form button:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  max-height: 520px;
  overflow: auto;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

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

.search-result {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fffbeb;
}

.search-result img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.search-result h3 {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.35;
}

.search-result p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #92400e;
}

.hero-carousel {
  position: relative;
  min-height: 500px;
  height: 70vh;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
  background: linear-gradient(135deg, #78350f, #111827);
}

.hero-slide.is-active > img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.56) 45%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 690px;
  padding: 44px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 13px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-text h1,
.hero-text h2 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-text h2 a {
  color: #fff;
}

.hero-text p {
  margin: 0 0 24px;
  max-width: 620px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags span,
.detail-meta span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #fff;
  background: #f59e0b;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.32);
}

.primary-button:hover {
  background: #d97706;
  transform: translateY(-2px);
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.ghost-button.dark {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.28);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 34px;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.content-section {
  padding: 72px 0;
}

.surface-section {
  background: rgba(255, 255, 255, 0.72);
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: #6b7280;
  max-width: 680px;
}

.section-kicker {
  color: #92400e;
  background: #fef3c7;
}

.section-link {
  color: #92400e;
  background: #fef3c7;
}

.section-link:hover {
  background: #f59e0b;
  color: #fff;
}

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

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

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

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

.movie-card {
  display: block;
  color: inherit;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.14);
}

.poster-card,
.large-card {
  border-radius: 18px;
}

.poster-frame,
.wide-poster,
.row-cover,
.detail-poster,
.category-preview {
  background: linear-gradient(135deg, #fde68a, #fed7aa, #111827);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.poster-frame img,
.wide-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-frame::after,
.wide-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.76));
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after,
.movie-card:hover .wide-poster::after {
  opacity: 1;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 8px;
  padding: 5px 9px;
  color: #fff;
  background: #f59e0b;
  font-size: 12px;
  font-weight: 800;
}

.poster-meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.wide-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hover-title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .hover-title {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.row-body h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.row-body p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta,
.row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta span:first-child {
  color: #d97706;
  font-weight: 800;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.card-tags span,
.tag-cloud span {
  border-radius: 999px;
  padding: 4px 9px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
}

.media-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
}

.row-cover {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border-radius: 12px;
}

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

.row-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 4px 4px 0;
}

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

.category-card {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 58px rgba(17, 24, 39, 0.14);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 8px;
  min-height: 158px;
}

.category-preview img {
  width: 100%;
  height: 142px;
  border-radius: 14px;
  object-fit: cover;
}

.category-info {
  padding: 20px;
}

.category-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.category-info span {
  color: #d97706;
  font-weight: 800;
}

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

.rank-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 42px 56px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 10px 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 20px 38px rgba(17, 24, 39, 0.12);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

.top-rank .rank-number {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.rank-item img {
  width: 56px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.rank-title {
  font-weight: 800;
  min-width: 0;
}

.rank-meta {
  color: #6b7280;
  font-size: 13px;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  color: #fff;
  background: radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.62), transparent 32%), linear-gradient(135deg, #111827 0%, #78350f 100%);
}

.page-hero {
  padding: 78px 0;
}

.small-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  color: #fde68a;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fffbeb;
  color: #111827;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

.movie-card.is-hidden {
  display: none;
}

.empty-state {
  display: none;
  margin-top: 20px;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  color: #92400e;
  background: #fef3c7;
  font-weight: 800;
}

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

.detail-hero {
  padding: 44px 0 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster {
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

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

.detail-copy h1 {
  margin: 14px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-copy p {
  margin: 0 0 22px;
  max-width: 780px;
  color: #fde68a;
  font-size: 18px;
}

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

.player-card,
.article-card,
.related-panel,
.rank-board {
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.09);
}

.player-card {
  padding: 14px;
  margin-bottom: 24px;
}

.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-symbol {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
  font-size: 34px;
  text-indent: 5px;
}

.article-card {
  padding: 30px;
}

.article-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.article-card h2:not(:first-child) {
  margin-top: 28px;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
}

.related-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-panel h2 {
  margin: 0 0 18px;
}

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

.related-panel .media-row {
  grid-template-columns: 92px 1fr;
  box-shadow: none;
  border: 1px solid #f3f4f6;
}

.related-panel .row-cover {
  width: 92px;
  height: 96px;
}

.ranking-page {
  display: grid;
  gap: 28px;
}

.rank-board {
  padding: 24px;
}

.rank-board h2 {
  margin: 0 0 18px;
}

.site-footer {
  margin-top: 40px;
  color: #fffbeb;
  background: linear-gradient(90deg, #78350f, #7c2d12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  padding: 44px 0;
}

.footer-logo {
  color: #fff;
  margin-bottom: 12px;
}

.site-footer p,
.footer-bottom {
  color: #fde68a;
  margin: 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

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

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(253, 230, 138, 0.22);
  padding: 18px 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .site-search-form {
    width: 240px;
  }

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

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

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

  .related-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    flex-wrap: wrap;
    margin-left: 0;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-search-form {
    order: 4;
    width: 100%;
  }

  .hero-arrow {
    display: none;
  }

  .hero-carousel {
    min-height: 560px;
    height: auto;
  }

  .hero-text {
    padding: 82px 0 120px;
  }

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

  .poster-grid,
  .large-grid,
  .row-grid,
  .rank-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .poster-grid,
  .large-grid,
  .row-grid,
  .category-grid,
  .rank-list.compact {
    grid-template-columns: 1fr;
  }

  .media-row {
    grid-template-columns: 92px 1fr;
  }

  .row-cover {
    width: 92px;
    height: 104px;
  }

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

  .rank-meta {
    display: none;
  }

  .category-preview img {
    height: 116px;
  }

  .article-card,
  .related-panel,
  .rank-board {
    padding: 20px;
  }
}
