/* ============================================
   WATCH VIDEO PAGE - NUTTY DESIGN SYSTEM
   Matches app's visual language
   ============================================ */

.wv-watch-page {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ===== VIDEO CARD ===== */
.wv-video-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 16px;
	overflow: hidden;
}

.wv-video-thumbnail-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16/9;
	background: #000;
}

.wv-video-thumbnail {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-color: #18181B;
}

.wv-play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.wv-video-card:hover .wv-play-overlay {
	opacity: 1;
}

.wv-play-btn {
	width: 60px;
	height: 60px;
	background: rgba(239, 68, 68, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
	padding-left: 4px;
	box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.wv-platform-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(0, 0, 0, 0.8);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	color: white;
}

.wv-platform-icon {
	color: #EF4444;
}

.wv-video-details {
	padding: 16px;
}

.wv-video-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 12px 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Video Stats Row */
.wv-video-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 20px;
	background: var(--bg-tertiary, #292524);
	border-radius: 12px;
}

.wv-video-stat {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	color: var(--text-secondary, #A8A29E);
}

.wv-stat-icon {
	font-size: 16px;
}

.wv-stat-text strong {
	color: var(--text, #FAFAF9);
	font-weight: 700;
	font-size: 16px;
}

.wv-video-stat:last-child .wv-stat-text strong {
	color: var(--primary-light, #F59E0B);
}

.wv-stats-dot {
	color: var(--muted, #78716C);
	font-size: 12px;
}

/* ===== WATCHING CARD ===== */
.wv-watching-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 16px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.wv-watching-animation {
	position: relative;
	width: 80px;
	height: 80px;
	margin-bottom: 16px;
}

.wv-watching-ring {
	position: absolute;
	inset: 0;
	border: 3px solid transparent;
	border-top-color: #EF4444;
	border-radius: 50%;
	animation: ytRingSpin 1.5s linear infinite;
}

.wv-watching-ring.wv-ring-2 {
	inset: 8px;
	border-top-color: rgba(239, 68, 68, 0.4);
	animation-duration: 2s;
	animation-direction: reverse;
}

@keyframes ytRingSpin {
	to { transform: rotate(360deg); }
}

.wv-watching-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}

.wv-watching-info h4 {
	font-size: 16px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 4px 0;
}

.wv-watching-info p {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	margin: 0;
}

/* ===== ACTION SECTION ===== */
.wv-action-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wv-watch-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 24px;
	background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
	border: none;
	border-radius: 14px;
	color: white;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.wv-watch-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
}

.wv-watch-btn:active {
	transform: translateY(0);
}

.wv-watch-btn-icon {
	font-size: 18px;
}

.wv-skip-btn {
	width: 100%;
	padding: 14px 20px;
	background: transparent;
	border: 1px solid var(--border, #292524);
	border-radius: 12px;
	color: var(--text-secondary, #A8A29E);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wv-skip-btn:hover {
	background: var(--bg-tertiary, #292524);
	color: var(--text, #FAFAF9);
}

/* ===== INFO CARD ===== */
.wv-info-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 12px;
	padding: 14px 16px;
	text-align: center;
}

.wv-info-card p {
	margin: 0;
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	line-height: 1.5;
}

.wv-info-card strong {
	color: var(--text, #FAFAF9);
	font-weight: 700;
}

/* ===== SESSION STATS CARD ===== */
.wv-session-card {
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 16px;
	overflow: hidden;
}

.wv-session-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--border, #292524);
}

.wv-session-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted, #78716C);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wv-session-stats {
	display: flex;
	align-items: center;
	padding: 16px;
}

.wv-stat-item {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.wv-stat-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	font-variant-numeric: tabular-nums;
}

.wv-stat-label {
	font-size: 11px;
	color: var(--muted, #78716C);
	margin-top: 2px;
}

.wv-stat-divider {
	width: 1px;
	height: 32px;
	background: var(--border, #292524);
}

.wv-stat-highlight .wv-stat-value {
	color: var(--primary-light, #F59E0B);
}

/* ===== STOP BUTTON ===== */
.wv-stop-btn {
	width: 100%;
	padding: 14px 20px;
	background: var(--bg-secondary, #1C1917);
	border: 1px solid var(--border, #292524);
	border-radius: 12px;
	color: var(--text-secondary, #A8A29E);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wv-stop-btn:hover {
	background: var(--bg-tertiary, #292524);
	border-color: #EF4444;
	color: #EF4444;
}

/* ===== MODALS ===== */
.wv-modal,
.wv-energy-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wv-modal-overlay,
.wv-energy-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.wv-modal-content,
.wv-energy-modal-content {
	position: relative;
	background: var(--bg-secondary, #1C1917);
	border-radius: 20px;
	padding: 24px;
	width: 90%;
	max-width: 340px;
	border: 1px solid var(--border, #292524);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	animation: ytModalIn 0.25s ease-out;
}

@keyframes ytModalIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.wv-modal-header,
.wv-energy-modal-header {
	text-align: center;
	margin-bottom: 20px;
}

.wv-modal-icon {
	font-size: 40px;
	display: block;
	margin-bottom: 12px;
}

.wv-energy-modal-icon {
	width: 40px;
	height: 40px;
	display: block;
	margin: 0 auto 12px auto;
}

.wv-modal-header h3,
.wv-energy-modal-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text, #FAFAF9);
	margin: 0 0 4px 0;
}

.wv-modal-header p,
.wv-energy-modal-header p {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
	margin: 0;
	line-height: 1.4;
}

/* Modal Stats */
.wv-modal-stats {
	background: var(--bg-tertiary, #292524);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 20px;
}

.wv-modal-stat {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
}

.wv-modal-stat:not(:last-child) {
	border-bottom: 1px solid var(--border, #3f3f46);
}

.wv-modal-stat-label {
	font-size: 13px;
	color: var(--text-secondary, #A8A29E);
}

.wv-modal-stat-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--text, #FAFAF9);
}

.wv-modal-stat-nut {
	color: var(--primary-light, #F59E0B);
}

/* Modal Buttons */
.wv-modal-btn {
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wv-modal-btn-primary,
.wv-energy-modal-close {
	background: transparent;
	border: 1px solid #EF4444;
	color: #EF4444;
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.wv-modal-btn-primary:hover,
.wv-energy-modal-close:hover {
	background: rgba(239, 68, 68, 0.1);
	color: #F87171;
}

.wv-modal-btn-secondary {
	background: transparent;
	border: 1px solid var(--border, #292524);
	color: var(--text-secondary, #A8A29E);
}

.wv-modal-btn-secondary:hover {
	background: var(--bg-tertiary, #292524);
	color: var(--text, #FAFAF9);
}

.wv-modal-actions {
	display: flex;
	gap: 12px;
}

.wv-modal-actions .wv-modal-btn {
	flex: 1;
}

/* ===== STAT DELTA ANIMATION ===== */
.wv-stat-value.wv-stat-delta-active {
	color: #22C55E !important;
	animation: ytDeltaPulse 0.4s ease-out;
}

@keyframes ytDeltaPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.15);
	}
	100% {
		transform: scale(1);
	}
}
