@charset "utf-8";

:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #fbbf24;
  --accent-dark: #d97706;
  --accent-soft: rgba(251, 191, 36, 0.12);
  --danger: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 8%, rgba(245, 158, 11, 0.13), transparent 25rem),
    radial-gradient(circle at 80% 16%, rgba(59, 130, 246, 0.12), transparent 22rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(18px);
}

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

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

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

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #111827;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef3c7, #f59e0b 62%, #b45309);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.nav-link,
.mobile-link {
  color: var(--muted-strong);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent);
}

.top-search,
.mobile-search,
.search-panel,
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-search input,
.mobile-search input,
.search-panel input,
.filter-bar input,
.filter-bar select {
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text);
  background: rgba(15, 23, 42, 0.92);
  border-radius: 999px;
  outline: none;
}

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

.top-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  color: #111827;
  font-weight: 800;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.88);
  border-radius: 14px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 16px;
}

main {
  min-height: 64vh;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.35) 100%),
    linear-gradient(0deg, #020617 0%, transparent 36%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 72vh;
  margin: 0 auto;
  padding: 90px 24px 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 390px;
  align-items: center;
  gap: 46px;
}

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

.eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.hero-copy p {
  max-width: 660px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.meta-list,
.tag-cloud,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.26);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.58);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.14), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.82));
}

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

.hero-dots button {
  width: 42px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dots button.is-active {
  background: var(--accent);
}

.page-hero,
.category-hero,
.detail-hero {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 36px;
}

.page-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.page-hero p,
.category-hero p,
.detail-copy p {
  max-width: 860px;
  color: var(--muted-strong);
  font-size: 18px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
}

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

.section-title h2 {
  margin: 8px 0 4px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(251, 191, 36, 0.42);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.86);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.26s ease, filter 0.26s ease;
}

.movie-card:hover .poster img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #111827;
  background: rgba(251, 191, 36, 0.94);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.card-meta,
.meta-list {
  color: var(--muted);
  font-size: 13px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.movie-card h3 {
  margin: 8px 0 7px;
  font-size: 18px;
  line-height: 1.32;
}

.movie-card h3 a:hover {
  color: var(--accent);
}

.movie-card p {
  min-height: 3.1em;
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: 14px;
}

.movie-card.compact h3 {
  font-size: 16px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 10rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.7));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(251, 191, 36, 0.42);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

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

.category-card span {
  color: var(--accent);
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
}

.rank-list,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.rank-list {
  padding: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  transition: background 0.18s ease;
}

.rank-row:hover {
  background: rgba(251, 191, 36, 0.1);
}

.rank-num {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.rank-row img {
  width: 56px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

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

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

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

.filter-bar {
  align-items: stretch;
  margin: 8px 0 26px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 16px;
}

.filter-bar input {
  flex: 1;
  min-width: 220px;
}

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

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

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  max-width: 820px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  color: var(--muted-strong);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.58);
}

.watch-section,
.content-section,
.related-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px;
}

.watch-section h2,
.content-section h2,
.related-section h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--text);
  border: 0;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82)),
    rgba(2, 6, 23, 0.18);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-radius: 999px;
  font-size: 28px;
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
}

.player-title {
  max-width: 80%;
  text-align: center;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 900;
}

.player-action {
  color: #fde68a;
  font-weight: 800;
}

.content-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

.content-panel p {
  color: var(--muted-strong);
  font-size: 17px;
}

.search-panel {
  max-width: 860px;
  margin: 28px 0 0;
}

.search-panel input {
  flex: 1;
  min-height: 50px;
  padding: 0 18px;
}

.empty-result {
  display: none;
  padding: 28px;
  color: var(--muted-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
}

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

.tag-cloud a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.site-footer {
  margin-top: 50px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
}

.footer-inner p {
  max-width: 760px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.footer-links a {
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin-top: 20px;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 14px;
  }

  .top-search input {
    width: 170px;
  }

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  .main-nav,
  .top-search {
    display: none;
  }

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

  .header-inner {
    height: 66px;
    gap: 12px;
  }

  .hero-content,
  .detail-hero,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 82px;
  }

  .hero-poster,
  .detail-cover {
    max-width: 320px;
  }

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

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

  .hero-slider,
  .hero-content {
    min-height: 82vh;
  }

  .hero-content {
    padding: 64px 18px 70px;
  }

  .hero-poster {
    display: none;
  }

  .section,
  .page-hero,
  .category-hero,
  .detail-hero,
  .breadcrumb,
  .watch-section,
  .content-section,
  .related-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-header {
    display: block;
  }

  .section-actions {
    margin-top: 14px;
  }

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

  .movie-card p,
  .card-tags {
    display: none;
  }

  .filter-bar,
  .search-panel {
    flex-direction: column;
  }

  .filter-bar input,
  .filter-bar select,
  .search-panel input,
  .search-panel button {
    width: 100%;
  }

  .player-title {
    max-width: 92%;
  }
}
