.fullscreen-shorts {
  position: relative;
  width: 100%;
  padding-bottom: 177.78%; /* 9:16 的比例 */
  overflow: hidden;
}

.fullscreen-shorts iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 針對移動設備的優化 */
@media (max-width: 768px) {
  .fullscreen-shorts {
    height: 80vh;
    padding-bottom: 0;
  }
  
  .fullscreen-shorts iframe {
    height: 80vh;
  }
}

/* 針對平板和桌面的優化 */
@media (min-width: 769px) {
  .fullscreen-shorts {
    max-width: 50vw;
    max-height: 80vh;
    margin: 0 auto;
  }
}