// 라이브 플레이어 스타일 .playerContainer { width: 100%; height: 100%; min-height: 200px; background: #f3f4f6; position: relative; overflow: hidden; // 모바일: 16:9 비율 유지 @media (max-width: 768px) { aspect-ratio: 16/9; height: auto; } // 태블릿 이상: 전체 높이 사용 @media (min-width: 769px) { height: 100%; } } .videoPlayer { width: 100%; height: 100%; position: relative; background: #e5e7eb; display: flex; align-items: center; justify-content: center; } .playerBackground { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%); position: relative; } .centerIcon { color: #6b7280; opacity: 0.5; transition: opacity 0.3s ease; &:hover { opacity: 0.7; } } .playerOverlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: transparent; opacity: 0; transition: opacity 0.3s ease; &:hover { opacity: 1; } } .playButton { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.7); border: none; border-radius: 50%; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(4px); &:hover { background: rgba(0, 0, 0, 0.8); transform: translate(-50%, -50%) scale(1.1); } // 모바일에서 크기 조정 @media (max-width: 768px) { width: 50px; height: 50px; } } .controlBar { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%); padding: 20px 16px 16px; color: white; } .progressBar { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; margin-bottom: 12px; overflow: hidden; } .progressFill { height: 100%; background: #3b82f6; border-radius: 2px; transition: width 0.3s ease; } .controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .leftControls, .rightControls { display: flex; align-items: center; gap: 8px; } .controlBtn { background: none; border: none; color: white; cursor: pointer; padding: 6px; border-radius: 4px; transition: background-color 0.2s; &:hover { background: rgba(255, 255, 255, 0.2); } } .timeDisplay { font-size: 0.875rem; font-weight: 500; background: rgba(220, 38, 38, 0.9); padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; } .topRightActions { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; opacity: 0; transition: opacity 0.3s ease; .playerContainer:hover & { opacity: 1; } } .actionBtn { background: rgba(0, 0, 0, 0.6); border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; transition: all 0.2s ease; backdrop-filter: blur(4px); &:hover { background: rgba(0, 0, 0, 0.8); transform: scale(1.1); } // 모바일에서 크기 조정 @media (max-width: 768px) { width: 36px; height: 36px; } } // 모바일 터치 인터페이스 최적화 @media (max-width: 768px) { .playerOverlay { opacity: 1; // 모바일에서는 항상 표시 } .controlBar { padding: 16px 12px 12px; } .controls { gap: 8px; } .leftControls, .rightControls { gap: 6px; } .controlBtn { padding: 8px; // 터치하기 쉽게 더 큰 터치 영역 } .topRightActions { opacity: 1; // 모바일에서는 항상 표시 top: 12px; right: 12px; gap: 6px; } } // 태블릿 최적화 @media (min-width: 481px) and (max-width: 768px) { .playButton { width: 70px; height: 70px; } .actionBtn { width: 44px; height: 44px; } } // 접근성 개선 @media (prefers-reduced-motion: reduce) { .playButton, .actionBtn, .progressFill { transition: none; } .playerOverlay { transition: none; } }