/* ═══════════════════════════════════════════
   Discovery Page – Netflix / Steam style
   Sections:
     1. DiscoveryHero       – spotlight (100vh, snaps)
     2. DiscoveryRowSection – one per row (100vh each, snaps)
   Fixed overlay: DiscoveryToolbarFixed (below navbar)
   ═══════════════════════════════════════════ */

/* ─── Section 1: Hero ─── */
.DiscoveryHero {
  background-color: #0a0e12;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
}

/* ─── Section 2+: Individual row sections ─── */
.DiscoveryRowSection {
  background-color: #0a0e12;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  position: relative;
  min-height: auto;
  height: auto;
  overflow: visible;
  scroll-margin-top: max(132px, calc(7vh + 72px));
}

.DiscoveryOverviewSection {
  background-color: #0a0e12;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  position: relative;
  min-height: auto;
  height: auto;
  overflow: visible;
  scroll-margin-top: max(132px, calc(7vh + 72px));
}

/* Subtle radial gradient accent */
.DiscoveryOverviewSection::before,
.DiscoveryRowSection::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(26, 170, 122, 0.05), transparent),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(26, 170, 122, 0.03), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Inner wrapper: keeps content dense and aligned */
.DiscoveryOverviewInner,
.DiscoveryRowSectionInner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
  min-height: 0;
}

.DiscoveryOverviewInner {
  gap: 24px;
  padding-top: max(36px, calc(7vh + 18px));
  padding-bottom: 12px;
}

