:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.18);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --violet: #818cf8;
  --yellow: #facc15;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 16%, rgba(129, 140, 248, 0.18), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
}

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

img {
  display: block;
  max-width: 100%;
  background: rgba(15, 23, 42, 0.72);
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1240px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(34, 211, 238, 0.18));
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.24);
}

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

.nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.82);
}

.top-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
}

.top-search input,
.large-search input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.top-search input {
  width: 210px;
  padding: 11px 14px;
}

.top-search button,
.large-search button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button {
  padding: 11px 16px;
}

.top-search button:hover,
.large-search button:hover,
.filter-bar button:hover,
.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #e2e8f0;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel a {
  display: block;
  padding: 13px 14px;
  border-radius: 12px;
  color: #cbd5e1;
}

.mobile-panel a:hover {
  background: rgba(30, 41, 59, 0.9);
  color: white;
}

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

.hero {
  position: relative;
  height: min(760px, 72vh);
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.64) 46%, rgba(2, 6, 23, 0.16) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.12) 46%, rgba(2, 6, 23, 0.56) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1240px;
}

.eyebrow,
.section-head span,
.page-hero span,
.search-strip span {
  display: inline-flex;
  width: max-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: white;
}

.hero-content p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

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

.primary-btn {
  color: white;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 2rem;
}

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

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

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

.hero-dot {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.hero-dot.active {
  background: #38bdf8;
}

.search-strip,
.content-section,
.page-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.search-strip {
  position: relative;
  z-index: 12;
  margin-top: -58px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-strip h2,
.section-head h2,
.page-hero h1,
.detail-panel h1,
.article-card h2 {
  margin: 0;
  color: white;
  letter-spacing: -0.03em;
}

.search-strip p {
  margin: 12px 0 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.large-search {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.large-search input {
  flex: 1;
  padding: 16px 18px;
}

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

.content-section {
  padding: 70px 0 0;
}

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

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.section-head p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head > a {
  color: #7dd3fc;
  font-weight: 700;
}

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

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.38);
}

.tile-bg,
.tile-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tile-bg img {
  object-fit: cover;
  opacity: 0.42;
}

.tile-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), transparent 70%);
}

.tile-content strong {
  color: white;
  font-size: 1.25rem;
}

.tile-content em {
  margin-top: 7px;
  color: #bae6fd;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.4;
}

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

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

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

.listing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-bottom: 70px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 54px rgba(14, 165, 233, 0.14);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
}

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

.movie-card:hover .card-cover img {
  transform: scale(1.06);
  opacity: 0.88;
}

.rating-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  border-radius: 999px;
  color: #020617;
  background: #facc15;
  font-weight: 800;
  font-size: 0.86rem;
}

.rating-pill {
  right: 12px;
  bottom: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: linear-gradient(90deg, #f97316, #facc15);
}

.card-body {
  padding: 15px;
}

.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.meta-line span,
.detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.10);
}

.card-body h2 {
  margin: 11px 0 8px;
  color: white;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body p {
  margin: 0;
  min-height: 3.1em;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-row span,
.detail-tags a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
  font-size: 0.78rem;
}

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

.hot-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.compact-head {
  align-items: center;
  margin-bottom: 16px;
}

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

.hot-item {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hot-item:hover {
  background: rgba(30, 41, 59, 0.92);
  transform: translateX(2px);
}

.hot-item img {
  width: 88px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

.hot-item strong {
  display: block;
  color: white;
  line-height: 1.35;
}

.hot-item em {
  display: block;
  margin-top: 6px;
  color: #94a3b8;
  font-style: normal;
  font-size: 0.82rem;
}

.list-rank {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #020617;
  background: #facc15;
  font-weight: 900;
}

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

.page-hero {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  margin-bottom: 34px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(6, 182, 212, 0.10)),
    radial-gradient(circle at 90% 10%, rgba(129, 140, 248, 0.30), transparent 20rem),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
}

.page-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.55);
}

.filter-bar input {
  flex: 1;
}

.filter-bar select {
  color: #dbeafe;
}

.filter-bar button {
  padding: 0 18px;
  border-radius: 14px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  color: #94a3b8;
}

.breadcrumb a {
  color: #7dd3fc;
}

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

.detail-player,
.detail-panel,
.article-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.detail-player {
  padding: 16px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.28), rgba(2, 6, 23, 0.72));
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-frame.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 22px 60px rgba(14, 165, 233, 0.34);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: white;
  background: rgba(127, 29, 29, 0.88);
}

.video-frame.has-error .player-message {
  display: block;
}

.detail-panel {
  padding: 18px;
}

.detail-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.detail-score {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-top: -31px;
  margin-left: 18px;
  position: relative;
  border: 4px solid #0f172a;
  border-radius: 999px;
  color: #020617;
  background: #facc15;
  font-size: 1.3rem;
  font-weight: 900;
}

.detail-panel h1 {
  margin-top: 16px;
  font-size: 2rem;
  line-height: 1.18;
}

.detail-panel p {
  color: #cbd5e1;
  line-height: 1.72;
}

.detail-content {
  padding-top: 34px;
}

.article-card {
  padding: 28px;
}

.article-card h2 {
  margin-top: 26px;
  font-size: 1.45rem;
}

.article-card h2:first-child {
  margin-top: 0;
}

.article-card p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.9;
}

.site-footer {
  margin-top: 78px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 26px;
}

.footer-grid p,
.footer-links a,
.copyright {
  color: #94a3b8;
}

.footer-grid p {
  max-width: 460px;
  line-height: 1.75;
}

.footer-grid h2 {
  margin: 0 0 15px;
  color: white;
  font-size: 1rem;
}

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

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

.copyright {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.92rem;
}

[data-card].hidden {
  display: none;
}

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

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

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

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

  .hot-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .nav-shell,
  .mobile-panel,
  .search-strip,
  .content-section,
  .page-main,
  .footer-grid,
  .copyright {
    width: min(100% - 22px, 1240px);
  }

  .brand {
    font-size: 1.12rem;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-content {
    width: min(100% - 28px, 1240px);
    justify-content: end;
    padding-bottom: 92px;
  }

  .hero-content h1 {
    font-size: 2.7rem;
  }

  .hero-control {
    display: none;
  }

  .search-strip,
  .page-hero,
  .filter-bar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .search-strip {
    margin-top: 20px;
  }

  .large-search {
    flex-direction: column;
    border-radius: 18px;
  }

  .large-search button {
    min-height: 48px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .card-body h2 {
    font-size: 0.98rem;
  }

  .card-body p {
    font-size: 0.86rem;
  }

  .hot-item {
    grid-template-columns: auto 78px minmax(0, 1fr);
  }

  .hot-item img {
    width: 78px;
  }

  .page-hero {
    padding: 24px;
    min-height: 250px;
  }

  .detail-player,
  .detail-panel,
  .article-card {
    border-radius: 20px;
  }

  .article-card {
    padding: 22px;
  }

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

@media (max-width: 460px) {
  .category-grid,
  .movie-grid,
  .listing-grid,
  .wide-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.2rem;
  }
}
