* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #111827;
  background: #f9fafb;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, #2563eb, #1d4ed8, #1e40af);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.28);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #dbeafe;
  transform: translateY(-1px);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-label {
  position: relative;
  display: block;
}

.site-search-input {
  width: min(26vw, 280px);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 11px 16px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.site-search-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(92vw, 420px);
  max-height: 520px;
  overflow: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  padding: 10px;
  display: none;
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: #eff6ff;
}

.search-result-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
}

.search-result-item strong {
  display: block;
  color: #111827;
  margin-bottom: 4px;
}

.search-result-item span,
.search-result-item p {
  color: #6b7280;
  font-size: 13px;
  margin: 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 16px;
  gap: 10px;
  flex-wrap: wrap;
}

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

.mobile-nav a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.hero-slider {
  position: relative;
  height: 60vh;
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8, #2563eb);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42), rgba(15, 23, 42, 0.25));
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  bottom: 76px;
  max-width: min(720px, calc(100vw - 48px));
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.hero-content p {
  margin: 0 0 28px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.primary-btn {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.primary-btn:hover,
.glass-btn:hover,
.outline-btn:hover {
  transform: translateY(-2px);
}

.glass-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
}

.outline-btn {
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-entry {
  margin-top: -1px;
  background: #ffffff;
  box-shadow: 0 1px 0 #e5e7eb;
}

.quick-entry-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 28px;
  align-items: center;
}

.quick-entry h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.quick-entry p {
  margin: 0;
  color: #6b7280;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.category-chips a,
.filter-bar button {
  border: 0;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 10px 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.category-chips a:hover,
.filter-bar button:hover,
.filter-bar button.is-active {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

.page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.content-section.soft-green,
.content-section.soft-purple,
.content-section.soft-red {
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 28px;
}

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

.soft-purple {
  background: linear-gradient(135deg, #eff6ff, #eef2ff, #faf5ff);
}

.soft-red {
  background: linear-gradient(90deg, #fff1f2, #ffedd5, #fef3c7);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 0;
  color: #6b7280;
}

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

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

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

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

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

.movie-card a:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbeafe;
}

.movie-card-compact .poster-wrap {
  aspect-ratio: 16 / 9;
}

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

.movie-card a:hover img,
.square-card:hover img,
.category-panel:hover img {
  transform: scale(1.08);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 58%);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.88);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(239, 68, 68, 0.35);
}

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

.movie-meta-line {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  padding: 5px 8px;
}

.horizontal-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.scroll-item {
  width: 300px;
  min-width: 300px;
  scroll-snap-align: start;
}

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

.horizontal-card a {
  min-height: 168px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.horizontal-card a:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.15);
}

.horizontal-card img {
  width: 150px;
  height: 100%;
  object-fit: cover;
}

.horizontal-card div {
  padding: 18px 18px 18px 0;
}

.horizontal-card span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.horizontal-card h3 {
  margin: 8px 0;
  font-size: 21px;
}

.horizontal-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.square-card {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
  color: #ffffff;
}

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

.square-card::after,
.category-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.18));
}

.square-card span,
.square-card strong {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.square-card span {
  bottom: 58px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.square-card strong {
  bottom: 22px;
  font-size: 18px;
  line-height: 1.35;
}

.section-more {
  margin-top: 24px;
  text-align: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-grid .is-hidden {
  display: none;
}

.page-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 28px;
  padding: 40px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a, #2563eb, #7c3aed);
}

.page-hero.small-hero {
  background: linear-gradient(135deg, #1d4ed8, #2563eb, #4f46e5);
}

.page-hero.category-hero {
  background: linear-gradient(135deg, #1e40af, #2563eb, #9333ea);
}

.page-hero.rank-hero {
  background: linear-gradient(135deg, #991b1b, #ea580c, #eab308);
}

.page-hero span {
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
}

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

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

.category-panel {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
}

.category-panel span,
.category-panel p {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.category-panel span {
  bottom: 94px;
  font-size: 24px;
  font-weight: 900;
}

.category-panel p {
  bottom: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #6b7280;
  margin-bottom: 22px;
  font-size: 14px;
}

.breadcrumb a {
  color: #2563eb;
  font-weight: 800;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #030712;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  min-height: 420px;
}

.movie-player {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.play-layer.is-hidden {
  display: none;
}

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.18), 0 20px 42px rgba(37, 99, 235, 0.35);
  font-size: 32px;
  padding-left: 4px;
}

.play-layer strong {
  font-size: 20px;
}

.detail-side {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
}

.detail-side img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail-side > div {
  padding: 22px;
}

.detail-side h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-side p {
  color: #4b5563;
  line-height: 1.75;
}

.detail-tags {
  margin: 16px 0 18px;
}

.detail-content {
  max-width: 900px;
}

.detail-content h2 {
  margin: 28px 0 12px;
  font-size: 26px;
}

.detail-content p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

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

.rank-row a {
  display: grid;
  grid-template-columns: 54px 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

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

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

.rank-row p {
  margin: 0 0 8px;
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-meta {
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin-top: 64px;
  background: #111827;
  color: #d1d5db;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

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

.site-footer p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.7;
}

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

.footer-links a {
  color: #d1d5db;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9ca3af;
  padding: 18px 20px;
}

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

  .menu-toggle {
    display: block;
  }

  .site-search-input {
    width: min(44vw, 260px);
  }

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

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

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

@media (max-width: 760px) {
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .brand-name {
    display: none;
  }

  .site-search-input {
    width: 48vw;
    padding: 10px 12px;
  }

  .hero-slider {
    height: 68vh;
    min-height: 520px;
  }

  .hero-content {
    left: 18px;
    right: 18px;
    bottom: 72px;
  }

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

  .hero-arrow {
    display: none;
  }

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

  .category-chips {
    justify-content: flex-start;
  }

  .card-grid-four,
  .card-grid-three,
  .category-grid,
  .square-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-card a {
    grid-template-columns: 116px 1fr;
    min-height: 144px;
  }

  .horizontal-card img {
    width: 116px;
  }

  .page-hero {
    min-height: 220px;
    padding: 26px;
    border-radius: 22px;
  }

  .player-card,
  .movie-player {
    min-height: 260px;
  }

  .rank-row a {
    grid-template-columns: 42px 72px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 36px;
    height: 36px;
  }

  .rank-row img {
    width: 72px;
    height: 64px;
  }

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