.shorts-container {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.shorts-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.shorts-title {
  font-size: 18px;
  font-weight: 700;
}

.shorts-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.shorts-feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shorts-feed::-webkit-scrollbar {
  display: none;
}

.short-card {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
}

.short-canvas-wrap {
  position: relative;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 9 / 16;
}

.short-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.short-info {
  position: absolute;
  bottom: 48px;
  left: 12px;
  right: 60px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.short-channel {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.short-desc {
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(255,255,255,0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.short-play-indicator.visible {
  opacity: 1;
}

.shorts-loading {
  text-align: center;
  color: #666;
  padding: 24px;
  font-size: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.shorts-loading.hidden {
  display: none;
}

@media (aspect-ratio: 1/1), (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3) {
  .short-canvas-wrap {
    height: 85%;
  }

  .short-info {
    bottom: 24px;
  }
}
