.tg-card { padding: 0; }
.tg-card__a {
  display: flex; flex-direction: column;
  height: 100%; padding: 20px 20px 24px;
  transition: background-color .15s ease;
}
.tg-card__a:hover { background: var(--gk-tint); }
.tg-card__a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.tg-card__tray {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 10 / 9;
  border-radius: 12px; background: var(--gk-tray);
}
.tg-card__shot {
  position: absolute; left: 50%; top: 9%;
  box-sizing: border-box; width: 66%; max-width: none; height: auto;
  translate: -50% 0;
  border: 1px solid var(--gk-line); border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}
.tg-card__tray::after {
  content: ""; position: absolute; inset: auto 0 0; height: 30%;
  background: linear-gradient(to bottom, rgb(245 245 247 / 0), var(--gk-tray) 92%);
}

.tg-card__name {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 18px;
  font: 500 15.5px/1.3 var(--font-ui); letter-spacing: -.01em; color: var(--ink-nav);
}
.tg-card__name svg {
  flex: none; width: 15px; height: 15px; color: #9ca3af;
  transition: translate .2s cubic-bezier(.2, .8, .3, 1), color .15s ease;
}
.tg-card__a:hover .tg-card__name svg { translate: 3px 0; color: var(--ink-nav); }
.tg-card__line {
  margin-top: 5px;
  font: 400 14px/1.45 var(--font-ui); color: var(--gk-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tg-card__meta {
  margin-top: auto; padding-top: 14px;
  font: 500 11px/1.3 var(--font-ui); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gk-grey);
}

.tg-empty { padding: 0; }

.tg-bar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 18px;
}
.tg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 13px;
  border-radius: 8px; border: 1px solid var(--gk-line); background: #fff;
  font: 500 13.5px/1 var(--font-ui); color: var(--ink-nav); white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tg-chip span { font-size: 12px; font-weight: 400; color: var(--gk-grey); font-variant-numeric: tabular-nums; }
.tg-chip:hover { background: var(--gk-tint); }
.tg-chip[aria-current="true"] { background: #141a21; border-color: #141a21; color: #fff; }
.tg-chip[aria-current="true"] span { color: rgb(255 255 255 / .6); }
.tg-chip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tg-count { margin: 0; font: 400 13.5px/1 var(--font-ui); color: var(--gk-soft); white-space: nowrap; }

.tg-pool { display: none; }

.pg-js .tg-gallery .tg-more { display: none; }
.tg-allrow { display: none; }
.pg-js .tg-allrow:not([hidden]) { display: block; }
.tg-allrow__a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: var(--container); margin-inline: auto; padding: 24px 20px;
  font: 500 14.5px/1 var(--font-ui); color: var(--brand);
  transition: background-color .15s ease;
}
.tg-allrow__a:hover { background: var(--gk-tint); }
.tg-allrow__a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tg-allrow__a svg { width: 15px; height: 15px; transition: translate .2s cubic-bezier(.2, .8, .3, 1); }
.tg-allrow__a:hover svg { translate: 0 2px; }

.tg-hero__copy { max-width: 840px; }
.gk-hero__title.tg-hero__title { font-size: 54px; line-height: 1.06; }
.tg-hero__tagline {
  display: block; margin-top: 12px;
  font: 300 24px/1.3 var(--font-display); letter-spacing: -.01em;
  color: var(--gx-mute, var(--gk-soft));
}
.tg-hero .gk-hero__sub { max-width: 620px; }
.tg-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin: 20px 0 0; padding: 0; list-style: none;
}
.tg-tags li {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 10px;
  border-radius: 999px; border: 1px solid rgb(11 13 18 / .08); background: rgb(255 255 255 / .7);
  font: 500 12.5px/1 var(--font-ui); color: var(--ink-nav);
}
.tg-hero .gk-hero__cta { margin-top: 26px; }
.gx .tg-hero__copy { padding-bottom: 28px; }

