/*==============================
	AFP - ajustari peste tema (main.css)
==============================*/

/*------------------------------
	Prima pagina - carusel "Filme adaugate recent"
------------------------------*/

/* fundal care urmeaza filmul curent din carusel */
.home__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.home__backdrop-img {
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: -20px;
  left: -20px;
  background: no-repeat center/cover;
  filter: blur(6px) saturate(1.2);
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s ease, transform 9s ease-out;
}
.home__backdrop-img.is-visible {
  opacity: 0.4;
  transform: scale(1);
}
.home__backdrop:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(180deg, rgba(40,40,45,0.35) 0%, rgba(40,40,45,0.6) 55%, #28282d 100%),
    linear-gradient(90deg, rgba(40,40,45,0.7) 0%, rgba(40,40,45,0) 50%, rgba(40,40,45,0.7) 100%);
}

/* posterele care intra in cadru apar, cele care ies se estompeaza */
.splide--home .splide__slide {
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}
.splide--home.is-initialized .splide__slide:not(.is-visible) {
  opacity: 0.2;
  transform: scale(0.9);
}

/* poster: ridicare si zoom la hover */
.splide--home .item__cover {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.splide--home .item__cover img {
  transition: transform 0.8s ease;
}
.splide--home .item__cover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,85,165,0.35);
}
.splide--home .item__cover:hover img {
  transform: scale(1.06);
}

/* bara de progres pana la urmatorul film */
.splide--home .splide__progress {
  width: 280px;
  max-width: 60%;
  margin: 28px auto 0;
  height: 2px;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.08);
  overflow: hidden;
}
.splide--home .splide__progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
  box-shadow: 0 0 8px rgba(255,85,165,0.7);
}

/* sageti: umplere la hover */
@media (min-width: 1200px) {
  .splide--home .splide__arrow {
    transition: 0.4s ease;
    transition-property: background-color, border-color, transform;
  }
  .splide--home .splide__arrow:hover {
    background-color: rgba(255,85,165,0.2);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home__backdrop-img,
  .splide--home .splide__slide,
  .splide--home .item__cover,
  .splide--home .item__cover img {
    transition: none;
  }
}

/*------------------------------
	Carduri lista (Catalog): descriere justificata, taiata la inaltimea posterului
	(numarul de randuri e calculat in main.js)
------------------------------*/
@media (min-width: 576px) {
  .item--list .item__content {
    height: auto;
  }
  .item--list .item__description {
    margin-top: 12px;
    width: 100%;
    padding-right: 0;
  }
  .item--list .item__description p {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-overflow: ellipsis;
  }
}

/*------------------------------
	Prima pagina - carusel coverflow "Filme noi"
	(pozitiile --cf-* sunt calculate in main.js)
------------------------------*/
.section--coverflow {
  overflow: hidden;
}
.splide--coverflow {
  position: relative;
}
.splide--coverflow .splide__track {
  overflow: visible;
  padding: 10px 0 20px;
}
.splide--coverflow .splide__slide {
  cursor: pointer;
}
.splide--coverflow .item {
  margin-top: 0;
  transform: perspective(1200px) translateX(var(--cf-shift, 0)) rotateY(var(--cf-rotate, 0deg)) scale(var(--cf-scale, 1));
  opacity: var(--cf-opacity, 1);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
  will-change: transform;
}
.splide--coverflow .is-instant .item,
.splide--coverflow .is-instant .item__cover,
.splide--coverflow .is-instant .item__content {
  transition: none !important;
}

/* posterul din centru: umbra si reflexie roz */
.splide--coverflow .item__cover {
  transition: box-shadow 0.9s ease, filter 0.9s ease;
  filter: brightness(0.55) saturate(0.8);
}
.splide--coverflow .is-center .item__cover {
  filter: none;
  box-shadow: 0 24px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255,85,165,0.25);
}
.splide--coverflow .item__cover:before,
.splide--coverflow .item__cover:hover:before {
  opacity: 0;
}
.splide--coverflow .is-center .item__cover:hover:before {
  opacity: 0.4;
}

/* titlul si detaliile apar doar la filmul din centru */
.splide--coverflow .item__content {
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.splide--coverflow .is-center .item__content {
  opacity: 1;
  transform: none;
  transition-delay: 0.25s;
  pointer-events: auto;
}
.splide--coverflow .item__title,
.splide--coverflow .item__category,
.splide--coverflow .item__wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  text-align: center;
}
.splide--coverflow .item__wrap {
  display: flex;
  align-items: center;
  margin-top: 8px;
}
.splide--coverflow .item__rate {
  margin-top: 0;
}
.splide--coverflow .item__list {
  display: inline-flex;
  margin-left: 12px;
}
.splide--coverflow .item__list li {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border: 1px solid rgba(199,199,199,0.5);
  padding: 0 5px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #c7c7c7;
}

/* sageti, aliniate cu titlul sectiunii (ca la caruselul de sus) */
.splide--coverflow .splide__arrows {
  display: none;
}
@media (min-width: 1200px) {
  .splide--coverflow .splide__arrows {
    display: block;
    position: relative;
  }
  .splide--coverflow .splide__arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,85,165,0.5);
    background-color: transparent;
    position: absolute;
    top: -65px;
    transform: none;
    opacity: 1;
    transition: 0.4s ease;
    transition-property: background-color, border-color, transform;
  }
  .splide--coverflow .splide__arrow svg {
    width: 24px;
    height: auto;
    fill: #fff;
    transform: none;
  }
  .splide--coverflow .splide__arrow:hover {
    border-color: rgba(255,85,165,0.8);
    background-color: rgba(255,85,165,0.2);
    transform: translateY(-2px);
  }
  .splide--coverflow .splide__arrow--prev {
    right: 60px;
    left: auto;
  }
  .splide--coverflow .splide__arrow--next {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .splide--coverflow .item,
  .splide--coverflow .item__cover,
  .splide--coverflow .item__content {
    transition: none;
  }
}

/* bara de progres coverflow: centrata, mai scurta decat cea de sus */
.splide--coverflow .splide__progress {
  width: 160px;
  max-width: 40%;
  margin: 20px auto 0;
  height: 2px;
  border-radius: 2px;
  background-color: rgba(255,255,255,0.08);
  overflow: hidden;
}
.splide--coverflow .splide__progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
  box-shadow: 0 0 8px rgba(255,85,165,0.7);
}

