:root {
  --kino-canvas: #131416;
  --kino-ink: #f5f3ee;
  --kino-panel: #1a1b1d;
  --kino-line: #383a38;
  --kino-muted: #b9b8b2;
  --kino-accent: #d5fb72;
  --kino-cta-ink: #14170e;
  --kino-gutter: clamp(12px, 2.7vw, 40px);
}

html[data-kinoveya],
html[data-kinoveya] body,
html[data-kinoveya] body .menu-page,
html[data-kinoveya] body .home-header,
html[data-kinoveya] body .menu-page__tabs-panel,
html[data-kinoveya] body .privacy-policy-footer,
html[data-kinoveya] body[data-site-template] {
  background: var(--kino-canvas);
}

html[data-kinoveya] body .home-header {
  height: 64px;
  padding-inline: var(--kino-gutter);
  border-color: #2c2d2c;
}
html[data-kinoveya] body .menu-page__tabs-panel--pinned { top: 63px; }
html[data-kinoveya] body .menu-page__tabs { padding-inline: var(--kino-gutter); }
html[data-kinoveya] body .menu-page__tabs-track { gap: clamp(14px, 1.8vw, 28px); }
html[data-kinoveya] body .menu-page:has(.kinoveya-hero) .menu-page__title { display: none; }

html[data-kinoveya] body a.home-header__brand[aria-label] {
  flex: none;
  gap: 9px;
  white-space: nowrap;
  color: var(--kino-ink);
}

html[data-kinoveya] body a.home-header__brand > svg { display: none; }
html[data-kinoveya] body a.home-header__brand::before {
  content: "";
  flex: 0 0 36px;
  height: 36px;
  background: url("./mark.svg") center / contain no-repeat;
}
html[data-kinoveya] body a.home-header__brand::after {
  content: "Kinoveya";
  font: 700 29px/.95 Georgia, serif;
  letter-spacing: -.055em;
}

html[data-kinoveya] body .home-header .home-header__join-free,
html[data-kinoveya] body .home-pagination .home-pagination__go,
html[data-kinoveya] body .home-pagination .home-pagination__page--active {
  background: var(--kino-accent);
  color: var(--kino-cta-ink);
}
html[data-kinoveya] body .menu-page__tab.is-active .menu-page__tab-text { color: var(--kino-accent); }
html[data-kinoveya] body .menu-page__filter button.is-active {
  color: var(--kino-cta-ink);
  border-color: var(--kino-accent);
  background: var(--kino-accent);
}
html[data-kinoveya] body .menu-page__filter button:focus-visible,
html[data-kinoveya] body .waterfall__card a:focus-visible {
  outline: 2px solid var(--kino-accent);
  outline-offset: -2px;
}

.kinoveya-hero {
  position: relative;
  z-index: 0;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(255px, 25vw, 335px);
  width: min(calc(100% - 2 * var(--kino-gutter)), 1520px);
  margin: 18px auto 26px;
  border: 1px solid #3a3c30;
  border-radius: 19px;
  overflow: hidden;
  color: var(--kino-ink);
  background: #141612;
}
.kinoveya-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #131514 17%, #131514e8 35%, transparent 71%);
}
.kinoveya-hero img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: right 29%;
}
.kinoveya-hero__copy { padding: 34px clamp(26px, 5.3vw, 84px); }
.kinoveya-hero h1,
.kinoveya-feed-title {
  margin: 0;
  color: var(--kino-ink);
  font: 700 clamp(45px, 6.1vw, 90px)/.97 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}
