| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- // 라이브 플레이어 스타일
- .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;
- }
- }
|