/* jp-country-sidebar-20261201b
   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).
*/

.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. Model stays on the row above.
   Michal 1. 12. 2026 19:47. Grid so the three stats cannot wrap.
   Calendar icon is hidden here only; "59 minutes ago" then fits the
   ~196px column with 2px gaps beside views and likes. Eye and like icons stay.
   A still-longer date (e.g. "a few seconds ago") ellipsizes. */
.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);
  column-gap: 2px;
  row-gap: 2px;
  align-items: center;
  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%;
}

.col-asside .asside-thumb .thumbs .thumb .thumb-bottom > .thumb-item {
  flex: none;
  width: auto;
  max-width: none;
  margin: 0;
  white-space: nowrap;
}

.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: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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: none;
}