.tg-stage { padding: 0 24px; }
.tg-view {
  --tg-h: clamp(440px, 72vh, 760px);
  padding: 14px 20px 20px;
}
.tg-view__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 34px; margin-bottom: 14px;
}
.tg-view__label {
  display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0;
  font: 500 13px/1.3 var(--font-ui); color: var(--ink-nav);
}
.tg-view__label i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #12b76a; }
.tg-view__label span { margin-left: 4px; font-weight: 400; color: var(--gk-soft); }

.tg-modes { flex: none; display: flex; gap: 3px; padding: 3px; border-radius: 10px; background: rgb(11 13 18 / .05); }
.tg-modes[hidden] { display: none; }
.tg-modes button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: 500 13px/1 var(--font-ui); color: var(--gk-soft); white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tg-modes button:hover { color: var(--ink-nav); }
.tg-modes button[aria-pressed="true"] { background: #fff; color: var(--ink-nav); outline: 1px solid var(--gk-line); outline-offset: -1px; }
.tg-modes button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.tg-modes svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.tg-win {
  width: 100%; margin-inline: auto;
  border-radius: 12px; background: #fff;
  border: 1px solid var(--gk-line);
  overflow: hidden;
}
.tg-view[data-mode="mobile"] .tg-win { width: min(100%, 392px); }
.tg-win__chrome {
  display: flex; align-items: center; gap: 5px;
  height: 36px; margin: 0; padding: 0 14px;
  border-bottom: 1px solid #f0f1f3;
}
.tg-win__chrome > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e3e5ea; }
.tg-win__chrome > span {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-right: 34px; overflow: hidden;
  font: 400 12px/1 var(--font-ui); color: #8b8f9a; white-space: nowrap; text-overflow: ellipsis;
}
.tg-view[data-mode="mobile"] .tg-win__chrome > span { margin-right: 0; }
.tg-win__chrome svg { flex: none; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }

.tg-win__screen { position: relative; height: var(--tg-h); overflow: hidden; background: var(--gk-tint); }
.tg-win__poster {
  position: absolute; left: 50%; top: 0;
  width: min(100%, 400px); max-width: none; height: auto;
  translate: -50% 0;
}
.tg-win.is-loaded .tg-win__poster { display: none; }
.tg-win__frame {
  position: absolute; left: 0; top: 0;
  display: block; width: 100%; height: 100%;
  border: 0; transform-origin: 0 0;
}
.tg-win.is-loaded .tg-win__frame { background: #fff; }

.tg-related .gk-head__aside .gk-more { margin-top: 0; }

@media (max-width: 1100px) {
  .tg-card__a { padding: 18px 18px 22px; }
  .gk-hero__title.tg-hero__title { font-size: 48px; }
}

@media (max-width: 900px) {
  .gk .tg-cells { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .gk .tg-cells > * { border-left: 1px solid var(--rail); border-top: 0; }
  .gk .tg-cells > :nth-child(odd) { border-left: 0; }
  .gk .tg-cells > :nth-child(n + 3) { border-top: 1px solid var(--rail); }
  .tg-cells > .tg-empty { display: none; }
  .tg-cells > .tg-card + .tg-empty:nth-child(even) { display: block; }
  .tg-cells--3 > :nth-child(3) { display: none; }
  .tg-view__label span { display: none; }
}

@media (max-width: 760px) {
  .tg-stage { padding: 0 8px; }
  .tg-view { --tg-h: clamp(420px, 70vh, 640px); padding: 12px 12px 14px; }
  .gk-hero__title.tg-hero__title { font-size: 38px; }
  .tg-hero__tagline { font-size: 20px; }
}

@media (max-width: 640px) {
  .tg-bar__in { flex-direction: column; align-items: flex-start; }
  .tg-count { display: none; }
  .tg-card__a { padding: 14px 14px 18px; }
  .tg-card__tray { aspect-ratio: 1 / 1; border-radius: 10px; }
  .tg-card__name { margin-top: 14px; font-size: 14.5px; }
  .tg-card__name svg { display: none; }
  .tg-card__line { font-size: 13px; }
  .tg-card__meta { padding-top: 10px; font-size: 10.5px; letter-spacing: .06em; }
  .tg-modes button { padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-card__a, .tg-card__name svg, .tg-chip, .tg-allrow__a, .tg-allrow__a svg, .tg-modes button { transition: none; }
}
