@charset "utf-8";

/* 유튜브 스타일 게임 뷰 */
.youtube-style-game-view {
	background: #fff;
}

/* 게임 플레이어 컨테이너 */
.game-player-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	height: auto;
	background: #000;
	margin-bottom: 16px;
	border-radius: 12px;
	overflow: hidden;
}
.game-player-container iframe,
.game-player-container embed,
.game-player-container ruffle-player {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
.game-player-container ruffle-player {
	min-height: 100%;
}

/* 메인 컨텐츠 래퍼 */
.game-content-wrapper {
	padding: 0;
}
.game-main-content {
	padding-right: 24px;
}

/* 게임 헤더 */
.game-header {
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 16px;
}
.game-category {
	font-size: 14px;
	color: #606060;
	margin-bottom: 8px;
}
.game-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	margin: 0 0 12px 0;
	color: #030303;
}
.game-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: #606060;
}
.game-views,
.game-date {
	display: flex;
	align-items: center;
	gap: 4px;
}

/* 액션 버튼 */
.game-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 0;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 16px;
	flex-wrap: wrap;
}
.action-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: none;
	background: #f9f9f9;
	border-radius: 18px;
	font-size: 14px;
	font-weight: 500;
	color: #030303;
	cursor: pointer;
	transition: background 0.2s;
}
.action-btn:hover {
	background: #f0f0f0;
}
.action-btn i {
	font-size: 16px;
}
.like-btn {
	color: #030303;
}
.dislike-btn {
	color: #030303;
}
.share-btn,
.save-btn {
	color: #030303;
}
.more-btn {
	position: relative;
}
.more-btn .dropdown-menu {
	min-width: 200px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.more-btn .dropdown-item {
	padding: 10px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.more-btn .dropdown-item i {
	width: 20px;
}

/* 채널 정보 */
.game-channel-info {
	display: flex;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 16px;
	gap: 16px;
}
.channel-avatar {
	flex-shrink: 0;
}
.avatar-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 18px;
}
.channel-details {
	flex-grow: 1;
}
.channel-name {
	font-size: 16px;
	font-weight: 500;
	color: #030303;
	margin-bottom: 4px;
}
.channel-subscribers {
	font-size: 14px;
	color: #606060;
}
.channel-subscribe-btn {
	padding: 10px 16px;
	background: #c00;
	color: #fff;
	border: none;
	border-radius: 18px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
}
.channel-subscribe-btn:hover {
	background: #aa0000;
}

/* 게임 설명 */
.game-description {
	background: #f9f9f9;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 24px;
}
.description-header {
	margin-bottom: 12px;
}
.description-stats {
	display: flex;
	gap: 16px;
	font-size: 14px;
	font-weight: 500;
	color: #030303;
}
.description-content {
	max-height: 80px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.description-content.expanded {
	max-height: none;
}
.description-text {
	font-size: 14px;
	line-height: 1.6;
	color: #030303;
	word-break: break-word;
}
.description-text img {
	max-width: 100%;
	height: auto;
	margin: 8px 0;
}
.description-toggle {
	background: none;
	border: none;
	color: #606060;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	padding: 8px 0;
	margin-top: 8px;
}
.description-toggle:hover {
	color: #030303;
}

/* 댓글 영역 */
.game-comments {
	margin-top: 24px;
}
.comments-header {
	margin-bottom: 24px;
}
.comments-header h3 {
	font-size: 16px;
	font-weight: 500;
	color: #030303;
	margin: 0;
}
.comments-count {
	color: #606060;
	font-weight: normal;
}

/* 사이드바 */
.game-sidebar {
	padding-left: 24px;
}
.sidebar-section {
	margin-bottom: 24px;
}
.sidebar-title {
	font-size: 16px;
	font-weight: 500;
	color: #030303;
	margin-bottom: 16px;
}
.related-game-item {
	margin-bottom: 16px;
}
.related-game-link {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}
.related-game-link:hover {
	opacity: 0.8;
}
.related-game-thumb {
	flex-shrink: 0;
	width: 168px;
	height: 94px;
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}
.related-game-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.related-game-info {
	flex: 1;
	min-width: 0;
}
.related-game-title {
	font-size: 14px;
	font-weight: 500;
	color: #030303;
	line-height: 1.4;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.related-game-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #606060;
}
.no-related-games {
	padding: 24px;
	text-align: center;
	color: #606060;
	font-size: 14px;
}

/* 반응형 */
@media all and (max-width: 991px) {
	.game-main-content {
		padding-right: 0;
		margin-bottom: 24px;
	}
	.game-sidebar {
		padding-left: 0;
	}
	.related-game-thumb {
		width: 120px;
		height: 68px;
	}
}
@media all and (max-width: 767px) {
	.game-player-container {
		border-radius: 0;
		margin-left: -15px;
		margin-right: -15px;
		width: calc(100% + 30px);
	}
	.game-title {
		font-size: 18px;
	}
	.game-actions {
		gap: 4px;
	}
	.action-btn {
		padding: 8px 12px;
		font-size: 13px;
	}
	.channel-subscribe-btn {
		padding: 8px 12px;
		font-size: 13px;
	}
	.related-game-thumb {
		width: 100px;
		height: 56px;
	}
}

/* 기존 스타일 유지 */
#bo_v_img {
	width: 100%;
	text-align: center;
	overflow: hidden;
	margin: 16px 0;
}
#bo_v_img img {
	max-width: 100%;
	height: auto;
	margin-bottom: 8px;
}
.cmt-content {
	word-break: break-all;
	overflow: hidden;
}
.cmt-content img {
	max-width: 100%;
	height: auto;
}

/* 광고 컨테이너 스타일 */
.ad-container {
	min-height: 100px;
	margin: 20px 0;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 8px;
}
.ad-container ins {
	display: block;
	width: 100%;
}
@media all and (max-width: 767px) {
	.ad-container {
		margin: 15px 0;
		padding: 8px;
	}
}