/* Videoqalereya detail — Desktop 5823:23833, Mobile 5823:24166. */

.aayda-gallery-video-detail-page {
  background-color: var(--aayda-colors-surface-disabled);
}

.aayda-gallery-video-detail {
  width: 100%;
  min-width: 0;
  padding: 24px 0 36px;
}

.aayda-gallery-video-detail__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: calc(100% - 32px);
  max-width: 370px;
  margin-inline: auto;
}

.aayda-gallery-video-detail__stack {
  display: flex;
  flex-direction: column;
  gap: 34px;
  width: 100%;
}

.aayda-gallery-video-detail__article {
  display: flex;
  flex-direction: column;
  gap: 45px;
  box-sizing: border-box;
  width: 370px;
  max-width: 100%;
  padding: var(--aayda-numbers-spacing-16) var(--aayda-numbers-spacing-12);
  background: var(--aayda-colors-neutral-surface-subtle);
  border-radius: var(--aayda-radius-image);
  box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
}

.aayda-gallery-video-detail__article-inner {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-20);
  width: 100%;
}

/* bug-fix-5: the gap is Figma's distance from the title's last line to the date row. Figma draws the title in a
   fixed 95px box: on mobile (5823:24390, 24px on 31.2px lines) its four lines (124.8px) overflow that box and
   the date row sits at 95 + 40 = 135, so the date is 10.2px under the last line (ink: 12px); the site's title
   follows its text, so the 40px between box and date became 40px under the text. Tablet takes the mobile value. */
.aayda-gallery-video-detail__heading {
  display: flex;
  flex-direction: column;
  gap: 10.2px;
  width: 100%;
}

/* VIDEO-3: the title's box follows its text at every width. The design's fixed 95px left a large gap above
   the date when the title was short, and let a longer title run into the date; the space from the last line
   to the date row is the heading's gap instead (bug-fix-5, below). */
.aayda-gallery-video-detail__title {
  width: 100%;
  height: auto;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--aayda-typography-size-24);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-heading-24);
  letter-spacing: var(--aayda-typography-letter-spacing-24);
  color: var(--aayda-colors-text);
}

.aayda-gallery-video-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-8);
  width: 100%;
}

.aayda-gallery-video-detail__calendar {
  flex-shrink: 0;
  width: var(--aayda-icon-size-20, 20px);
  height: var(--aayda-icon-size-20, 20px);
  overflow: hidden;
}

.aayda-gallery-video-detail__calendar img {
  display: block;
  width: 20px;
  height: 20px;
  max-width: none;
}

.aayda-gallery-video-detail__date {
  margin: 0;
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  color: var(--aayda-colors-gray-500);
}

/* The player (VIDEO-1): one 16:9 frame at every width — the design's 980×552 desktop and 346×190
   mobile frames are both 16:9 — holding either the YouTube poster, which news-detail.js replaces with
   the player in the same box, or the browser's own player for an uploaded file. The background shows
   only while nothing covers it: behind the play control when there is no poster or it failed to
   load, and around a file whose shape is not 16:9. */
.aayda-gallery-video-detail__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--aayda-radius-image);
  background-color: var(--aayda-colors-gray-800);
}

.aayda-gallery-video-detail__video-file {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* SEO #15 (3AC): the uploaded file's cover, loaded only so its <picture> picks the right file for the
   player's poster (gallery-video-detail.js); the player draws it, this element never does. A rule of
   its own because reset.css gives every img display: block, which would outrank the hidden attribute. */
.aayda-gallery-video-detail__poster-source {
  display: none;
}

/* The video gallery's own play icon (the listing cards' 60px circle) on the news cover's control. */
.aayda-gallery-video-detail__video-play {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.aayda-gallery-video-detail__video-play img {
  display: block;
  width: 60px;
  height: 60px;
  max-width: none;
}

.aayda-gallery-video-detail__share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.aayda-gallery-video-detail__share-label {
  display: none;
}

.aayda-gallery-video-detail__share-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
  width: 100%;
}

.aayda-gallery-video-detail__share-networks {
  display: flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-8);
}

.aayda-gallery-video-detail__share-network {
  position: relative;
  flex-shrink: 0;
  width: var(--aayda-icon-size-43);
  height: var(--aayda-icon-size-43);
  overflow: hidden;
  background: rgba(16, 24, 40, 0.05);
  border-radius: var(--aayda-radius-input);
}

.aayda-gallery-video-detail__share-network img {
  position: absolute;
  display: block;
  max-width: none;
}

