/* Public horror hero: use the same compact split composition as test banners. */
.app-shell:not(.route-admin) .horror-hero-board {
  display: block;
  height: 330px;
  min-height: 330px;
  overflow: hidden;
  background: #070a0f;
}

.app-shell:not(.route-admin) .horror-hero-board .horror-hero-card {
  position: relative;
  width: 100%;
  height: 330px;
  min-height: 330px;
  border: 0;
  border-radius: 0;
  background: #070a0f;
  box-shadow: none;
}

.app-shell:not(.route-admin) .horror-hero-card::before {
  z-index: 1;
  display: block;
  background:
    linear-gradient(
      90deg,
      rgba(7, 10, 15, 0.02) 0%,
      rgba(7, 10, 15, 0.08) 34%,
      rgba(7, 10, 15, 0.72) 49%,
      #070a0f 59%,
      #070a0f 100%
    );
}

.app-shell:not(.route-admin) .horror-hero-card::after {
  display: none;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-backdrop {
  top: -8%;
  right: auto;
  bottom: -8%;
  left: -8%;
  width: 66%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  filter: blur(22px) brightness(0.52) saturate(0.9);
  transform: scale(1.06);
}

.app-shell:not(.route-admin) .horror-hero-card .hero-poster {
  position: absolute;
  z-index: 2;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  display: block;
  width: 52%;
  height: 330px;
  min-height: 330px;
  max-height: none;
  margin: 0;
  object-fit: contain;
  object-position: left center;
  transform: none;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 78%, rgba(0, 0, 0, 0.72) 90%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 78%, rgba(0, 0, 0, 0.72) 90%, transparent 100%);
}

.app-shell:not(.route-admin) .horror-hero-card .hero-copy {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 14px;
  bottom: 18px;
  left: 48%;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: transparent;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-meta {
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0 0 10px;
  overflow: hidden;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-meta span {
  display: inline-flex;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 9px;
  white-space: nowrap;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-copy h1 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 24px;
  line-height: 1.14;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-actions {
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-actions button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 40px;
  height: 40px;
  border-radius: 7px;
  padding: 0 5px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: none;
}

.app-shell:not(.route-admin) .horror-hero-card .hero-page-count {
  z-index: 4;
  top: 10px;
  right: auto;
  left: 10px;
  min-width: 42px;
  min-height: 28px;
  height: 28px;
  font-size: 10px;
}

/* Admin hero manager: separate test and horror content without changing stored order data. */
.route-admin .admin-hero-type-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 18px 0 4px;
  padding: 4px;
  border: 1px solid rgba(17, 17, 19, 0.1);
  border-radius: 10px;
  background: #f2f4f8;
}

.route-admin .admin-hero-type-tabs button {
  min-width: 112px;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.route-admin .admin-hero-type-tabs button.active {
  background: #111113;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 17, 19, 0.16);
}

.route-admin .admin-banner-row[hidden] {
  display: none !important;
}

.route-admin .admin-hero-type-empty {
  margin: 12px 0 0;
  padding: 30px 18px;
  border: 1px dashed #d7dce5;
  border-radius: 12px;
  color: #7a8495;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.route-admin .admin-hero-workspace.hero-type-preview-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.route-admin .admin-hero-preview[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .route-admin .admin-hero-type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .route-admin .admin-hero-type-tabs button {
    min-width: 0;
  }
}
