/* ==========================================================================
   短视频专区（抖音网页版布局）
   Short Video — immersive vertical feed
   ========================================================================== */

:root {
	--sv-brand-1: #6C3CEA;
	--sv-brand-2: #EC4096;
	--sv-ink: #1d1f25;
	--sv-ink-2: #6b6f7a;
	--sv-line: #ececf1;
	--sv-bg: #f5f6f8;
}

.sv-wrap {
	background: var(--sv-bg);
	min-height: calc(100vh - 52px);
	padding-bottom: 0;
}

/* ---------- 顶部条：分类 + 操作 ---------- */
.sv-bar {
	background: #fff;
	border-bottom: 1px solid var(--sv-line);
	position: relative;
	z-index: 20;
}

.sv-bar-in {
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 16px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
}

.sv-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.sv-tabs::-webkit-scrollbar { display: none; }

.sv-tab {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 14px;
	color: var(--sv-ink-2);
	background: #f3f4f7;
	white-space: nowrap;
	text-decoration: none;
	transition: all .18s ease;
}

.sv-tab:hover {
	color: var(--sv-ink);
	background: #e9ebf0;
	text-decoration: none;
}

.sv-tab.current {
	color: #fff;
	background: linear-gradient(135deg, var(--sv-brand-1), var(--sv-brand-2));
	box-shadow: 0 4px 12px rgba(108, 60, 234, .28);
}

.sv-bar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.sv-back {
	font-size: 14px;
	color: var(--sv-ink-2);
	text-decoration: none;
}

.sv-back:hover { color: var(--sv-brand-1); }

.sv-upload-btn {
	border: 0;
	cursor: pointer;
	padding: 0 18px;
	height: 34px;
	line-height: 34px;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	background: linear-gradient(135deg, var(--sv-brand-1), var(--sv-brand-2));
	box-shadow: 0 4px 12px rgba(108, 60, 234, .28);
	transition: transform .18s ease, box-shadow .18s ease;
}

.sv-upload-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(108, 60, 234, .36);
}

.sv-upload-btn.big {
	height: 42px;
	line-height: 42px;
	padding: 0 28px;
	font-size: 15px;
	margin-top: 8px;
}

/* ---------- 视频流 ---------- */
.sv-feed {
	height: calc(100vh - 108px);
	min-height: 420px;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scroll-snap-type: y mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
}

.sv-feed::-webkit-scrollbar { display: none; }

.sv-item {
	height: 100%;
	scroll-snap-align: center;
	scroll-snap-stop: always;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 16px;
	box-sizing: border-box;
}

.sv-box {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	height: 100%;
	max-width: 100%;
}

.sv-stage {
	position: relative;
	height: 100%;
	aspect-ratio: 9 / 16;
	max-width: calc(100vw - 220px);
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 12px 34px rgba(20, 18, 40, .22);
}

.sv-video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.sv-mask {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 42%;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.sv-playbtn {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 66px;
	height: 66px;
	margin: -33px 0 0 -33px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .42);
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.sv-playbtn::after {
	content: "";
	position: absolute;
	left: 26px;
	top: 20px;
	border-style: solid;
	border-width: 13px 0 13px 21px;
	border-color: transparent transparent transparent #fff;
}

.sv-item.paused .sv-playbtn { opacity: 1; }

.sv-meta {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 18px 18px;
	color: #fff;
	z-index: 3;
}

.sv-name {
	display: inline-block;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	margin-bottom: 6px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.sv-name:hover { color: #fff; text-decoration: underline; }

.sv-title {
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .92);
	max-height: 42px;
	overflow: hidden;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
	word-break: break-word;
}

/* ---------- 右侧互动栏 ---------- */
.sv-side {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding-bottom: 14px;
	flex-shrink: 0;
}

.sv-av {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	padding: 2px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 18, 40, .16);
	box-sizing: border-box;
}

.sv-av img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	background: #e9ebf0;
}

.sv-act {
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	padding: 0;
	color: var(--sv-ink);
}

.sv-ic {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 18, 40, .14);
	position: relative;
	transition: transform .16s ease;
}

.sv-act:hover .sv-ic { transform: scale(1.06); }

.sv-ic::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

/* 心 */
.sv-ic-heart::after {
	width: 20px;
	height: 18px;
	background: #8a8f9c;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7.5-4.6-9.6-9A5.4 5.4 0 0 1 12 6.3 5.4 5.4 0 0 1 21.6 12c-2.1 4.4-9.6 9-9.6 9z'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 21s-7.5-4.6-9.6-9A5.4 5.4 0 0 1 12 6.3 5.4 5.4 0 0 1 21.6 12c-2.1 4.4-9.6 9-9.6 9z'/></svg>") center/contain no-repeat;
}

.sv-like.on .sv-ic-heart::after {
	background: #EC4096;
}

