/* Category page: hero + "Nu rata aceste evenimente" (promoted band) */

.cx-wrap { max-width: 80rem; margin: 0 auto; padding: 0 2rem; box-sizing: border-box; }

/* ---------- Hero ---------- */
.cx-hero { margin-top: 68px; background: #F8FAFC; border-bottom: 1px solid #E2E8F0; color: #1E293B; }
.cx-hero .cx-wrap { padding-top: 1.5rem; padding-bottom: 1.5rem; }
/* compact: thumbnail | title + lede | stats */
.cx-hero__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; }
.cx-hero__text { min-width: 0; }
.cx-hero__title { margin: 0; font-size: 2.75rem; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: #1E293B; }
.cx-hero__lede { margin: .375rem 0 0; max-width: 40rem; font-size: 1rem; line-height: 1.5; color: #64748B; }
.cx-stats { display: flex; flex-wrap: nowrap; }
.cx-stat { padding: 0 1.5rem; border-left: 1px solid #E2E8F0; }
.cx-stat:first-child { padding-left: 0; border-left: 0; }
.cx-stat:last-child { padding-right: 0; }
.cx-stat__num { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #1E293B; }
.cx-stat:first-child .cx-stat__num { color: #A51C30; }
.cx-stat__label { margin-top: .25rem; font-size: .8125rem; color: #64748B; }
.cx-hero__media { order: -1; position: relative; width: 168px; height: 104px; border-radius: 18px; overflow: hidden; background: #E2E8F0; box-shadow: 0 12px 30px -18px rgba(30,41,59,.4); }
.cx-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* pills: always one row; arrows + edge fades appear only when they overflow */
.cx-pills { position: relative; margin-top: 1.25rem; }
.cx-genres { display: flex; flex-wrap: nowrap; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.cx-genres::-webkit-scrollbar { display: none; }
.cx-pills.has-next .cx-genres { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); }
.cx-pills.has-prev .cx-genres { -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px); mask-image: linear-gradient(90deg, transparent, #000 96px); }
.cx-pills.has-prev.has-next .cx-genres { -webkit-mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); }
.cx-pills__btn { position: absolute; top: 50%; z-index: 2; display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 9999px; background: #FFFFFF; border: 1px solid #E2E8F0; color: #1E293B; box-shadow: 0 4px 14px rgba(30,41,59,.14); cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.cx-pills__btn:hover { border-color: #A51C30; color: #A51C30; }
.cx-pills__btn--prev { left: 0; }
.cx-pills__btn--next { right: 0; }
.cx-pills.has-prev .cx-pills__btn--prev,
.cx-pills.has-next .cx-pills__btn--next { display: inline-flex; }
.cx-genres .genre-pill { flex: none; display: inline-flex; align-items: center; padding: .5rem 1rem; font-size: .875rem; font-weight: 600; line-height: 1.25rem; color: #1E293B; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 9999px; transition: border-color .15s ease, color .15s ease, background-color .15s ease; cursor: pointer; }
.cx-genres .genre-pill:hover { border-color: #A51C30; color: #A51C30; }
.cx-genres .genre-pill.active { background: #A51C30; border-color: #A51C30; color: #FFFFFF; font-weight: 700; }

/* ---------- Promoted band ---------- */
.cx-feat { position: relative; overflow: hidden; background: #1E293B; color: #FFFFFF; }
.cx-feat__bg { position: absolute; top: -80px; left: -80px; width: calc(100% + 160px); height: calc(100% + 160px); max-width: none; object-fit: cover; filter: blur(60px) saturate(1.3); opacity: .5; transition: opacity .4s ease; pointer-events: none; }
.cx-feat__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,41,59,.55) 0%, rgba(30,41,59,.88) 100%); pointer-events: none; }
.cx-feat__glow { position: absolute; top: -220px; right: -160px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(165,28,48,.45) 0%, rgba(165,28,48,0) 70%); pointer-events: none; }
.cx-feat__inner { position: relative; padding-top: 4rem; padding-bottom: 4.5rem; }
.cx-feat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.cx-feat__title { margin: 0; font-size: 2.125rem; font-weight: 800; letter-spacing: -.02em; color: #FFFFFF; }
.cx-feat__label { font-size: .8125rem; font-weight: 600; color: rgba(255,255,255,.6); }
.cx-feat__list { margin-top: 2rem; }
.cx-feat__dots { display: none; }

/* shared bits */
.cx-date { width: 76px; padding: 11px 0; border-radius: 16px; background: #FFFFFF; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); flex: none; }
.cx-date__wd { font-size: .75rem; font-weight: 700; color: #A51C30; letter-spacing: .06em; text-transform: uppercase; }
.cx-date__day { font-size: 2rem; font-weight: 800; color: #1E293B; line-height: 1.05; }
.cx-date__mo { font-size: .75rem; font-weight: 700; color: #64748B; letter-spacing: .06em; text-transform: uppercase; }
.cx-chips { position: absolute; top: 20px; left: 20px; display: flex; align-items: flex-start; gap: 10px; z-index: 2; }
.cx-soon { padding: 7px 13px; border-radius: 9999px; background: #A51C30; color: #FFFFFF; font-size: .75rem; font-weight: 700; }
.cx-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #FFFFFF; }
.cx-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9375rem; color: rgba(255,255,255,.85); }
.cx-meta span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cx-meta svg { flex: none; }
.cx-price__label { font-size: .75rem; color: rgba(255,255,255,.7); }
.cx-price__value { font-size: 1.625rem; font-weight: 800; line-height: 1.15; color: #FFFFFF; }
.cx-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 9999px; background: #A51C30; color: #FFFFFF; font-size: .9375rem; font-weight: 700; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(165,28,48,.8); transition: background-color .15s ease; }
.cx-cta--off { background: rgba(255,255,255,.16); box-shadow: none; }

/* 1 event: billboard */
.cx-bill { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 3rem; }
.cx-bill__media { position: relative; display: block; height: 440px; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.12); }
.cx-bill__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cx-bill__media:hover img { transform: scale(1.03); }
.cx-bill__body { display: flex; flex-direction: column; gap: 1.125rem; min-width: 0; }
.cx-bill__title { margin: 0; font-size: 3rem; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: #FFFFFF; }
.cx-bill__title a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.cx-bill .cx-meta { flex-direction: column; gap: 10px; font-size: 1rem; }
.cx-bill__desc { margin: 0; font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.72); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-bill__buy { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: .625rem; }
.cx-bill .cx-cta { height: 58px; padding: 0 32px; font-size: 1.0625rem; }
.cx-bill .cx-price__label { font-size: .8125rem; color: rgba(255,255,255,.65); }
.cx-bill .cx-price__value { font-size: 1.875rem; letter-spacing: -.02em; }

/* 2+ events: cards */
.cx-grid { display: grid; gap: 1.5rem; }
.cx-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cx-n3 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(280px, auto)); }
.cx-n3 > .cx-card:first-child { grid-row: span 2; min-height: 584px; }
.cx-nmany { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cx-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; border-radius: 24px; overflow: hidden; background: #0F172A; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); outline: 1px solid rgba(255,255,255,.12); color: #FFFFFF; }
.cx-nmany .cx-card { min-height: 440px; }
.cx-card__media { position: absolute; inset: 0; }
.cx-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cx-card:hover .cx-card__media img { transform: scale(1.04); }
.cx-card__body { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 120px 30px 28px; background: linear-gradient(180deg, rgba(30,41,59,0) 0%, rgba(30,41,59,.85) 45%, rgba(30,41,59,.97) 100%); }
.cx-card__title { margin: 0; font-size: 1.875rem; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cx-nmany .cx-card__title { font-size: 1.5rem; }
.cx-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: .375rem; padding-top: 1.125rem; border-top: 1px solid rgba(255,255,255,.18); }
.cx-card .cx-pill { display: none; }
.cx-n3 > .cx-card:first-child .cx-pill { display: inline-flex; }
.cx-n3 > .cx-card:first-child .cx-card__body { padding: 150px 34px 30px; gap: .875rem; }
.cx-n3 > .cx-card:first-child .cx-card__title { font-size: 2.5rem; line-height: 1.08; letter-spacing: -.025em; }
.cx-n3 > .cx-card:first-child .cx-price__value { font-size: 1.75rem; }

/* 3 events: the two side cards are horizontal glass cards on desktop */
@media (min-width: 769px) {
    .cx-n3 > .cx-card:not(:first-child) { flex-direction: row; justify-content: flex-start; min-height: 280px; border-radius: 20px; background: rgba(255,255,255,.08); outline: 0; border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
    .cx-n3 > .cx-card:not(:first-child) .cx-card__media { position: relative; inset: auto; flex: 0 0 44%; }
    .cx-n3 > .cx-card:not(:first-child) .cx-chips { top: 14px; left: 14px; }
    .cx-n3 > .cx-card:not(:first-child) .cx-date { width: 58px; padding: 7px 0; border-radius: 12px; }
    .cx-n3 > .cx-card:not(:first-child) .cx-date__wd,
    .cx-n3 > .cx-card:not(:first-child) .cx-date__mo { font-size: .625rem; }
    .cx-n3 > .cx-card:not(:first-child) .cx-date__day { font-size: 1.4375rem; }
    .cx-n3 > .cx-card:not(:first-child) .cx-soon { padding: 5px 10px; font-size: .6875rem; }
    .cx-n3 > .cx-card:not(:first-child) .cx-card__body { flex: 1; min-width: 0; padding: 22px 24px; gap: .625rem; background: none; }
    .cx-n3 > .cx-card:not(:first-child) .cx-card__title { font-size: 1.3125rem; line-height: 1.25; letter-spacing: -.01em; }
    .cx-n3 > .cx-card:not(:first-child) .cx-meta { flex-direction: column; gap: 6px; font-size: .875rem; color: rgba(255,255,255,.78); }
    .cx-n3 > .cx-card:not(:first-child) .cx-card__foot { margin-top: auto; padding-top: .875rem; border-top-color: rgba(255,255,255,.14); }
    .cx-n3 > .cx-card:not(:first-child) .cx-price__value { font-size: 1.25rem; }
    .cx-n3 > .cx-card:not(:first-child) .cx-cta { height: 44px; padding: 0 18px; font-size: .875rem; box-shadow: none; }
    .cx-n3 > .cx-card:not(:first-child) .cx-cta__more { display: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .cx-hero__grid { grid-template-columns: auto minmax(0, 1fr); }
    .cx-stats { grid-column: 1 / -1; }
    .cx-bill { grid-template-columns: 1fr; gap: 2rem; }
    .cx-nmany { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .cx-wrap { padding: 0 1.25rem; }
    .cx-hero { margin-top: 72px; }
    .cx-hero .cx-wrap { padding-top: 1rem; padding-bottom: 1rem; }
    .cx-hero__grid { grid-template-columns: 64px minmax(0, 1fr); gap: .875rem 1rem; }
    .cx-hero__media { width: 64px; height: 64px; border-radius: 14px; }
    .cx-hero__title { font-size: 1.75rem; }
    .cx-hero__lede { margin-top: .125rem; font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cx-stat { padding: 0 1rem; }
    .cx-stat__num { font-size: 1.25rem; }
    .cx-stat__label { font-size: .75rem; margin-top: .125rem; }
    .cx-pills { margin: .875rem -1.25rem 0; }
    .cx-genres { padding: 0 1.25rem 2px; }
    .cx-pills__btn, .cx-pills.has-prev .cx-pills__btn--prev, .cx-pills.has-next .cx-pills__btn--next { display: none; }
    .cx-genres .genre-pill { height: 44px; padding: 0 1.125rem; }

    .cx-feat__inner { padding-top: 2.25rem; padding-bottom: 2.5rem; }
    .cx-feat__title { font-size: 1.5rem; }
    .cx-feat__label { font-size: .75rem; }
    .cx-feat__list { margin-top: 1.125rem; }

    .cx-bill { gap: 1.25rem; }
    .cx-bill__media { height: 220px; border-radius: 20px; }
    .cx-bill__title { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.02em; }
    .cx-bill .cx-meta { font-size: .875rem; gap: 8px; }
    .cx-bill__desc { display: none; }
    .cx-bill__buy { flex-direction: column-reverse; align-items: stretch; gap: .875rem; margin-top: 0; }
    .cx-bill .cx-cta { height: 54px; font-size: 1rem; }
    .cx-bill .cx-price { display: flex; align-items: baseline; gap: .5rem; }
    .cx-bill .cx-price__value { font-size: 1.625rem; }
    .cx-chips { top: 12px; left: 12px; gap: 8px; }
    .cx-date { width: 56px; padding: 7px 0; border-radius: 12px; }
    .cx-date__wd, .cx-date__mo { font-size: .625rem; }
    .cx-date__day { font-size: 1.4375rem; }
    .cx-soon { padding: 5px 10px; font-size: .6875rem; }

    /* 2+ events: horizontal carousel */
    .cx-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1.25rem; padding: 0 1.25rem 4px; scroll-padding: 0 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .cx-grid::-webkit-scrollbar { display: none; }
    .cx-grid > .cx-card,
    .cx-n3 > .cx-card:first-child { flex: 0 0 82%; max-width: 320px; min-height: 420px; border-radius: 20px; scroll-snap-align: start; }
    .cx-card__body,
    .cx-n3 > .cx-card:first-child .cx-card__body { padding: 90px 18px 18px; gap: .625rem; }
    .cx-card__title,
    .cx-nmany .cx-card__title,
    .cx-n3 > .cx-card:first-child .cx-card__title { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.01em; }
    .cx-n3 > .cx-card:first-child .cx-pill { display: none; }
    .cx-meta { font-size: .8125rem; flex-direction: column; gap: 6px; }
    .cx-card__foot { padding-top: .75rem; }
    .cx-card .cx-price__value,
    .cx-n3 > .cx-card:first-child .cx-price__value { font-size: 1.1875rem; }
    .cx-card .cx-cta { height: 44px; padding: 0 18px; font-size: .875rem; box-shadow: none; }
    .cx-card .cx-cta__more { display: none; }

    .cx-feat__dots { display: flex; justify-content: center; gap: 6px; margin-top: 1.25rem; }
    .cx-feat__dots span { width: 6px; height: 6px; border-radius: 9999px; background: rgba(255,255,255,.3); transition: width .2s ease, background-color .2s ease; }
    .cx-feat__dots span.is-active { width: 22px; background: #FFFFFF; }
}

@media (prefers-reduced-motion: reduce) {
    .cx-bill__media img, .cx-card__media img, .cx-feat__bg { transition: none; }
    .cx-bill__media:hover img, .cx-card:hover .cx-card__media img { transform: none; }
}
