/*
 * GTA Game Next 2.4.16 / GTAGame 1.4.27
 * Stabilizacja frontendu i wersji mobilnej.
 *
 * Ten plik jest ładowany po głównym style.css i forum-overrides.css,
 * dzięki czemu poprawki są odseparowane od historycznych reguł motywu.
 */

/* Bezpieczne ograniczenie przepełnień w elastycznych kolumnach. */
html {
  overflow-x: clip;
}

body.gtx-site,
body.gtx-site .gtx-main,
body.gtx-site .gtx-main-content,
body.gtx-site .gtx-forum-content,
body.gtx-site .gtx-panel__body,
body.gtx-site .gtx-news-card__main,
body.gtx-site .gtx-news-card__content,
body.gtx-site .gtx-news-card__body,
body.gtx-site .gtlfg-wrap,
body.gtx-site .gtsc-wrap {
  min-width: 0;
}

body.gtx-site h1,
body.gtx-site h2,
body.gtx-site h3,
body.gtx-site h4,
body.gtx-site h5,
body.gtx-site h6,
body.gtx-site a,
body.gtx-site p,
body.gtx-site li,
body.gtx-site dd,
body.gtx-site td,
body.gtx-site th {
  overflow-wrap: anywhere;
}

/* Media osadzone w newsach, artykułach, forum i pluginach. */
body.gtx-site main img:not(.gtx-forum-emote):not(.gtx-chat-emote),
body.gtx-site main video,
body.gtx-site main canvas,
body.gtx-site main svg,
body.gtx-site .gtx-panel__body img:not(.gtx-forum-emote):not(.gtx-chat-emote) {
  max-width: 100%;
}

body.gtx-site main video,
body.gtx-site main canvas {
  height: auto;
}

body.gtx-site .gtx-responsive-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #080b12;
  aspect-ratio: var(--gtx-embed-ratio, 16 / 9);
}

body.gtx-site .gtx-responsive-embed > iframe,
body.gtx-site .gtx-responsive-embed > video,
body.gtx-site .gtx-responsive-embed > object,
body.gtx-site .gtx-responsive-embed > embed {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0;
}

/* Media wykryte dynamicznie nie są przepinane w DOM, aby iframe nie ładował się ponownie. */
body.gtx-site :where(iframe, video, object, embed).gtx-responsive-media {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  border: 0;
  border-radius: 12px;
  background: #080b12;
  aspect-ratio: var(--gtx-embed-ratio, 16 / 9);
}

