/* COCOS 컨셉 - COCOS 스타일 레이아웃 */

/* 전체 레이아웃 */
.cocos-container {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: #f5f7fa;
}

/* 좌측 사이드바 */
.cocos-sidebar {
  width: 220px;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  padding: 1rem 0;
  overflow-y: auto;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-title {
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu-item {
  padding: 0.75rem 1.5rem;
  color: #4a5568;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-menu-item:hover {
  background: #f7fafc;
  color: #2563eb;
}

.sidebar-menu-item.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
  border-left: 3px solid #2563eb;
}

/* 우측 콘텐츠 영역 */
.cocos-content {
  margin-left: 220px;
  flex: 1;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  overflow: hidden;
  height: 100vh;
}

/* 좌측: 영상 영역 (1/3) */
.cocos-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.video-player-section {
  background: #000;
  border-radius: 8px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#videoElement {
  object-fit: contain;
}

.video-placeholder {
  color: #718096;
  text-align: center;
  position: absolute;
}

.video-placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.video-timeline {
  background: #1a202c;
  border: 1px solid #2d3748;
  border-radius: 8px;
  padding: 0.5rem;
  min-height: 120px;
  overflow-x: auto;
  position: relative;
}

.timeline-content {
  min-width: 100%;
  height: 100px;
  position: relative;
}

/* 타임라인 컨테이너 */
.timeline-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 1 Depth: Subhead 블록 (상단) */
.timeline-depth1 {
  position: relative;
  width: 100%;
  height: 60px;
  margin-bottom: 0.5rem;
}

.timeline-subhead-block {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.timeline-subhead-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-subhead-text {
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 2 Depth: Scene 경계선 (하단) */
.timeline-depth2 {
  position: relative;
  width: 100%;
  height: 30px;
  background: #2d3748;
  border-radius: 4px;
  overflow: hidden;
}

.timeline-scene-boundary {
  position: absolute;
  top: 0;
  height: 100%;
  border-right: 2px solid #4a5568;
  cursor: pointer;
  transition: all 0.2s;
}

.timeline-scene-boundary:hover {
  background: rgba(59, 130, 246, 0.2);
  border-right-color: #3b82f6;
}

.timeline-scene-boundary.active {
  background: rgba(251, 191, 36, 0.3);
  border-right-color: #fbbf24;
  border-right-width: 3px;
  box-shadow: inset 0 0 8px rgba(251, 191, 36, 0.5);
}

/* 기존 타임라인 스타일 제거 (호환성 유지) */
.timeline-segment {
  display: none;
}

.segment-number,
.segment-title {
  display: none;
}

.video-upload-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.upload-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.file-input-wrapper {
  flex: 1;
}

.upload-label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  text-align: center;
  font-size: 0.95rem;
  user-select: none;
}

.upload-label:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.upload-label:active {
  transform: translateY(0);
}

.upload-label.video-upload {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.upload-label.video-upload:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.upload-label.thumbnail-upload {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.upload-label.thumbnail-upload:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.file-status {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: #f0fdf4;
  border-radius: 6px;
  border: 1px solid #86efac;
}

/* 우측: 씬 정보 영역 (2/3) */
.cocos-right {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  height: 100vh;
  min-width: 0;
}

.timeline-and-scenes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  overflow: hidden;
}

.video-timeline-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.scenes-panel {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.scenes-header-bar {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.scenes-header-bar h2 {
  margin: 0;
  font-size: 15px;
}

.scene-count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.scenes-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  min-height: 0;
}

/* 씬 아코디언 */
.scenes-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.scene-accordion-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 0.4rem;
}

.scene-accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scene-accordion-header {
  padding: 0.4rem 0.875rem;
  background: #f7fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
  user-select: none;
  position: sticky;
  top: 7.5rem;
  z-index: 70;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scene-accordion-header:hover {
  background: #edf2f7;
}

.scene-accordion-header.active {
  background: white;
  border-bottom: 1px solid #e2e8f0;
}

.scene-accordion-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 12px;
}

.scene-number-badge {
  background: #2563eb;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scene-accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s;
  color: #718096;
}

.scene-accordion-icon.expanded {
  transform: rotate(180deg);
}

.scene-accordion-body {
  padding: 0.75rem 1rem;
  display: none;
}

.scene-accordion-body.active {
  display: block;
}

/* 클립 타이틀 래퍼 (배지 + 재생성 버튼) */
.clip-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

/* 클립 타이틀 배지 */
.clip-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  white-space: nowrap;
}

.clip-no {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 11px;
  flex-shrink: 0;
}

.clip-title-text {
  flex-shrink: 0;
  font-size: 13px;
}

/* 재생성 버튼 (별도 버튼) */
.regenerate-separate-btn {
  background: white;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.regenerate-separate-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
  transform: rotate(180deg);
}

.regenerate-separate-btn:active {
  transform: rotate(180deg) scale(0.95);
}

/* 씬 컨텐츠 가로 배치 (썸네일 + Summary) */
.scene-content-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

/* 씬 썸네일 그리드 */
.scene-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.3rem;
  width: 240px;
  flex-shrink: 0;
}

.scene-thumbnail {
  width: 76px;
  height: 42px;
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0aec0;
  font-size: 0.8rem;
}

.scene-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Summary 박스 */
.scene-summary-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.625rem 0.75rem;
  overflow-y: auto;
  max-height: 140px;
}

