/*
Theme Name: StreamTube Child
Description: Video WordPress Theme.
Author: phpface
Theme URI: https://1.envato.market/qny3O5
Author URI: https://1.envato.market/mgXE4y
Version: 1.0.0
Requires at least: 5.3
Tested up to: 5.8
Requires PHP: 5.6
License: Themeforest Licence
License URI: http://themeforest.net/licenses
Text Domain: streamtube-child
Template:  streamtube
Tags: two-columns, one-column, custom-menu, custom-logo, featured-images, rtl-language-support, sticky-post, threaded-comments, translation-ready
*/

/* ============================================================
   純觀看影音站客製（imzsock）— 隱藏 評論 / 分享 / 前台上傳入口
   （主要邏輯在 functions.php，這裡是視覺保險層）
   ============================================================ */

/* (1) 評論區 */
#comments,
.comments-area,
.comment-respond,
.single__comments,
.video__comments,
.post-comment-list { display: none !important; }

/* (2) 社交分享（含播放器上的分享圓鈕 .share-open）*/
.social-share,
[class*="social-share"],
.post__share,
.single-share,
.share-open,
.vjs-icon-share,
[id^="share_box_"] { display: none !important; }

/* (3) 前台上傳入口（改用 Bunny 同步上架，前台上傳鈕多餘） */
.header-user__upload { display: none !important; }

/* (4) 日夜模式切換鈕 */
.theme-mode-switcher,
.icon-moon,
[class*="mode-switch"] { display: none !important; }

/* (5) 作者頭貼/名字 */
.post-meta__author { display: none !important; }

/* (6) 影片頁右側推薦清單（YouTube 式：縮圖左、標題右、一排一支） */
.recommend-list .rec-item { color: inherit; }
.recommend-list .rec-thumb { width: 168px; }
.recommend-list .rec-title {
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.recommend-list .rec-item:hover .rec-title { color: var(--bs-primary, #e60023); }
@media (max-width: 575.98px) { .recommend-list .rec-thumb { width: 140px; } }

/* (7) 簡化右上頭貼選單：移除 Dashboard 連結、日夜切換項（會員只看到「收藏」） */
.profile-menu .nav-item-dashboard,
.profile-menu .nav-item-theme-switcher,
.nav-item-dashboard,
.nav-item-theme-switcher { display: none !important; }

/* (8) 影片單頁「收藏」按鈕 —— 俐落藥丸鈕（內容寬度，非整條）
 *  .video-fav-row：容器，inline-flex !important（壓過主題 .post-meta__items>div{inline-block}）
 *  .video-fav-btn：藥丸本體；未收藏=半透明白底，已收藏=品牌紅 + 紅光
 *  同時修正主題 .video-watch-later 的 position:absolute（縮圖角落覆蓋用）造成的跑版。 */
.video-fav-row {
	display: inline-flex !important;
	align-items: center;
	max-width: 100%;
}
.video-fav-btn {
	gap: .5rem;
	padding: .5rem 1.15rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-weight: 600;
	font-size: .95rem;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	transition: background .18s ease, box-shadow .18s ease, transform .1s ease;
}
.video-fav-btn:hover { background: rgba(255, 255, 255, .2); }
.video-fav-btn:active { transform: scale(.96); }
.video-fav-btn.is-saved {
	background: #ce1212;
	color: #fff;
	box-shadow: 0 6px 18px rgba(206, 18, 18, .35);
}
.video-fav-btn.is-saved:hover { background: #b30f0f; }

/* 取消主題覆蓋鈕的絕對定位/深色底，讓它融入藥丸 */
.video-fav-btn .video-watch-later {
	position: static !important;
	right: auto !important; bottom: auto !important; top: auto !important; left: auto !important;
	z-index: auto !important; width: auto !important; margin: 0 !important;
	display: inline-flex !important; align-items: center;
}
.video-fav-btn .video-watch-later button {
	background: transparent !important; box-shadow: none !important; border: 0 !important;
	width: auto !important; height: auto !important; min-width: 0 !important;
	padding: 0 !important; margin: 0 !important; line-height: 1 !important; color: inherit !important;
}
.video-fav-btn .video-watch-later .btn__icon { font-size: 1.15rem; line-height: 1; color: inherit; }
.video-fav-label { font-weight: 600; line-height: 1; }

/* 未登入提示鈕（自己的藥丸） */
.video-fav-login {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .5rem 1.15rem; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .1); color: #fff;
	font-weight: 600; text-decoration: none; transition: background .18s ease;
}
.video-fav-login:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* (9) 收藏鈕 + 分類來源 chip 同一列 */
.video-meta-actions {
	display: inline-flex !important;
	align-items: center;
	gap: .6rem;
	flex-wrap: wrap;
	max-width: 100%;
}
.video-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .5rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	color: #ddd;
	font-weight: 500;
	font-size: .9rem;
	line-height: 1;
	text-decoration: none;
	max-width: 100%;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.video-cat-chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .35); color: #fff; }
.video-cat-chip svg { flex-shrink: 0; opacity: .85; }
.video-cat-chip .video-cat-label { opacity: .65; }
.video-cat-chip .video-cat-name {
	font-weight: 600; color: #fff;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch;
}
/* 隱藏主題原本那條重複的分類行（已用上面的 chip 取代） */
.post-meta__items .post-terms.post-categories { display: none !important; }