:root {
  --site-blue: #2563eb;
  --site-blue-dark: #1e3a8a;
  --site-slate: #0f172a;
  --site-text: #111827;
  --site-muted: #64748b;
  --site-card: #ffffff;
  --site-soft: #f8fafc;
}

body {
  background: #f8fafc;
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
a,
button,
input,
video {
  -webkit-tap-highlight-color: transparent;
}

.site-header a,
.site-header button,
.site-footer a,
.movie-card,
.category-tile,
.category-panel a,
.hero-actions a,
.cta-section a,
.section-link,
.pager-links a {
  text-decoration: none;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.footer-logo-mark {
  width: 1.75rem;
  height: 1.75rem;
}

.nav-link,
.nav-button {
  color: #e5e7eb;
  transition: color 0.2s ease;
  font-size: 0.95rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 14rem;
  padding: 0.5rem;
  margin-top: 0.75rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: all 0.2s ease;
}

.nav-dropdown-wrap:hover .nav-dropdown-menu,
.nav-dropdown-wrap:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.65rem;
  color: #334155;
  font-size: 0.9rem;
}

.nav-dropdown-link:hover {
  background: #eff6ff;
  color: var(--site-blue);
}

.search-mini {
  position: relative;
}

.search-mini-input {
  width: 16rem;
  padding: 0.55rem 2.4rem 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.76);
  outline: none;
}

.search-mini-input::placeholder,
.mobile-search-input::placeholder {
  color: #94a3b8;
}

.search-mini-input:focus,
.mobile-search-input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.search-band-form input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.search-mini-button {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  font-size: 1.2rem;
}

.mobile-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

.mobile-menu {
  padding: 1rem 0 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.26);
}

.mobile-search {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.mobile-search-input {
  flex: 1;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 0.75rem 1rem;
  outline: none;
}

.mobile-search-button {
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  padding: 0 1rem;
}

.mobile-nav,
.mobile-sub-link {
  display: grid;
  gap: 0.4rem;
}

.mobile-nav-link,
.mobile-sub-link {
  color: #e2e8f0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
}

.mobile-nav-link:hover,
.mobile-sub-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-sub-title {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.75rem 0.75rem 0.1rem;
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #0f172a;
}

.hero-slider,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-content {
  width: min(1180px, calc(100% - 2rem));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 4rem;
  padding: 5rem 0;
}

.hero-copy {
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.28);
  color: #bfdbfe;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin: 0 0 1.2rem;
}

.hero-copy p {
  max-width: 760px;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
  margin-bottom: 1.3rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #eff6ff;
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-primary,
.hero-secondary,
.cta-section a,
.section-link,
.category-panel a,
.pager-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-primary,
.cta-section a {
  background: #2563eb;
  color: #fff;
  padding: 0.85rem 1.45rem;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36);
}

.hero-primary:hover,
.cta-section a:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.hero-secondary {
  color: #fff;
  padding: 0.85rem 1.45rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-poster {
  display: block;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 2rem;
}

.hero-prev {
  left: 1.25rem;
}

.hero-next {
  right: 1.25rem;
}

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

.hero-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #60a5fa;
}

.search-band {
  background: #fff;
  padding: 2rem 1rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.search-band-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 2rem;
  align-items: center;
}

.search-band h2 {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.search-band p {
  color: #64748b;
}

.search-band-form,
.search-page-form {
  display: flex;
  gap: 0.75rem;
}

.search-band-form input,
.search-page-form input,
.filter-bar input {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  outline: none;
  background: #fff;
}

.search-band-form button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 1.3rem;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.content-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.soft-section {
  width: 100%;
  padding-left: max(1rem, calc((100% - 1180px) / 2));
  padding-right: 0;
  background: linear-gradient(90deg, #ecfeff, #f0f9ff);
}

.soft-section .section-heading {
  width: min(1180px, calc(100% - 1rem));
  padding-right: 1rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0 0 0.45rem;
  color: #0f172a;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  max-width: 680px;
  color: #64748b;
  line-height: 1.8;
}

.section-link,
.category-panel a,
.pager-links a {
  color: #2563eb;
  background: #eff6ff;
  padding: 0.7rem 1.1rem;
}

.section-link:hover,
.category-panel a:hover,
.pager-links a:hover {
  background: #dbeafe;
  transform: translateY(-2px);
}

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

.horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 1rem 1rem 0;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  width: 280px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-0.45rem);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.65));
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.type-badge {
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.65rem;
  background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
  top: 0.75rem;
  left: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.35);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 3.2rem;
  height: 3.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(37, 99, 235, 0.9);
  transition: all 0.25s ease;
}

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

