
:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --cyan: #0891b2;
  --blue: #2563eb;
  --teal: #0d9488;
  --slate: #1e293b;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #2563eb, #0891b2, #0d9488);
  box-shadow: 0 14px 34px rgba(8, 145, 178, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #0891b2;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.brand-name {
  font-size: 22px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #cffafe;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav a {
  display: block;
  padding: 12px 2px;
  font-weight: 650;
}

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

.hero {
  position: relative;
  min-height: 520px;
  height: 68vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

.hero-media,
.hero-media .hero-image,
.hero-media .poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.35), transparent 32%), linear-gradient(135deg, #0f172a, #164e63 48%, #0f766e);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.1));
}

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

.hero-pill,
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  font-size: 13px;
  font-weight: 750;
}

.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-copy p {
  width: min(680px, 100%);
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

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

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

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #0891b2, #2563eb);
  box-shadow: 0 16px 30px rgba(8, 145, 178, 0.3);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel {
  margin-top: 34px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.search-panel p {
  margin: 0;
  color: var(--muted);
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(8, 145, 178, 0.25);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.search-input:focus {
  border-color: #0891b2;
  box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.12);
}

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

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

.section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-more {
  min-height: 42px;
  color: #0891b2;
  background: #ecfeff;
}

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

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

.movie-card {
  border-radius: var(--radius);
}

.movie-link,
.movie-card > a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover,
.movie-card > a:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

.poster-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.26), transparent 30%), linear-gradient(135deg, #0f172a, #164e63 50%, #0d9488);
}

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

.movie-card:hover .poster-img,
.category-tile:hover .poster-img,
.side-item:hover .poster-img {
  transform: scale(1.08);
}

.year-badge,
.play-badge {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card-body h3,
.wide-card h3,
.side-item h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card-body p,
.wide-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
}

.card-meta span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.tag-row span:first-child {
  color: #0891b2;
  background: #ecfeff;
}

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

.category-tile,
.category-overview-card > a {
  position: relative;
  min-height: 240px;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.category-bg,
.category-bg::after {
  position: absolute;
  inset: 0;
}

.category-bg {
  background: linear-gradient(135deg, #0f172a, #0e7490);
}

.category-bg::after {
  content: "";
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.18));
}

.category-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.category-text,
.category-overview-body {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

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

.category-text p,
.category-overview-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.page-main {
  padding: 34px 0 68px;
}

.page-hero {
  min-height: 260px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  background: radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.36), transparent 28%), linear-gradient(135deg, #0f172a, #155e75 50%, #0f766e);
  box-shadow: var(--shadow);
}

.slim-hero,
.rank-hero {
  grid-template-columns: 1fr;
}

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}

.hero-mini-card {
  min-width: 230px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-mini-card span,
.hero-mini-card strong,
.hero-mini-card em {
  display: block;
}

.hero-mini-card span {
  color: #a5f3fc;
  font-weight: 800;
}

.hero-mini-card strong {
  margin: 10px 0;
  font-size: 30px;
}

.hero-mini-card em {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.category-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  opacity: 0.7;
  background: #0f172a;
}

.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.18));
}

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

.wide-card a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 16px;
  align-items: center;
}

.wide-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #0891b2);
}

.detail-main {
  padding: 28px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 750;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
}

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

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.28));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0891b2;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.player-overlay strong {
  max-width: min(720px, 92%);
  font-size: clamp(20px, 4vw, 34px);
  text-align: center;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  margin-top: 30px;
}

.detail-content,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.detail-content {
  padding: 28px;
}

.detail-head {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 26px;
  align-items: start;
}

.detail-poster {
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.14);
}

.detail-head h1 {
  margin: 14px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.lead-text {
  margin: 0 0 18px;
  color: #475569;
  font-size: 18px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  color: #075985;
  background: #ecfeff;
}

.article-block {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.article-block h2,
.side-panel h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #334155;
  line-height: 2;
}

.side-panel {
  position: sticky;
  top: 88px;
  height: fit-content;
  padding: 20px;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.side-item:hover {
  background: #f8fafc;
}

.side-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #0891b2);
}

.side-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 74px 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.rank-number {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0891b2, #2563eb);
  font-size: 20px;
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #0891b2);
}

.rank-content h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-content p {
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #67e8f9;
  font-size: 18px;
}

.footer-grid p,
.footer-grid li {
  color: #cbd5e1;
  line-height: 1.8;
  font-size: 14px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
  font-size: 14px;
}

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

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

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

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

  .side-panel {
    position: static;
  }

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

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-copy {
    justify-content: flex-end;
    padding-bottom: 90px;
  }

  .hero-copy p {
    font-size: 15px;
    -webkit-line-clamp: 4;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .page-hero,
  .detail-head,
  .rank-item a,
  .wide-card a {
    grid-template-columns: 1fr;
  }

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

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

  .page-hero {
    padding: 26px;
  }

  .detail-content {
    padding: 20px;
  }

  .detail-poster {
    max-width: 180px;
  }

  .rank-item a {
    align-items: start;
  }

  .rank-thumb {
    width: 112px;
  }

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

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

  .header-inner {
    height: 60px;
  }

  .brand-name {
    font-size: 18px;
  }

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