/* fundal estompat si in sectiunea coverflow (aceleasi straturi ca sus) */
.section--coverflow .container {
  position: relative;
  z-index: 2;
}
.section--coverflow .home__backdrop:after {
  background:
    linear-gradient(180deg, #28282d 0%, rgba(40,40,45,0.5) 22%, rgba(40,40,45,0.5) 72%, #28282d 100%),
    linear-gradient(90deg, rgba(40,40,45,0.7) 0%, rgba(40,40,45,0) 50%, rgba(40,40,45,0.7) 100%);
}

/*==============================
	Carduri - titlu, nota, hover
==============================*/

/* 1. titlurile stau pe un rand; cele lungi defileaza (vezi "Titluri care defileaza" mai jos) */

/* 2. nota colorata dupa valoare (steaua preia culoarea textului) */
.item__rate:before {
  background: currentColor;
  -webkit-mask: url("../img/thm01/star.svg") no-repeat center / 100% auto;
  mask: url("../img/thm01/star.svg") no-repeat center / 100% auto;
}
.item__rate--mare { color: #3ecf8e; }
.item__rate--medie { color: #f5c451; }
.item__rate--mica { color: #ff5860; }

/* 3. hover pe cardurile din Catalog, ca la caruselul de sus */
.item--list .item__cover {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.item--list .item__cover img {
  transition: transform 0.8s ease;
}
.item--list .item__cover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,85,165,0.35);
}
.item--list .item__cover:hover img {
  transform: scale(1.06);
}

/* 4. aparitie treptata la derulare (clasa js-reveal e pusa din main.js) */
.js-reveal .content .item--list,
.js-reveal .recent .item {
  opacity: 0;
  transform: translateY(24px);
}
.js-reveal .content .item--list.is-revealed,
.js-reveal .recent .item.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

/*==============================
	Titluri de sectiune la fel peste tot (6) si tab-uri cu numar (5)
==============================*/
.content__title {
  text-transform: uppercase;
  font-size: 32px;
  line-height: 44px;
}
.content__title b,
.section__title b {
  font-weight: 500;
}
.section__title--carousel,
.recent .section__title {
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .content__title {
    font-size: 36px;
    line-height: 48px;
  }
}
.content__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: #c7c7c7;
  background-color: rgba(255,255,255,0.07);
  transition: 0.4s ease;
}
.content__tabs button.active .content__count {
  color: #fff;
  background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
}
.content__empty {
  margin: 30px 0 10px;
  color: #c7c7c7;
  font-size: 15px;
}

/*==============================
	7. Banda de statistici
==============================*/
.arhiva-stats {
  position: relative;
  background-color: #2b2b31;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.arhiva-stats__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0;
  padding: 26px 0;
  list-style: none;
}
.arhiva-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
  padding: 10px;
  text-align: center;
}
.arhiva-stats__num {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.arhiva-stats__label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7c7c7;
}
@media (min-width: 768px) {
  .arhiva-stats__item {
    width: 25%;
  }
  .arhiva-stats__item + .arhiva-stats__item {
    border-left: 1px solid rgba(255,255,255,0.06);
  }
  .arhiva-stats__num {
    font-size: 44px;
  }
}

/*==============================
	10. Vazute recent
==============================*/
.recent__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.recent__head .section__title {
  margin-bottom: 0;
}
.recent__clear {
  font-size: 13px;
  color: #c7c7c7;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 7px 14px;
  background: transparent;
  transition: 0.4s ease;
}
.recent__clear:hover {
  color: #fff;
  border-color: rgba(255,85,165,0.6);
}
.recent .item__cover img {
  transition: transform 0.8s ease;
}
.recent .item__cover:hover img {
  transform: scale(1.06);
}

/*==============================
	11. Cautare cu sugestii
==============================*/
.search-live {
  position: relative;
}
@media (min-width: 1200px) {
  .header__search input {
    width: 260px;
    transition: width 0.4s ease, border-color 0.4s ease;
  }
  .header__search input:focus {
    width: 340px;
  }
}
.search-live__box {
  position: absolute;
  z-index: 110;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background-color: #28282d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  padding: 6px;
}
.header__search .search-live__box {
  left: auto;
  width: 380px;
}
.search-live__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  color: #fff;
  transition: background-color 0.2s ease;
}
.search-live__item:hover,
.search-live__item.is-active {
  background-color: rgba(255,85,165,0.12);
  color: #fff;
}
.search-live__item img {
  width: 38px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.search-live__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-live__title {
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-live__title mark {
  padding: 0;
  background: none;
  color: #ff55a5;
  font-weight: 600;
}
.search-live__meta {
  font-size: 12px;
  line-height: 18px;
  color: #a0a0a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-live__all {
  display: block;
  margin-top: 4px;
  padding: 10px 8px 6px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
  text-align: center;
  color: #ff55a5;
}
.search-live__all:hover {
  color: #fff;
}
.search-live__empty {
  padding: 14px 10px;
  font-size: 13px;
  color: #c7c7c7;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .item--list .item__cover,
  .item--list .item__cover img,
  .header__search input {
    transition: none;
  }
}
.menu__search .search-live__box {
  min-width: 0;
}

/*==============================================================
	PAGINA FILMULUI
==============================================================*/

/* bara de progres a citirii, sus */
.film-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1002;
  pointer-events: none;
}
.film-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff55a5 0%, #ff5860 100%);
  box-shadow: 0 0 10px rgba(255,85,165,0.8);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* aparitie la derulare pentru elementele marcate data-reveal */
.js-film [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-film [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/*---------------- prezentare ----------------*/
.film-hero {
  position: relative;
  margin-top: 70px;
  padding: 40px 0 90px;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1f1f24;
}
.film-hero .container {
  position: relative;
  z-index: 3;
}
.film-hero__bg {
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: -40px;
  left: -40px;
  z-index: 1;
  background: no-repeat center / cover;
  filter: blur(8px) saturate(1.25);
  opacity: 0.45;
  transform: scale(1.1);
  animation: film-kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes film-kenburns {
  0% { transform: scale(1.1) translate3d(0, 0, 0); }
  100% { transform: scale(1.25) translate3d(-2%, -2%, 0); }
}
.film-hero__shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 25% 45%, rgba(255,85,165,0.16) 0%, rgba(255,85,165,0) 55%),
    linear-gradient(180deg, rgba(31,31,36,0.55) 0%, rgba(31,31,36,0.35) 45%, #28282d 100%),
    linear-gradient(90deg, rgba(31,31,36,0.85) 0%, rgba(31,31,36,0.2) 60%, rgba(31,31,36,0.6) 100%);
}
.film-hero__crumbs {
  margin-bottom: 30px;
}

/* poster cu inclinare 3D dupa mouse */
.film-poster {
  position: relative;
  max-width: 340px;
  margin: 0 auto 30px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06), 0 0 60px rgba(255,85,165,0.18);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out, box-shadow 0.4s ease;
  animation: film-poster-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.film-poster img {
  display: block;
  width: 100%;
}
.film-poster__glare {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.film-poster:hover .film-poster__glare {
  opacity: 1;
}
@keyframes film-poster-in {
  0% { opacity: 0; transform: perspective(900px) rotateY(-25deg) translateX(-40px) scale(0.92); }
  100% { opacity: 1; transform: perspective(900px) rotateX(0deg) rotateY(0deg); }
}

.film-hero__info {
  text-align: center;
}
@media (min-width: 768px) {
  .film-hero__info {
    text-align: left;
    padding-left: 20px;
  }
  .film-poster {
    margin-bottom: 0;
  }
}

/* genuri ca pastile */
.film-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
@media (min-width: 768px) {
  .film-chips {
    justify-content: flex-start;
  }
}
.film-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #ff8cc2;
  background-color: rgba(255,85,165,0.1);
  border: 1px solid rgba(255,85,165,0.35);
  transition: 0.3s ease;
}
.film-chip:hover {
  color: #fff;
  background-color: rgba(255,85,165,0.35);
  transform: translateY(-2px);
}

/* titlul apare cuvant cu cuvant */
.film-title {
  color: #fff;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 26px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
@media (min-width: 768px) {
  .film-title { font-size: 44px; }
}
@media (min-width: 1200px) {
  .film-title { font-size: 56px; }
}
.film-title .film-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-60deg);
  transform-origin: 50% 100%;
  animation: film-word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.25s + var(--w) * 0.09s);
}
@keyframes film-word-in {
  to { opacity: 1; transform: none; }
}

/* nota in cerc + fapte */
.film-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 26px;
  margin-bottom: 30px;
}
@media (min-width: 768px) {
  .film-facts { justify-content: flex-start; }
}
.film-rating {
  position: relative;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}
