:root {
  color-scheme: light;
  --teal: #0d9488;
  --cyan: #0891b2;
  --emerald: #059669;
  --amber: #f59e0b;
  --rose: #e11d48;
  --slate: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: #f8fafc;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0d9488, #0891b2);
  box-shadow: 0 12px 32px rgba(8, 145, 178, 0.25);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #78350f;
  background: #fbbf24;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.35);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.desktop-nav a,
.nav-dropdown > button {
  color: #ffffff;
  border: 0;
  background: transparent;
  padding: 8px 0;
}

.desktop-nav a:hover,
.nav-dropdown > button:hover {
  color: #fde68a;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 220px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  color: var(--gray-700);
  padding: 9px 12px;
  border-radius: 10px;
}

.nav-dropdown-panel a:hover {
  color: var(--teal);
  background: #ecfeff;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-panel input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--gray-900);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.header-search input {
  width: 220px;
  padding: 10px 16px;
}

.header-search button,
.mobile-panel button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: #0f766e;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 12px;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

.mobile-panel input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
}

.mobile-panel a {
  padding: 8px 0;
  font-weight: 700;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(90deg, #f97316, #ec4899, #e11d48);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.42), rgba(225, 29, 72, 0.45)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(251, 191, 36, 0.32), transparent 35%), rgba(15, 23, 42, 0.18);
}

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

.hero-copy {
  max-width: 690px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #fef3c7;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 23px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #be123c;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.22);
}

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

.hero-dot.is-active {
  background: #ffffff;
}

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

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

.section-heading h2,
.ranking-copy h2 {
  margin: 0;
  color: #1e293b;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading .section-kicker,
.ranking-copy .section-kicker,
.page-hero .section-kicker,
.detail-title-block .section-kicker {
  color: var(--teal);
}

.section-heading > a {
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: stretch;
}

.movie-card-horizontal:hover {
  transform: translateY(-3px);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

.movie-card-horizontal .movie-cover {
  aspect-ratio: auto;
  min-height: 128px;
}

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

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

.cover-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.95);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
}

.cover-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  opacity: 0;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  transition: all 0.25s ease;
}

.movie-card:hover .cover-play,
.ranking-card:hover .cover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card-body h3 a:hover,
.ranking-card h2 a:hover {
  color: var(--teal);
}

.movie-card-body p {
  margin: 0 0 14px;
  color: var(--gray-500);
  font-size: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.soft-band {
  background: linear-gradient(90deg, #ecfdf5, #ecfeff);
}

.horizontal-list {
  display: grid;
  gap: 18px;
}

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

.category-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #ecfeff);
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  border-radius: 16px;
  font-weight: 900;
}

.category-card h2 {
  margin: 16px 0 8px;
  font-size: 23px;
  line-height: 1.2;
}

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

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.category-samples a {
  max-width: 100%;
  overflow: hidden;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-band {
  padding: 60px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #0f172a, #334155);
}

.ranking-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.ranking-copy h2,
.ranking-copy p {
  color: #ffffff;
}

.ranking-copy p {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.78);
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.rank-number {
  color: #fbbf24;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.page-hero {
  padding: 64px 0;
  color: #ffffff;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  font-weight: 900;
}

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

.cyan-hero {
  background: linear-gradient(120deg, #0891b2, #0d9488, #059669);
}

.teal-hero {
  background: linear-gradient(120deg, #0d9488, #06b6d4, #10b981);
}

.slate-hero {
  background: linear-gradient(120deg, #334155, #0f172a);
}

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

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

.filter-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.filter-bar input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
}

.filter-bar select {
  min-width: 150px;
  padding: 13px 18px;
}

.ranking-cards {
  display: grid;
  gap: 18px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.ranking-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, #ccfbf1, #cffafe);
}

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

.ranking-cover span {
  position: absolute;
  left: 12px;
  top: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.92);
  border-radius: 14px;
  font-weight: 900;
}

.ranking-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.ranking-card p {
  margin: 0 0 14px;
  color: var(--gray-500);
}

.large-search {
  display: flex;
  max-width: 720px;
  gap: 12px;
  margin-top: 28px;
}

.large-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 20px;
}

.large-search button {
  padding: 0 28px;
}

.search-summary {
  margin-bottom: 20px;
  color: #1e293b;
  font-size: 20px;
  font-weight: 900;
}

.detail-hero {
  position: relative;
  min-height: 440px;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58)), var(--detail-image);
  background-size: cover;
  background-position: center;
}

.detail-hero-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.26), transparent 35%);
}

.detail-hero-content {
  position: relative;
  padding: 44px 0;
}

.detail-title-block {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: center;
}

.detail-title-block > img {
  width: 250px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-title-block h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
}

.detail-title-block p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  opacity: 1;
  color: #ffffff;
  background: #020617;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.14), rgba(2, 6, 23, 0.62));
}

.player-play {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: #be123c;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  font-size: 36px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease;
}

.player-cover:hover .player-play {
  transform: scale(1.08);
}

.content-card,
.side-card {
  margin-top: 24px;
  padding: 26px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.content-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 25px;
  font-weight: 900;
}

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

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

.info-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}

.info-list dt {
  color: var(--gray-500);
  font-weight: 900;
}

.info-list dd {
  margin: 0;
}

.detail-side {
  align-self: start;
  position: sticky;
  top: 88px;
}

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

.side-list .movie-card-horizontal {
  grid-template-columns: 112px 1fr;
  box-shadow: none;
  border: 1px solid var(--gray-200);
}

.side-list .movie-card-horizontal .movie-cover {
  min-height: 94px;
}

.side-list .movie-card-body {
  padding: 12px;
}

.side-list .movie-card-body h3 {
  font-size: 15px;
}

.site-footer {
  margin-top: 64px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1f2937, #0f172a);
}

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

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

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

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

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .header-inner {
    height: 62px;
  }

  .logo {
    font-size: 21px;
  }

  .hero,
  .hero-content {
    min-height: 520px;
    height: 520px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .section-heading,
  .filter-bar,
  .large-search {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid-four,
  .movie-grid-three,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal,
  .ranking-card,
  .detail-title-block {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal .movie-cover {
    min-height: 190px;
  }

  .ranking-list a {
    grid-template-columns: 42px 1fr;
  }

  .rank-meta {
    grid-column: 2;
  }

  .detail-title-block > img {
    width: min(100%, 260px);
  }

  .content-card,
  .side-card {
    padding: 20px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
