.toksave-photo-router-result {
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
  margin: 42px auto 70px auto;
  box-sizing: border-box;
  grid-column: 1 / -1;
  clear: both;
  position: relative;
  z-index: 5;
}

.toksave-photo-router-card {
  width: 100%;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 26px;
  background: rgba(18,18,18,.94);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.38);
}

.toksave-photo-router-loading {
  display: block;
  padding: 28px;
  text-align: center;
  color: #fff;
}

.toksave-photo-router-loading div {
  margin-top: 8px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

.toksave-photo-router-thumb {
  min-height: 470px;
  background: rgba(255,255,255,.04);
  overflow: hidden;
}

.toksave-photo-router-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.toksave-photo-router-info {
  padding: 38px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.toksave-photo-router-info .author-name {
  color: rgba(255,255,255,.72);
  font-weight: 800;
  margin-bottom: 10px;
}

.toksave-photo-router-info .video-title {
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  margin: 8px 0 18px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.toksave-photo-router-info .result-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  font-weight: 800;
}

.toksave-photo-gallery-title {
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 800;
  margin: 18px 0 10px 0;
}

.toksave-photo-gallery {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 0 12px 0;
  max-width: 100%;
  scrollbar-width: thin;
}

.toksave-photo-thumb-btn {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 80px;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.06);
}

.toksave-photo-thumb-btn.active {
  border-color: #ff0750;
  box-shadow: 0 0 0 3px rgba(255,7,80,.18);
}

.toksave-photo-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .82;
}

.toksave-photo-thumb-btn.active img {
  opacity: 1;
}