.film-rating svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.film-rating circle {
  fill: none;
  stroke-width: 5;
}
.film-rating__track {
  stroke: rgba(255,255,255,0.1);
}
.film-rating__bar {
  stroke: currentColor;
  stroke-linecap: round;
  stroke-dasharray: 163.4;
  stroke-dashoffset: 163.4;
  filter: drop-shadow(0 0 6px currentColor);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.film-rating.is-revealed .film-rating__bar,
.film-facts.is-revealed .film-rating__bar {
  stroke-dashoffset: calc(163.4 - 163.4 * var(--nota) / 10);
}
.film-rating__num {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}
.film-facts__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.film-facts__list li {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.film-facts__list span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9d9da6;
}
.film-facts__list strong {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.film-facts__list a {
  color: #fff;
  border-bottom: 1px dashed rgba(255,85,165,0.6);
}
.film-facts__list a:hover {
  color: #ff55a5;
}

/* butoane */
.film-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
@media (min-width: 768px) {
  .film-actions { justify-content: flex-start; }
}
.film-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.film-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(255,85,165,0.6);
  background-color: rgba(255,85,165,0.12);
}
.film-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.film-btn--primary {
  border: none;
  background: linear-gradient(90deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 10px 30px rgba(255,85,165,0.35);
}
.film-btn--primary:hover {
  background: linear-gradient(90deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 14px 36px rgba(255,85,165,0.55);
}
/* sclipire care trece peste butonul principal */
.film-btn--primary:after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: film-shine 4s ease-in-out infinite 1.5s;
}
@keyframes film-shine {
  0%, 60% { left: -60%; }
  100% { left: 130%; }
}
.film-btn--ghost {
  background: transparent;
}

/* indicator de derulare */
.film-hero__scroll {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 14px;
}
.film-hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background-color: #ff55a5;
  animation: film-scroll 1.8s ease-in-out infinite;
}
@keyframes film-scroll {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/*---------------- sectiuni ----------------*/
.film-section {
  position: relative;
  padding: 60px 0;
  background-color: #28282d;
}
.film-section + .film-section {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.film-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 30px;
}
.film-section__head .section__title {
  margin-bottom: 0;
  text-transform: uppercase;
}
.film-section__hint {
  font-size: 13px;
  color: #9d9da6;
}

/*---------------- trailer ----------------*/
.film-trailer {
  z-index: 1;
}
.film-player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}
.film-player__poster {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: no-repeat center / cover;
  opacity: 0.75;
  transform: scale(1.03);
  transition: transform 6s ease, opacity 0.6s ease;
}
.film-player:hover .film-player__poster {
  transform: scale(1.1);
}
.film-player:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.film-player__frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  /* cat timp e gol, stratul nu trebuie sa acopere butonul de play */
  pointer-events: none;
}
.film-player.is-playing .film-player__frame {
  pointer-events: auto;
}
.film-player:not(.is-playing):not(.is-missing) {
  cursor: pointer;
}
.film-player__frame iframe,
.film-player__frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}
.film-player__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 10px 40px rgba(255,85,165,0.6);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.film-player__play:hover {
  transform: scale(1.12);
}
.film-player__play svg {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  margin-left: 5px;
  fill: #fff;
}
/* unde care pulseaza din butonul de play */
.film-player__ring {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,85,165,0.7);
  animation: film-pulse 2.4s ease-out infinite;
}
.film-player__ring + .film-player__ring {
  animation-delay: 1.2s;
}
@keyframes film-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.1); opacity: 0; }
}
.film-player__label {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 20px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}
.film-player__label span {
  color: #c7c7c7;
  font-weight: 400;
}
/* dupa pornire: iframe-ul acopera tot */
.film-player.is-playing .film-player__play,
.film-player.is-playing .film-player__label,
.film-player.is-playing .film-player__poster,
.film-player.is-playing:before {
  opacity: 0;
  pointer-events: none;
}
.film-player.is-playing .film-player__play {
  transform: scale(0.6);
  transition: 0.4s ease;
}

/* trailer indisponibil */
.film-player__missing {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: rgba(20,20,24,0.72);
  backdrop-filter: blur(4px);
}
.film-player.is-missing .film-player__missing {
  display: flex;
  animation: film-fade-in 0.6s ease both;
}
.film-player.is-missing .film-player__play,
.film-player.is-missing .film-player__label {
  display: none;
}
.film-player__missing svg {
  width: 54px;
  height: 54px;
  fill: #ff55a5;
  margin-bottom: 14px;
  opacity: 0.85;
}
.film-player__missing strong {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}
.film-player__missing p {
  max-width: 420px;
  margin: 8px 0 20px;
  font-size: 14px;
  color: #c7c7c7;
}
@keyframes film-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* stinge luminile */
.film-lights {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: #c7c7c7;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  transition: 0.3s ease;
}
.film-lights svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.film-lights:hover,
.film-lights[aria-pressed="true"] {
  color: #ffd76a;
  border-color: rgba(255,215,106,0.5);
}
.film-dim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.film-lights-off .film-dim {
  opacity: 1;
  visibility: visible;
}
.film-lights-off .film-trailer {
  z-index: 1001;
  background-color: transparent;
}
.film-lights-off .film-player {
  box-shadow: 0 0 120px rgba(255,85,165,0.25), 0 0 0 1px rgba(255,255,255,0.08);
}

/*---------------- echipa ----------------*/
.film-crew__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.film-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 18px;
  border-radius: 14px;
  text-align: center;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}
.film-person:hover {
  transform: translateY(-6px);
  border-color: rgba(255,85,165,0.45);
  background-color: rgba(255,85,165,0.06);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.film-person__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h), 70%, 55%) 0%, hsl(calc(var(--h) + 40), 70%, 40%) 100%);
  box-shadow: 0 8px 20px hsla(var(--h), 70%, 40%, 0.45);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.film-person:hover .film-person__avatar {
  transform: scale(1.1) rotate(-6deg);
}
.film-person__name {
  font-size: 15px;
  line-height: 20px;
  color: #fff;
}
.film-person__role {
  margin-top: 4px;
  font-size: 12px;
  color: #ff8cc2;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/*---------------- seria: linia timpului ----------------*/
.film-timeline {
  position: relative;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.film-timeline:before {
  content: '';
  position: absolute;
  top: 37px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,85,165,0) 0%, rgba(255,85,165,0.6) 10%, rgba(255,85,165,0.6) 90%, rgba(255,85,165,0) 100%);
}
.film-timeline__item {
  position: relative;
  flex: 0 0 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-snap-align: start;
}
.film-timeline__year {
  font-size: 13px;
  font-weight: 600;
  color: #9d9da6;
  margin-bottom: 8px;
}
.film-timeline__dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-bottom: 18px;
  border-radius: 50%;
  background-color: #28282d;
  border: 2px solid #ff55a5;
}
.film-timeline__card {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #fff;
}
.film-timeline__card img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  filter: brightness(0.75);
}
.film-timeline__card:hover img {
  transform: translateY(-6px);
  filter: none;
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
}
.film-timeline__title {
  margin-top: 10px;
  font-size: 15px;
  line-height: 20px;
}
.film-timeline__card .item__rate {
  font-size: 14px;
}
.film-timeline__item.is-current .film-timeline__year {
  color: #ff55a5;
}
.film-timeline__item.is-current .film-timeline__dot {
  background-color: #ff55a5;
  box-shadow: 0 0 0 6px rgba(255,85,165,0.2), 0 0 18px rgba(255,85,165,0.8);
  animation: film-dot 2s ease-in-out infinite;
}
.film-timeline__item.is-current img {
  filter: none;
  box-shadow: 0 0 0 2px #ff55a5, 0 14px 34px rgba(255,85,165,0.35);
}
@keyframes film-dot {
  50% { box-shadow: 0 0 0 10px rgba(255,85,165,0.08), 0 0 24px rgba(255,85,165,0.9); }
}