.aayda-gallery-video-detail__share-network--instagram img {
  top: 7px;
  left: 6px;
  width: 30px;
  height: 30px;
}

.aayda-gallery-video-detail__share-network--facebook img {
  top: 6px;
  left: 5px;
  width: 32px;
  height: 32px;
}

.aayda-gallery-video-detail__share-network--linkedin img {
  top: 11px;
  left: 12px;
  width: 20px;
  height: 20px;
}

.aayda-gallery-video-detail__share-network--tiktok img {
  top: 9px;
  left: 10px;
  width: 24px;
  height: 24px;
}

.aayda-gallery-video-detail__share-network--telegram img {
  top: 11px;
  left: 11px;
  width: 18px;
  height: 18px;
}

.aayda-gallery-video-detail__copy {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-4);
  height: var(--aayda-icon-size-43);
  padding: 0 12px 0 0;
  color: inherit;
  background: #eeeff0;
  border: 0;
  border-radius: var(--aayda-radius-input);
  cursor: pointer;
}

.aayda-gallery-video-detail__copy-icon {
  position: relative;
  flex-shrink: 0;
  width: 35px;
  height: var(--aayda-icon-size-43);
}

.aayda-gallery-video-detail__copy-icon img {
  position: absolute;
  top: 12px;
  left: 12.5px;
  display: block;
  width: 18px;
  height: 18px;
  max-width: none;
}

.aayda-gallery-video-detail__copy-label {
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  color: var(--aayda-colors-navy-700);
  white-space: nowrap;
}

/* VIDEO-2: Instagram and TikTok are buttons, not links (they open the device's share sheet); they
   keep the links' look, as on the news article (news-detail.css). */
button.aayda-gallery-video-detail__share-network {
  padding: 0;
  font: inherit;
  cursor: pointer;
  border: 0;
}

/* The copy feedback news-detail.js shows on the button. Success reads "Link kopyalandı" in the site's
   success colour, as on the news article. A failed copy reads as a sentence; it may wrap, so it never
   runs out of the row on a phone, and keeps the label's own colour, which holds its contrast on the
   button's grey where the site's error red would not. */
.aayda-gallery-video-detail__copy.is-copied .aayda-gallery-video-detail__copy-label {
  color: var(--aayda-colors-success);
}

.aayda-gallery-video-detail__copy.is-copy-failed {
  height: auto;
  min-height: var(--aayda-icon-size-43);
  max-width: 100%;
  text-align: left;
}

.aayda-gallery-video-detail__copy.is-copy-failed .aayda-gallery-video-detail__copy-label {
  padding-block: var(--aayda-numbers-spacing-8);
  white-space: normal;
}

.aayda-gallery-video-detail__related {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-20);
  width: 100%;
}

.aayda-gallery-video-detail__related-header {
  display: flex;
  align-items: center;
  width: 100%;
}

.aayda-gallery-video-detail__related-title {
  width: 100%;
  margin: 0;
  font-size: var(--aayda-typography-size-24);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-heading-24);
  letter-spacing: var(--aayda-typography-letter-spacing-24);
  color: var(--aayda-colors-text);
}

.aayda-gallery-video-detail__all {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 3px;
  width: 168px;
  color: var(--aayda-colors-blue-400);
}

.aayda-gallery-video-detail__all--header {
  display: none;
}

.aayda-gallery-video-detail__all--footer {
  margin-top: 4px;
  margin-left: 98px;
}

/* VIDEO-5A: the "all videos" link on its own, for a video with no related videos. The same link
   component, visible at every width; start-aligned below the article on narrow screens. */
.aayda-gallery-video-detail__all-row {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

/* VIDEO-5A: the video's description under the player, in the site's body-text style (the news
   article's). Plain text whose line breaks are kept; a long word wraps rather than widening the page. */
.aayda-gallery-video-detail__description {
  width: 100%;
  margin: 0;
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-24);
  color: var(--aayda-colors-text);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.aayda-gallery-video-detail__all-label {
  font-size: var(--aayda-typography-size-20);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-20);
  letter-spacing: var(--aayda-typography-letter-spacing-20);
  white-space: pre;
}

.aayda-gallery-video-detail__all-arrow {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  overflow: hidden;
}

.aayda-gallery-video-detail__all-arrow img {
  position: absolute;
  inset: 0;
  display: block;
  width: 30px;
  height: 30px;
  max-width: none;
}