.toksave-photo-thumb-btn span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toksave-photo-router-buttons {
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.toksave-photo-router-buttons button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  padding: 0 18px;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.toksave-photo-router-one {
  background: linear-gradient(135deg, #ff2d5d, #ff0750);
  box-shadow: 0 14px 36px rgba(255,45,93,.34);
}

.toksave-photo-router-all {
  background: linear-gradient(135deg, #4b3f5f, #8b2cff);
  box-shadow: 0 14px 36px rgba(139,44,255,.28);
}

@media (max-width: 768px) {
  .toksave-photo-router-result {
    width: calc(100vw - 24px);
    margin: 28px auto 50px auto;
  }

  .toksave-photo-router-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .toksave-photo-router-thumb {
    min-height: 330px;
  }

  .toksave-photo-router-info {
    padding: 24px;
  }

  .toksave-photo-router-info .video-title {
    font-size: 22px;
  }

  .toksave-photo-gallery {
    gap: 8px;
  }

  .toksave-photo-thumb-btn {
    flex-basis: 58px;
    width: 58px;
    height: 72px;
  }

  .toksave-photo-router-buttons {
    width: 100%;
  }

  .toksave-photo-router-buttons button {
    min-height: 64px;
    font-size: 16px;
    justify-content: center;
    text-align: center;
  }
}

/* TOKSAVE SINGLE PHOTO LAYOUT FIX 20260623 START */
.toksave-photo-router-result.toksave-photo-single {
  width: min(760px, calc(100vw - 32px)) !important;
  max-width: 760px !important;
  margin: 42px auto 70px auto !important;
  display: flex !important;
  justify-content: center !important;
}

.toksave-photo-single .toksave-photo-router-card {
  width: 100% !important;
  grid-template-columns: minmax(260px, 42%) minmax(260px, 1fr) !important;
}

.toksave-photo-single .toksave-photo-router-thumb {
  min-height: 420px !important;
}

.toksave-photo-single .toksave-photo-router-info {
  padding: 34px 32px !important;
}

.toksave-photo-single .toksave-photo-router-buttons {
  width: 100% !important;
  max-width: 360px !important;
}

.toksave-photo-single .toksave-photo-router-buttons button {
  width: 100% !important;
  min-height: 66px !important;
  white-space: normal !important;
}

@media (max-width: 980px) {
  .toksave-photo-router-result.toksave-photo-single {
    width: min(520px, calc(100vw - 24px)) !important;
  }

  .toksave-photo-single .toksave-photo-router-card {
    grid-template-columns: 1fr !important;
  }

  .toksave-photo-single .toksave-photo-router-thumb {
    min-height: 330px !important;
  }

  .toksave-photo-single .toksave-photo-router-info {
    padding: 24px !important;
  }

  .toksave-photo-single .toksave-photo-router-buttons {
    max-width: 100% !important;
  }

  .toksave-photo-single .toksave-photo-router-buttons button {
    justify-content: center !important;
    text-align: center !important;
  }
}
/* TOKSAVE SINGLE PHOTO LAYOUT FIX 20260623 END */

/* TOKSAVE MOBILE PHOTO COMPACT 20260623 START */
@media (max-width: 768px) {
  .toksave-photo-router-result {
    width: calc(100vw - 20px) !important;
    margin: 18px auto 36px auto !important;
  }

  .toksave-photo-router-card {
    width: 100% !important;
    grid-template-columns: 1fr !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .toksave-photo-router-thumb {
    height: min(42vh, 310px) !important;
    min-height: 210px !important;
    max-height: 310px !important;
    background: #000 !important;
  }

  .toksave-photo-router-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #000 !important;
  }

  .toksave-photo-router-info {
    padding: 18px 18px 20px 18px !important;
  }

  .toksave-photo-router-info .author-name {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }

  .toksave-photo-router-info .video-title {
    font-size: 21px !important;
    line-height: 1.18 !important;
    margin: 6px 0 12px 0 !important;
  }

  .toksave-photo-router-info .result-meta span {
    padding: 7px 12px !important;
    font-size: 13px !important;
  }

  .toksave-photo-gallery-title {
    margin: 14px 0 8px 0 !important;
    font-size: 13px !important;
  }

  .toksave-photo-gallery {
    gap: 7px !important;
    padding: 0 0 10px 0 !important;
    margin-bottom: 2px !important;
  }

  .toksave-photo-thumb-btn {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 64px !important;
    border-radius: 12px !important;
  }

  .toksave-photo-thumb-btn span {
    min-width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    right: 4px !important;
    bottom: 4px !important;
  }

  .toksave-photo-router-buttons {
    width: 100% !important;
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .toksave-photo-router-buttons button {
    min-height: 56px !important;
    border-radius: 16px !important;
    font-size: 15px !important;
    padding: 0 14px !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  .toksave-photo-router-thumb {
    height: min(38vh, 280px) !important;
    min-height: 200px !important;
    max-height: 280px !important;
  }

  .toksave-photo-router-info {
    padding: 16px !important;
  }

  .toksave-photo-router-info .video-title {
    font-size: 20px !important;
  }

  .toksave-photo-thumb-btn {
    flex-basis: 48px !important;
    width: 48px !important;
    height: 60px !important;
  }

  .toksave-photo-router-buttons button {
    min-height: 54px !important;
    font-size: 14.5px !important;
  }
}
/* TOKSAVE MOBILE PHOTO COMPACT 20260623 END */



/* TOKSAVE PHOTO CARD READABILITY FIX 20260626 START */
.toksave-photo-router-info .video-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 14px 0;
}
.toksave-photo-router-thumb img { object-fit: contain; background: #000; }
.toksave-photo-router-result.toksave-photo-single { width: min(900px, calc(100vw - 32px)) !important; max-width: 900px !important; }
.toksave-photo-single .toksave-photo-router-card { grid-template-columns: minmax(300px, 46%) minmax(280px, 1fr) !important; }
.toksave-photo-single .toksave-photo-router-thumb { min-height: 360px; max-height: 540px; }
/* TOKSAVE PHOTO CARD READABILITY FIX 20260626 END */

/* Bouton retour haut */
.toksave-photo-router-new {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: none !important;
}


/* PHOTO CARD COMPACT MOBILE 20260626 */
@media (max-width: 768px) {
  .toksave-photo-router-thumb { height: 160px !important; min-height: 160px !important; max-height: 160px !important; }
  .toksave-photo-router-buttons { gap: 7px !important; margin-top: 7px !important; }
  .toksave-photo-router-buttons button { min-height: 46px !important; font-size: 13.5px !important; }
  .toksave-photo-router-info { padding-top: 14px !important; padding-bottom: 16px !important; }
  .toksave-photo-gallery { padding-bottom: 6px !important; margin-bottom: 0 !important; }
}

/* Marge pour que l en-tete ne masque pas le haut de la carte */
.toksave-photo-router-result { scroll-margin-top: 90px; }

.toksave-v85-reset-wrap{text-align:center;margin-top:18px}
.toksave-v85-reset-btn{background:transparent;border:1.5px solid rgba(255,255,255,.3);color:#bbb;padding:10px 28px;border-radius:8px;cursor:pointer;font-size:14px;transition:all .2s;display:inline-block}
.toksave-v85-reset-btn:hover{border-color:rgba(255,255,255,.7);color:#fff;background:rgba(255,255,255,.06)}
.platform-result-v85{padding:24px 0 40px}
.platform-result-download-video-v85,.platform-result-download-mp3-v85{min-width:160px;padding:12px 20px;font-size:15px;font-weight:600;border-radius:10px;border:none;cursor:pointer;transition:opacity .2s}
.platform-result-download-video-v85{background:#e00;color:#fff}
.platform-result-download-mp3-v85{background:#6d28d9;color:#fff}
.platform-result-download-video-v85:hover,.platform-result-download-mp3-v85:hover{opacity:.85}