.DiscoveryRowSectionInner {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ─── Fixed toolbar overlay ─── */
.DiscoveryToolbarFixed {
  position: fixed;
  top: max(56px, 7vh);
  left: 0;
  right: 0;
  z-index: 9;
  background: rgba(8, 12, 18, 0.92);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(26, 170, 122, 0.12);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.DiscoveryToolbarFixed.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.DiscoveryToolbarInner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(24px, 5vw, 72px);
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* ─── Overview block ─── */
.DiscoveryOverviewHeader {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.DiscoveryOverviewCopy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.DiscoveryOverviewKicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  color: #1aaa7a;
  font-weight: 700;
}

.DiscoveryOverviewTitle {
  margin: 0;
  color: #e6fffb;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.DiscoveryOverviewDesc {
  margin: 0;
  color: rgba(230, 255, 251, 0.58);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 620px;
}

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

.DiscoveryOverviewStat {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(26, 170, 122, 0.16);
  background:
    linear-gradient(180deg, rgba(16, 28, 36, 0.95), rgba(8, 13, 19, 0.9)),
    radial-gradient(circle at top right, rgba(26, 170, 122, 0.16), transparent 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.DiscoveryOverviewStat strong {
  color: #e6fffb;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.DiscoveryOverviewStat span {
  color: rgba(230, 255, 251, 0.45);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.DiscoveryResultsBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(26, 170, 122, 0.14);
  background: rgba(10, 16, 22, 0.82);
}

.DiscoveryResultsText {
  color: rgba(230, 255, 251, 0.72);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.DiscoveryResultsClear {
  border: 1px solid rgba(26, 170, 122, 0.22);
  background: rgba(26, 170, 122, 0.08);
  color: #8cf0d4;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.DiscoveryResultsClear:hover {
  background: rgba(26, 170, 122, 0.16);
  border-color: rgba(26, 170, 122, 0.42);
  color: #e6fffb;
}

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

.DiscoveryCollectionCard {
  appearance: none;
  width: 100%;
  text-align: left;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--discovery-collection-accent, #1aaa7a) 24%, transparent);
  background:
    linear-gradient(180deg, rgba(16, 28, 36, 0.96), rgba(8, 13, 19, 0.92)),
    radial-gradient(circle at top right, color-mix(in srgb, var(--discovery-collection-accent, #1aaa7a) 18%, transparent), transparent 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  color: inherit;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  min-height: 240px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.DiscoveryCollectionCard:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--discovery-collection-accent, #1aaa7a) 56%, transparent);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.34),
    0 0 38px color-mix(in srgb, var(--discovery-collection-accent, #1aaa7a) 14%, transparent);
}

.DiscoveryCollectionIcon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--discovery-collection-accent, #1aaa7a) 18%, rgba(255, 255, 255, 0.03));
  border: 1px solid color-mix(in srgb, var(--discovery-collection-accent, #1aaa7a) 22%, transparent);
}

.DiscoveryCollectionLabel {
  color: #e6fffb;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.DiscoveryCollectionText {
  color: rgba(230, 255, 251, 0.56);
  font-size: 0.88rem;
  line-height: 1.55;
}

.DiscoveryCollectionMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.DiscoveryCollectionMeta span {
  color: rgba(230, 255, 251, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.DiscoveryCollectionTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── Spotlight ─── */
.DiscoverySpotlight {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Right-side decorative icon art */
.DiscoverySpotlightArt {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Full-screen spotlight background image */
.DiscoverySpotlightBgImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.55;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.DiscoverySpotlightArtIcon {
  font-size: clamp(7rem, 20vw, 18rem);
  opacity: 0.12;
  filter: blur(1px) drop-shadow(0 0 80px rgba(26, 170, 122, 0.25));
  user-select: none;
  transition: opacity 1s ease, transform 1s ease;
  transform: translateX(4%);
}

.DiscoverySpotlightGradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, #0a0e12 0%, rgba(10, 14, 18, 0.75) 22%, rgba(10, 14, 18, 0.1) 50%, transparent 100%),
    linear-gradient(to right, rgba(10, 14, 18, 0.95) 0%, rgba(10, 14, 18, 0.7) 30%, rgba(10, 14, 18, 0.1) 60%, transparent 80%);
  pointer-events: none;
}

.DiscoverySpotlightContent {
  position: relative;
  z-index: 3;
  padding: 0 clamp(24px, 5vw, 72px) 56px;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.DiscoverySpotlightKicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: #1aaa7a;
  font-weight: 700;
}

.DiscoverySpotlightTitle {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #e6fffb;
  letter-spacing: -0.02em;
  line-height: 1.02;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
}

.DiscoverySpotlightDesc {
  margin: 0;
  color: rgba(230, 255, 251, 0.72);
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.DiscoveryMetaChip {
  background: rgba(26, 170, 122, 0.18);
  border: 1px solid rgba(26, 170, 122, 0.35);
  color: #8cf0d4;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

.DiscoverySpotlightActions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.DiscoverySpotlightButton {
  text-decoration: none;
}

.DiscoverySpotlightFav {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(230, 255, 251, 0.8);
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.DiscoverySpotlightFav:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.25);
}

.DiscoverySpotlightFav.is-active {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ─── Spotlight dots ─── */
.DiscoverySpotlightDots {
  display: flex;
  gap: 8px;
  padding-top: 2px;
}

.DiscoveryDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 170, 122, 0.45);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  padding: 0;
}

.DiscoveryDot:hover {
  border-color: #1aaa7a;
  transform: scale(1.25);
}

.DiscoveryDot.is-active {
  background: #1aaa7a;
  border-color: #1aaa7a;
  transform: scale(1.25);
}

/* ─── Scroll hint ─── */
.DiscoveryScrollHint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(230, 255, 251, 0.38);
  animation: discoveryBounce 2.8s ease-in-out infinite;
  pointer-events: none;
}

.DiscoveryScrollHintText {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.DiscoveryScrollHintArrow {
  width: 18px;
  height: 18px;
}

@keyframes discoveryBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.38; }
  50% { transform: translateX(-50%) translateY(9px); opacity: 0.75; }
}

/* ─── Search ─── */
.DiscoverySearch {
  position: relative;
  flex: 1 1 240px;
  max-width: 380px;
}

.DiscoverySearchIcon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: rgba(230, 255, 251, 0.38);
  pointer-events: none;
}

.DiscoverySearchInput {
  width: 100%;
  padding: 9px 34px 9px 36px;
  border-radius: 10px;
  border: 1px solid rgba(26, 170, 122, 0.22);
  background: rgba(10, 14, 18, 0.75);
  color: #e6fffb;
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.DiscoverySearchInput::placeholder {
  color: rgba(230, 255, 251, 0.32);
}

.DiscoverySearchInput:focus {
  border-color: rgba(26, 170, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(26, 170, 122, 0.1);
}

.DiscoverySearchClear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(230, 255, 251, 0.45);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}

.DiscoverySearchClear:hover {
  color: #e6fffb;
}

/* ─── Category chips ─── */
.DiscoveryCategoryBar {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.DiscoveryCategoryBar::-webkit-scrollbar {
  display: none;
}

.DiscoveryCategoryChip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(26, 170, 122, 0.25);
  background: rgba(10, 14, 18, 0.45);
  color: rgba(230, 255, 251, 0.65);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.DiscoveryCategoryChip:hover {
  border-color: rgba(26, 170, 122, 0.5);
  color: #e6fffb;
  background: rgba(26, 170, 122, 0.08);
}

.DiscoveryCategoryChip.is-active {
  background: rgba(26, 170, 122, 0.18);
  border-color: #1aaa7a;
  color: #8cf0d4;
}

.DiscoveryFavCount {
  background: rgba(239, 68, 68, 0.22);
  color: #f87171;
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 700;
}

/* ─── Row inside a section ─── */
.DiscoveryRow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.DiscoveryRowHeader {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0;
  gap: 16px;
}

.DiscoveryRowHeading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.DiscoveryRowLabel {
  margin: 0;
  color: #e6fffb;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
}

.DiscoveryRowDesc {
  margin: 0;
  color: rgba(230, 255, 251, 0.45);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  line-height: 1.4;
  max-width: 480px;
}

.DiscoveryRowArrows {
  display: flex;
  gap: 6px;
}

.DiscoveryArrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(26, 170, 122, 0.28);
  background: rgba(10, 14, 18, 0.65);
  color: rgba(230, 255, 251, 0.65);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.DiscoveryArrow:hover {
  background: rgba(26, 170, 122, 0.15);
  border-color: #1aaa7a;
  color: #e6fffb;
}

/* Track wrapper: provides edge-fade masks */
.DiscoveryTrackWrap {
  position: relative;
}

.DiscoveryTrackWrap::before,
.DiscoveryTrackWrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(24px, 5vw, 72px);
  pointer-events: none;
  z-index: 2;
}

.DiscoveryTrackWrap::before {
  left: 0;
  background: linear-gradient(to right, #0a0e12 30%, transparent);
}

.DiscoveryTrackWrap::after {
  right: 0;
  background: linear-gradient(to left, #0a0e12 30%, transparent);
}

/* Horizontal scroll track */
.DiscoveryTrack {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 22px;
  scrollbar-width: none;
}

.DiscoveryTrack::-webkit-scrollbar {
  display: none;
}

/* ─── Card ─── */
.DiscoveryCard {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 18, 24, 0.9);
  border: 1px solid rgba(26, 170, 122, 0.13);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

.DiscoveryCard:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(26, 170, 122, 0.5);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(26, 170, 122, 0.12);
}

.DiscoveryCardImage {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

/* ─── Card art: real image or gradient+emoji fallback ─── */
.DiscoveryCardArt {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image variant */
.DiscoveryCardArtImg {
  overflow: hidden;
}

.DiscoveryCardArtImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.DiscoveryCard:hover .DiscoveryCardArtImage {
  transform: scale(1.06);
}

.DiscoveryCardArtImgOverlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Emoji fallback variant */
.DiscoveryCardArtIcon {
  font-size: 3.8rem;
  opacity: 0.8;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.55));
  transition: transform 0.35s ease, opacity 0.35s ease;
  user-select: none;
}

.DiscoveryCard:hover .DiscoveryCardArtIcon {
  transform: scale(1.14);
  opacity: 1;
}

.DiscoveryCardGradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(12, 18, 24, 0.95), transparent);
  pointer-events: none;
  z-index: 2;
}

.DiscoveryFav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8);
}

.DiscoveryCard:hover .DiscoveryFav {
  opacity: 1;
  transform: scale(1);
}

.DiscoveryFav:hover {
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
}

.DiscoveryFav.is-active {
  opacity: 1;
  transform: scale(1);
  background: rgba(239, 68, 68, 0.28);
  color: #f87171;
}

.DiscoveryCardBadge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(26, 170, 122, 0.88);
  color: #fff;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 3;
  backdrop-filter: blur(4px);
}

.DiscoveryCardBody {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.DiscoveryCardTitle {
  color: #e6fffb;
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.02em;
}

.DiscoveryCardSub {
  color: rgba(230, 255, 251, 0.48);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
}

.DiscoveryCardTags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.DiscoveryTag {
  background: rgba(26, 170, 122, 0.1);
  border: 1px solid rgba(26, 170, 122, 0.18);
  color: rgba(140, 240, 212, 0.75);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─── Detail overlay ─── */
.DiscoveryOverlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  animation: discoveryFadeIn 0.22s ease;
}

@keyframes discoveryFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.DiscoveryDetail {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(175deg, #0f1820 0%, #0a1016 100%);
  border: 1px solid rgba(26, 170, 122, 0.22);
  border-radius: 24px;
  box-shadow:
    0 48px 96px rgba(0, 0, 0, 0.55),
    0 0 64px rgba(26, 170, 122, 0.07);
  animation: discoverySlideUp 0.28s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 170, 122, 0.3) transparent;
}

@keyframes discoverySlideUp {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.DiscoveryDetailClose {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

.DiscoveryDetailClose:hover {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
}

/* ─── Detail hero art: gradient + icon ─── */
.DiscoveryDetailHero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.DiscoveryDetailHeroImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.DiscoveryDetailHeroIcon {
  font-size: clamp(4rem, 12vw, 7rem);
  opacity: 0.72;
  filter: drop-shadow(0 4px 36px rgba(0, 0, 0, 0.55));
  user-select: none;
}

.DiscoveryDetailBody {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.DiscoveryDetailKicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: rgba(140, 240, 212, 0.65);
  font-weight: 600;
}

.DiscoveryDetailTitle {
  margin: 0;
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
  color: #e6fffb;
  line-height: 1.12;
  font-weight: 700;
}

.DiscoveryDetailDesc {
  margin: 0;
  color: rgba(230, 255, 251, 0.68);
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.DiscoveryDetailTags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.DiscoveryDetailActions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.DiscoveryDetailButton {
  text-decoration: none;
}

/* ─── Empty state ─── */
.DiscoveryEmptyState {
  width: 100%;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid rgba(26, 170, 122, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 22, 30, 0.96), rgba(8, 13, 19, 0.92)),
    radial-gradient(circle at top right, rgba(26, 170, 122, 0.12), transparent 55%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.DiscoveryEmptyKicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1aaa7a;
}

.DiscoveryEmptyTitle {
  margin: 0;
  color: #e6fffb;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.08;
}

.DiscoveryEmptyDesc {
  margin: 0;
  color: rgba(230, 255, 251, 0.58);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 560px;
}

.DiscoveryEmptyButton {
  margin-top: 4px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .DiscoveryOverviewHeader {
    grid-template-columns: 1fr;
  }

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

  .DiscoverySpotlightTitle {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
  }

  .DiscoveryCard {
    flex: 0 0 256px;
  }
}

@media (max-width: 768px) {
  .DiscoveryOverviewInner,
  .DiscoveryRowSectionInner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .DiscoveryOverviewInner {
    gap: 16px;
    padding-top: max(26px, calc(7vh + 8px));
  }

  .DiscoveryToolbarInner {
    padding: 8px 16px;
    gap: 10px;
  }

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

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

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

  .DiscoverySearch {
    flex: 1 1 160px;
    max-width: 100%;
  }

  .DiscoverySpotlightContent {
    padding: 0 16px 40px;
    max-width: 100%;
  }

  .DiscoverySpotlightDesc {
    -webkit-line-clamp: 2;
  }

  .DiscoverySpotlightArtIcon {
    font-size: clamp(5rem, 30vw, 12rem);
    opacity: 0.1;
  }

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

  .DiscoveryTrack {
    padding: 8px 0 16px;
    gap: 14px;
  }

  .DiscoveryTrackWrap::before,
  .DiscoveryTrackWrap::after {
    width: 16px;
  }

  .DiscoveryCard {
    flex: 0 0 210px;
  }

  .DiscoveryCardBody {
    padding: 10px 14px 14px;
  }

  .DiscoveryCardTitle {
    font-size: 0.9rem;
  }

  .DiscoveryCardArtIcon {
    font-size: 3rem;
  }

  .DiscoveryDetail {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 20px;
  }

  .DiscoveryDetailBody {
    padding: 20px 20px 28px;
  }

  .DiscoveryOverlay {
    padding: 20px 12px;
  }

  .DiscoveryFav {
    opacity: 1;
    transform: scale(1);
  }

  .DiscoverySpotlightActions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .DiscoveryScrollHint {
    bottom: 16px;
  }

  .DiscoveryEmptyState {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .DiscoveryCard {
    flex: 0 0 178px;
  }

  .DiscoveryCardImage {
    aspect-ratio: 16 / 11;
  }

  .DiscoveryRowLabel {
    font-size: 0.95rem;
  }

  .DiscoveryCardArtIcon {
    font-size: 2.6rem;
  }
}

@media (orientation: portrait) {
  .DiscoveryHero {
    height: 100dvh;
    min-height: 100dvh;
  }
}

/* Light theme overrides */
.theme-light .DiscoveryHero {
  background: #f4f9f8;
  color: #141d1b;
}

.theme-light .DiscoveryRowSection {
  background: #ffffff;
}

.theme-light .DiscoveryOverviewCard {
  background: #ffffff;
  border: 1px solid #cddeda;
  color: #141d1b;
}

.theme-light .DiscoveryOverviewCard:hover {
  border-color: #00b89c;
  box-shadow: 0 12px 30px rgba(0, 184, 156, 0.08);
}

.theme-light .DiscoveryOverviewTitle {
  color: #141d1b;
}

.theme-light .DiscoveryOverviewDescription {
  color: #4a5c58;
}

.theme-light .DiscoveryOverviewMeta {
  color: #7a8e89;
}

.theme-light .DiscoveryToolbarFixed {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(205, 222, 218, 0.6);
}

.theme-light .DiscoveryToolbarFixed input {
  background: #f4f9f8;
  border: 1px solid #cddeda;
  color: #141d1b;
}

.theme-light .DiscoveryToolbarFixed input::placeholder {
  color: #7a8e89;
}

.theme-light .DiscoveryDetailHero {
  background: #f4f9f8;
  color: #141d1b;
}

.theme-light .DiscoveryDetailTitle {
  color: #141d1b;
}

.theme-light .DiscoveryDetailDescription {
  color: #4a5c58;
}

.theme-light .DiscoveryDetailMeta {
  color: #7a8e89;
}