.aayda-gallery-video-detail__all-arrow-hover {
  opacity: 0;
}

.aayda-gallery-video-detail__grid {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-16);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aayda-gallery-video-detail__card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 370px;
  max-width: 100%;
  height: 348px;
  padding: var(--aayda-numbers-spacing-4) var(--aayda-numbers-spacing-4) 0;
  overflow: hidden;
  color: inherit;
  background: var(--aayda-colors-neutral-surface-subtle);
  border-radius: var(--aayda-radius-card);
  box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
}

/* VIDEO-3: the site's image placeholder tint (the photo cards') behind the picture, so a related video
   without one, or whose picture failed to load, keeps a quiet box rather than an empty one. */
.aayda-gallery-video-detail__card-media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 198px;
  overflow: hidden;
  background-color: var(--aayda-colors-news-tab-active-fill);
  border-radius: var(--aayda-radius-image);
}

.aayda-gallery-video-detail__card-media img {
  position: absolute;
  top: -1.42%;
  left: 0;
  display: block;
  width: 100%;
  height: 102.84%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.aayda-gallery-video-detail__card-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-20);
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: var(--aayda-numbers-spacing-12) var(--aayda-numbers-spacing-14) var(--aayda-numbers-spacing-16);
  overflow: hidden;
}

.aayda-gallery-video-detail__card-title {
  width: 100%;
  height: 78px;
  margin: 0;
  overflow: hidden;
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  color: var(--aayda-colors-news-card-title);
  overflow-wrap: anywhere;
}

.aayda-gallery-video-detail__card-title-desktop {
  display: none;
}

.aayda-gallery-video-detail__card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
}

.aayda-gallery-video-detail__card-date {
  margin: 0;
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  color: var(--aayda-colors-neutral-500);
  white-space: nowrap;
}

.aayda-gallery-video-detail__card-more {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-4);
  overflow: hidden;
  color: var(--aayda-colors-blue-400);
}

.aayda-gallery-video-detail__card-more-label {
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  white-space: nowrap;
}

.aayda-gallery-video-detail__card-more-arrow {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  overflow: hidden;
}

.aayda-gallery-video-detail__card-more-arrow img {
  display: block;
  width: 14px;
  height: 14px;
  max-width: none;
}

.aayda-gallery-video-detail__card-more-arrow--desktop {
  display: none;
}

/* VIDEO-3: keyboard focus below the desktop layout. The desktop's own focus states (below) are a
   change of colour; under 1416px these controls had none of their own, so they take the site's ring,
   as the news article's do at every width (news-detail.css). */
@media (max-width: 1415px) {
  .aayda-gallery-video-detail__share-network:focus-visible,
  .aayda-gallery-video-detail__copy:focus-visible,
  .aayda-gallery-video-detail__all:focus-visible,
  .aayda-gallery-video-detail__card:focus-visible {
    outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
    outline-offset: 2px;
  }
}

@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-gallery-video-detail__inner {
    width: calc(100% - 32px);
    max-width: 100%;
    min-width: 0;
  }

  .aayda-gallery-video-detail__article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-gallery-video-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--aayda-numbers-spacing-16);
    width: 100%;
    min-width: 0;
  }

  .aayda-gallery-video-detail__card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-gallery-video-detail__all--footer {
    margin-left: 0;
  }
}

