* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #233d26;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #4a7c54, #e88f1a);
  box-shadow: 0 12px 30px rgba(74, 124, 84, 0.28);
}

.logo-text {
  font-size: 20px;
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #4b5563;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #305235;
  background: #f4f7f5;
}

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

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #233d26;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  flex-direction: column;
  align-items: stretch;
}

.mobile-nav.open {
  display: flex;
}

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

.hero-track {
  position: absolute;
  inset: 0;
}

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

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.24) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 64vh;
  margin: 0 auto;
  padding: 78px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
  gap: 36px;
  align-items: end;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fef7ed;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: #4a7c54;
  box-shadow: 0 14px 32px rgba(74, 124, 84, 0.32);
}

.btn-primary:hover {
  background: #3d6744;
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.btn-light {
  color: #233d26;
  background: #ffffff;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

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

.hero-mini-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.24);
}

.hero-mini-card img {
  height: 82px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-mini-card span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.section {
  margin-top: 56px;
}

.section:first-child {
  margin-top: 0;
}

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

.section-heading p {
  margin: 0 0 6px;
  color: #4a7c54;
  font-weight: 800;
}

.section-heading h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-link {
  flex: 0 0 auto;
  color: #3d6744;
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.play-chip {
  left: auto;
  top: auto;
  right: 12px;
  bottom: 12px;
  background: #e88f1a;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.movie-card h3 {
  margin: 8px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #3d6744;
}

.movie-card p {
  min-height: 48px;
  margin: 0;
  color: #4b5563;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #305235;
  background: #f4f7f5;
  font-size: 12px;
  font-weight: 700;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #4a7c54, #233d26);
  box-shadow: 0 18px 42px rgba(35, 61, 38, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(even) {
  background: linear-gradient(135deg, #e88f1a, #4a7c54);
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(35, 61, 38, 0.28);
}

.category-tile strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.category-tile span,
.category-tile p {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  background: linear-gradient(135deg, #233d26 0%, #4a7c54 55%, #e88f1a 100%);
  color: #ffffff;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

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

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  color: #111827;
  background: #ffffff;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #4a7c54;
  box-shadow: 0 0 0 4px rgba(74, 124, 84, 0.12);
}

.result-count {
  margin: 0 0 18px;
  color: #4b5563;
  font-weight: 700;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 76px 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.rank-no {
  color: #e88f1a;
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-item img {
  height: 84px;
  object-fit: cover;
  border-radius: 16px;
  background: #e5e7eb;
}

.rank-item h3 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 20px;
}

.rank-item p {
  margin: 0;
  color: #4b5563;
}

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

.player-shell {
  overflow: hidden;
  border-radius: 28px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
}

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

.player-button {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: #4a7c54;
  box-shadow: 0 18px 38px rgba(74, 124, 84, 0.42);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.player-caption {
  padding: 18px 20px;
  color: #d1d5db;
  background: #111827;
}

.content-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 24px;
}

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

.content-card p + p {
  margin-top: 14px;
}

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

.meta-box {
  padding: 14px;
  border-radius: 18px;
  background: #f9fafb;
}

.meta-box span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.meta-box strong {
  display: block;
  margin-top: 4px;
  color: #111827;
}

.detail-cover {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 18px;
  background: #e5e7eb;
}

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

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

.related-card {
  overflow: hidden;
  border-radius: 18px;
  background: #f9fafb;
}

.related-card img {
  height: 112px;
  object-fit: cover;
  background: #e5e7eb;
}

.related-card span {
  display: block;
  padding: 9px 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.empty-state {
  display: none;
  padding: 34px;
  border-radius: 24px;
  text-align: center;
  color: #4b5563;
  background: #ffffff;
}

.empty-state.show {
  display: block;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

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

.footer-logo {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 20px;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #5d9b69;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .mobile-toggle {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-panel {
    display: none;
  }

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

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

  .rank-item {
    grid-template-columns: 52px 86px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 2 / -1;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .logo-text {
    font-size: 17px;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    min-height: 72vh;
    padding: 46px 16px 54px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .main-wrap,
  .page-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .movie-grid,
  .category-grid,
  .related-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

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

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

  .rank-no {
    text-align: left;
  }

  .rank-item img {
    width: 100%;
    height: 180px;
  }

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