/* ========================
   BĀZES STILS UN WRAPPERI
   ======================== */


/* ========================
   GALVENIE WRAPPERI
   ======================== */
.setpreview-mainwrap {
  max-width: 1840px;
  margin: 32px auto 0 auto;
  padding: 0 18px;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

.updates-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.setpreview-h1 {
  font-size: 2.0em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

/* ========================
   3 KOLONNU LAYOUTS
   ======================== */
.setpreview-flexrow {
  display: flex;
  gap:32px;
  margin-bottom: 48px;
  align-items: flex-start;
  flex-wrap:nowrap;
  width: 100%;
  box-sizing: border-box;
}

.profile-block {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap:38px;
  max-width: 1330px;
  margin: 0 auto 38px auto;
  background: #101010;
  border-radius: 12px;
  box-shadow: 0 0px 0px #101010;
  flex-wrap: wrap;
  padding: 36px 16px 0px 16px;
  width: 100%;
  box-sizing: border-box;
}

/* ========================
   KREISĀ KOLONNA: COVER
   ======================== */
.profile-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  box-sizing: border-box;
}

.profile-col-img {
  /* === ŠEIT galvenie “svira-slēdži” covera platumam === */
  flex:0 0 40%;          /* ← galvenais slēdzis. Palielini uz 42–44%, ja gribi vēl platāku */
  min-width:420px;       /* aizsardzībai pret pārāk šauriem ekrāniem */
  max-width:520px;       /* “cietais” griesti desktopam */
  align-items: center;
  text-align: center;
}

.setpreview-cover {
  width: 100%;
  max-width: var(--cover-max); /* ļauj attēlam izstiepties līdz cover kolonnas maksimālajam */
  height: auto;
  display: block;

  /* izskats */
  border-radius: 14px;
  box-shadow: 0 8px 38px #0007;
  object-fit: cover;
  margin-bottom: -10px;

  /* ieteicams 7:5, bet vari lietot 16/9, ja vajag vēl “horizontālāku” */
  aspect-ratio: 7 / 5; /* nomaini uz 16 / 9, ja vēlies platekrāna izskatu */
}

/* Cover meta & rating */
.setpreview-cover-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.22em;
  gap: 280px;
  margin-top: 0;
  width: 100%;
}
.cover-date {
  color: #e6e6e6;
  font-size: 0.8em;
  padding-bottom: 0px;
}
.cover-rating,
.setpreview-date,
.setpreview-rating {
  display: flex;
  align-items: center;
  font-size: 0.8em;
  gap: 3px;
  margin-top: 7px;
  color: #cfcfcf;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.setpreview-rating .star,
.star-rating {
  margin-bottom: 24px;
  margin-top: 20px;
  display: flex;
  align-items: center;
}
.star-svg {
  width: 0.80em;
  height: 0.80em;
  vertical-align: middle;
  margin-right: 1px;
}
.star-svg-font {
  font-size: 1.0em;
  color: #ffb700;
  font-weight: bold;
  vertical-align: middle;
  margin-left: 7px;
}

/* ========================
   VIDĒJĀ KOLONNA: APRAKSTS
   ======================== */
.profile-links a {
  color: #f100c1;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 1.2em;
  font-weight: 400;
  line-height: 1.4;
}
.profile-links a:visited { color: #f100c1; }
.profile-links a:hover,
.profile-links a:focus {
  color: #fff;
  text-decoration: underline;
}

.profile-col-bio {
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9em;
  font-weight: 100;
}

.setpreview-col.middle {
  /* === ŠEIT galvenie “svira-slēdži” vidējās kolonnas platumam === */
  flex:1 1 45%;          /* ← samazini uz 42–44%, ja vajag vēl šaurāku */
  min-width:380px;       /* nedaudz lielāks min, lai teksts lasāms */
  max-width:640px;       /* griesti, lai nekļūst par garu rindu */

  color: #ededed;
  font-size: 1.11em;
  font-weight: 400;
  line-height: 1.42;
}

.setpreview-desc p {
  margin-bottom: 38px;
  font-size: 1.2em;
  font-weight: 200;
}
.setpreview-desc h1 {
  margin-top: -35px;
  margin-bottom: 3px;
  font-weight: bold;
  color: #fff;
  font-size: 1.5em;
  line-height: 1.68;
}
.setpreview-desc h2,
.setpreview-desc h3,
.setpreview-desc h4,
.setpreview-desc h5,
.setpreview-desc p {
  margin-top: 10px;
  color: #fff;
  line-height: 1.48;
  margin-bottom: 18px;
  font-size: 1.2em;
  font-weight: 200;
}
/* ========================
   LABĀ KOLONNA: MODELIS
   ======================== */
.setpreview-col.right {
  flex: 0 0 190px;
  max-width: 200px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #181818;
  border-radius: 17px;
  box-shadow: 0 5px 32px #0005;
  padding: 20px 10px 16px 10px;
}
.setpreview-modelpic {
  width: 160px;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 10px;
	margin-top: -8px;
  box-shadow: 0 6px 18px #0005;
}
.setpreview-modelname {
  color: #ff14cc;
  font-size: 1.17em;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 10px;
  letter-spacing: 0.01em;
}
.setpreview-modelname:hover {
  color: #fff!important;
}
.setpreview-vital {
  background: #212121;
  border-radius: 11px;
  padding: 10px 15px;
  font-size: 1.07em;
  color: #ddd;
  margin-top: 5px;
}
.setpreview-vital b {
  color: #fff;
  font-weight: 500;
}

/* ===========================
   SNEAK PEEKS & PREVIEW GRID
   =========================== */
.setpreview-sneakh2 {
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  margin-top: 34px;
  letter-spacing: 0.01em;
}
.setpreview-previewgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 14px;
  margin-bottom: 38px;
  width: 100%;
  max-width: 1840px;
  box-sizing: border-box;
}

/* Preview cell */
.setpreview-previewcell {
  aspect-ratio: 7 / 5;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #141414;
  overflow: hidden;
  display: block;
  box-shadow: 0 6px 36px #0007;
  transition: transform .16s;
  position: relative;
  min-width: 0;
  min-height: 0;
}
.setpreview-previewcell.empty {
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: none !important;
  border: none !important;
  outline: none !important;
}
.setpreview-previewcell:hover img {
    filter: brightness(1.07);
    transform: scale(1.03);
    transition: all 0.25s;
}

/* Preview image wrap */
.setpreview-preview-imgwrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  display: block;
}
.setpreview-preview-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: #191919;
  display: block;
  aspect-ratio: 7 / 5;
  transition: transform 0.21s cubic-bezier(.7,.3,.2,.9);
}
.setpreview-previewcell:hover .setpreview-preview-imgwrap img {
  transform: scale(1.045);
}