@media (min-width: 1416px) {
  .aayda-gallery-video-detail {
    padding: 40px 0 96px;
  }

  .aayda-gallery-video-detail__inner {
    gap: 60px;
    width: 1272px;
    max-width: none;
    margin-inline: auto;
  }

  .aayda-gallery-video-detail__stack {
    gap: 96px;
  }

  .aayda-gallery-video-detail__article {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    width: 1272px;
    max-width: none;
    padding: 96px 140px 40px;
    background: var(--aayda-colors-base-white);
  }

  /* bug-fix-5: Figma 13076:81436 (the current desktop frame) puts the player 28px under the date row
   * (meta ends at 125, player starts at 153); the earlier frame 5823:23833 had 45px. The other blocks
   * keep their 45px apart, so the column spaces its children itself rather than with one gap. Mobile
   * and tablet keep the base 20px, which is Figma 5823:24166's. Both detail pages (video gallery and
   * "Faydalı məlumatlar") render this column. */
  .aayda-gallery-video-detail__article-inner {
    gap: 0;
    width: 980px;
  }

  .aayda-gallery-video-detail__article-inner > * + * {
    margin-top: 45px;
  }

  .aayda-gallery-video-detail__article-inner > .aayda-gallery-video-detail__heading + * {
    margin-top: 28px;
  }

  /* bug-fix-5: Figma 13079:82169 — two 41.6px lines (83.2px) in the 95px title box, then 4px to the date row:
     15.8px from the last line to the date (ink: 20px), whatever the number of lines. The 95px minimum is gone:
     it left 57.4px under a one-line title and 4px under a three-line one. */
  .aayda-gallery-video-detail__heading {
    gap: 15.8px;
  }

  .aayda-gallery-video-detail__title {
    font-size: var(--aayda-typography-size-32);
    line-height: var(--aayda-typography-line-height-heading-32);
    letter-spacing: var(--aayda-typography-letter-spacing-32);
  }

  .aayda-gallery-video-detail__date {
    font-size: var(--aayda-typography-size-16);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    color: var(--aayda-colors-text);
  }

  .aayda-gallery-video-detail__share {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    box-sizing: border-box;
    width: 980px;
    height: 79px;
    padding: 20px 0 16px;
    border-top: 1px solid rgba(210, 216, 234, 0.69);
  }

  .aayda-gallery-video-detail__share-label {
    display: block;
    flex-shrink: 0;
    margin: 0;
    font-size: var(--aayda-typography-size-20);
    font-weight: var(--aayda-typography-weight-bold);
    line-height: var(--aayda-typography-line-height-20);
    letter-spacing: var(--aayda-typography-letter-spacing-20);
    color: #335aad;
    white-space: nowrap;
  }

  .aayda-gallery-video-detail__share-actions {
    display: flex;
    flex-shrink: 0;
    flex-direction: row;
    gap: var(--aayda-numbers-spacing-8);
    align-items: center;
    width: auto;
  }

  .aayda-gallery-video-detail__share-networks {
    flex-shrink: 0;
  }

  /* VIDEO-2: the copy-failure sentence wraps inside the 980px row rather than widening the button
     past the column (its actions do not shrink). The row grows for the few seconds it shows. */
  .aayda-gallery-video-detail__copy.is-copy-failed {
    max-width: 420px;
  }

  .aayda-gallery-video-detail__copy.is-copy-failed .aayda-gallery-video-detail__copy-label {
    line-height: var(--aayda-typography-line-height-20);
  }

  .aayda-gallery-video-detail__share:has(.is-copy-failed) {
    height: auto;
    min-height: 79px;
  }

  .aayda-gallery-video-detail__copy-icon img {
    left: 13px;
    transition: filter 300ms ease-out;
  }

  .aayda-gallery-video-detail__copy-label {
    font-size: var(--aayda-typography-size-16);
    line-height: var(--aayda-typography-line-height-32);
    letter-spacing: 0;
    transition: color 300ms ease-out;
  }

  /* Figma Component 539: ON_HOVER CHANGE_TO SMART_ANIMATE 300ms EASE_OUT.
     Social icons: root fill #133888, glyph #ffffff. Copy: bg #133888, icon/label #ffffff.
     Size/position unchanged. Mobile Share/Actions has no hover reactions. */
  .aayda-gallery-video-detail__share-network {
    transition: background-color 300ms ease-out;
  }

  .aayda-gallery-video-detail__share-network img {
    transition: filter 300ms ease-out;
  }

  .aayda-gallery-video-detail__share-network:hover,
  .aayda-gallery-video-detail__share-network:focus-visible {
    background-color: #133888;
  }

  .aayda-gallery-video-detail__share-network:hover img,
  .aayda-gallery-video-detail__share-network:focus-visible img {
    filter: brightness(0) invert(1);
  }

  .aayda-gallery-video-detail__copy {
    transition: background-color 300ms ease-out;
  }

  .aayda-gallery-video-detail__copy:hover,
  .aayda-gallery-video-detail__copy:focus-visible {
    background-color: #133888;
  }

  .aayda-gallery-video-detail__copy:hover .aayda-gallery-video-detail__copy-label,
  .aayda-gallery-video-detail__copy:focus-visible .aayda-gallery-video-detail__copy-label {
    color: #ffffff;
  }

  .aayda-gallery-video-detail__copy:hover .aayda-gallery-video-detail__copy-icon img,
  .aayda-gallery-video-detail__copy:focus-visible .aayda-gallery-video-detail__copy-icon img {
    filter: brightness(0) invert(1);
  }

  .aayda-gallery-video-detail__related {
    gap: 24px;
    width: 1272px;
  }

  /* On desktop the lone link takes the place the strip's header link has: the column's right edge. */
  .aayda-gallery-video-detail__all-row {
    justify-content: flex-end;
    width: 1272px;
  }

  .aayda-gallery-video-detail__related-header {
    justify-content: space-between;
    height: 47px;
  }

  .aayda-gallery-video-detail__related-title {
    width: auto;
    font-size: var(--aayda-typography-size-36);
    line-height: var(--aayda-typography-line-height-36);
    letter-spacing: var(--aayda-typography-letter-spacing-36);
    white-space: nowrap;
  }

  .aayda-gallery-video-detail__all {
    width: 168px;
    height: 30px;
    overflow: visible;
    transition: gap 300ms ease-out, color 300ms ease-out;
  }

  .aayda-gallery-video-detail__all-label {
    flex-shrink: 0;
    color: inherit;
    transition: color 300ms ease-out;
  }

  .aayda-gallery-video-detail__all-arrow img {
    transition: opacity 300ms ease-out;
  }

  .aayda-gallery-video-detail__all--header {
    display: inline-flex;
  }

  .aayda-gallery-video-detail__all--footer {
    display: none;
  }

  .aayda-gallery-video-detail__all-arrow {
    overflow: visible;
  }

  .aayda-gallery-video-detail__all:hover,
  .aayda-gallery-video-detail__all:focus-visible {
    gap: 8px;
    color: var(--aayda-colors-news-link-hover);
  }

  .aayda-gallery-video-detail__all:hover .aayda-gallery-video-detail__all-label,
  .aayda-gallery-video-detail__all:focus-visible .aayda-gallery-video-detail__all-label {
    color: var(--aayda-colors-news-link-hover);
  }

  .aayda-gallery-video-detail__all:hover .aayda-gallery-video-detail__all-arrow-hover,
  .aayda-gallery-video-detail__all:focus-visible .aayda-gallery-video-detail__all-arrow-hover {
    opacity: 1;
  }

  .aayda-gallery-video-detail__all:hover .aayda-gallery-video-detail__all-arrow-default,
  .aayda-gallery-video-detail__all:focus-visible .aayda-gallery-video-detail__all-arrow-default {
    opacity: 0;
  }

  .aayda-gallery-video-detail__grid {
    flex-direction: row;
    gap: 24px;
    height: 397px;
  }

  .aayda-gallery-video-detail__item {
    flex: 0 0 408px;
    width: 408px;
    height: 397px;
  }

  .aayda-gallery-video-detail__card {
    position: relative;
    width: 408px;
    height: 397px;
    padding: 4px 4px 25px;
    overflow: visible;
  }

  .aayda-gallery-video-detail__card-media {
    width: 400px;
    height: 245px;
  }

  .aayda-gallery-video-detail__card-media img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition:
      width 300ms ease-in,
      height 300ms ease-in,
      top 300ms ease-in,
      left 300ms ease-in;
  }

  .aayda-gallery-video-detail__card-body {
    display: contents;
  }

  .aayda-gallery-video-detail__card-title {
    position: absolute;
    top: 259px;
    left: 20px;
    width: 368px;
    height: auto;
    overflow: visible;
    color: var(--aayda-colors-text);
    overflow-wrap: break-word;
  }

  .aayda-gallery-video-detail__card-title-desktop {
    display: block;
    width: 368px;
    font-size: var(--aayda-typography-size-16);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    color: var(--aayda-colors-text);
    overflow-wrap: break-word;
    white-space: pre-wrap;
  }

  .aayda-gallery-video-detail__card-title-mobile {
    display: none;
  }

  .aayda-gallery-video-detail__card-row {
    position: absolute;
    top: 349px;
    left: 18px;
    display: block;
    width: 372px;
    height: 30px;
    overflow: visible;
  }

  .aayda-gallery-video-detail__card-date {
    position: absolute;
    top: 5px;
    left: 0;
    width: 84px;
    font-size: var(--aayda-typography-size-14);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
  }

  .aayda-gallery-video-detail__card-more {
    position: absolute;
    top: 0;
    left: 232px;
    gap: 0;
    width: 136px;
    height: 30px;
    overflow: visible;
    pointer-events: none;
    transition: gap 300ms ease-out, width 300ms ease-out, color 300ms ease-out;
  }

  .aayda-gallery-video-detail__card-more-label {
    width: 106px;
  }

  .aayda-gallery-video-detail__card-more-arrow {
    position: relative;
    width: 30px;
    height: 30px;
  }

  .aayda-gallery-video-detail__card-more-arrow img {
    position: absolute;
    inset: 0;
    width: 30px;
    height: 30px;
    transition: opacity 300ms ease-out;
  }

  .aayda-gallery-video-detail__card-more-arrow-hover {
    opacity: 0;
  }

  .aayda-gallery-video-detail__card-more-arrow--desktop {
    display: block;
  }

  .aayda-gallery-video-detail__card-more-arrow--mobile {
    display: none;
  }

  .aayda-gallery-video-detail__card:hover,
  .aayda-gallery-video-detail__card:focus-visible {
    padding-bottom: 23px;
    background: var(--aayda-colors-base-white);
  }

  /* The picture's hover enlargement — no longer on the video gallery's related cards (correction: they
     keep the thumbnail's size, place and frame on hover and focus, and the muted preview covers that same
     box). Those are the cards carrying the play icon (__card-play, drawn only on the video gallery's
     pages); the "Faydalı məlumatlar" pages' related cards keep it. A browser without :has() drops this
     rule, so no card enlarges there. */
  .aayda-gallery-video-detail__card:not(:has(.aayda-gallery-video-detail__card-play)):hover .aayda-gallery-video-detail__card-media img,
  .aayda-gallery-video-detail__card:not(:has(.aayda-gallery-video-detail__card-play)):focus-visible .aayda-gallery-video-detail__card-media img {
    top: -3.67%;
    left: -8.44%;
    width: 116.89%;
    height: 107.35%;
  }

  .aayda-gallery-video-detail__card:hover .aayda-gallery-video-detail__card-more,
  .aayda-gallery-video-detail__card:focus-visible .aayda-gallery-video-detail__card-more {
    width: 140px;
    gap: var(--aayda-numbers-spacing-4);
    color: var(--aayda-colors-news-link-hover);
  }

  .aayda-gallery-video-detail__card:hover .aayda-gallery-video-detail__card-more-arrow-hover,
  .aayda-gallery-video-detail__card:focus-visible .aayda-gallery-video-detail__card-more-arrow-hover {
    opacity: 1;
  }

  .aayda-gallery-video-detail__card:hover .aayda-gallery-video-detail__card-more-arrow-default,
  .aayda-gallery-video-detail__card:focus-visible .aayda-gallery-video-detail__card-more-arrow-default {
    opacity: 0;
  }
}