/*---------------- galerie ----------------*/
.film-gallery__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  /* posterul vertical in stanga pe doua randuri, imaginile orizontale in dreapta */
  .film-gallery__grid--3 {
    grid-template-columns: 240px 1fr;
    grid-template-rows: 170px 170px;
  }
  .film-gallery__grid--3 .film-gallery__item:first-child {
    grid-row: span 2;
  }
  .film-gallery__grid--2 {
    grid-template-columns: 240px 1fr;
    grid-template-rows: 356px;
  }
}
@media (min-width: 1200px) {
  .film-gallery__grid--3 {
    grid-template-columns: 220px 1fr 1fr;
    grid-template-rows: 305px;
  }
  .film-gallery__grid--3 .film-gallery__item:first-child {
    grid-row: auto;
  }
}
@media (max-width: 767px) {
  .film-gallery__item {
    max-height: 420px;
  }
}
.film-gallery__item {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1f1f24;
}
.film-gallery__item a {
  display: block;
  height: 100%;
}
.film-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 0.6s ease;
  filter: saturate(0.9);
}
.film-gallery__item:hover img {
  transform: scale(1.08);
  filter: saturate(1.15);
}
.film-gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  pointer-events: none;
}
.film-gallery__item:hover figcaption {
  transform: none;
}

/*---------------- povestea ----------------*/
.film-story__text {
  position: relative;
  font-size: 17px;
  line-height: 1.85;
  color: #d4d4da;
}
.film-story__text p {
  margin-bottom: 1.1em;
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.film-story__text p:first-of-type:first-letter {
  float: left;
  font-size: 4.2em;
  line-height: 0.85;
  font-weight: 600;
  margin: 0.08em 0.12em 0 0;
  background: linear-gradient(135deg, #ff5860 0%, #ff55a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.film-story__text b,
.film-story__text strong {
  color: #fff;
}
.film-card {
  display: flex;
  gap: 18px;
  margin: 0 0 24px;
  padding: 18px;
  border-radius: 14px;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}
/* pe ecrane late fisa sta in dreapta, iar textul o ocoleste si continua sub ea */
@media (min-width: 768px) {
  .film-story__text .film-card {
    float: right;
    width: 400px;
    margin: 6px 0 20px 32px;
    shape-outside: margin-box;
  }
}
.film-story__text:after {
  content: '';
  display: table;
  clear: both;
}
.film-card img {
  width: 90px;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.film-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
  align-content: start;
}
.film-card dt {
  font-weight: 400;
  color: #9d9da6;
}
.film-card dd {
  margin: 0;
  color: #fff;
}
.film-card .item__rate {
  margin-top: 0;
  font-size: 14px;
}

/*---------------- film anterior / urmator ----------------*/
.film-nav {
  padding: 30px 0 60px;
  background-color: #28282d;
}
.film-nav__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .film-nav__row {
    grid-template-columns: 1fr 1fr;
  }
}
.film-nav__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
  padding: 24px 28px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}
.film-nav__link.is-empty {
  border: none;
}
.film-nav__link--next {
  align-items: flex-end;
  text-align: right;
}
.film-nav__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: no-repeat center / cover;
  opacity: 0.3;
  filter: blur(2px);
  transition: transform 1.2s ease, opacity 0.6s ease, filter 0.6s ease;
}
.film-nav__link:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, rgba(40,40,45,0.9) 0%, rgba(40,40,45,0.4) 100%);
}
.film-nav__link--next:after {
  background: linear-gradient(270deg, rgba(40,40,45,0.9) 0%, rgba(40,40,45,0.4) 100%);
}
.film-nav__link:hover {
  color: #fff;
}
.film-nav__link:hover .film-nav__bg {
  transform: scale(1.1);
  opacity: 0.55;
  filter: none;
}
.film-nav__label,
.film-nav__title {
  position: relative;
  z-index: 1;
}
.film-nav__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8cc2;
  transition: letter-spacing 0.4s ease;
}
.film-nav__link:hover .film-nav__label {
  letter-spacing: 0.2em;
}
.film-nav__link--prev .film-nav__label:before {
  content: '\2190  ';
}
.film-nav__link--next .film-nav__label:after {
  content: '  \2192';
}
.film-nav__title {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 500;
}
.film-nav__title small {
  font-size: 14px;
  color: #c7c7c7;
}

@media (prefers-reduced-motion: reduce) {
  .film-hero__bg,
  .film-poster,
  .film-title .film-word,
  .film-btn--primary:after,
  .film-player__ring,
  .film-hero__scroll span,
  .film-timeline__item.is-current .film-timeline__dot {
    animation: none;
  }
  .film-title .film-word {
    opacity: 1;
    transform: none;
  }
  .js-film [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  .film-hero {
    padding-top: 30px;
    min-height: 0;
  }
  .film-hero__crumbs {
    display: none;
  }
  .film-poster {
    max-width: 210px;
  }
  .film-hero__scroll {
    display: none;
  }
}

/* povestea: liste de episoade (details/summary + tabel) din descrierile serialelor */
.film-story__text details {
  clear: both;
  margin: 0 0 12px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.film-story__text details[open] {
  border-color: rgba(255,85,165,0.35);
}
.film-story__text summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}
.film-story__text summary::-webkit-details-marker {
  display: none;
}
.film-story__text summary:hover {
  background-color: rgba(255,85,165,0.08);
}
.film-story__text summary:after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  color: #ff55a5;
  transition: transform 0.3s ease;
}
.film-story__text details[open] summary:after {
  transform: rotate(45deg);
}
.film-story__text details table {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 20px 18px;
  animation: film-details-in 0.45s ease both;
}
.film-story__text details thead {
  display: none;
}
.film-story__text details tbody {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2px 24px;
}
.film-story__text details tr {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 14px;
  line-height: 1.4;
}
.film-story__text details td {
  padding: 0;
  text-align: left;
}
.film-story__text details td:first-child {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #ff8cc2;
}
@keyframes film-details-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
/* tabele obisnuite din descrieri */
.film-story__text > table {
  clear: both;
  width: 100%;
  margin-bottom: 1.1em;
  font-size: 14px;
}
.film-story__text > table td,
.film-story__text > table th {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* formatarea din editorul descrierii: titluri, liste, citate, linkuri */
.film-story__text h3,
.film-story__text h4 {
  margin: 0.6em 0 0.5em;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.film-story__text h3 { font-size: 24px; }
.film-story__text h4 { font-size: 20px; }
.film-story__text ul,
.film-story__text ol {
  margin: 0 0 1.1em;
  padding-left: 1.4em;
}
.film-story__text ul { list-style: disc; }
.film-story__text ol { list-style: decimal; }
.film-story__text li::marker { color: #ff55a5; }
.film-story__text blockquote {
  margin: 0 0 1.1em;
  padding: 0.4em 1.1em;
  border-left: 3px solid #ff55a5;
  background-color: rgba(255,85,165,0.05);
  font-style: italic;
}
.film-story__text blockquote p:last-child { margin-bottom: 0; }
.film-story__text a:not([class]) {
  color: #ff55a5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/*==============================================================
	CATALOG
==============================================================*/
.catalog-hero {
  position: relative;
  margin-top: 70px;
  padding: 40px 0 30px;
  overflow: hidden;
  background-color: #1f1f24;
}
.catalog-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255,85,165,0.22) 0%, rgba(255,85,165,0) 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255,88,96,0.15) 0%, rgba(255,88,96,0) 50%),
    url("../img/thm01/section__bg.jpg") no-repeat center / cover;
  opacity: 0.9;
  animation: catalog-glow 14s ease-in-out infinite alternate;
}
.catalog-hero__bg:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(31,31,36,0.6) 0%, #28282d 100%);
}
@keyframes catalog-glow {
  from { background-position: 0 0, 0 0, center; filter: hue-rotate(0deg); }
  to { background-position: 0 0, 0 0, center; filter: hue-rotate(-12deg); }
}
.catalog-hero .container {
  position: relative;
  z-index: 1;
}
.catalog-hero__title {
  margin: 14px 0 0;
  color: #fff;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  animation: film-word-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (min-width: 768px) {
  .catalog-hero__title { font-size: 44px; }
}

