
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 50%, #f0fdfa 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-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, #2563eb, #06b6d4, #0d9488);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}

.site-logo {
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fef08a;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: #facc15;
}

.site-search-form {
  display: flex;
  align-items: stretch;
}

.site-search-form input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: #ffffff;
  border-radius: 14px 0 0 14px;
  padding: 11px 14px;
}

.site-search-form button {
  border: 0;
  color: #1e3a8a;
  font-weight: 800;
  background: #facc15;
  border-radius: 0 14px 14px 0;
  padding: 0 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-search-form button:hover {
  background: #fde047;
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(16px);
}

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

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
}

.mobile-link {
  display: block;
  padding: 11px 0;
  font-weight: 700;
  color: #ffffff;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.hero-stage {
  position: relative;
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  gap: 56px;
  align-items: center;
  padding: 84px max(32px, calc((100vw - 1180px) / 2)) 92px;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.5s ease;
}

.hero-slide::before,
.page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: 8%;
  top: 8%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(50px);
  animation: pulseGlow 4s ease-in-out infinite;
}

.hero-slide::after,
.page-hero::after,
.detail-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: 5%;
  bottom: 0;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.22);
  filter: blur(60px);
  animation: pulseGlow 5s ease-in-out infinite;
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.page-hero p,
.section-title span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy h2 {
  margin: 0 0 16px;
  color: #fef08a;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 900;
}

.hero-copy p,
.hero-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.card-meta,
.cta-row,
.hero-actions,
.tool-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.hero-actions {
  margin-top: 28px;
}

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

.primary-btn {
  color: #0f172a;
  background: #facc15;
  box-shadow: 0 16px 35px rgba(250, 204, 21, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.ghost-light-btn,
.pill-link {
  color: #0891b2;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
}

.primary-btn:hover,
.ghost-btn:hover,
.ghost-light-btn:hover,
.pill-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}

.hero-poster {
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.45);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(20, 184, 166, 0.45));
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 34px;
  backdrop-filter: blur(10px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

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

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

.quick-panel {
  margin-top: -36px;
  position: relative;
  z-index: 12;
}

.quick-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(16px);
}

.quick-grid .hero-search input {
  width: 100%;
  background: #f8fafc;
}

.quick-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 0 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

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

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

.section-title h2 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-title a {
  color: #0891b2;
  font-weight: 900;
}

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

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

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.2);
}

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

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

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(15, 23, 42, 0.42);
  transition: opacity 0.25s ease;
}

.movie-card a:hover .card-cover::after {
  opacity: 1;
}

.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.card-year {
  top: 12px;
  right: 12px;
}

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

.card-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span:nth-child(1) {
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.card-meta span:nth-child(2) {
  color: #ffffff;
  background: linear-gradient(90deg, #16a34a, #10b981);
}

.card-body h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body p {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span {
  color: #0f766e;
  background: #ccfbf1;
}

.compact-card .card-cover {
  aspect-ratio: 16 / 9;
}

.warm-section {
  background: linear-gradient(90deg, #ffedd5, #fee2e2);
}

.green-section {
  background: linear-gradient(90deg, #dcfce7, #ccfbf1);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-4px);
}

.mini-card img {
  width: 130px;
  height: 78px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

.category-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #06b6d4, #0d9488);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:nth-child(even) {
  background: linear-gradient(135deg, #0f766e, #06b6d4, #2563eb);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.28);
}

.category-card span {
  font-size: 24px;
  font-weight: 950;
}

.category-card strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.7;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #0d9488);
}

.page-hero .site-container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.search-page-form {
  max-width: 680px;
  margin-top: 28px;
}

.search-page-form input {
  flex: 1;
  padding: 15px 18px;
}

.tool-row {
  justify-content: space-between;
  margin-bottom: 24px;
}

.local-filter {
  width: min(420px, 100%);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  outline: 0;
  padding: 14px 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 24px;
  border-radius: 24px;
  text-align: center;
  color: #64748b;
  background: #ffffff;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.85;
  background-size: cover;
  background-position: center;
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 46px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  border: 10px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.45);
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(20, 184, 166, 0.5));
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.info-list li {
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.info-list span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.info-list strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 26px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: #2563eb;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.52));
  cursor: pointer;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.34);
  font-size: 42px;
  transform: translateX(4px);
}

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

.player-status {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 5;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.8);
}

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

.prose-card,
.side-card {
  border-radius: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.prose-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: 25px;
  font-weight: 950;
}

.prose-card p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 17px;
  line-height: 1.95;
}

.side-info {
  grid-template-columns: 1fr;
}

.side-info li {
  background: #f1f5f9;
}

.side-info span {
  color: #64748b;
}

.side-info strong {
  color: #0f172a;
}

.site-footer {
  margin-top: 50px;
  padding: 54px 0 26px;
  color: #ffffff;
  background: linear-gradient(90deg, #1e293b, #334155, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 16px;
  color: #67e8f9;
}

.footer-grid p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.55;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .hero-poster {
    width: min(360px, 75vw);
    margin: 0 auto;
  }

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

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

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

  .detail-poster {
    width: min(330px, 80vw);
  }
}

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

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

  .hero-stage {
    min-height: 730px;
  }

  .hero-slide {
    padding: 58px 18px 92px;
    gap: 28px;
  }

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

  .hero-copy p,
  .hero-line,
  .detail-info p {
    font-size: 16px;
  }

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

  .quick-grid a {
    min-height: 46px;
  }

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

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

  .mini-card {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .mini-card img {
    width: 110px;
    height: 68px;
  }

  .detail-head {
    padding-top: 30px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .player-wrap {
    border-radius: 18px;
  }

  .player-overlay span {
    width: 72px;
    height: 72px;
    font-size: 34px;
  }
}