.kinoveya-hero p {
  margin: 11px 0 0;
  font: 400 clamp(16px, 2vw, 27px)/1.35 system-ui, sans-serif;
}
.kinoveya-hero a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  margin-top: 23px;
  padding: 10px 19px;
  border-radius: 11px;
  background: var(--kino-accent);
  color: var(--kino-cta-ink);
  font: 750 15px/1.2 system-ui, sans-serif;
  text-decoration: none;
}
.kinoveya-hero a::before {
  content: "";
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.kinoveya-hero a:hover { background: #e2ff96; }
.kinoveya-feed-title {
  width: min(calc(100% - 2 * var(--kino-gutter)), 1520px);
  margin: 0 auto 14px;
  font-size: clamp(28px, 3.7vw, 50px);
  line-height: 1.06;
  scroll-margin-top: 95px;
}

html[data-kinoveya] body .waterfall .waterfall__card {
  --kinoveya-caption: 86px;
  aspect-ratio: 3 / 4;
  border: 1px solid #353632;
  border-radius: 14px;
  background: var(--kino-panel);
}
html[data-kinoveya] body .waterfall .waterfall__details {
  box-sizing: border-box;
  height: var(--kinoveya-caption);
  min-height: var(--kinoveya-caption);
  align-items: flex-start;
  justify-content: flex-start;
  padding: 9px 12px;
  background: #f4f0e8;
  color: var(--kino-cta-ink);
  text-align: left;
}
html[data-kinoveya] body .waterfall .waterfall__title,
html[data-kinoveya] body .waterfall .waterfall__creator {
  color: var(--kino-cta-ink);
  text-align: left;
}
html[data-kinoveya] body .waterfall .waterfall__title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-kinoveya] body .waterfall .waterfall__creator { opacity: .65; }
html[data-kinoveya] body .waterfall .new-home-template-tags { justify-content: flex-start; margin-top: 4px; }
html[data-kinoveya] body .waterfall .new-home-template-tags__tag {
  border-color: #4e5245;
  color: #20241b;
  background: #eeeade;
}
html[data-kinoveya] body .home-trust-badges { display: none; }
html[data-kinoveya] body .inspiration-waterfall-skeleton .inspiration-waterfall-skeleton__column .inspiration-waterfall-skeleton__card { aspect-ratio: 3 / 4; }

main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"] {
  position: relative;
  isolation: isolate;
}
main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"]::before,
main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"]::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: clamp(66px, 15vw, 100px);
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
}
main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"]::before {
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  border: 2px solid #3e4c2c;
  border-top-color: var(--kino-accent);
  border-right-color: #8fba4b;
  border-radius: 50%;
  background: var(--kino-panel);
  animation: kinoveya-orbit 1.4s linear infinite;
}
main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"]::after {
  width: 56px;
  height: 56px;
  background: url("./mark.svg") center / contain no-repeat;
  animation: kinoveya-pulse 1.4s ease-in-out infinite;
}
@keyframes kinoveya-orbit { to { transform: rotate(1turn); } }
@keyframes kinoveya-pulse { 50% { transform: scale(1.08); opacity: .78; } }