.sv-like.on .sv-num { color: #EC4096; }

/* 评论 */
.sv-ic-cmt::after {
	width: 20px;
	height: 19px;
	background: #8a8f9c;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4V5a2 2 0 0 1 2-2z'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 3h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H9l-5 4V5a2 2 0 0 1 2-2z'/></svg>") center/contain no-repeat;
}

/* 分享 */
.sv-ic-share::after {
	width: 20px;
	height: 20px;
	background: #8a8f9c;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3v4C7 8 4 12.5 3 21c2.2-3.4 5-5 11-5v4l7-6.5z'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 3v4C7 8 4 12.5 3 21c2.2-3.4 5-5 11-5v4l7-6.5z'/></svg>") center/contain no-repeat;
}

/* 音量 */
.sv-ic-mute::after {
	width: 20px;
	height: 20px;
	background: #8a8f9c;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 9v6h4l5 4V5L9 9H5zm12.5 3a3.5 3.5 0 0 0-2-3.2v6.4a3.5 3.5 0 0 0 2-3.2z'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 9v6h4l5 4V5L9 9H5zm12.5 3a3.5 3.5 0 0 0-2-3.2v6.4a3.5 3.5 0 0 0 2-3.2z'/></svg>") center/contain no-repeat;
}

.sv-mute.on .sv-ic-mute::after {
	background: #6C3CEA;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 5 6 9H3v6h3l5 4V5zm5.5 2.5 4 4m0-4-4 4' stroke='black' stroke-width='2' fill='none'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M11 5 6 9H3v6h3l5 4V5zm5.5 2.5 4 4m0-4-4 4' stroke='black' stroke-width='2' fill='none'/></svg>") center/contain no-repeat;
}

.sv-num {
	font-size: 12px;
	color: var(--sv-ink-2);
	font-style: normal;
	line-height: 1;
}

/* ---------- 空状态 ---------- */
.sv-empty {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--sv-ink-2);
}

.sv-empty-ico {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 24px rgba(20, 18, 40, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: #c9ccd6;
	margin-bottom: 18px;
}

.sv-empty-t {
	font-size: 18px;
	color: var(--sv-ink);
	font-weight: 700;
	margin: 0 0 6px;
}

.sv-empty-s {
	font-size: 14px;
	margin: 0;
	color: var(--sv-ink-2);
}

/* ---------- 滚动提示 ---------- */
.sv-navhint {
	position: fixed;
	right: 34px;
	bottom: 34px;
	z-index: 30;
	background: rgba(29, 31, 37, .82);
	color: #fff;
	font-size: 12.5px;
	padding: 8px 14px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transition: opacity .3s ease;
	pointer-events: none;
}

.sv-navhint.show { opacity: 1; }

.sv-navhint .up,
.sv-navhint .down {
	width: 8px;
	height: 8px;
	border-left: 2px solid #fff;
	border-top: 2px solid #fff;
	display: inline-block;
}

.sv-navhint .up { transform: rotate(45deg); }
.sv-navhint .down { transform: rotate(225deg); }

/* ---------- 上传弹窗 ---------- */
.sv-modal {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(18, 17, 28, .55);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.sv-modal.show { display: flex; }

.sv-modal-bd {
	width: 460px;
	max-width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(12, 10, 30, .32);
}

.sv-modal-hd {
	height: 54px;
	line-height: 54px;
	padding: 0 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--sv-ink);
	border-bottom: 1px solid var(--sv-line);
	position: relative;
}

.sv-modal-x {
	position: absolute;
	right: 14px;
	top: 12px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	color: #9a9eaa;
	cursor: pointer;
}

.sv-modal-x:hover { color: var(--sv-ink); }

.sv-modal-bd2 { padding: 18px 20px 22px; }

.sv-fld { margin-bottom: 16px; }

.sv-fld label {
	display: block;
	font-size: 13px;
	color: var(--sv-ink-2);
	margin-bottom: 7px;
}

.sv-pick {
	border: 1px dashed #cfd3dd;
	border-radius: 10px;
	padding: 16px 14px;
	text-align: center;
	font-size: 13px;
	color: var(--sv-ink-2);
	cursor: pointer;
	background: #fafbfd;
	transition: all .18s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-pick:hover {
	border-color: var(--sv-brand-1);
	color: var(--sv-brand-1);
	background: #f7f4ff;
}

.sv-progress {
	height: 8px;
	border-radius: 999px;
	background: #eef0f4;
	margin-top: 10px;
	position: relative;
	display: none;
}

.sv-progress.show { display: block; }

.sv-progress i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--sv-brand-1), var(--sv-brand-2));
	transition: width .2s ease;
}

.sv-progress span {
	position: absolute;
	right: 0;
	top: -20px;
	font-size: 12px;
	color: var(--sv-ink-2);
}

