* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	width: 100%;
	height: 100%;
	background: #000;
	color: #fff;
	overflow: hidden;
	font-family: Arial, sans-serif;
}

.container {
	height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
	padding: 20px;
	gap: 15px;
}

/* 头部样式 */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.left-header {
	display: flex;
	align-items: center;
	gap: 15px;
}

.divider {
	width: 1px;
	height: 24px;
	background: rgba(255, 255, 255, 0.3);
}

/* 分享功能 */
.share-wrapper {
	position: relative;
	cursor: pointer;
}

.share-main {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	transition: all 0.3s;
}

.share-options {
	position: absolute;
	left: 100%;
	top: 0;
	background: #333;
	padding: 8px 12px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-10px);
	pointer-events: none;
	transition: all 0.3s;
}

.share-wrapper.active .share-options {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
}

/* 视频主体 */
.video-main {
	display: flex;
	gap: 5%;
	height: 100%;
	position: relative;
}

.video-player {
	width: 60%;
	height: 100%;
	padding-left: 150px;
}

video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.02);
	max-height: 700px;
}

.video-info {
	width: 35%;
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-right: 150px;
}

/* 导航箭头 */
.nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 3rem;
	cursor: pointer;
	opacity: 0.5;
	transition: all 0.3s;
	user-select: none;
}

.nav-arrow:hover:not(.disabled) {
	opacity: 1;
	color: #ffffff;
}

.nav-arrow.disabled {
	opacity: 0.2;
	cursor: not-allowed;
}

.nav-arrow.prev {
	/* left: -50px; */
	left: -0;
}

.nav-arrow.next {
	/* right: -50px; */
	right: 0;
}

/* 视频列表 */
.video-list {
	height: 120px;
	overflow: hidden;
	position: relative;
	touch-action: pan-y;
}

.list-container {
	display: flex;
	gap: 15px;
	position: absolute;
	transition: transform 0.3s ease-out;
}

.video-item {
	flex-shrink: 0;
	width: 170px;
	height: 105px;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 缩略图浮层 */
.overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 8px;
}

.video-item:hover .overlay {
	display: flex;
}

.video-title {
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	text-align: center;
}

.play-btn {
	background: #fff;
	border: none;
	padding: 6px 20px;
	border-radius: 15px;
	margin: 8px 0;
	cursor: pointer;
}

.video-duration {
	font-size: 12px;
	position: absolute;
	bottom: 8px;
	right: 8px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
	.container {
		padding: 10px;
	}

	.video-main {
		flex-direction: column;
	}

	.video-player,
	.video-info {
		width: 100%;
		padding: 0;
	}

	.video-player {
		height: 60vw;
	}

	.nav-arrow {
		font-size: 2rem;
	}

	.nav-arrow.prev {
		left: -50px;
	}

	.nav-arrow.next {
		right: -50px;
	}
}

@media (max-width: 480px) {

	.video-player,
	.video-info {
		padding: 0;
	}

	.video-main {
		overflow-y: auto;
		overflow-x: hidden;
	}

	.nav-arrow.prev {
		left: -50px;
	}

	.nav-arrow.next {
		right: -50px;
	}
}

/* 提示信息 */
.toast {
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	background: #333333;
	color: #ffffff;
	padding: 12px 24px;
	border-radius: 25px;
	animation: toast 2s forwards;
}

@keyframes toast {
	0% {
		opacity: 0;
		transform: translate(-50%, 20px);
	}

	20% {
		opacity: 1;
		transform: translate(-50%, 0);
	}

	80% {
		opacity: 1;
		transform: translate(-50%, 0);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, 20px);
	}
}