.movie-card-body {
  padding: 1rem;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #64748b;
  font-size: 0.83rem;
  margin-bottom: 0.6rem;
}

.movie-card h3 {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-genre {
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-tile-grid,
.category-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.category-tile,
.category-panel,
.info-card,
.story-card,
.side-card {
  display: block;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-tile {
  padding: 1.4rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-0.35rem);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.category-tile span,
.category-panel h2 {
  display: block;
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
}

.category-tile p,
.category-panel p,
.info-card p {
  color: #64748b;
  line-height: 1.7;
}

.category-tile strong {
  display: inline-flex;
  margin-top: 1rem;
  color: #2563eb;
}

.page-hero,
.detail-hero {
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: #0f172a;
}

.compact-hero,
.category-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
  background-image: radial-gradient(circle at 20% 0, rgba(59, 130, 246, 0.45), transparent 36%), linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0f172a);
}

.page-hero div {
  max-width: 820px;
}

.page-hero span {
  display: inline-block;
  color: #bfdbfe;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 900;
}

.page-hero p {
  color: #dbeafe;
  line-height: 1.8;
  font-size: 1.05rem;
}

.category-panel {
  overflow: hidden;
}

.category-panel-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 160px;
  background: #e2e8f0;
}

.category-panel-images img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.category-panel-body {
  padding: 1.3rem;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-bar a {
  white-space: nowrap;
  color: #2563eb;
  font-weight: 700;
}

.pager-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.search-page-form {
  max-width: 760px;
  margin: 0 auto 1rem;
}

.search-status {
  text-align: center;
  color: #64748b;
  margin-bottom: 1.5rem;
}

.detail-hero {
  min-height: 520px;
}

.detail-hero-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: #bfdbfe;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #dbeafe;
  text-decoration: none;
}

.breadcrumb strong {
  color: #fff;
  font-weight: 700;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 900;
}

.detail-copy p {
  color: #dbeafe;
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 780px;
  margin-bottom: 1.25rem;
}

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

.detail-main,
.detail-side {
  display: grid;
  gap: 1.5rem;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  background: #020617;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.player-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  object-fit: contain;
  cursor: pointer;
}

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

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

.player-icon {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.45);
  font-size: 1.6rem;
}

.story-card,
.side-card,
.info-card {
  padding: 1.4rem;
}

.story-card h2,
.side-card h2,
.info-card h2 {
  margin: 0 0 0.9rem;
  font-size: 1.25rem;
  color: #0f172a;
  font-weight: 900;
}

.story-card p {
  color: #475569;
  line-height: 1.9;
  font-size: 1rem;
}

.info-list {
  display: grid;
  gap: 0.8rem;
}

.info-list div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #e2e8f0;
}

.info-list dt {
  color: #64748b;
}

.info-list dd {
  color: #0f172a;
  font-weight: 700;
  margin: 0;
}

.related-list {
  display: grid;
  gap: 0.9rem;
}

.related-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.45rem;
  border-radius: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #f8fafc;
}

.related-card img {
  width: 96px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.7rem;
}

.related-card h3 {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card p {
  color: #64748b;
  font-size: 0.85rem;
}

.cta-section {
  padding: 5rem 1rem;
  background: linear-gradient(135deg, #0f172a, #1d4ed8, #0f172a);
  text-align: center;
  color: #fff;
}

.cta-section div {
  max-width: 780px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 900;
  margin: 0 0 1rem;
}

.cta-section p {
  color: #dbeafe;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .hero-content,
  .detail-hero-grid,
  .detail-layout,
  .search-band-inner {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 280px;
    transform: rotate(0);
  }

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

  .detail-cover {
    max-width: 260px;
  }
}

@media (max-width: 700px) {
  .hero-section,
  .hero-slider,
  .hero-slide,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding: 3.5rem 0 5rem;
    gap: 2rem;
  }

  .hero-control {
    display: none;
  }

  .hero-poster {
    max-width: 220px;
  }

  .section-heading,
  .filter-bar,
  .pager-links,
  .search-band-form,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .movie-grid,
  .category-tile-grid,
  .category-panel-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-hero-inner {
    padding-top: 2rem;
  }

  .detail-hero-grid {
    gap: 1.5rem;
  }

  .detail-cover {
    max-width: 220px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

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

  .related-card img {
    width: 84px;
  }
}
