/* jp-country-sidebar-20261201c
   JustPorn: tighten the video-page right sidebar geo list
   ("American Porn", "British Porn", "Americké Porno", "Country porn", …).

   Block: section#custom_list_videos_videos_wich_geo_models inside .col-asside
   (view_video.tpl → custom_list_videos "Videos Wich Geo Models" →
   include_list_videos_block_common.tpl with list_videos_recommended_list
   and geo_models). Horizontal row: 160px thumb + .thumb-info.

   What's wrong on live (measured 1. 12. 2026, 1366–2560, NSFW and SFW):
   - .thumb-info is display:block without min-width:0 / flex:1, so it sizes
     to the title's intrinsic width (257–405px) and overflows the 360px
     aside. Titles and dates are clipped by .thumbs { overflow: clip }.
   - Actors-below put .jpm-mdl (model name) inside .thumb-bottom on the same
     nowrap row as views / likes / date. Grid CSS then does
     .thumb-bottom:has(.jpm-mdl) .thumb-item:first-of-type { margin-left: auto }
     which shoves the stats to the right — messy in a ~180px text column.
   - Item padding (4px 4px 10px) leaves ~26px of dark space between
     consecutive 160×87.5 thumbnails (item boxes themselves touch).

   Scope is ONLY .col-asside .asside-thumb so the homepage geo carousel
   (#custom_list_videos_videos_wich_geo_models_items next to
   videos_watched_right_now) is unchanged. .col-asside is already
   display:none below 1335px, so 1280 and mobile stay the same.
   Does not touch the 1919px max-width cap.

   Rollback: remove the <link> from include_footer_general.tpl
   (this file can stay unused on the CDN).

   Version c, 1. 12. 2026: Michal 21:50 — ikony a text rozhozené,
   ikona kalendáře skrytá. Calendar icon is visible again. Views,
   likes and date pack from the left with even gaps. Icon size and
   icon-to-text gap match the site's other .thumb-item rows (12px / 4px).
   Filename c because the CDN ignores ?v=.
*/

.col-asside .asside-thumb > .thumbs,
.col-asside #custom_list_videos_videos_wich_geo_models_items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.col-asside .asside-thumb .thumbs > .thumb {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.col-asside .asside-thumb .thumbs .thumb > a {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}

.col-asside .asside-thumb .thumbs .thumb .img-holder {
  flex: 0 0 160px;
  width: 160px;
  max-width: 160px;
  margin: 0;
  padding-bottom: 0;
  aspect-ratio: 16 / 9;
  height: auto;
  box-sizing: border-box;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-info > .title,
.col-asside .asside-thumb .thumbs .thumb .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

/* Model name on its own row; views / rating / date on the row below. */
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .jpm-mdl {
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  order: 0;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .thumb-item {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  margin-left: 0;
  margin-bottom: 0;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom:has(.jpm-mdl) .thumb-item:first-of-type {
  margin-left: 0;
}


/* Views, likes and added-date on ONE row, calendar icon visible.
   Michal 1. 12. 2026 21:50. Version b hid the calendar and used
   grid columns "max-content max-content minmax(0,1fr)" with the
   theme's padding-left:20px still on the date, so the date text
   sat ~22px after likes while views-to-likes was 2px. Eye was
   17px and like 14px, so icon-to-text gaps were 3px vs 6px.
   c keeps a 3-column grid so the stats cannot wrap, but each
   .thumb-item uses the site's block + padding-left + absolute
   icon pattern with 12px icons and 16px padding (4px to the
   text), same as the main grid / homepage geo row. 8px even
   gaps between the three stats (tighter than the grid's 12px).
   The date column may be 1fr so a very long date can ellipsize,
   but the date itself is only as wide as its content and sits
   at the start of the column — leftover space is after the
   text, not a hole between likes and the date. "29 minutes ago"
   / "59 minutes ago" / CZ "30 minut" fit in the ~196px column
   at 160px thumbs. "a few seconds ago" may ellipsize. */

.col-asside .asside-thumb .thumbs .thumb > a {
  gap: 4px;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  justify-content: start;
  justify-items: start;
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .jpm-mdl {
  grid-column: 1 / -1;
  flex: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item {
  display: block;
  flex: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 0 0 16px;
  position: relative;
  white-space: nowrap;
  box-sizing: border-box;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom:has(.jpm-mdl) .thumb-item:first-of-type {
  margin-left: 0;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item > i {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  margin: 0;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item svg,
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item .svg-icon,
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item .icon-eye,
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item .icon-like,
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item .icon-calendar {
  display: block;
  width: 12px;
  height: 12px;
  font-size: 12px;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .thumb-item:last-child,
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .thumb-item-date {
  flex: none;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  justify-self: start;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .thumb-item-date > i,
.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .thumb-item-date svg {
  display: flex;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom .thumb-item-date svg {
  display: block;
}
