LivePlayer.module.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. // 라이브 플레이어 스타일
  2. .playerContainer {
  3. width: 100%;
  4. height: 100%;
  5. min-height: 200px;
  6. background: #f3f4f6;
  7. position: relative;
  8. overflow: hidden;
  9. // 모바일: 16:9 비율 유지
  10. @media (max-width: 768px) {
  11. aspect-ratio: 16/9;
  12. height: auto;
  13. }
  14. // 태블릿 이상: 전체 높이 사용
  15. @media (min-width: 769px) {
  16. height: 100%;
  17. }
  18. }
  19. .videoPlayer {
  20. width: 100%;
  21. height: 100%;
  22. position: relative;
  23. background: #e5e7eb;
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. }
  28. .playerBackground {
  29. width: 100%;
  30. height: 100%;
  31. display: flex;
  32. align-items: center;
  33. justify-content: center;
  34. background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  35. position: relative;
  36. }
  37. .centerIcon {
  38. color: #6b7280;
  39. opacity: 0.5;
  40. transition: opacity 0.3s ease;
  41. &:hover {
  42. opacity: 0.7;
  43. }
  44. }
  45. .playerOverlay {
  46. position: absolute;
  47. top: 0;
  48. left: 0;
  49. right: 0;
  50. bottom: 0;
  51. display: flex;
  52. align-items: center;
  53. justify-content: center;
  54. background: transparent;
  55. opacity: 0;
  56. transition: opacity 0.3s ease;
  57. &:hover {
  58. opacity: 1;
  59. }
  60. }
  61. .playButton {
  62. position: absolute;
  63. top: 50%;
  64. left: 50%;
  65. transform: translate(-50%, -50%);
  66. background: rgba(0, 0, 0, 0.7);
  67. border: none;
  68. border-radius: 50%;
  69. width: 60px;
  70. height: 60px;
  71. display: flex;
  72. align-items: center;
  73. justify-content: center;
  74. color: white;
  75. cursor: pointer;
  76. transition: all 0.3s ease;
  77. backdrop-filter: blur(4px);
  78. &:hover {
  79. background: rgba(0, 0, 0, 0.8);
  80. transform: translate(-50%, -50%) scale(1.1);
  81. }
  82. // 모바일에서 크기 조정
  83. @media (max-width: 768px) {
  84. width: 50px;
  85. height: 50px;
  86. }
  87. }
  88. .controlBar {
  89. position: absolute;
  90. bottom: 0;
  91. left: 0;
  92. right: 0;
  93. background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  94. padding: 20px 16px 16px;
  95. color: white;
  96. }
  97. .progressBar {
  98. width: 100%;
  99. height: 4px;
  100. background: rgba(255, 255, 255, 0.3);
  101. border-radius: 2px;
  102. margin-bottom: 12px;
  103. overflow: hidden;
  104. }
  105. .progressFill {
  106. height: 100%;
  107. background: #3b82f6;
  108. border-radius: 2px;
  109. transition: width 0.3s ease;
  110. }
  111. .controls {
  112. display: flex;
  113. align-items: center;
  114. justify-content: space-between;
  115. gap: 12px;
  116. }
  117. .leftControls,
  118. .rightControls {
  119. display: flex;
  120. align-items: center;
  121. gap: 8px;
  122. }
  123. .controlBtn {
  124. background: none;
  125. border: none;
  126. color: white;
  127. cursor: pointer;
  128. padding: 6px;
  129. border-radius: 4px;
  130. transition: background-color 0.2s;
  131. &:hover {
  132. background: rgba(255, 255, 255, 0.2);
  133. }
  134. }
  135. .timeDisplay {
  136. font-size: 0.875rem;
  137. font-weight: 500;
  138. background: rgba(220, 38, 38, 0.9);
  139. padding: 2px 8px;
  140. border-radius: 4px;
  141. font-size: 0.8rem;
  142. }
  143. .topRightActions {
  144. position: absolute;
  145. top: 16px;
  146. right: 16px;
  147. display: flex;
  148. gap: 8px;
  149. opacity: 0;
  150. transition: opacity 0.3s ease;
  151. .playerContainer:hover & {
  152. opacity: 1;
  153. }
  154. }
  155. .actionBtn {
  156. background: rgba(0, 0, 0, 0.6);
  157. border: none;
  158. border-radius: 50%;
  159. width: 40px;
  160. height: 40px;
  161. display: flex;
  162. align-items: center;
  163. justify-content: center;
  164. color: white;
  165. cursor: pointer;
  166. transition: all 0.2s ease;
  167. backdrop-filter: blur(4px);
  168. &:hover {
  169. background: rgba(0, 0, 0, 0.8);
  170. transform: scale(1.1);
  171. }
  172. // 모바일에서 크기 조정
  173. @media (max-width: 768px) {
  174. width: 36px;
  175. height: 36px;
  176. }
  177. }
  178. // 모바일 터치 인터페이스 최적화
  179. @media (max-width: 768px) {
  180. .playerOverlay {
  181. opacity: 1; // 모바일에서는 항상 표시
  182. }
  183. .controlBar {
  184. padding: 16px 12px 12px;
  185. }
  186. .controls {
  187. gap: 8px;
  188. }
  189. .leftControls,
  190. .rightControls {
  191. gap: 6px;
  192. }
  193. .controlBtn {
  194. padding: 8px; // 터치하기 쉽게 더 큰 터치 영역
  195. }
  196. .topRightActions {
  197. opacity: 1; // 모바일에서는 항상 표시
  198. top: 12px;
  199. right: 12px;
  200. gap: 6px;
  201. }
  202. }
  203. // 태블릿 최적화
  204. @media (min-width: 481px) and (max-width: 768px) {
  205. .playButton {
  206. width: 70px;
  207. height: 70px;
  208. }
  209. .actionBtn {
  210. width: 44px;
  211. height: 44px;
  212. }
  213. }
  214. // 접근성 개선
  215. @media (prefers-reduced-motion: reduce) {
  216. .playButton,
  217. .actionBtn,
  218. .progressFill {
  219. transition: none;
  220. }
  221. .playerOverlay {
  222. transition: none;
  223. }
  224. }