/* bara de filtre, lipita sub header la derulare */
.catalog-filters {
  position: sticky;
  top: 70px;
  z-index: 90;
  padding: 18px 0 14px;
  background-color: rgba(40,40,45,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: box-shadow 0.3s ease;
}
.catalog-filters.is-stuck {
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.catalog-filters__top {
  display: flex;
  gap: 12px;
}
.catalog-search {
  position: relative;
  flex: 1;
  margin: 0;
}
.catalog-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  fill: #ff55a5;
  pointer-events: none;
}
.catalog-search input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 52px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background-color: #222227;
  font-size: 16px;
  color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.catalog-search input::placeholder {
  color: #8d8d96;
}
.catalog-search input:focus {
  outline: none;
  border-color: rgba(255,85,165,0.6);
  box-shadow: 0 0 0 4px rgba(255,85,165,0.12);
}
.catalog-search input::-webkit-search-cancel-button {
  cursor: pointer;
  filter: invert(1) brightness(0.8);
}
/* indicator de incarcare in campul de cautare */
.catalog-search__spin {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid rgba(255,85,165,0.25);
  border-top-color: #ff55a5;
  opacity: 0;
  transition: opacity 0.2s ease;
  animation: catalog-spin 0.8s linear infinite;
  pointer-events: none;
}
.catalog-filters.is-loading .catalog-search__spin {
  opacity: 1;
}
@keyframes catalog-spin {
  to { transform: rotate(360deg); }
}
.catalog-filters__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #222227;
  color: #fff;
  font-size: 14px;
}
.catalog-filters__toggle svg {
  width: 18px;
  height: 18px;
  fill: #ff55a5;
}

/* tipul: butoane cu numar */
.catalog-types {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catalog-types::-webkit-scrollbar {
  display: none;
}
.catalog-type {
  margin: 0;
  flex-shrink: 0;
}
.catalog-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.catalog-type span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 14px;
  color: #c7c7c7;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: 0.3s ease;
}
.catalog-type span:hover {
  color: #fff;
  border-color: rgba(255,85,165,0.4);
}
.catalog-type em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 10px;
  text-align: center;
  background-color: rgba(255,255,255,0.08);
  transition: 0.3s ease;
}
.catalog-type input:checked + span {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 6px 18px rgba(255,85,165,0.35);
}
.catalog-type input:checked + span em {
  background-color: rgba(255,255,255,0.25);
}
.catalog-type input:focus-visible + span {
  outline: 2px solid #ff55a5;
  outline-offset: 2px;
}

/* selecturi */
.catalog-filters__extra {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.catalog-select {
  position: relative;
  margin: 0;
}
.catalog-select span {
  position: absolute;
  top: 6px;
  left: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8d8d96;
  pointer-events: none;
}
.catalog-select select {
  width: 100%;
  height: 50px;
  padding: 16px 34px 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #222227 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff55a5' d='M17 9.17a1 1 0 0 0-1.41 0L12 12.71 8.46 9.17a1 1 0 0 0-1.41 1.42l4.24 4.24a1 1 0 0 0 1.42 0L17 10.59a1 1 0 0 0 0-1.42Z'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
  -webkit-appearance: none;
  appearance: none;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.catalog-select select:hover,
.catalog-select select:focus {
  outline: none;
  border-color: rgba(255,85,165,0.5);
}
.catalog-select select option {
  background-color: #28282d;
  color: #fff;
}

@media (max-width: 991px) {
  .catalog-filters {
    position: relative;
    top: 0;
  }
  .catalog-filters__toggle {
    display: inline-flex;
  }
  .catalog-filters__extra {
    display: none;
    grid-template-columns: 1fr 1fr;
  }
  .catalog-filters.is-open .catalog-filters__extra {
    display: grid;
    animation: film-details-in 0.35s ease both;
  }
}
@media (max-width: 575px) {
  .catalog-filters__toggle span {
    display: none;
  }
}

/* rezultate */
.catalog-results {
  padding: 24px 0 70px;
  background-color: #28282d;
  min-height: 60vh;
}
#catalog-rezultate {
  transition: opacity 0.25s ease;
}
#catalog-rezultate.is-loading {
  opacity: 0.45;
  pointer-events: none;
}
.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 6px;
}
.catalog-bar__count {
  font-size: 14px;
  color: #c7c7c7;
}
.catalog-bar__count strong {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.catalog-bar__count span {
  color: #8d8d96;
}
.catalog-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 14px;
  border-radius: 16px;
  font-size: 13px;
  color: #ff8cc2;
  background-color: rgba(255,85,165,0.1);
  border: 1px solid rgba(255,85,165,0.35);
  animation: film-details-in 0.35s ease both;
  transition: 0.25s ease;
}
.catalog-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  background-color: rgba(255,85,165,0.25);
  color: #fff;
  transition: transform 0.25s ease;
}
.catalog-chip:hover {
  color: #fff;
  background-color: rgba(255,85,165,0.25);
}
.catalog-chip:hover span {
  transform: rotate(90deg);
}
.catalog-chip--reset {
  padding-right: 14px;
  color: #c7c7c7;
  background: transparent;
  border-color: rgba(255,255,255,0.15);
}

/* cardurile intra pe rand dupa fiecare actualizare */
.catalog-grid__col {
  animation: catalog-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes catalog-card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.catalog-item .item__cover {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.catalog-item .item__cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.catalog-item .item__cover:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,85,165,0.35);
}
.catalog-item .item__cover:hover img {
  transform: scale(1.06);
}
.catalog-item__year {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background-color: rgba(20,20,24,0.75);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* paginare */
.catalog-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}
.catalog-pages__num,
.catalog-pages__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 15px;
  color: #c7c7c7;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.25s ease;
}
.catalog-pages__num:hover,
.catalog-pages__arrow:hover {
  color: #fff;
  border-color: rgba(255,85,165,0.5);
  transform: translateY(-2px);
}
.catalog-pages__num.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 6px 18px rgba(255,85,165,0.35);
}
.catalog-pages__gap {
  color: #8d8d96;
  padding: 0 4px;
}