/* Uniwersalny przewijany kontener dla szerokich tabel e107 i pluginów. */
body.gtx-site .gtx-responsive-table {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

body.gtx-site .gtx-responsive-table:focus-visible {
  outline: 2px solid var(--gtx-cyan, #58ddff);
  outline-offset: 3px;
}

body.gtx-site .gtx-responsive-table > table {
  margin-bottom: 0;
}

body.gtx-site .gtx-responsive-table[data-gtx-overflow="1"]::after {
  content: "Przesuń tabelę w poziomie";
  position: sticky;
  right: .45rem;
  bottom: .35rem;
  display: block;
  width: max-content;
  margin: .35rem .35rem .15rem auto;
  padding: .22rem .45rem;
  border: 1px solid rgba(126, 154, 206, .18);
  border-radius: 999px;
  color: #9eabc0;
  background: rgba(8, 11, 18, .88);
  font-size: .64rem;
  line-height: 1.2;
  pointer-events: none;
}

/* Klawiatura i dotyk: czytelny fokus oraz rozsądne cele interakcji. */
body.gtx-site :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gtx-cyan, #58ddff);
  outline-offset: 2px;
}

body.gtx-site pre,
body.gtx-site code,
body.gtx-site .bbcode-code,
body.gtx-site .gtx-forum-post-content__body pre {
  max-width: 100%;
}

body.gtx-site pre,
body.gtx-site .bbcode-code,
body.gtx-site .gtx-forum-post-content__body pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet: panele boczne układają się w dwie kolumny pod treścią. */
@media (min-width: 768px) and (max-width: 991.98px) {
  body.gtx-site .gtx-home-grid > .gtx-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
  }

  body.gtx-site .gtx-home-grid > .gtx-sidebar > * {
    min-width: 0;
    margin-bottom: 0;
  }

  body.gtx-site .gtx-home-grid > .gtx-sidebar > .gtx-gta-tree,
  body.gtx-site .gtx-home-grid > .gtx-sidebar > .gtx-ts-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 68px;
  }

  body.gtx-site .container,
  body.gtx-site .container-fluid,
  body.gtx-site .container-xxl {
    --bs-gutter-x: 1.25rem;
  }

  body.gtx-site .gtx-page {
    padding-top: .9rem;
    padding-bottom: 2rem;
  }

  body.gtx-site .gtx-home-grid {
    gap: .9rem;
  }

  body.gtx-site .gtx-panel,
  body.gtx-site .gtx-welcome,
  body.gtx-site .gtx-auth-card,
  body.gtx-site .gtx-news-card,
  body.gtx-site .gtlfg-card,
  body.gtx-site .gtsc-panel,
  body.gtx-site .gtsc-hero {
    border-radius: 13px;
  }

  body.gtx-site .gtx-panel__header {
    min-height: 44px;
    padding: .7rem .8rem .65rem .95rem;
  }

  body.gtx-site .gtx-panel__body {
    padding-left: .8rem;
    padding-right: .8rem;
  }

  body.gtx-site .gtx-page-heading {
    margin-bottom: .85rem;
    padding: .9rem 1rem;
    border-radius: 13px;
  }

  body.gtx-site .gtx-page-heading h1,
  body.gtx-site .gtx-forum-topic__title,
  body.gtx-site .gtx-news-card--single .gtx-news-card__title {
    font-size: clamp(1.45rem, 7vw, 2rem) !important;
    line-height: 1.12;
  }

  body.gtx-site .gtx-hero__inner {
    padding-top: 1.7rem;
    padding-bottom: 1.7rem;
  }

  body.gtx-site .gtx-hero h1 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  body.gtx-site .gtx-hero p {
    font-size: .92rem;
  }

  body.gtx-site .gtx-hero__actions,
  body.gtx-site .gtx-news-card__footer-actions,
  body.gtx-site .gtx-comment-form__actions,
  body.gtx-site .gtx-comment-actions,
  body.gtx-site .gtx-forum-topic__actions,
  body.gtx-site .gtx-forum-topic__footer {
    width: 100%;
    flex-wrap: wrap;
  }

  body.gtx-site .gtx-hero__actions > *,
  body.gtx-site .gtx-news-card__footer-actions > *,
  body.gtx-site .gtx-comment-form__actions > *,
  body.gtx-site .gtx-forum-topic__footer > .btn,
  body.gtx-site .gtx-forum-topic__actions > .btn {
    min-width: 0;
    flex: 1 1 150px;
  }

  /* Brak automatycznego zoomu formularzy w mobilnym Safari. */
  body.gtx-site input:not([type="checkbox"]):not([type="radio"]),
  body.gtx-site select,
  body.gtx-site textarea,
  body.gtx-site .form-control,
  body.gtx-site .form-select {
    min-height: 44px;
    font-size: 16px !important;
  }

  body.gtx-site textarea,
  body.gtx-site textarea.form-control {
    min-height: 112px;
  }

  body.gtx-site .btn,
  body.gtx-site .gtx-btn,
  body.gtx-site .gtlfg-btn,
  body.gtx-site .gtsc-btn,
  body.gtx-site button,
  body.gtx-site input[type="submit"],
  body.gtx-site input[type="button"] {
    min-height: 44px;
  }

  /* Szybki dostęp zajmuje mniej pionowego miejsca na telefonie. */
  body.gtx-site .gtx-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }

  body.gtx-site .gtx-quick-links > a {
    min-width: 0;
    min-height: 68px;
    padding: .65rem;
  }

  body.gtx-site .gtx-quick-links > a > i {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  body.gtx-site .gtx-quick-links > a span {
    min-width: 0;
    font-size: .76rem;
  }

  body.gtx-site .gtx-quick-links > a small {
    font-size: .62rem;
    line-height: 1.25;
  }

  /* News i metadane bez wychodzenia poza ekran. */
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: none;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media img,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media picture {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
  }

  body.gtx-site .gtx-news-card__header,
  body.gtx-site .gtx-news-card__content,
  body.gtx-site .gtx-news-card__footer,
  body.gtx-site .gtx-news-card--single .gtx-news-card__content {
    padding-left: .9rem;
    padding-right: .9rem;
  }

  body.gtx-site .gtx-news-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.gtx-site .gtx-news-meta__item {
    width: auto;
    min-width: 0;
    white-space: normal;
  }

  /* Forum: opcje i treść nie poszerzają karty posta. */
  body.gtx-site .gtx-forum-shell {
    overflow-x: visible;
  }

  body.gtx-site .gtx-forum-shell table {
    min-width: 0;
  }

  body.gtx-site .gtx-forum-post-content {
    padding: .8rem !important;
  }

  body.gtx-site .gtx-forum-post-content__header {
    align-items: stretch !important;
    flex-direction: column;
  }

  body.gtx-site .gtx-forum-post-content__options,
  body.gtx-site .gtx-forum-post-content__options .btn-group,
  body.gtx-site .gtx-forum-post-content__options .dropdown {
    max-width: 100%;
  }

  body.gtx-site .gtx-forum-post-content__body,
  body.gtx-site .forum-thread-text,
  body.gtx-site .gtx-comment-text {
    word-break: break-word;
  }

  body.gtx-site .gtx-forum-attachments,
  body.gtx-site .gtx-forum-attachments a {
    max-width: 100%;
  }

  body.gtx-site .gtx-comment-actions .btn {
    flex: 1 1 120px;
  }

  /* Stopka: większe i wygodniejsze linki dotykowe. */
  body.gtx-site .gtx-footer__grid > div:not(.gtx-footer__brand) > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
  }
}

