@charset "utf-8";

/* ========================================
   플레이리스트 카드형 목록 스타일
======================================== */

/* 플레이리스트 그리드 레이아웃 */
.playlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	padding: 20px 0;
}

/* 플레이리스트 카드 */
.playlist-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.playlist-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 공지사항 카드 */
.playlist-card.notice-card {
	border: 2px solid #667eea;
	background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

/* 카드 체크박스 */
.card-checkbox {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 10;
	background: rgba(255,255,255,0.9);
	border-radius: 4px;
	padding: 5px;
}

.card-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* 공지 배지 */
.notice-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* 카드 썸네일 */
.card-thumbnail {
	position: relative;
	padding-bottom: 25%; /* 세로 높이를 더 축소 (33% -> 25%) */
	overflow: hidden;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.playlist-card:hover .card-thumbnail img {
	transform: scale(1.1);
}

/* 이미지 없을 때 기본 표시 */
.no-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.6);
	font-size: 35px; /* 아이콘 크기 축소 (50px -> 35px) */
}

/* 카드 오버레이 */
.card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.playlist-card:hover .card-overlay {
	opacity: 1;
}

/* 재생 버튼 */
.play-button {
	width: 60px;
	height: 60px;
	background: rgba(255,255,255,0.95);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: #667eea;
	transform: scale(0.8);
	transition: transform 0.3s ease;
}

.playlist-card:hover .play-button {
	transform: scale(1);
}

/* 카드 콘텐츠 */
.card-content {
	padding: 20px;
}

.card-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 2.8rem;
}

.card-subtitle {
	font-size: 1rem;
	color: #667eea;
	margin-bottom: 12px;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 카드 메타 정보 */
.card-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e9ecef;
}

.meta-item {
	font-size: 1rem;
	color: #6c757d;
	display: flex;
	align-items: center;
	gap: 4px;
}

.meta-item:first-child {
	margin-right: auto;
}

.meta-item i {
	color: #667eea;
	font-size: 1rem;
}

/* 카드 날짜 */
.card-date {
	font-size: 1rem;
	color: #adb5bd;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* 빈 목록 상태 */
.empty-list {
	text-align: center;
	padding: 80px 20px;
	color: #6c757d;
}

.empty-list i {
	font-size: 4rem;
	opacity: 0.3;
	margin-bottom: 20px;
	display: block;
}

.empty-list p {
	font-size: 1.1rem;
	margin: 0;
}

/* 반응형 - 태블릿 */
@media all and (max-width: 991px) {
	.playlist-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 20px;
	}
	
	.card-content {
		padding: 16px;
	}
	
	.card-title {
		font-size: 1.05rem;
		min-height: 2.6rem;
	}
	
	.card-subtitle {
		font-size: 0.95rem;
	}
	
	.meta-item {
		font-size: 0.95rem;
	}
	
	.card-date {
		font-size: 0.95rem;
	}
}

/* 반응형 - 모바일 */
@media all and (max-width: 767px) {
	.playlist-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
		padding: 15px;
	}
	
	.card-content {
		padding: 12px;
	}
	
	.card-title {
		font-size: 1rem;
		min-height: 2.4rem;
		-webkit-line-clamp: 2;
	}
	
	.card-subtitle {
		font-size: 0.9rem;
		margin-bottom: 8px;
	}
	
	.card-meta {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 8px;
		margin-bottom: 8px;
		padding-bottom: 8px;
	}
	
	.meta-item {
		font-size: 0.9rem;
	}
	
	.meta-item:first-child {
		margin-right: auto;
	}
	
	.card-date {
		font-size: 0.9rem;
	}
	
	.play-button {
		width: 50px;
		height: 50px;
		font-size: 20px;
	}
	
	.notice-badge {
		font-size: 0.75rem;
		padding: 4px 10px;
	}
	
	.card-checkbox {
		padding: 3px;
	}
	
	.card-checkbox input[type="checkbox"] {
		width: 16px;
		height: 16px;
	}
}