/* niciun rezultat */
.catalog-empty {
  max-width: 460px;
  margin: 50px auto 20px;
  text-align: center;
  animation: film-details-in 0.5s ease both;
}
.catalog-empty svg {
  width: 64px;
  height: 64px;
  fill: #ff55a5;
  opacity: 0.8;
  margin-bottom: 16px;
  animation: catalog-float 3s ease-in-out infinite;
}
.catalog-empty h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}
.catalog-empty p {
  color: #c7c7c7;
  margin: 8px 0 22px;
}
@keyframes catalog-float {
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-hero__bg,
  .catalog-grid__col,
  .catalog-empty svg,
  .catalog-search__spin {
    animation: none;
  }
}

/* seriile de filme in catalog */
.catalog-item__serie {
  position: absolute;
  z-index: 3;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(90deg, rgba(255,88,96,0.9) 0%, rgba(255,85,165,0.9) 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-item__serie b {
  font-weight: 700;
}
.catalog-group {
  margin-top: 26px;
  animation: catalog-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.catalog-group a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,85,165,0.3);
  color: #fff;
}
.catalog-group__name {
  font-size: 22px;
  font-weight: 500;
}
.catalog-group__count {
  font-size: 13px;
  color: #ff8cc2;
  transition: letter-spacing 0.3s ease;
}
.catalog-group a:hover .catalog-group__count {
  letter-spacing: 0.06em;
}
@media (max-width: 1199px) {
  .catalog-filters__extra {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .catalog-filters__extra {
    grid-template-columns: 1fr 1fr;
  }
}

/*==============================================================
	PAGINI NOI: antet comun, serii
==============================================================*/
.page-hero {
  position: relative;
  margin-top: 70px;
  padding: 50px 0 40px;
  overflow: hidden;
  background-color: #1f1f24;
}
.page-hero__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(255,85,165,0.25) 0%, rgba(255,85,165,0) 55%),
    radial-gradient(ellipse at 85% 100%, rgba(255,88,96,0.18) 0%, rgba(255,88,96,0) 50%);
  animation: catalog-glow 14s ease-in-out infinite alternate;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero__title {
  margin: 14px 0 10px;
  color: #fff;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .page-hero__title { font-size: 48px; }
}
.page-hero__lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: #c7c7c7;
}
.page-hero .film-word {
  display: inline-block;
  opacity: 0;
  animation: film-word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.15s + var(--w) * 0.09s);
}

/* grila de serii: colaj de postere */
.serie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px 22px;
}
.serie-card {
  display: flex;
  flex-direction: column;
  color: #fff;
}
.serie-card__stack {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.6;
  margin-bottom: 14px;
}
.serie-card__stack img {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.55);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(calc((var(--k) - 1.5) * 6deg)) translateX(calc((var(--k) - 1.5) * 22%));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  filter: brightness(0.8);
}
.serie-card__stack--1 img { transform: translateX(-50%); }
.serie-card__stack--2 img { transform: translateX(-50%) rotate(calc((var(--k) - 0.5) * 8deg)) translateX(calc((var(--k) - 0.5) * 26%)); }
.serie-card__stack--3 img { transform: translateX(-50%) rotate(calc((var(--k) - 1) * 7deg)) translateX(calc((var(--k) - 1) * 24%)); }
.serie-card__stack img:last-child {
  filter: none;
}
.serie-card:hover .serie-card__stack img {
  filter: none;
  transform: translateX(-50%) rotate(calc((var(--k) - 1.5) * 11deg)) translateX(calc((var(--k) - 1.5) * 42%)) translateY(-6px);
}
.serie-card:hover .serie-card__stack--1 img { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.serie-card:hover .serie-card__stack--2 img { transform: translateX(-50%) rotate(calc((var(--k) - 0.5) * 14deg)) translateX(calc((var(--k) - 0.5) * 48%)) translateY(-6px); }
.serie-card:hover .serie-card__stack--3 img { transform: translateX(-50%) rotate(calc((var(--k) - 1) * 12deg)) translateX(calc((var(--k) - 1) * 44%)) translateY(-6px); }
.serie-card__name {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  transition: color 0.3s ease;
}
.serie-card:hover .serie-card__name {
  color: #ff55a5;
}
.serie-card__meta {
  margin-top: 2px;
  font-size: 13px;
  color: #9d9da6;
  text-align: center;
}

/* pagina unei serii: evantai de postere */
.serie-fan {
  position: relative;
  height: 380px;
  margin-bottom: 30px;
}
.serie-fan a {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 170px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform-origin: 50% 110%;
  --n: 4;
  --c: calc((var(--n) - 1) / 2);
  transform: translateX(calc(-50% + (var(--k) - var(--c)) * 42px)) rotate(calc((var(--k) - var(--c)) * 8deg));
  animation: serie-fan-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.2s + var(--k) * 0.12s);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}
.serie-fan--1 a { --n: 1; }
.serie-fan--2 a { --n: 2; }
.serie-fan--3 a { --n: 3; }
.serie-fan--4 a { --n: 4; }
.serie-fan--5 a { --n: 5; }
.serie-fan a img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.serie-fan a:hover {
  z-index: 10;
  transform: translateX(calc(-50% + (var(--k) - var(--c)) * 42px)) rotate(calc((var(--k) - var(--c)) * 8deg)) translateY(-26px) scale(1.06);
  box-shadow: 0 30px 50px rgba(0,0,0,0.7), 0 0 30px rgba(255,85,165,0.35);
}
@keyframes serie-fan-in {
  from { opacity: 0; transform: translateX(-50%) rotate(0deg) translateY(40px); }
}
@media (min-width: 992px) {
  .serie-fan { height: 440px; margin-bottom: 0; }
  .serie-fan a { width: 210px; }
}

.serie-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .serie-stats { justify-content: flex-start; }
}
.serie-stats li {
  display: flex;
  flex-direction: column;
  min-width: 120px;
  padding: 12px 18px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.serie-stats strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.serie-stats strong.item__rate--mare { color: #3ecf8e; }
.serie-stats strong.item__rate--medie { color: #f5c451; }
.serie-stats strong.item__rate--mica { color: #ff5860; }
.serie-stats span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9d9da6;
}

/* capitolele seriei: linie verticala cu numere */
.serie-chapters {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.serie-chapters:before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255,85,165,0.8) 0%, rgba(255,85,165,0.15) 100%);
}
.serie-chapter {
  position: relative;
  display: flex;
  gap: 22px;
  padding-left: 64px;
  margin-bottom: 28px;
}
.serie-chapter__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 0 0 6px #28282d, 0 8px 20px rgba(255,85,165,0.4);
}
.serie-chapter__poster {
  flex-shrink: 0;
  width: 120px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}
