:root {
  --orange: #f97316;
  --pink: #ec4899;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --slate: #0f172a;
  --dark: #1f2937;
  --muted: #64748b;
  --soft: #fff7ed;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--dark);
  background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 55%, #fdf2f8 100%);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.22);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 22px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a,
.footer-grid a {
  color: #475569;
  transition: color 0.25s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-grid a:hover {
  color: var(--orange);
}

.header-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.header-search input,
.mobile-search input {
  width: 230px;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  color: var(--dark);
  background: transparent;
}

.header-search button,
.mobile-search button,
.search-strip button {
  border: 0;
  color: #ffffff;
  padding: 11px 18px;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--dark);
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel nav {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.mobile-search {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

main {
  min-height: 65vh;
}

.hero-wrap {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.hero-carousel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: var(--slate);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  padding: 64px;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-content {
  max-width: 660px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.hero-tags,
.detail-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.btn-primary,
.btn-ghost,
.section-link,
.category-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  padding: 14px 28px;
  color: #ffffff;
  border: 0;
  background: linear-gradient(90deg, var(--orange), var(--pink));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
  cursor: pointer;
}

.btn-primary:hover,
.btn-ghost:hover,
.category-copy span:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 13px 26px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-ghost.dark {
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.25);
  background: #ffffff;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  cursor: pointer;
  z-index: 3;
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

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

.hero-board,
.rank-card,
.detail-side {
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-board-title,
.rank-card h2,
.detail-side h2,
.rank-page-list h2 {
  margin: 0 0 18px;
  font-size: 24px;
  color: var(--slate);
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--pink));
  font-weight: 800;
}

.rank-row img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--dark);
  font-size: 15px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-score,
.rating {
  color: var(--amber);
  font-weight: 800;
}

.search-strip,
.content-section,
.page-main,
.rank-page-list {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.search-strip {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: center;
  border-radius: 30px;
  padding-top: 28px;
  padding-bottom: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-strip h2 {
  margin: 0;
  font-size: 28px;
}

.search-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

.search-strip form {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.search-strip input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 15px 18px;
}

.content-section {
  margin-top: 54px;
}

.soft-bg,
.category-band {
  border-radius: 34px;
  padding-top: 40px;
  padding-bottom: 42px;
  background: linear-gradient(135deg, rgba(255, 237, 213, 0.72), rgba(252, 231, 243, 0.72));
}

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

.section-head h2 {
  margin: 0;
  color: var(--slate);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-link,
.category-copy span {
  color: var(--orange);
  font-weight: 800;
}

.band-desc {
  margin: -12px 0 22px;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent);
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  min-height: 48px;
  color: var(--dark);
  font-size: 17px;
  line-height: 1.4;
}

.card-body h3 a:hover {
  color: var(--orange);
}

.card-body p {
  margin: 0 0 12px;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.card-meta a {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}

.page-main {
  padding-top: 34px;
  padding-bottom: 40px;
}

.page-hero {
  border-radius: 34px;
  padding: 54px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.82), transparent 34%), linear-gradient(135deg, var(--slate), #4c1d95 50%, #be185d);
  box-shadow: var(--shadow);
}

.compact-hero,
.category-hero,
.rank-hero {
  min-height: 260px;
}

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

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

.category-card a {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  overflow: hidden;
  border-radius: 28px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}

.category-card a:hover {
  transform: translateY(-4px);
}

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

.category-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.category-copy h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.category-copy p {
  margin: 0 0 18px;
  color: var(--muted);
}

.filter-panel {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(120px, 1fr));
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 11px 12px;
  color: var(--dark);
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--orange);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #020617;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.video-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--orange);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.08));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.player-start span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--orange);
  font-size: 38px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.player-card.playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-copy {
  border-radius: 30px;
  padding: 38px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-copy .eyebrow,
.page-hero .eyebrow {
  color: #fff7ed;
}

.detail-copy .eyebrow {
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.22);
  background: #fff7ed;
}

.detail-copy h1 {
  color: var(--slate);
  font-size: clamp(32px, 4vw, 54px);
}

.one-line {
  margin: 18px 0 0;
  color: #475569;
  font-size: 18px;
}

.detail-tags span {
  color: var(--orange);
  border-color: rgba(249, 115, 22, 0.22);
  background: #fff7ed;
}

.detail-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}

.detail-article {
  border-radius: 28px;
  padding: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-article h2 {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 26px;
}

.detail-article p {
  margin: 0 0 26px;
  color: #475569;
  font-size: 17px;
}

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

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  color: var(--dark);
  text-align: right;
}

.rank-page-list {
  margin-top: 42px;
}

.rank-list-full {
  border-radius: 28px;
  padding: 18px 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.site-footer {
  margin-top: 70px;
  padding: 54px 24px 28px;
  background: linear-gradient(180deg, #ffffff, #fff7ed);
  border-top: 1px solid rgba(229, 231, 235, 0.78);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 220px minmax(0, 1fr);
  gap: 36px;
}

.footer-grid h3 {
  margin: 0 0 16px;
  color: var(--slate);
}

.footer-grid p {
  margin: 16px 0 0;
  max-width: 460px;
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-links {
  columns: 2;
}

.footer-bottom {
  max-width: 1280px;
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .header-search {
    margin-left: auto;
  }

  .hero-wrap,
  .two-column,
  .detail-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-board,
  .rank-card,
  .detail-side {
    order: initial;
  }

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

  .category-overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 14px 16px;
  }

  .header-search {
    display: none;
  }

  .hero-wrap,
  .search-strip,
  .content-section,
  .page-main,
  .rank-page-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-carousel {
    min-height: 520px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 38px 26px;
  }

  .hero-control {
    display: none;
  }

  .search-strip {
    grid-template-columns: 1fr;
  }

  .search-strip form {
    flex-direction: column;
    border-radius: 20px;
  }

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

  .category-card a {
    grid-template-columns: 1fr;
  }

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

  .filter-keyword {
    grid-column: 1 / -1;
  }

  .page-hero,
  .detail-copy,
  .detail-article {
    padding: 30px;
    border-radius: 24px;
  }

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

@media (max-width: 540px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 500px;
  }

  .movie-grid,
  .compact-grid,
  .small-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .card-body h3,
  .card-body p {
    min-height: auto;
  }

  .rank-row {
    grid-template-columns: 30px 56px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .video-player,
  .player-card {
    min-height: 280px;
  }
}