html[data-kinoveya] body .gsm {
  --accent: #d5fb72;
  --line: #51534d;
  width: min(1000px, 100%);
  background: var(--kino-panel);
  color: var(--kino-ink);
}
html[data-kinoveya] body .gsm .gsm-pane,
html[data-kinoveya] body .gsm .gsm-single { background: #141516; }
html[data-kinoveya] body .gsm .gsm-role,
html[data-kinoveya] body .gsm .gsm-ico,
html[data-kinoveya] body .gsm .gsm-mode select { background: #262824; color: var(--kino-ink); }
html[data-kinoveya] body .gsm .gsm-up { border-color: #73756b; background: #20221e; color: var(--kino-ink); }
html[data-kinoveya] body .gsm .gsm-up:hover { background: #30352a; }
html[data-kinoveya] body .gsm .gsm-gen { background: var(--kino-accent); color: var(--kino-cta-ink); }
html[data-kinoveya] body .gsm .gsm-gen:disabled { background: #2e3427; color: #c1c6b9; }
html[data-kinoveya] body .gsm :is(.gsm-tags, .gsm-hint) { color: var(--kino-muted); }

html[data-kinoveya] body[data-site-template] > header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--kino-ink);
}
html[data-kinoveya] body[data-site-template] > header a::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("./mark.svg") center / contain no-repeat;
}

@media (min-width: 701px) {
  html[data-kinoveya] body .gsm .gsm-body:not(.one-input):not(.no-input) { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); }
  html[data-kinoveya] body .gsm .gsm-body:not(.one-input):not(.no-input) > .gsm-pane { grid-area: 1 / 1; }
  html[data-kinoveya] body .gsm .gsm-body:not(.one-input):not(.no-input) > .gsm-slots { grid-area: 1 / 2; }
}
@media (max-width: 700px) {
  html[data-kinoveya] body .home-header { height: 55px; }
  html[data-kinoveya] body .menu-page__tabs-panel--pinned { top: 54px; }
  html[data-kinoveya] body a.home-header__brand::before { flex-basis: 30px; height: 30px; }
  html[data-kinoveya] body a.home-header__brand::after { font-size: 24px; }
  .kinoveya-hero { margin-block: 12px 20px; }
  .kinoveya-hero img { width: 100%; object-position: 60% 40%; }
  .kinoveya-hero::after { background: linear-gradient(90deg, #131514ee, #13151491 58%, #13151420); }
  .kinoveya-hero__copy { padding-inline: 20px; }
  .kinoveya-hero h1 { max-width: 9ch; }
  html[data-kinoveya] body .waterfall .waterfall__card { --kinoveya-caption: 80px; }
  html[data-kinoveya] body .waterfall .waterfall__details { padding-inline: 8px; }
  html[data-kinoveya] body .waterfall .waterfall__title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"]::before,
  main :is(.inspiration-waterfall-skeleton, .creation-gallery-skeleton)[role="status"]::after { animation: none; }
}

/* Drama posters use their entire frame; duration stays legible on the image. */
html[data-kinoveya] body .drama-feed .waterfall__column .waterfall__card {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  border: 1px solid #353632;
}
html[data-kinoveya] body .drama-feed .waterfall__card .waterfall__details {
  height: auto;
  min-height: 0;
  padding: 30px 12px 12px;
  justify-content: flex-end;
  color: #f5f3ee;
  background: linear-gradient(transparent, rgb(10 12 12 / 84%));
}
html[data-kinoveya] body .drama-feed .waterfall__details :is(.waterfall__title,.waterfall__creator) {color:#f5f3ee}
html[data-kinoveya] body .drama-feed .waterfall__details [class*="new-home-template-tags__tag--drama"] {
  display:inline-flex; width:auto; height:auto; min-height:22px; padding:3px 9px;
  border:1px solid #d5fb7277; border-radius:7px; background:#171b15;
  color:#d5fb72; font:650 12px/1.2 system-ui,sans-serif;
}
html[data-kinoveya] body .drama-feed .waterfall__details [class*="new-home-template-tags__tag--drama"] > * {display:none}
html[data-kinoveya] body .drama-feed .new-home-template-tags__tag--drama-30s::after {content:"30s Drama"}
html[data-kinoveya] body .drama-feed .new-home-template-tags__tag--drama-60s::after {content:"60s Drama"}
@media(max-width:700px) {
  html[data-kinoveya] body .drama-feed .waterfall__columns,
  html[data-kinoveya] body .drama-feed .waterfall__column {gap:9px}
  html[data-kinoveya] body .drama-feed .waterfall__column .waterfall__card {border-radius:11px}
}

/* Compact template library */
html[data-kinoveya] .kinoveya-feed-title {
  font: 680 clamp(24px, 2.35vw, 35px)/1.15 system-ui, sans-serif;
  letter-spacing: -.045em;
  margin-bottom: 12px;
}
html[data-kinoveya] body .menu-page .menu-page__tab-new { display: none; }
html[data-kinoveya] body .menu-page .menu-page__filter-content { gap: 6px; }
html[data-kinoveya] body .menu-page .menu-page__filter-sort {
  min-height: 32px;
  border-radius: 9px;
  padding-inline: 12px;
  background: #202224;
  border: 1px solid #373a39;
  color: #d6d7d2;
}
html[data-kinoveya] body .menu-page .menu-page__filter-sort.is-active,
html[data-kinoveya] body .menu-page .menu-page__filter-sort.is-active span {
  background: #d5fb72;
  color: #161b10;
  -webkit-text-fill-color: #161b10;
}
html[data-kinoveya] body .home-page__feed .waterfall .waterfall__details {
  height: auto;
  min-height: 0;
  gap: 3px;
  padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(13,16,15,.9) 22px, #101312);
}
html[data-kinoveya] body .home-page__feed .waterfall .waterfall__title { color: #f5f3ee; font-weight: 650; }
html[data-kinoveya] body .home-page__feed .waterfall .waterfall__creator { color: #c5c9c2; opacity: 1; font-size: 11px; }
html[data-kinoveya] body .home-page__feed .waterfall .new-home-template-tags { margin-top: 1px; gap: 5px; }
html[data-kinoveya] body .home-page__feed .waterfall .new-home-template-tags__tag {
  width: auto; height: auto; min-height: 20px; padding: 2px 6px; box-sizing: border-box;
  display: inline-flex; align-items: center; border: 1px solid #60665b;
  border-radius: 5px; color: #e7eae2; background: #272c26;
  font: 650 10px/1.15 system-ui, sans-serif; letter-spacing: .015em;
}
html[data-kinoveya] body .home-page__feed .waterfall .new-home-template-tags__label {
  position: static; display: inline; color: inherit; background: none;
  -webkit-text-fill-color: currentColor; transform: none; font: inherit;
}
html[data-kinoveya] body .home-page__feed .waterfall .new-home-template-tags__tag:has(.new-home-template-tags__label:not(:empty)) > :not(.new-home-template-tags__label) { display: none; }
html[data-kinoveya] body .home-page__feed .waterfall :is(.new-home-template-tags__tag--drama-30s,.new-home-template-tags__tag--drama-60s) {color:#d5fb72}
html[data-kinoveya] body .home-page__feed .waterfall :is(.new-home-template-tags__tag--drama-30s,.new-home-template-tags__tag--drama-60s) > * {display:none}
html[data-kinoveya] body .home-page__feed .waterfall .new-home-template-tags__tag--drama-30s::after {content:'30s Drama'}
html[data-kinoveya] body .home-page__feed .waterfall .new-home-template-tags__tag--drama-60s::after {content:'60s Drama Pro'}
@media(max-width:700px) {
 html[data-kinoveya] body .home-page__feed .waterfall .waterfall__details {padding:20px 8px 8px}
 html[data-kinoveya] body .home-page__feed .waterfall .waterfall__column,
 html[data-kinoveya] body .home-page__feed .waterfall .waterfall__columns {gap:9px}
 html[data-kinoveya] body .menu-page .menu-page__filter-sort { min-height:36px; }
}