.serie-chapter__poster img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.serie-chapter__poster:hover img {
  transform: scale(1.08);
}
.serie-chapter__body {
  min-width: 0;
}
.serie-chapter__year {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #ff8cc2;
}
.serie-chapter__title {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
}
.serie-chapter__title a {
  color: #fff;
}
.serie-chapter__title a:hover {
  color: #ff55a5;
}
.serie-chapter__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.serie-chapter__meta .item__rate {
  margin: 0 6px 0 0;
}
.serie-chapter__meta .film-chip {
  padding: 2px 10px;
  font-size: 12px;
}
.serie-chapter p {
  max-width: 760px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #c7c7c7;
}
@media (max-width: 575px) {
  .serie-chapter { padding-left: 56px; gap: 14px; }
  .serie-chapter__poster { width: 84px; }
  .serie-chapter__title { font-size: 18px; }
  .serie-chapter p { display: none; }
}
.serie-genres .film-chip b {
  margin-left: 4px;
  opacity: 0.7;
}

/*---------------- persoane ----------------*/
.people-filters {
  position: relative;
  top: 0;
}
.people-list .film-person {
  animation: catalog-card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
.people-list__count {
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #c7c7c7;
  background-color: rgba(255,255,255,0.06);
}
.people-list .film-person[hidden] {
  display: none;
}
.people-empty {
  display: block;
  color: #c7c7c7;
}
.people-empty[hidden] {
  display: none;
}

.person-hero {
  min-height: 0;
  padding: 50px 0 60px;
}
.person-hero__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
@media (min-width: 768px) {
  .person-hero__row {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }
}
.person-avatar {
  position: relative;
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--h), 70%, 55%) 0%, hsl(calc(var(--h) + 40), 70%, 38%) 100%);
  box-shadow: 0 20px 50px hsla(var(--h), 70%, 35%, 0.55);
  animation: person-pop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.person-avatar span {
  font-size: 68px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
/* inel care se roteste in jurul avatarului */
.person-avatar:before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: -10px;
  left: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #ff55a5;
  border-right-color: rgba(255,85,165,0.4);
  animation: catalog-spin 6s linear infinite;
}
@keyframes person-pop {
  from { opacity: 0; transform: scale(0.6) rotate(-12deg); }
  to { opacity: 1; transform: none; }
}