/*
 * GTA Game Next 2.4.56 — ciaśniejsza geometria treści karty.
 * Niższy rząd desktopowy zbliża pole obrazu do proporcji źródłowych 16:9,
 * dzięki czemu object-fit: cover ucina mniej lewej i prawej krawędzi.
 */
@media (min-width: 992px) {
  body.gtx-site .gtx-news-card--horizontal {
    grid-template-rows: minmax(230px, auto) auto;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__main {
    min-height: 230px;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__header {
    padding: .65rem .8rem .15rem;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__title {
    margin-bottom: 0;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__content {
    padding: .15rem .8rem .55rem;
  }
}

@media (max-width: 430px) {
  body.gtx-site .gtx-header__inner {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  body.gtx-site .gtx-brand img {
    width: min(100%, 205px);
    height: auto;
  }

  body.gtx-site .gtx-quick-links,
  body.gtx-site .gtx-news-meta {
    grid-template-columns: 1fr;
  }

  body.gtx-site .gtx-hero__actions > *,
  body.gtx-site .gtx-news-card__footer-actions > *,
  body.gtx-site .gtx-comment-form__actions > *,
  body.gtx-site .gtlfg-hero__actions > *,
  body.gtx-site .gtsc-actions > * {
    width: 100%;
    flex-basis: 100%;
  }

  body.gtx-site .gtx-comment-form {
    grid-template-columns: 1fr;
  }

  body.gtx-site .gtx-comment-form__user {
    display: none;
  }

  body.gtx-site .gtx-comment-user {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: .55rem;
    padding: .7rem;
  }

  body.gtx-site .gtx-comment-avatar > img,
  body.gtx-site .gtx-comment-avatar > a > img {
    width: 52px !important;
    height: 52px !important;
  }

  body.gtx-site .gtx-footer__grid {
    gap: 1rem;
  }
}

/* Użytkownik z ograniczonymi animacjami nie otrzymuje ruchomych efektów. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  body.gtx-site *,
  body.gtx-site *::before,
  body.gtx-site *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/*
 * Publiczny profil e107 generuje kwadrat 200 × 200, a standardowy arkusz
 * ogranicza kartę do 150 × 150. Ogólna responsywna reguła motywu ma większą
 * specyficzność i znosiła tylko max-width, pozostawiając max-height: 150px.
 * Jawne oba wymiary zapobiegają wynikowi 200 × 150 bez wpływu na forum ani
 * formularz ustawień użytkownika, które nie korzystają z .panel-profile.
 */
body.gtx-site main .user-profile .panel-profile img.user-avatar {
  display: block;
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

/*
 * GTA Game Next 2.4.51 — pełniejsze karty aktualności.
 * Obraz mieści się w całości w polu miniatury, bez kadrowania. Dłuższa
 * zajawka otrzymuje pięć linii na desktopie, a karta rośnie razem z treścią.
 */
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(36, 43, 72, .72), #070a12 74%);
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media img,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media picture img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media:hover img {
  transform: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

@media (min-width: 768px) {
  body.gtx-site .gtx-news-card--horizontal,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__main,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
    height: auto;
    min-height: 290px;
  }
}

@media (max-width: 767.98px) {
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 14 / 9;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media picture,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Regulamin korzysta z natywnego #forum-rules, lecz dostaje kartę motywu. */
body.gtx-site .gtx-forum-rules-page #forum-rules {
  padding: clamp(1rem, 2.4vw, 1.75rem);
  color: #dce4f2;
  background: linear-gradient(145deg, rgba(17, 23, 38, .97), rgba(31, 24, 49, .94));
  border: 1px solid rgba(122, 139, 183, .34);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}

body.gtx-site .gtx-forum-rules-page #forum-rules > :first-child {
  margin-top: 0;
}

body.gtx-site .gtx-forum-rules-page #forum-rules > :last-child {
  margin-bottom: 0;
}

/*
 * GTA Game Next 2.4.54 — warstwowe miniatury aktualności.
 * Pierwszy plan pokazuje cały, niekadrowany obraz. Ta sama grafika w warstwie
 * dekoracyjnej wypełnia pozostałe miejsce bez czarnych pasów i bez utraty treści.
 */
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #070a12;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-foreground {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop {
  z-index: 0;
  pointer-events: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(5, 8, 16, .22), rgba(5, 8, 16, .46));
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop img,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop picture {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.1);
  filter: blur(15px) brightness(.48) saturate(.86);
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-foreground {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-foreground img,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-foreground picture {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-foreground img {
  object-fit: contain;
  object-position: center;
  transform: none;
  filter: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media:hover .gtx-news-card__media-backdrop img {
  transform: scale(1.13);
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media:hover .gtx-news-card__media-foreground img {
  transform: none;
}

/*
 * GTA Game Next 2.4.55 — zwarta karta listy aktualności.
 * Jedna ostra miniatura wypełnia górny rząd karty. Źródło e107 pozostaje
 * niekadrowane; umiarkowane kadrowanie boków odbywa się wyłącznie w CSS.
 * Wszystkie metadane i akcje tworzą jeden pasek pod pełną szerokością karty.
 */
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-backdrop,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-foreground {
  display: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
  isolation: auto;
  background: #070a12;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media > picture,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media > img,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media > picture > img,
body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: none;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media:hover .gtx-news-card__media-image {
  transform: scale(1.018);
  filter: brightness(1.04);
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__footer--list {
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  width: 100%;
  margin-top: 0;
  padding: .68rem .85rem;
  border-top: 1px solid rgba(154, 173, 216, .18);
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-meta--list {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: .42rem;
  min-width: 0;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-meta--list .gtx-news-meta__item {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

body.gtx-site .gtx-news-card--horizontal .gtx-news-card__footer--list .gtx-news-card__footer-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (min-width: 992px) {
  body.gtx-site .gtx-news-card--horizontal {
    grid-template-columns: minmax(310px, 40%) minmax(0, 1fr);
    grid-template-rows: minmax(260px, auto) auto;
    min-height: 0;
    align-items: stretch;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__main {
    grid-row: 1;
    height: 100%;
    min-height: 260px;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media {
    grid-column: 1;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__main {
    grid-column: 2;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media > picture,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media > img {
    position: absolute;
    inset: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__footer--list {
    align-items: stretch;
    flex-direction: column;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-meta--list {
    width: 100%;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__footer--list .gtx-news-card__footer-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__footer--list {
    grid-column: 1;
    grid-row: auto;
    align-items: stretch;
    flex-direction: column;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-meta--list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-meta--list .gtx-news-meta__item {
    white-space: normal;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__footer--list .gtx-news-card__footer-actions {
    width: 100%;
    margin-left: 0;
  }
}

/*
 * GTA Game Next 2.4.57 — proporcja miniatury bliższa 16:9.
 * Cztery linie zajawki skracają kartę, a pole 205 px powoduje jedynie
 * delikatne kadrowanie góry i dołu szerokiej grafiki zamiast jej boków.
 */
@media (min-width: 992px) {
  body.gtx-site .gtx-news-card--horizontal {
    grid-template-rows: minmax(205px, auto) auto;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__media,
  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__main {
    min-height: 205px;
  }

  body.gtx-site .gtx-news-card--horizontal .gtx-news-card__summary {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }
}

/*
 * GTA Game Next 2.4.58 — semantyczne nagłówki niższych poziomów w newsie.
 * Bootstrap 4 ustawia H6 na 1rem, czyli dokładnie tyle co tekst akapitu.
 * Pierwsza linia H6 pozostaje nagłówkiem, a dalsze linie (np. adresy źródeł
 * rozdzielone przez <br>) zachowują spokojniejszą typografię.
 */
body.gtx-site .gtx-news-card--single .gtx-news-card__body h4,
body.gtx-site .gtx-news-card--single .gtx-news-card__extended h4 {
  margin: 1.45rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.25;
}

body.gtx-site .gtx-news-card--single .gtx-news-card__body h5,
body.gtx-site .gtx-news-card--single .gtx-news-card__extended h5 {
  margin: 1.35rem 0 0.5rem;
  color: #f4f7ff;
  font-size: clamp(1.15rem, 1.7vw, 1.28rem);
  font-weight: 850;
  line-height: 1.3;
}

body.gtx-site .gtx-news-card--single .gtx-news-card__body h6,
body.gtx-site .gtx-news-card--single .gtx-news-card__extended h6 {
  margin: 1.25rem 0 0.45rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

body.gtx-site .gtx-news-card--single .gtx-news-card__body h6::first-line,
body.gtx-site .gtx-news-card--single .gtx-news-card__extended h6::first-line {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.3;
}

/*
 * GTA Game Next 2.4.60 — lekka lista źródeł pełnego newsa.
 * Zamiast zagnieżdżonej karty pozostaje separator, zwięzły nagłówek i nazwy
 * serwisów. Pełne adresy zachowuje renderer w href oraz title odnośnika.
 */
body.gtx-site .gtx-news-card--single .gtx-news-sources {
  margin: 1.2rem 0 0.15rem;
  padding: 0.8rem 0 0;
  border-top: 1px solid rgba(115, 210, 255, 0.24);
  background: transparent;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__title {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0 0 0.45rem;
  color: #dce8f5;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__title::first-line {
  color: #dce8f5;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__title-icon {
  display: inline-grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid rgba(103, 221, 255, 0.38);
  border-radius: 50%;
  color: #67ddff;
  font-size: 0.76rem;
  line-height: 1;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  color: #b9c6d8;
  font-size: 0.88rem;
  line-height: 1.4;
  list-style: none;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__item {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  color: #67ddff;
  font-weight: 650;
  text-decoration: none;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__link::before {
  content: "\2197";
  color: #9be9ff;
  font-size: 0.78rem;
}

body.gtx-site .gtx-news-card--single .gtx-news-sources__link:hover,
body.gtx-site .gtx-news-card--single .gtx-news-sources__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
/* 1.4.38: czytelna kategoria aktualności na wąskich ekranach. */
@media (max-width: 480px) {
  body.gtx-site .gtx-news-meta__item--category {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    white-space: normal;
  }

  body.gtx-site .gtx-news-meta__item--category > i {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-top: .15em;
  }

  body.gtx-site .gtx-news-meta__item--category .gtx-news-meta__label {
    grid-column: 2;
    grid-row: 1;
    white-space: nowrap;
  }

  body.gtx-site .gtx-news-meta__item--category .gtx-news-meta__value {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
  }

  body.gtx-site .gtx-news-meta__item--category .gtx-news-meta__value a {
    display: block;
    overflow-wrap: normal;
    word-break: normal;
  }
}
