.main {
  flex: 1;
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* 左：影片區 */
.video-section {
  flex: 0 0 60%;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

/* YouTube 連結輸入列 */
.yt-input-wrap {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 0 2px;
  flex-shrink: 0;
}

.yt-input-wrap input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 13px;
  min-width: 0;
}

.yt-input-wrap input::placeholder { color: #888; }

.btn-success { background: var(--color-success); color: #fff; }

.yt-hint {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 4px;
  flex-shrink: 0;
}

/* YouTube IFrame 容器（16:9） */
.yt-player-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  flex-shrink: 0;
  margin-top: 8px;
}

#ytPlayer,
.yt-player-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#currentPreview {
  margin-top: 10px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 16px;
  border-radius: 6px;
  max-width: 90%;
  text-align: center;
  display: none;
}

.controls {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.controls button,
.controls select {
  color: #fff;
  background: #333;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}

/* 右：字幕區 */
.subtitle-section {
  flex: 1;
  min-width: 340px;
  background: #fff;
  border-left: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.subtitle-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 15px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-header);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.subtitle-header .action-buttons {
  display: flex;
  gap: 8px;
}

.subtitle-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}