/* ===========================================================================
 * The related cards' play icon and muted hover preview (video gallery pages).
 * Figma: Desktop/Qalereya/Video — Açıq kart 13076:81436 (Play icon 13076:81515 over each 400 x 245
 * picture) and Mobile 5823:24166 (Play icon 13073:81401 at 155, 73 in the 370 x 348 card, i.e. the
 * centre of its 362 x 198 picture): the 60 x 60 icon (assets/icons/gallery-video-play.svg — Figma's
 * asset, a white 1px ring over a 1% white fill, a white triangle, a 4px background blur) centred on
 * the picture at every width, shown in the default state.
 * The picture rules above size and, on desktop hover/focus, enlarge every img in the picture box; the
 * icon keeps its own 60 x 60 in every state. The preview (an uploaded file only; YouTube cards keep
 * their poster) lies over the poster and under the icon, and shows only while it really plays — driven
 * by js/components/video-hover-preview.js: muted, inline, a fine hovering pointer only, one at a time,
 * nothing under prefers-reduced-motion.
 * =========================================================================== */
.aayda-gallery-video-detail__card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

.aayda-gallery-video-detail__card .aayda-gallery-video-detail__card-media .aayda-gallery-video-detail__card-play img,
.aayda-gallery-video-detail__card:hover .aayda-gallery-video-detail__card-media .aayda-gallery-video-detail__card-play img,
.aayda-gallery-video-detail__card:focus-visible .aayda-gallery-video-detail__card-media .aayda-gallery-video-detail__card-play img {
  position: static;
  top: auto;
  left: auto;
  display: block;
  width: 60px;
  height: 60px;
  max-width: none;
  object-fit: contain;
  transition: none;
}

.aayda-gallery-video-detail__card-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out;
}

.aayda-gallery-video-detail__card[data-video-preview-playing="true"] .aayda-gallery-video-detail__card-preview {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .aayda-gallery-video-detail__card-preview {
    transition: none;
  }
}
