/* Custom styles for user dashboard streaming layout */

.video-card {
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	background-color: #fff;
	display: flex;
	flex-direction: column;
	height: 100%;
}

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

.video-thumbnail {
	width: 100%;
	height: 160px;
	object-fit: cover;
	background-color: #000;
}

.video-info {
	padding: 0.75rem 1rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.video-title {
	font-weight: 700;
	font-size: 1rem;
	color: #333;
	margin-bottom: 0.25rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.video-description {
	font-size: 0.875rem;
	color: #666;
	flex-grow: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.video-date {
	font-size: 0.75rem;
	color: #999;
	margin-top: 0.5rem;
	text-align: right;
}

.video-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background-color: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 0.2rem 0.5rem;
	font-size: 0.75rem;
	border-radius: 0.25rem;
	z-index: 10;
}

.card-grid {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 1rem;
	padding-bottom: 1rem;
	scrollbar-width: thin; /* For Firefox */
}

.card-grid::-webkit-scrollbar {
	height: 8px;
}

.card-grid::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}

.aspect-square {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: visible;
}

.aspect-square iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.responsive-video-container {
    max-width: 720px;
    max-height: 720px;
    margin: 0 auto;
    overflow: visible;
}