/* Apakšas blur */
.setpreview-blur {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 56%;
  background: linear-gradient(to top,rgba(24,24,24,0.97) 0%,rgba(24,24,24,0.62) 48%,rgba(24,24,24,0) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 0 0 18px 18px;
}

/* ===========================
   UPDATES/HIDDEN GEMS (GRID)
   =========================== */
.flex-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.update-title {
  font-size: 1.06em;
  color: #fff;
  text-decoration: none;
  padding: 12px 13px 0 13px;
  min-height: 24px;
  max-height: 24px;
  overflow: hidden;
  word-break: break-word;
  display: block;
  transition: color .15s;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 300px;
}
.update-title:hover { color: #ff14cc; }
.update-meta {
  padding: 0 13px 11px 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.update-model {
  font-size: 1.09em;
  color: #ff14cc;
  margin-bottom: 0;
  text-decoration: none;
  transition: color .13s;
  margin-top: 2px;
  font-weight: 500;
}
.update-model:hover { color: #fff; }
.update-date {
  color: #bbb;
  font-size: 0.98em;
  margin: 0;
}

/* ===========================
   KOMENTĀRI
   =========================== */
.setpreview-feedbackh2 {
  margin-top: 44px;
  margin-bottom: 16px;
  font-size: 1.18em;
  font-weight: bold;
  color: #fff;
}
.setpreview-comments {
  width: 100%;
  max-width: 1840px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
.setpreview-comment {
  background: #232323;
  border-radius: 13px;
  padding: 18px 19px 14px 18px;
  color: #fff;
  box-shadow: 0 4px 22px #0003;
  font-size: 1.09em;
}
.setpreview-comment-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.98em;
  margin-bottom: 7px;
  color: #ff14cc;
}
.setpreview-comment-meta b { color: #fff; }
.setpreview-comment-empty {
  background: #232323;
  border-radius: 13px;
  padding: 28px 19px 22px 18px;
  color: #fff;
  font-size: 1.17em;
  text-align: center;
  margin-top: 22px;
  box-shadow: 0 4px 18px #0002;
  opacity: 0.82;
}
/* Komentāru forma: teksta krāsa, fons, apmales */
.gallery-comments-section form input[type="text"],
.gallery-comments-section form textarea {
  color: #111 !important;          /* burti */
  background: #e3e3e3 !important;  /* lauka fons (vari #C6C6C6 atstāt) */
  border: 1px solid #bdbdbd;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.4;
  outline: none;
}

/* Fokusā – vizuāla atgriezeniskā saite */
.gallery-comments-section form input[type="text"]:focus,
.gallery-comments-section form textarea:focus {
  border-color: #ff14cc;
  box-shadow: 0 0 0 3px rgba(255,20,204,.15);
}

/* Placeholder krāsa, lai nav pārāk bāla/balta */
.gallery-comments-section form input::placeholder,
.gallery-comments-section form textarea::placeholder {
  color: #666;
  opacity: 1;
}

/* Chrome/Safari autofill (citādi var palikt balts teksts) */
.gallery-comments-section form input:-webkit-autofill,
.gallery-comments-section form textarea:-webkit-autofill {
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 0 0 1000px #e3e3e3 inset;
  transition: background-color 5000s ease-in-out 0s;
}


/* ===========================
   VIDEO PLAYER UN THUMBNAILS
   =========================== */

/* Video wrapper */
.video-block-outer {
  display: flex;
  justify-content: center;
  margin: 24px 0 4px 0;
  width: 100%;
  box-sizing: border-box;
	margin-bottom: 26px;
}

/* Video iekšējais bloks (ar lazy loaded playeri) */
.video-inner-block,
#video-lazy-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1300px;
  
  aspect-ratio: 16/9;
  background: #101010;
  border-radius: 18px;
  box-shadow: 0 0px 0px #0007;
  padding: 14px 16px;
  box-sizing: border-box;
}

/* Video pats */
.video-player-custom {
  width: 100%;
  max-width: 1300px;
  max-height: 731px; /* tieši video augstums! */
  aspect-ratio: 16/9;
  border-radius: 12px;
  background: #080808;
  display: block;
}

/* Video ilgums */
.video-duration {
  width: 100%;
  text-align: right;
  margin-top: 8px;
  color: #bbb;
  font-size: 1.1em;
  position: static;
}
.video-duration-under {
  text-align: right;
  margin-top: 6px;
  font-size: 1.13em;
  color: #fff;
  opacity: 0.77;
  letter-spacing: 0.02em;
  padding-right: 8px;
}
.custom-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 120px;
  height: 48px;
  border-radius: 30px;
  border: 2px solid #fff;
  background: #343434; /* caurspīdīgs, bet nedaudz tumšs, lai redz uz bildes */
  cursor: pointer;
  z-index: 2;
  font-size: 1.35em;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2em;
  outline: none;
 
  transition: background 0.2s, border 0.2s;
}
.custom-play-btn span {
  opacity: 0; /* teksts neredzams, caurspīdīgs */
}
/* Optional: hover efekts */
.custom-play-btn:hover {
 
  border: 2.5px solid #ffd700;
}

/* Thumbnails wrapper */
/* Thumbnails wrapper */
.thumbs-block-outer {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto 40px auto;
    padding: 0 12px;
}

/* Grid layout */
.video-thumbs-grid-wide {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
}

/* Thumbnail card */
.video-thumb-cell-wide,
.video-thumb-cell-wide.empty {
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: #202020;
    display: block;
    width: 100%;
    box-shadow: 0 2px 14px #0006;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.video-thumb-cell-wide:hover {
    box-shadow: 0 6px 24px #ff14cc;
}

.video-thumb-cell-wide.empty {
    background: #181818;
    box-shadow: none;
}

/* Image fill */
.video-thumb-cell-wide picture,
.video-thumb-cell-wide img {
    width: 100%;
    height: 100%;
    display: block;
}

.video-thumb-cell-wide img {
    object-fit: cover;
    object-position: center;
}

/* Responsive for mobile */
@media (max-width: 700px) {
    .video-thumbs-grid-wide {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px;
        padding: 0 2vw !important;
		margin-top: 22px;
    }

    .video-thumb-cell-wide {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ===========================
   GALLERY STILS (VIDEO GALERIJAI)
   =========================== */
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 24px 0;
  width: 100%;
  box-sizing: border-box;
}
.gallery-item {
  width: 350px;
  max-width: 100%;
  background: #181a1e;
  border-radius: 16px;
  box-shadow: 0 2px 16px #0006;
  padding: 16px;
  box-sizing: border-box;
}


  
  /* VIDEO BLOKS (ar lazy wrapper) */
  .video-block-outer {
    margin: 20px 0 0 0 !important;
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }
  .video-inner-block,
  #video-lazy-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16/9 !important;
    min-height: unset !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #101010 !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
  }
  .video-player-custom {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
    border-radius: 0 !important;
    background: #080808 !important;
    display: block !important;
    margin: 0 auto !important;
    object-fit: cover !important;
    box-sizing: border-box !important;
  }
  .video-inner-block img,
  #video-lazy-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    border-radius: 0 !important;
    display: block !important;
    object-fit: cover !important;
    background: #080808 !important;
    box-sizing: border-box !important;
  }
  .video-duration {
  position: absolute;
  bottom: 10px;    /* attālums no apakšas */
  right: 20px;     /* attālums no labās malas */
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 1em;
  font-family: monospace;
  pointer-events: none;
  z-index: 9;
  letter-spacing: 1px;
}

  
.like-button {
    background: #ccc;
    border: none;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.like-button img {
    width: 20px;
    height: 20px;
}


.category-link:hover {
    color: #fff !important; /* Uzliec toni, kādu vēlies! */
    text-decoration: underline;
}

/* Rinda ar trim identiskām kolonnām */
.vr-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 vienādas */
  align-items: center;
  justify-items: center; /* <-- centrē VISU saturu pa horizontāli */
  gap: 16px;
  max-width: 1200px;
  margin: 10px auto 30px;
  width: 100%;
}

/* Vispārīgi kolonnām */
.vr-col {
  min-width: 0;
  display: flex;              /* visi bērni flex-container */
  justify-content: center;    /* centrē horizontāli */
  align-items: center;        /* centrē vertikāli */
  gap: 10px;                  /* atstarpe starp elementiem */
}

/* Kreisā kolonna: kvalitāte */
.vr-left {
  justify-self: left; /* centrē kolonnā */
}

/* Vidējā kolonna: poga */
.vr-center {
  justify-self: center;
}

/* Labā kolonna */
.vr-right {
  justify-self: right;
  margin-top: -30px; /* ja vajag saglabāt offsetu */
  margin-right: 0;   /* nevajag vairs labās malas nobīdi */
}

/* VR poga – centrējas kolonnā */
.external-vr-btn {
  display: block;
  width: 100%;
  max-width: 260px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.external-vr-btn img {
  display: block;
  width: 100%;
  height: auto;
}

/* Nolaižamais – vizuāli tīrs */
.vr-label{ color:#ccc; font-weight:500; }
.quality-select{
  background:#191919;
  color:#d8d8d8;
  font-size:1em;
  border-radius:8px;
  padding:8px 34px 8px 12px;
  border:1px solid #444;
  font-weight:500;
  -webkit-appearance:none; -moz-appearance:none; appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #d8d8d8 50%),
    linear-gradient(135deg, #d8d8d8 50%, transparent 50%);
  background-position:right 12px center, right 6px center;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.quality-select:focus{ outline:none; border-color:#777; }


/* ===========================
   MOBILE FIXES (<= 900px)
   =========================== */
/* ------- <= 900px: divas rindas, drošas malas ------- */
@media (max-width: 900px) {
  .vr-bar{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 0 12px !important;
    margin-top: 12px !important;
    width: 100% !important;
    max-width: 100% !important;     /* neliec ārpus wrappera */
    box-sizing: border-box;
	  
  }

  /* Quality — pilnā rinda */
  .vr-left{
    grid-column: 1 / -1 !important;
    justify-self: stretch !important;
	  
  }

  /* Poga — pilnā rinda, centrā */
  .vr-center{
    grid-column: 1 / -1 !important;
    justify-self: center !important;
  }

  /* Duration — vienmēr atsevišķa rinda zem pogas, centrēts */
  .vr-right{
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    text-align: center !important;
    margin-top: 2px !important;
  }

  /* Ierobežojam elementu platumus, lai nelauž malas */
  .quality-select,
  #quality{
    width: 100% !important;
    max-width: 520px !important;
    margin: 0  !important;
  }
  .external-vr-btn{
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }
}

/* ------- <= 600px: viss vienā kolonnā, ciešāks izkārtojums ------- */
@media (max-width: 600px) {
  .vr-bar{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 12px !important;     /* drošas malas */
  }
  .vr-col{ width: 100% !important; }

  .quality-select,
  #quality{
    max-width: 320px !important;
  }
  .external-vr-btn{
    max-width: 260px !important;
  }
  .vr-right{
    font-size: .95em;
  }
}

@media (max-width: 900px) {
  /* drošas malas */
  .setpreview-mainwrap,
  .video-block-outer { padding-left:12px; padding-right:12px; }

  /* video bloks = kolonna: video -> ilgums -> VR josla */
  .video-block-outer { 
    display:flex !important; 
    flex-direction:column !important; 
    align-items:center !important; 
    gap: 8px !important;
  }
  /* video pilnā rindā */
  #vr-video-wrapper,
  .video-player-custom,
  #vr-video {
    width:100% !important;
    max-width:100% !important;
    border-radius:8px !important;
  }

  /* ilgumu rādām kā atsevišķu rindu ZEM video, PIRMS VR joslas */
  .video-duration { display:none !important; }       /* atslēdz absolūto variantu */
  .video-duration-under{
    display:block !important;
    order: 2;                      /* <— nāk pēc video */
    width:100%;
    text-align:center !important;
    margin: 6px 0 0 0 !important;
    padding: 0 4px !important;
    position: static !important;
    font-size: 1em !important;
    opacity: .9;
  }

  
  

  /* teksti neizspiež malas */
  .update-title{
    max-width:100% !important;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  /* 3 kolonnas → 1 kolonna un centrēts */
  .profile-block{
    gap:18px !important; padding:18px 12px 8px 12px !important; 
  }
  .profile-col, .profile-col-img, .setpreview-col.middle, .setpreview-col.right{
    flex:0 0 100% !important; max-width:100% !important; min-width:0 !important;
    align-items:center; text-align:center;
  }
  .setpreview-cover{ max-width:680px; width:100%; }

  .setpreview-cover-meta{ 
    gap:8px !important; flex-direction:column !important; margin:8px 0 10px 0 !important;
  }
  .thumbs-block-outer {
    max-width: 100vw;           /* nekad platāks par ekrānu */
    width: 100%;
    box-sizing: border-box;
    padding: 0 14px;            /* drošības atstarpe no malām */
    margin-left: auto;
    margin-right: auto;
  }

  .video-thumbs-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 kolonnas */
    gap: 10px 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: stretch;     /* šūnas aizpilda kolonnu */
    align-items: stretch;
  }

  /* Vairs ne-fiksēts 230px: aizņem pieejamo platumu */
  .video-thumb-cell-wide,
  .video-thumb-cell-wide.empty {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #202020;
    box-shadow: 0 2px 14px #0006;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .video-thumb-img-wide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}


/* ===========================
   EXTRA TIGHT (<= 600px / <= 380px)
   =========================== */
@media (max-width: 600px){
  .quality-select, #quality{ max-width:240px !important; }
  .external-vr-btn{ max-width:220px !important; }
  .video-thumbs-grid-wide,.flex-row-4{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 380px){
  .quality-select, #quality{ max-width:220px !important; }
  .external-vr-btn{ max-width:200px !important; }
}
@media (max-width: 380px) {
  .video-thumbs-grid-wide {
    grid-template-columns: 1fr; /* vienā kolonnā */
  }
}