/* Cloud Design v1.3.41 — NATIVE VIDEO NOTE + SHORTS DNS FIX */

/* Telegram video notes are stored as normal square MP4 files.
   Cloud Design now shows the whole frame instead of cropping it into a circle. */
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341.is-polished-v1338,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341.is-vnote-player-v1340{
  position:relative!important;
  display:block!important;
  width:min(420px,100%)!important;
  height:auto!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  margin-top:9px!important;
  padding:9px!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent)!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--soft) 55%,transparent)!important;
  box-shadow:none!important;
}

.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341 .cd-vnote-ui-v1338,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341 .cd-vnote-card-controls-v1339,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341 .vnote-head-v1340{
  display:none!important;
}

.cd-vnote-native-head-v1341{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:1px 2px 8px;
}

.cd-vnote-native-head-v1341 b{
  color:var(--text);
  font-size:.73rem;
  font-weight:850;
}

.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341 video,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341.is-polished-v1338 video,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341.is-vnote-player-v1340 video{
  position:static!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  max-height:min(68vh,560px)!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  border:0!important;
  border-radius:12px!important;
  background:#050609!important;
  box-shadow:none!important;
  cursor:default!important;
}

.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341 video::-webkit-media-controls{
  display:flex!important;
}

.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341::before,
.chat-media-shell-v1336.is-video_note.is-vnote-native-v1341::after{
  display:none!important;
}

/* Never dump urllib/WinError walls into a client-visible message card. */
.cd-short-error-v1340{
  max-width:250px;
  color:#ffabb4!important;
  overflow-wrap:anywhere;
  line-height:1.45;
}

@media(min-width:721px){
  .cd-short-local-v1340{
    width:min(330px,100%)!important;
  }
}

@media(max-width:600px){
  .chat-media-shell-v1336.is-video_note.is-vnote-native-v1341{
    width:100%!important;
    padding:8px!important;
  }
  .chat-media-shell-v1336.is-video_note.is-vnote-native-v1341 video{
    max-height:62vh!important;
  }
}
