/* Site additions on top of the catalog template (main.css).
   bg #1a191f, surface #222028 / #2b2b31, accent #f9ab00, text #e0e0e0. */

.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; line-height: 1; }
.brand__mark { display: block; flex: none; }
.brand__name { font-weight: 600; font-size: 22px; letter-spacing: -0.04em; color: #fff; }
.header__logo .brand { gap: 10px; }
.header__logo .brand__mark { width: 35px; height: 35px; }
.header__logo .brand__name { font-size: 26px; }
.footer__logo .brand__name { font-size: 20px; }
.footer__logo .brand__mark { width: 22px; height: 22px; }
.sign__logo .brand__name { font-size: 26px; }
.sign__logo .brand__mark { width: 30px; height: 30px; }
.sidebar__logo .brand__name { font-size: 22px; }

.home__lead { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.5; margin: 8px 0 0; max-width: 760px; padding-right: 100px; }
.home--bg:before { content: none; }
.home__bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.home__bg-img { position: absolute; inset: 0; background-position: center top; background-size: cover; background-repeat: no-repeat; opacity: 0; transition: opacity .7s ease; }
.home__bg-img.is-on { opacity: 1; }
.home--bg:after {
  background:
    linear-gradient(180deg, rgba(26,25,31,.72) 0%, rgba(26,25,31,.28) 34%, rgba(26,25,31,.55) 68%, #1a191f 100%);
}
.section__title--head .section__title-suffix { display: block; font-size: 15px; font-weight: 400; letter-spacing: .4px; text-transform: none; color: rgba(255,255,255,.55); margin-top: 6px; }
.section--details .breadcrumbs { margin-top: 10px; margin-bottom: 24px; }
.section__title--catalog { margin-bottom: 20px; }
.section__title--faq { margin: 34px 0 18px; font-size: 26px; }

/* cards */
.item:not(.item--details) .item__cover { display: block; width: 100%; aspect-ratio: 2 / 3; }
.item:not(.item--details) .item__cover img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; background: #222028; display: block; }
.item__noposter { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; padding: 16px; text-align: center;
  background: linear-gradient(160deg, #2b2b31 0%, #1a191f 100%); color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.3; }
.item__noposter i { font-size: 34px; color: #f9ab00; }
.item__noposter span { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.item__year { color: rgba(255,255,255,.5); font-size: 14px; margin-right: 6px; }
.item__category { display: flex; flex-wrap: wrap; align-items: center; }
.item__role { color: rgba(255,255,255,.5); font-size: 13px; margin: -8px 0 24px; }
.item__source { font-size: 13px; color: rgba(255,255,255,.5); }
.item__source a { color: #f9ab00; }
.item__description--static { max-height: none; }
.item__favorite--active i { color: #f9ab00; }

/* trailer facade (loads YouTube only on click) */
.trailer { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #222028; padding: 0; border: 0; cursor: pointer; }
.trailer img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s; }
.trailer:hover img { opacity: 1; transform: scale(1.02); }
.trailer__play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, #f9ab00 0%, #ff5860 100%); box-shadow: 0 10px 40px rgba(255,88,96,.35); color: #fff; font-size: 30px; transition: transform .3s; }
.trailer:hover .trailer__play { transform: scale(1.08); }
.trailer__label { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(26,25,31,.8); color: #fff; font-size: 13px; letter-spacing: .3px; }
.trailer--empty { display: flex; align-items: center; justify-content: center; cursor: default; }
.trailer--empty img { position: absolute; inset: 0; opacity: .35; }
.trailer--empty .trailer__label { position: relative; left: auto; bottom: auto; }
.trailer__note { margin: 14px 0 0; color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.5; }
.section__player .plyr { border-radius: 16px; }
.player { margin-bottom: 0; }
.media-switch__tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.media-switch__tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: #222028; color: rgba(255,255,255,.72); font-size: 14px; }
.media-switch__tabs button.is-on { background: #f9ab00; color: #1a191f; font-weight: 600; }
.media-switch__panel[hidden] { display: none; }
.media-switch__panel .section__item-filter { margin-top: 12px; }
.player__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #121116; }
.player__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: blur(6px); transform: scale(1.06); }
.player__stub { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(12,11,16,.62); }
.player__play { width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; background: linear-gradient(90deg, #f9ab00 0%, #ff5860 100%); box-shadow: 0 10px 40px rgba(255,88,96,.35); }
.player__msg { margin: 0; max-width: 440px; color: #fff; font-size: 18px; line-height: 1.4; font-weight: 500; }

/* seasons & episodes */
.seasons { margin-top: 26px; }
.seasons__title { color: #fff; font-size: 20px; font-weight: 400; margin-bottom: 14px; }
.seasons__list { display: flex; flex-wrap: wrap; gap: 10px; }
.seasons__item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: #222028; color: #e0e0e0; font-size: 15px; border: 1px solid transparent; }
.seasons__item small { color: rgba(255,255,255,.45); font-size: 12px; }
.seasons__item:hover, .seasons__item--active { color: #fff; border-color: #f9ab00; }
.episodes { list-style: none; padding: 0; margin: 10px 0 0; counter-reset: none; }
.episodes__item { border-bottom: 1px solid rgba(255,255,255,.06); }
.episodes__link { display: flex; align-items: baseline; gap: 16px; padding: 14px 4px; color: #e0e0e0; }
.episodes__link:hover, .episodes__item--active .episodes__link { color: #f9ab00; }
.episodes__num { min-width: 28px; color: rgba(255,255,255,.4); font-size: 14px; }
.episodes__name { flex: 1; font-size: 16px; }
.episodes__name em { font-style: normal; color: rgba(255,255,255,.55); }
.episodes__date { color: rgba(255,255,255,.45); font-size: 14px; white-space: nowrap; }
.episode-nav { display: flex; justify-content: space-between; margin-top: 20px; }
.episode-nav a { color: #f9ab00; }

/* people */
.person { display: block; margin-bottom: 24px; color: #e0e0e0; }
.person__photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden; background: #222028; margin-bottom: 8px; color: rgba(255,255,255,.3); font-size: 34px; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__name { display: block; font-size: 15px; line-height: 1.3; }
.person__role { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }
.person:hover .person__name { color: #f9ab00; }

/* SEO text, chips */
.seo-text p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; margin-bottom: 14px; }
.seo-text strong { color: #fff; }
.seo-text--title { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chips__item { display: inline-flex; height: 34px; align-items: center; padding: 0 14px; border-radius: 17px; background: #222028; color: #e0e0e0; font-size: 14px; border: 1px solid transparent; }
.chips__item:hover, .chips__item--active { border-color: #f9ab00; color: #fff; }
.catalog__empty { color: rgba(255,255,255,.6); font-size: 16px; padding: 30px 0; }
.accordion--title { margin-bottom: 30px; }
.accordion--title .accordion__card button { text-align: left; }
.page-text p, .page-faq p { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.7; }
.page-text a { color: #f9ab00; }
.page-faq h2 { color: #fff; font-size: 20px; font-weight: 400; margin: 26px 0 10px; }

/* comments */
.comments__empty, .comments__login { color: rgba(255,255,255,.6); margin: 10px 0 24px; }
.comments__login a { color: #f9ab00; }
.content__tabs sup { color: #f9ab00; }
.sign__error { color: #ff5860; margin-bottom: 16px; text-align: center; }
.form-note { color: #f9ab00; margin-top: 10px; }

/* search suggest */
.header__search { position: relative; }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 200; background: #222028; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.45); overflow: hidden; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: #e0e0e0; }
.suggest a:hover, .suggest a.is-active { background: #2b2b31; color: #fff; }
.suggest img, .suggest .suggest__ph { width: 34px; height: 51px; border-radius: 6px; object-fit: cover; background: #1a191f; flex: none; }
.suggest__t { font-size: 15px; line-height: 1.2; }
.suggest__m { display: block; font-size: 12px; color: rgba(255,255,255,.45); }

/* footer */
.footer__note { color: rgba(255,255,255,.45); font-size: 13px; line-height: 1.6; margin: 18px 0 6px; max-width: 900px; }
.footer__sponsored { margin: 0 0 14px; font-size: 13px; }
.footer__sponsored a { color: rgba(255,255,255,.45); }
.footer__sponsored a:hover { color: #f9ab00; }

.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; }
.ad-slot:empty { display: none; }
.ad-slot--top,
.ad-slot--top:empty { display: flex; padding: 87px 12px 0; }
.home,
.section--details,
.section--first { margin-top: 0; }
@media (min-width: 768px) {
  .home,
  .section--details,
  .section--first { margin-top: 0; }
}
.ad-slot--content { padding: 8px 12px 22px; }
.ad-unit { max-width: 100%; overflow: hidden; }
.ad-slot--sky { display: none; }
@media (min-width: 1680px) {
  .ad-slot--sky:not(:empty) { display: block; position: fixed; top: 112px; right: 16px; z-index: 30; width: 160px; }
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 20px; }
.footer__links a { color: rgba(255,255,255,.55); font-size: 14px; }
.footer__links a:hover { color: #f9ab00; }
.paginator-mob__off { display: flex; align-items: center; gap: 6px; opacity: .35; }
.paginator { flex-wrap: wrap; }
.section__more { margin-bottom: 20px; }
@media (min-width: 768px) { .section__more { display: none; } }
.header__nav-link--active { color: #f9ab00; }

/* skip-to-content */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 16px; background: #f9ab00; color: #1a191f; border-radius: 8px; }
