:root {
  --mint-50: #ecfdf5;
  --mint-100: #d1fae5;
  --mint-500: #10b981;
  --mint-600: #059669;
  --mint-700: #047857;
  --cool-50: #f0f9ff;
  --cool-100: #e0f2fe;
  --cool-500: #0ea5e9;
  --cool-600: #0284c7;
  --pink-50: #fdf2f8;
  --pink-500: #ec4899;
  --orange-500: #f97316;
  --red-500: #ef4444;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--cool-50), var(--white) 22%, var(--gray-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(209, 250, 229, 0.9);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--mint-500), var(--cool-500));
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.28);
}

.brand-text {
  font-size: 1.15rem;
}

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

.nav-link {
  padding: 10px 14px;
  color: var(--gray-700);
  border-radius: 999px;
  font-weight: 700;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--mint-700);
  background: var(--mint-50);
}

.header-search {
  display: flex;
  width: 300px;
  padding: 5px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  color: var(--gray-900);
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search button,
.large-search button,
.search-hero-card button {
  flex: 0 0 auto;
  padding: 9px 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--mint-500), var(--cool-500));
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--mint-50);
  border: 0;
  border-radius: 14px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--mint-700);
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
}

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

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 16px 0;
}

.mobile-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-cats a {
  padding: 8px 12px;
  color: var(--mint-700);
  background: var(--mint-50);
  border-radius: 999px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  padding: 54px 0 40px;
  background:
    radial-gradient(circle at 18% 8%, rgba(14, 165, 233, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(236, 72, 153, 0.12), transparent 32%),
    linear-gradient(135deg, var(--cool-100), var(--mint-50) 56%, var(--white));
}

.hero-frame {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.78fr);
  gap: 42px;
  align-items: center;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint-700);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.detail-line {
  max-width: 720px;
  color: var(--gray-700);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span {
  padding: 7px 12px;
  color: var(--mint-700);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--mint-500), var(--cool-500));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.28);
}

.ghost-btn {
  color: var(--mint-700);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.top-rank:hover {
  transform: translateY(-4px);
}

.hero-poster {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 12px solid var(--white);
  border-radius: 34px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.48));
  z-index: 1;
}

.hero-play,
.poster-play {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(16, 185, 129, 0.92);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
}

.hero-play {
  right: 24px;
  bottom: 24px;
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
}

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.hero-controls button {
  border: 0;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  color: var(--mint-700);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
  font-size: 1.7rem;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: var(--gray-200);
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--mint-500), var(--cool-500));
}

.quick-search-section {
  margin-top: -22px;
  position: relative;
  z-index: 5;
}

.search-hero-card,
.filter-panel,
.content-card,
.category-overview-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.search-hero-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.search-hero-card h2 {
  margin: 0;
  font-size: 1.5rem;
}

.search-hero-card p {
  margin: 0;
  color: var(--gray-500);
}

.search-hero-card div,
.large-search {
  display: flex;
  gap: 10px;
}

.search-hero-card input,
.large-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
}

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

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

.section-title span {
  color: var(--mint-700);
  font-weight: 900;
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-title a,
.text-link {
  color: var(--mint-700);
  font-weight: 900;
}

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

.category-card {
  display: grid;
  min-height: 176px;
  padding: 22px;
  background: linear-gradient(135deg, var(--white), var(--mint-50));
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card span {
  color: var(--mint-700);
  font-weight: 900;
}

.category-card strong {
  align-self: end;
  display: block;
  font-size: 1.28rem;
}

.category-card em {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.6;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 20px;
}

.filter-title {
  margin-bottom: 12px;
  color: var(--gray-900);
  font-weight: 900;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 14px;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--gray-500);
  font-size: 0.88rem;
  font-weight: 800;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
}

.filter-empty {
  display: none;
  margin: 16px 0 0;
  color: var(--red-500);
  font-weight: 700;
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cool-100), var(--mint-100));
}

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

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

.quality-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--pink-500));
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.poster-play {
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h2 {
  margin: 0 0 7px;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card h2 a:hover {
  color: var(--mint-700);
}

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--gray-500);
  font-size: 0.86rem;
  line-height: 1.6;
}

.movie-desc {
  margin-top: 8px;
  color: var(--gray-700);
}

.tag-row {
  margin-top: 10px;
}

.tag-row span {
  padding: 4px 8px;
  background: var(--mint-50);
  font-size: 0.76rem;
}

.featured-band {
  margin: 26px 0;
  padding: 54px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #064e3b, #0f766e 52%, #0c4a6e);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.band-grid h2 {
  margin: 14px 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.band-grid p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 10px;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease;
}

.compact-ranks .rank-card {
  background: rgba(255, 255, 255, 0.92);
}

.rank-card img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-card strong,
.rank-card em {
  display: block;
}

.rank-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-card em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 0.86rem;
  font-style: normal;
}

.rank-index {
  position: absolute;
  left: -8px;
  top: -8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--red-500));
  border: 3px solid var(--white);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.8rem;
}

.page-hero,
.detail-hero {
  padding: 62px 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(16, 185, 129, 0.18), transparent 30%),
    linear-gradient(135deg, var(--cool-100), var(--mint-50), var(--white));
}

.page-hero h1 {
  margin-bottom: 12px;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

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

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.category-overview-card p {
  color: var(--gray-500);
  line-height: 1.75;
}

.top-rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.top-rank {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  color: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease;
}

.top-rank img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-rank::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.top-rank span {
  align-self: start;
  padding: 7px 12px;
  background: rgba(16, 185, 129, 0.88);
  border-radius: 999px;
  font-weight: 900;
}

.top-rank h2 {
  margin: 12px 0 8px;
  font-size: 1.6rem;
}

.top-rank p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.large-search {
  max-width: 720px;
  margin-top: 24px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.detail-poster-card {
  padding: 10px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--mint-700);
  font-weight: 800;
}

.detail-copy h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

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

.detail-meta div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(16, 185, 129, 0.13);
  border-radius: 16px;
}

.detail-meta dt {
  margin-bottom: 5px;
  color: var(--gray-500);
  font-size: 0.8rem;
  font-weight: 800;
}

.detail-meta dd {
  margin: 0;
  font-weight: 900;
}

.player-section {
  padding-top: 44px;
}

.watch-panel {
  background: #050505;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  border: 0;
  z-index: 4;
}

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

.play-orb {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  background: linear-gradient(135deg, var(--mint-500), var(--cool-500));
  border: 4px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  font-size: 2rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: 1.08rem;
}

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

.content-card {
  padding: 28px;
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.content-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.02rem;
  line-height: 1.9;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0 0;
  color: rgba(255, 255, 255, 0.82);
  background: #06261f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 36px;
}

.footer-brand {
  color: var(--white);
  font-size: 1.3rem;
}

.site-footer p {
  max-width: 460px;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.footer-links a:hover {
  color: var(--white);
  background: rgba(16, 185, 129, 0.28);
}

.footer-bottom {
  margin-top: 38px;
  padding: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

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

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

  .hero-frame {
    min-height: 760px;
  }

  .hero-slide,
  .band-grid,
  .detail-hero-grid,
  .detail-content,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }

  .filter-controls,
  .detail-meta,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .hero-carousel,
  .page-hero,
  .detail-hero {
    padding-top: 34px;
  }

  .hero-frame {
    min-height: 720px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.45rem;
  }

  .movie-grid,
  .category-grid,
  .full-rank-list {
    grid-template-columns: 1fr;
  }

  .search-hero-card div,
  .large-search {
    display: grid;
  }

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