/*---------------- bare (genuri, statistici) ----------------*/
.bars {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bars__row {
  display: grid;
  grid-template-columns: 130px 1fr 44px;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.bars__label {
  font-size: 14px;
  color: #c7c7c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.bars__label:hover {
  color: #fff;
}
.bars__track {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}
/* bara: max 24px grosime, capat rotunjit 4px, patrata la baza */
.bars__bar {
  display: block;
  height: 16px;
  width: 0;
  border-radius: 0 4px 4px 0;
  background-color: #ff55a5;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
  cursor: default;
  outline: none;
}
.bars.is-revealed .bars__bar,
.no-reveal .bars__bar {
  width: var(--v);
}
.bars__row:nth-child(n) .bars__bar {
  transition-delay: calc(var(--r, 0) * 40ms);
}
.bars__bar:hover,
.bars__bar:focus-visible {
  filter: brightness(1.25);
}
.bars__value {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* tooltip comun pentru grafice */
.chart-tip {
  position: fixed;
  z-index: 2000;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #c7c7c7;
  background-color: #1b1b20;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.chart-tip.is-visible {
  opacity: 1;
  transform: none;
}
.chart-tip strong {
  display: block;
  font-size: 15px;
  color: #fff;
}

/*---------------- statistici ----------------*/
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .stat-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .stat-tiles { grid-template-columns: 1.4fr repeat(5, 1fr); }
}
.stat-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  border-radius: 14px;
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}
.stat-tile__label {
  font-size: 13px;
  color: #9d9da6;
}
.stat-tile__value {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
/* cifra principala, una singura pe pagina */
.stat-tile--hero {
  background: linear-gradient(135deg, rgba(255,88,96,0.22) 0%, rgba(255,85,165,0.22) 100%);
  border-color: rgba(255,85,165,0.35);
}
.stat-tile--hero .stat-tile__value {
  font-size: 52px;
}

.records {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.record {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.record:hover {
  color: #fff;
  transform: translateY(-4px);
  border-color: rgba(255,85,165,0.45);
}
.record img,
.record__icon {
  flex-shrink: 0;
  width: 64px;
  height: 92px;
  border-radius: 8px;
  object-fit: cover;
}
.record__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff5860 0%, #ff55a5 100%);
}
.record__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.record__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9d9da6;
}
.record__body strong {
  font-size: 22px;
  font-weight: 600;
}
.record__title {
  font-size: 14px;
  color: #c7c7c7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-card {
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 16px;
  background-color: #222227;
  border: 1px solid rgba(255,255,255,0.06);
}
.chart-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
}
.chart-card__sub {
  margin: 2px 0 18px;
  font-size: 13px;
  color: #9d9da6;
}

/* grafic cu coloane: max 24px latime, capat rotunjit 4px, baza patrata */
.colchart__plot {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 200px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.colchart__col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.colchart__value {
  font-size: 12px;
  font-weight: 600;
  color: #c7c7c7;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
  transition-delay: calc(0.6s + var(--r, 0) * 40ms);
  font-variant-numeric: tabular-nums;
}
.colchart__bar {
  display: block;
  width: 100%;
  max-width: 24px;
  height: 0;
  border-radius: 4px 4px 0 0;
  background-color: #ff55a5;
  transition: height 1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
  transition-delay: calc(var(--r, 0) * 40ms);
  outline: none;
  /* zona de hover mai mare decat bara */
  box-shadow: 0 0 0 6px transparent;
}
.colchart.is-revealed .colchart__bar,
.no-reveal .colchart__bar {
  height: calc(var(--v) * 0.86);
}
.colchart.is-revealed .colchart__value,
.no-reveal .colchart__value {
  opacity: 1;
}
.colchart__bar:hover,
.colchart__bar:focus-visible {
  filter: brightness(1.25);
}
.colchart__axis {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}
.colchart__axis span {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  color: #9d9da6;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*---------------- cronologie ----------------*/
.tl-decades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.tl-decade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 15px;
  color: #fff;
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s ease;
}
.tl-decade em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  background-color: rgba(255,255,255,0.1);
}
.tl-decade:hover:not(:disabled),
.tl-decade.is-active {
  border-color: transparent;
  background: linear-gradient(90deg, #ff5860 0%, #ff55a5 100%);
  box-shadow: 0 6px 18px rgba(255,85,165,0.35);
  transform: translateY(-2px);
}
.tl-decade:disabled {
  opacity: 0.35;
}

.tl-wrap {
  position: relative;
  padding: 20px 0 60px;
  background-color: #28282d;
}
.tl-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.tl-scroller::-webkit-scrollbar {
  display: none;
}
.tl-scroller.is-dragging {
  cursor: grabbing;
  user-select: none;
}
.tl-scroller.is-dragging a {
  pointer-events: none;
}
.tl-track {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 560px;
  padding: 0 80px;
  width: max-content;
}
/* axa */
.tl-track:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 74px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,85,165,0) 0%, rgba(255,85,165,0.7) 4%, rgba(255,85,165,0.7) 96%, rgba(255,85,165,0) 100%);
}
.tl-band-label {
  position: relative;
  width: 0;
}
/* linia de inceput a deceniului si eticheta lui, sus */
.tl-band-label:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 60px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,85,165,0.5) 0%, rgba(255,85,165,0) 100%);
}
.tl-band-label span {
  position: absolute;
  top: 6px;
  left: 12px;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255,255,255,0.14);
  letter-spacing: 0.02em;
  pointer-events: none;
}
.tl-year {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 150px;
  padding-bottom: 20px;
}
.tl-year--d1 {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.025) 100%);
}
.tl-year--empty {
  width: 24px;
}
.tl-year__tick {
  position: absolute;
  bottom: 70px;
  width: 1px;
  height: 10px;
  background-color: rgba(255,255,255,0.25);
}
.tl-year__dot {
  position: absolute;
  bottom: 68px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #28282d;
  border: 2px solid #ff55a5;
  box-shadow: 0 0 12px rgba(255,85,165,0.6);
}
.tl-year__label {
  position: absolute;
  bottom: 34px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.tl-year--empty .tl-year__label {
  font-size: 11px;
  font-weight: 400;
  color: #6f6f78;
  bottom: 44px;
}
.tl-year__count {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  color: #9d9da6;
  white-space: nowrap;
}
/* posterele unui an, suprapuse in teanc deasupra axei */
.tl-year__films {
  position: absolute;
  left: 50%;
  bottom: 100px;
  width: 104px;
  margin-left: -52px;
  height: 400px;
}
.tl-film {
  position: absolute;
  left: 0;
  bottom: calc(var(--k) * 62px);
  width: 104px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.55);
  z-index: calc(20 - var(--k));
  opacity: 0;
  transform: translateY(40px) rotate(calc((var(--k) - 1) * 2deg)) scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  transition-delay: calc(var(--k) * 90ms);
}
.tl-year.is-in .tl-film {
  opacity: 1;
  transform: rotate(calc((var(--k) - 1) * 2deg));
}
.tl-year.is-in .tl-film:hover {
  z-index: 30;
  transform: translateY(-10px) scale(1.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 0 2px #ff55a5;
  transition-delay: 0s;
}
.tl-film img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  -webkit-user-drag: none;
}
.tl-film__rate {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 22px;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #1b1b20;
}
.tl-film__rate.item__rate--mare { background-color: #3ecf8e; }
.tl-film__rate.item__rate--medie { background-color: #f5c451; }
.tl-film__rate.item__rate--mica { background-color: #ff5860; color: #fff; }
@media (max-width: 767px) {
  .tl-track { height: 480px; }
  .tl-year { width: 120px; }
  .tl-year__films { width: 84px; margin-left: -42px; }
  .tl-film { width: 84px; bottom: calc(var(--k) * 50px); }
}

/* miniharta */
.tl-map {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 46px;
  margin-top: 26px;
  padding: 4px 0;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.tl-map span {
  flex: 1;
  height: max(2px, var(--v));
  border-radius: 2px 2px 0 0;
  background-color: rgba(255,85,165,0.55);
}
.tl-map__window {
  position: absolute;
  top: 0;
  bottom: -1px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.6);
  background-color: rgba(255,255,255,0.07);
  pointer-events: none;
  transition: left 0.1s linear;
}
@media (prefers-reduced-motion: reduce) {
  .tl-film { transition: none; opacity: 1; transform: none; }
}

/*---------------- 404 ----------------*/
.nf {
  position: relative;
  margin-top: 70px;
  padding: 50px 0 80px;
  min-height: calc(100vh - 70px);
  overflow: hidden;
  text-align: center;
  background-color: #1f1f24;
}
.nf .container {
  position: relative;
  z-index: 1;
}
/* 404 cu efect de banda de film deteriorata */
.nf__code {
  position: relative;
  display: inline-block;
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ff5860 0%, #ff55a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: nf-flicker 4s infinite;
}
@media (min-width: 768px) {
  .nf__code { font-size: 220px; }
}
.nf__code:before,
.nf__code:after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nf__code:before {
  background: linear-gradient(135deg, #5ee7ff 0%, #5ea0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: screen;
  animation: nf-glitch-1 2.6s infinite linear alternate-reverse;
}
.nf__code:after {
  background: linear-gradient(135deg, #ffd76a 0%, #ff5860 100%);
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: screen;
  animation: nf-glitch-2 3.1s infinite linear alternate-reverse;
}
@keyframes nf-glitch-1 {
  0%, 86% { clip-path: inset(0 0 100% 0); transform: none; }
  88% { clip-path: inset(20% 0 55% 0); transform: translateX(-6px); }
  92% { clip-path: inset(60% 0 12% 0); transform: translateX(5px); }
  96% { clip-path: inset(38% 0 40% 0); transform: translateX(-3px); }
  100% { clip-path: inset(0 0 100% 0); transform: none; }
}
@keyframes nf-glitch-2 {
  0%, 80% { clip-path: inset(100% 0 0 0); transform: none; }
  84% { clip-path: inset(70% 0 5% 0); transform: translateX(6px); }
  90% { clip-path: inset(10% 0 70% 0); transform: translateX(-5px); }
  100% { clip-path: inset(100% 0 0 0); transform: none; }
}
@keyframes nf-flicker {
  0%, 93%, 97%, 100% { opacity: 1; }
  95% { opacity: 0.6; }
}
.nf__title {
  margin: 10px 0 10px;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
}
.nf__text {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 16px;
  color: #c7c7c7;
}
.nf__search {
  display: block;
  max-width: 560px;
  margin: 0 auto 20px;
}
.nf__actions {
  justify-content: center;
}
.nf__hint {
  margin: 46px 0 18px;
  font-size: 14px;
  color: #9d9da6;
}
.nf__films {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .nf__films { grid-template-columns: repeat(6, 1fr); }
}
.nf__film {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c7c7c7;
  font-size: 13px;
  text-align: left;
}
.nf__film img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.nf__film:hover {
  color: #fff;
}
.nf__film:hover img {
  transform: translateY(-6px) rotate(-2deg);
  box-shadow: 0 16px 30px rgba(0,0,0,0.55), 0 0 0 2px #ff55a5;
}
.nf__film small {
  color: #8d8d96;
}
@media (prefers-reduced-motion: reduce) {
  .nf__code, .nf__code:before, .nf__code:after { animation: none; }
}

/* butonul de editare din pagina filmului (doar pentru administrator) */
.film-btn--admin {
  color: #1b1b20;
  background-color: #f5c451;
  border-color: transparent;
}
.film-btn--admin:hover {
  color: #1b1b20;
  background-color: #ffd76a;
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(245,196,81,0.35);
}

/*==============================================================
	Titluri care defileaza: pe un rand; daca nu incap, textul merge
	incet pana la capat si inapoi (clasele sunt puse din main.js)
==============================================================*/
.marquee {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.marquee__text {
  display: inline-block;
  white-space: nowrap;
}
.marquee.is-scrolling {
  text-overflow: clip;
  text-align: left;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent 100%);
}
/* animatia (banda continua) e creata din main.js, cu viteza calculata pentru fiecare titlu */
.marquee.is-scrolling .marquee__text {
  will-change: transform;
}
/* titlurile din carduri: un singur rand (inainte unele erau pe doua) */
.item__title,
.item__title a {
  display: block;
  white-space: nowrap;
  -webkit-line-clamp: unset;
}
@media (prefers-reduced-motion: reduce) {
  .marquee.is-scrolling { text-overflow: ellipsis; -webkit-mask-image: none; mask-image: none; }
}
/* titlurile pe un rand nu trebuie sa largeasca cardurile (elementele flex/grid se pot strange) */
.film-timeline__item,
.film-timeline__card,
.serie-card,
.nf__film,
.record__body {
  min-width: 0;
}