/* 초소형 모바일 */
@media all and (max-width: 480px) {
	.playlist-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		padding: 12px;
	}
	
	.card-content {
		padding: 10px;
	}
	
	.card-title {
		font-size: 0.95rem;
		min-height: 2rem;
	}
	
	.card-subtitle {
		font-size: 0.85rem;
	}
	
	.card-meta {
		display: flex;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		gap: 4px;
	}
	
	.meta-item {
		font-size: 0.85rem;
	}
	
	.meta-item:first-child {
		margin-right: auto;
	}
	
	.card-date {
		font-size: 0.85rem;
	}
}

/* ========================================
   기존 게시판 스타일
======================================== */

/* 모바일 목록 */
@media all and (max-width:767px) {
	.responsive #bo_list .float-left.float-md-none {
		margin-right:1.0rem;
	}
	.responsive #bo_list .na-title {
		margin-bottom:0.14rem;
	}
}

/* 게시판 읽기 */
#bo_v_title {
	font-size:23px;
	font-weight:bold;
	line-height:1.4;
	letter-spacing:-1px;
}
#bo_v_con {
	min-height:200px; 
	word-break:break-all;
	overflow:hidden
}
@media all and (max-width:575px) {
	.responsive #bo_v_title {
		font-size:20px;
		line-height:1.5;
	}
	.responsive #bo_v_con { 
		min-height:140px; 
	}
}
#bo_v_con img {
	max-width:100%;
	height:auto
}
#bo_v_img {
	width:100%;
	text-align:center;
	overflow:hidden;
	zoom:1;
}
#bo_v_img:after {
	display:block;
	visibility:hidden;
	clear:both;
	content:"";
}
#bo_v_img a.view_image {
	display:block;
}
#bo_v_img img {
	margin-bottom:1.0rem;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon { 
	margin:-5px auto; 
}
#bo_v_sns_icon img { 
	width:40px; 
	border-radius:50%; 
	margin:5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
	top:0;
	left:-16px;
}
.by-writer { 
	background:#fbefef !important;
	border-top:1px solid #f6cece !important;
}
.cmt-content {
	word-break:break-all;
	overflow:hidden
}
.cmt-content img {
	max-width:100%;
	height:auto
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul { 
	list-style: none; 
	margin: 0; 
}
.cmt-btn ul > li { 
	float: left; 
	font-size:12px;
	padding: 0 10px; 
}
.cmt-btn ul > li::before { 
	float: left; 
	color:#ccc; 
	content: "|"; 
	margin-left:-12px;
}
.cmt-btn ul > li:last-child { 
	padding-right:0;
}
.cmt-btn ul > li:first-child::before, 
.cmt-btn ul > li.no-bar::before { 
	content: ""; 
	margin-left:0; 
}
.cmt-btn ul > li > a { 
	float:left;
	color:#888;
	white-space:nowrap;	
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content { 
	resize:none; 
}
@media all and (max-width:575px) {
	.responsive .cmt-box {
		border-right:0 !important;
	}
	.responsive #bo_vc_w .cmt-box {
		border-left:0 !important;
		border-radius:0 !important;
	}
	.responsive #bo_vc_login {
		border-left:0 !important;
		border-right:0 !important;
		border-radius:0 !important;
	}
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {	
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
	background:#ccc;
	border-radius:3px;
}
#bo_vc_opt ol:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_opt ol li { 
	float:left;
	margin:0; 
}
#bo_vc_send_sns ul { 
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
}
#bo_vc_send_sns ul:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_send_sns ul li {	
	float:left;
	margin:0 1.0rem 0 0;
}
#bo_vc_send_sns input {	
	margin:0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
	padding-left:0;
	padding-right:0;
	border-left:0;
	border-right:0;
}
#bo_w #wr_content { 
	margin-bottom:1.0rem !important;
}
@media all and (max-width:575px) {
	#bo_w .list-group-item {
		padding-left:1.0rem;
		padding-right:1.0rem;
	}
	.responsive #bo_w #wr_content {
		max-height:160px !important;
	}
}