/* 우측 영역: 클립 타이틀 + Summary 세로 배치 */
.scene-right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 클립 타이틀이 있을 때 Summary 높이 조정 */
.scene-right-section .scene-summary-box {
  flex: 1;
  max-height: none;
  min-height: 80px;
}

.summary-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-content {
  font-size: 11px;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* 생성된 타이틀 박스 */
.generated-title-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  position: relative;
}

.generated-title-label {
  font-size: 0.85rem;
  color: #1e40af;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.generated-title-text {
  font-size: 1.15rem;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.title-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.title-action-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.title-action-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.title-action-btn.primary {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  font-weight: 600;
}

.title-action-btn.primary:hover {
  background: #1d4ed8;
}

/* 메타 정보 */
.scene-meta {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.meta-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.meta-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.meta-label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-value {
  color: #2d3748;
  font-size: 0.95rem;
  line-height: 1.6;
}

.meta-value.large {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
}

/* 재생성 버튼 */
.regenerate-title-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.regenerate-title-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #a0aec0;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.empty-state p {
  font-size: 1rem;
  margin: 0;
}

/* 로딩 */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  color: #718096;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 모달 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

/* 넓은 모달 */
.modal-content-wide {
  background: white;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 컴팩트 헤더 */
.modal-header-compact {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
}

/* 컴팩트 닫기 버튼 */
.modal-close-compact {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
}

.modal-close:hover,
.modal-close-compact:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
}

/* 좌우 분할 모달 바디 */
.modal-body-split {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem;
  flex: 1;
  overflow: hidden;
}

.modal-left-panel {
  flex: 1;
  max-width: 500px;
  overflow-y: auto;
  padding-right: 1rem;
}

.modal-right-panel {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 스크롤바 커스텀 */
.cocos-sidebar::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.cocos-sidebar::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.cocos-sidebar::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

.cocos-sidebar::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* 반응형 */
@media (max-width: 1200px) {
  .cocos-content {
    flex-direction: column;
  }
  
  .cocos-left,
  .cocos-right {
    flex: 1;
  }
  
  .scene-thumbnails {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cocos-sidebar {
    width: 0;
    overflow: hidden;
  }
  
  .cocos-content {
    margin-left: 0;
    padding: 1rem;
  }
  
  .scene-thumbnails {
    grid-template-columns: 1fr;
  }
}

/* 계층 구조 스타일 (Head > Subhead > Scene) */

/* Head 레벨 (1depth) */
.hierarchy-head {
  margin-bottom: 0.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hierarchy-head-header {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 12px 12px 0 0;
}

.hierarchy-head-header:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6439a0 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hierarchy-head-header.active {
  border-radius: 12px 12px 0 0;
}

.hierarchy-head-body {
  display: none;
  padding: 0 0.75rem;
  background: #fafbfc;
}

.hierarchy-head-body.active {
  display: block;
  padding: 0.75rem;
}

/* Subhead 레벨 (2depth) */
.hierarchy-subhead {
  margin-bottom: 0.5rem;
  background: #ffffff;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

.hierarchy-subhead-header {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  position: sticky;
  top: 4rem;
  z-index: 90;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 10px 10px 0 0;
}

.hierarchy-subhead-header:hover {
  background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hierarchy-subhead-header.active {
  border-radius: 10px 10px 0 0;
}

.hierarchy-subhead-body {
  display: none;
  padding: 0;
  background: #f7fafc;
}

.hierarchy-subhead-body.active {
  display: block;
  padding: 0.75rem 0.75rem 0 0.75rem;
}

/* Scene 카드 (3depth) - 기존 스타일 유지하되 약간 수정 */
.hierarchy-subhead-body .scene-accordion-item {
  margin-bottom: 0.5rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.hierarchy-subhead-body .scene-accordion-header {
  padding: 0.65rem 0.875rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  position: sticky;
  top: 8rem;
  z-index: 50;
  border-radius: 8px 8px 0 0;
}

.hierarchy-subhead-body .scene-accordion-header:hover {
  background: #edf2f7;
}

/* 계층 공통 스타일 */
.hierarchy-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.hierarchy-head-header .hierarchy-title {
  font-size: 14px;
  font-weight: 700;
}

.hierarchy-subhead-header .hierarchy-title {
  font-size: 13px;
  font-weight: 600;
}

/* 흰색 세모 아이콘 */
.hierarchy-arrow {
  color: white;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
  display: inline-block;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 16px;
}

.hierarchy-arrow.expanded {
  transform: rotate(90deg);
}

/* Scene 카드의 아이콘은 검은색 */
.scene-accordion-header .hierarchy-arrow {
  color: #2d3748;
}

/* 아이콘 애니메이션 */
.scene-accordion-icon.expanded {
  transform: rotate(180deg);
}

/* 필터 버튼 */
.filter-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  padding: 0.4rem 0.9rem;
  border: 1px solid #cbd5e0;
  background: white;
  color: #4a5568;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.filter-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

/* 클립 타이틀 배지 */
.clip-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.clip-title-badge .clip-no {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* 재생성 버튼 (clip_no 있을 때만) */
.regenerate-clip-btn {
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  margin-bottom: 1rem;
  width: 100%;
}

.regenerate-clip-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.regenerate-clip-btn:active {
  transform: translateY(0);
}

