/* 容器与头部 */
.daily-section {
	margin: 0 0 10px 0;
	border-radius: 8px;
}

.daily-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 10px;
}

.daily-title {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	flex-shrink: 0;
}

/* 星期切换按钮 (默认 PC 端样式) */
.weekday-tabs {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

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

.tab-item {
	padding: 5px 12px;
	cursor: pointer;
	border-radius: 6px;
	font-size: 13px;
	color: #666;
	background: #fff;
	white-space: nowrap;
	transition: 0.3s;
}

.tab-item.active {
	background: #52cfd3;
	color: #fff;
	font-weight: bold;
}

/* 面板布局 */
.weekday-panel {
	display: none;
	gap: 12px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 5px 2px;
}

.weekday-panel.active {
	display: flex;
}

.weekday-panel::-webkit-scrollbar {
	display: none;
}

/* 卡片样式 */
.anime-mini-card {
	flex: 0 0 110px;
	text-decoration: none;
	color: #333;
}

.anime-mini-cover {
	width: 110px;
	height: 155px;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	background: #f0f0f0;
}

.anime-mini-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 6px;
}

.anime-mini-time {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 11px;
	padding: 3px 5px;
	text-align: center;
}

.anime-mini-name {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	height: 36px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.4;
	text-align: center;
}

.empty-tips {
	color: #999;
	font-size: 13px;
	padding: 30px;
	text-align: center;
	width: 100%;
}

/* --- [重点修改] 移动端 CSS 适配 --- */
@media (max-width: 600px) {
	.daily-header {
		flex-direction: column;
		/* 改为垂直排列，标题在第一行 */
		align-items: flex-start;
		gap: 10px;
	}

	.daily-title {
		width: 100%;
		margin-bottom: 5px;
	}

	/* 星期按钮：一行显示全部，自动挤压宽度 */
	.weekday-tabs {
		width: 100%;
		flex-wrap: nowrap;
		/* 强制不换行 */
		overflow-x: auto;
		/* 如果屏幕特别小，允许微弱滚动，防止错位 */
		gap: 4px;
		/* 减小间距 */
		justify-content: space-between;
		/* 撑满容器 */
	}

	.tab-item {
		flex: 1;
		/* 核心：每个标签平分宽度，自动伸缩 */
		text-align: center;
		padding: 6px 0;
		/* 去掉左右内边距，完全靠 width/flex 控制 */
		margin: 0;
		font-size: 12px;
		/* 稍微调小字体以防溢出 */
		border-radius: 6px;
		/* 移动端可以用小一点的圆角 */
		min-width: 0;
		/* 防止内容撑破 flex 布局 */
	}
}