.sv-coverbox {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f4f7;
	height: 130px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sv-coverbox img {
	max-height: 130px;
	display: block;
}

.sv-cover-tip {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 11.5px;
	padding: 5px 10px;
}

.sv-fld input[type="text"],
.sv-fld select {
	width: 100%;
	height: 40px;
	border: 1px solid #dfe2ea;
	border-radius: 10px;
	padding: 0 12px;
	font-size: 14px;
	color: var(--sv-ink);
	box-sizing: border-box;
	outline: 0;
	background: #fff;
}

.sv-fld input[type="text"]:focus,
.sv-fld select:focus { border-color: var(--sv-brand-1); }

.sv-msg {
	font-size: 13px;
	min-height: 18px;
	margin-bottom: 12px;
	color: #e0483c;
}

.sv-msg.ok { color: #22a06b; }

.sv-submit {
	width: 100%;
	height: 44px;
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	cursor: pointer;
	background: linear-gradient(135deg, var(--sv-brand-1), var(--sv-brand-2));
	box-shadow: 0 6px 18px rgba(108, 60, 234, .3);
}

.sv-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
	box-shadow: none;
}

/* ---------- 移动端 ---------- */
@media screen and (max-width: 768px) {
	.sv-bar-in {
		width: 100%;
		height: 48px;
		padding: 0 10px;
	}

	.sv-back { display: none; }

	.sv-upload-btn {
		height: 30px;
		line-height: 30px;
		padding: 0 13px;
		font-size: 13px;
	}

	.sv-feed { height: calc(100vh - 96px); }

	.sv-item { padding: 0; }

	.sv-box { gap: 0; height: 100%; width: 100%; }

	.sv-stage {
		width: 100%;
		height: 100%;
		max-width: 100%;
		aspect-ratio: auto;
		border-radius: 0;
		box-shadow: none;
	}

	.sv-side {
		position: absolute;
		right: 10px;
		bottom: 24px;
		gap: 16px;
		z-index: 4;
	}

	.sv-item { position: relative; }

	.sv-av { width: 44px; height: 44px; }

	.sv-ic { width: 40px; height: 40px; }

	.sv-meta { padding: 14px 74px 18px 14px; }

	.sv-navhint { display: none; }
}

/* ==========================================================================
   栏目页（Categories）内的短视频入口与精选版块
   ========================================================================== */

/* 分类 tab 中的 Short Video 入口 */
.class_list a.class_list_sv li {
	background: linear-gradient(135deg, var(--sv-brand-1), var(--sv-brand-2));
	color: #fff;
	border-radius: 999px;
	padding: 10px 20px;
	margin: 4px 10px 4px 0;
	box-shadow: 0 4px 12px rgba(108, 60, 234, .28);
	font-weight: 700;
	transition: transform .18s ease, box-shadow .18s ease;
}

.class_list a.class_list_sv:hover li {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(108, 60, 234, .36);
	color: #fff;
}

/* 精选版块 */
.sv-strip {
	width: 1165px;
	margin: 0 auto 22px;
	box-sizing: border-box;
}

.sv-strip-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.sv-strip-t {
	position: relative;
	padding-left: 12px;
	font-size: 18px;
	font-weight: 700;
	color: var(--sv-ink);
}

.sv-strip-t::before {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	bottom: 4px;
	width: 4px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--sv-brand-1), var(--sv-brand-2));
}

.sv-strip-more {
	font-size: 13px;
	color: var(--sv-ink-2);
	text-decoration: none;
}

.sv-strip-more:hover {
	color: var(--sv-brand-1);
	text-decoration: none;
}

.sv-strip-list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sv-card a {
	display: block;
	text-decoration: none;
}

.sv-card-img {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	border-radius: 10px;
	overflow: hidden;
	background: #0d0d12;
	box-shadow: 0 4px 14px rgba(20, 18, 40, .12);
}

.sv-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sv-card-play {
	position: absolute;
	right: 7px;
	bottom: 7px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .48);
}

.sv-card-play::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 7px;
	border-style: solid;
	border-width: 5px 0 5px 8px;
	border-color: transparent transparent transparent #fff;
}

.sv-card-t {
	font-size: 13px;
	line-height: 1.36;
	color: var(--sv-ink);
	margin: 8px 0 3px;
	height: 35px;
	overflow: hidden;
	transition: color .18s ease;
}

.sv-card-u {
	font-size: 12px;
	color: #8a8f9c;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sv-card a:hover .sv-card-t { color: var(--sv-brand-1); }

@media screen and (max-width: 768px) {
	.sv-strip { width: 100%; padding: 0 10px; }

	.sv-strip-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }

	.sv-strip-t { font-size: 16px; }

	.class_list a.class_list_sv li { padding: 10px 14px; font-size: 14px; }
}

