/**
 * HappyPaws — Single streamer page
 */

.hp-stream-page {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-6);
}

/* Video hero */
.hp-stream-video {
	overflow: hidden;
	background: #1a1520;
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-2xl);
	box-shadow: var(--hp-shadow-lg);
}

.hp-stream-video__wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #2a2230;
}

.hp-stream-video__wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.hp-stream-video__live {
	position: absolute;
	top: var(--hp-space-4);
	left: var(--hp-space-4);
	display: inline-flex;
	align-items: center;
	gap: var(--hp-space-2);
	padding: var(--hp-space-2) var(--hp-space-4);
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-bold);
	color: #fff;
	background: #e85d75;
	border-radius: var(--hp-radius-full);
}

.hp-stream-video__live::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	background: #fff;
	border-radius: var(--hp-radius-full);
	animation: hp-pulse 1.5s ease infinite;
}

.hp-stream-video__viewers {
	position: absolute;
	top: var(--hp-space-4);
	right: var(--hp-space-4);
	padding: var(--hp-space-2) var(--hp-space-4);
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: #fff;
	background: rgba(0, 0, 0, 0.5);
	border-radius: var(--hp-radius-full);
}

.hp-stream-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	font-size: 1.5rem;
	color: var(--hp-color-accent);
	background: rgba(255, 255, 255, 0.95);
	border-radius: var(--hp-radius-full);
	box-shadow: var(--hp-shadow-lg);
	transform: translate(-50%, -50%);
}

.hp-stream-video__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hp-space-3);
	padding: var(--hp-space-4) var(--hp-space-5);
	background: var(--hp-cream-100);
	border-top: 1px solid var(--hp-color-border);
}

.hp-stream-video__title {
	margin: 0;
	font-size: var(--hp-font-size-lg);
	font-weight: var(--hp-font-weight-bold);
}

/* Mid 3-column layout */
.hp-stream-mid {
	display: grid;
	gap: var(--hp-space-5);
}

.hp-stream-panel {
	padding: var(--hp-space-5);
	background: var(--hp-color-surface);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-xl);
	box-shadow: var(--hp-shadow-card);
}

.hp-stream-panel__title {
	display: flex;
	align-items: center;
	gap: var(--hp-space-2);
	margin: 0 0 var(--hp-space-5);
	font-size: var(--hp-font-size-lg);
	font-weight: var(--hp-font-weight-extrabold);
}

/* Profile */
.hp-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--hp-space-4);
}

.hp-profile__avatar {
	width: 8rem;
	height: 8rem;
	overflow: hidden;
	border: 4px solid var(--hp-pink-200);
	border-radius: var(--hp-radius-full);
	box-shadow: var(--hp-shadow-md);
}

.hp-profile__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-profile__name {
	margin: 0;
	font-size: var(--hp-font-size-2xl);
	font-weight: var(--hp-font-weight-extrabold);
}

.hp-profile__channel {
	margin: 0;
	font-size: var(--hp-font-size-sm);
	color: var(--hp-color-text-muted);
}

.hp-profile__meta {
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: left;
}

.hp-profile__meta li {
	display: flex;
	justify-content: space-between;
	gap: var(--hp-space-4);
	padding: var(--hp-space-3) 0;
	font-size: var(--hp-font-size-sm);
	border-bottom: 1px solid var(--hp-color-border);
}

.hp-profile__meta li:last-child {
	border-bottom: none;
}

.hp-profile__meta strong {
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
}

.hp-profile__intro {
	margin: 0;
	padding: var(--hp-space-4);
	font-size: var(--hp-font-size-sm);
	line-height: var(--hp-line-height-relaxed);
	color: var(--hp-color-text-muted);
	text-align: left;
	background: var(--hp-pink-50);
	border-radius: var(--hp-radius-lg);
}

/* Feed action */
.hp-feed-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--hp-space-5);
	text-align: center;
}

.hp-feed-action__btn {
	width: 100%;
	max-width: 16rem;
	padding: var(--hp-space-5) var(--hp-space-6);
	font-size: var(--hp-font-size-lg);
	font-weight: var(--hp-font-weight-extrabold);
}

.hp-feed-action__btn.is-disabled {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

.hp-feed-action__hint {
	margin: 0;
	font-size: var(--hp-font-size-sm);
	color: var(--hp-color-text-muted);
}

.hp-feed-timer-box {
	width: 100%;
	padding: var(--hp-space-5);
	background: linear-gradient(135deg, var(--hp-yellow-50), var(--hp-pink-50));
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-xl);
}

.hp-feed-timer-box__label {
	margin: 0 0 var(--hp-space-2);
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
}

.hp-feed-timer-box__value {
	margin: 0;
	font-size: var(--hp-font-size-3xl);
	font-weight: var(--hp-font-weight-extrabold);
	font-variant-numeric: tabular-nums;
	color: var(--hp-color-accent);
}

.hp-feed-timer-box__last {
	margin: var(--hp-space-3) 0 0;
	font-size: var(--hp-font-size-xs);
	color: var(--hp-color-text-muted);
}

/* Action grid 2x2 */
.hp-action-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--hp-space-3);
	width: 100%;
}

.hp-action-grid__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--hp-space-2);
	min-height: 5rem;
	padding: var(--hp-space-4);
	font-family: inherit;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text);
	text-decoration: none;
	background: var(--hp-color-bg-subtle);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-lg);
	transition: all var(--hp-transition-fast);
	cursor: pointer;
}

.hp-action-grid__btn:hover {
	color: var(--hp-color-accent);
	background: var(--hp-pink-50);
	border-color: var(--hp-pink-200);
	transform: translateY(-2px);
}

.hp-action-grid__icon {
	font-size: var(--hp-font-size-xl);
}

/* Ranking */
.hp-ranking-tabs {
	display: flex;
	gap: var(--hp-space-2);
	margin-bottom: var(--hp-space-4);
}

.hp-ranking-tabs__btn {
	flex: 1;
	padding: var(--hp-space-3);
	font-family: inherit;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
	color: var(--hp-color-text-muted);
	background: var(--hp-color-bg-subtle);
	border: 1px solid var(--hp-color-border);
	border-radius: var(--hp-radius-lg);
	cursor: pointer;
	transition: all var(--hp-transition-fast);
}

.hp-ranking-tabs__btn.is-active {
	color: var(--hp-color-text);
	background: var(--hp-color-highlight-soft);
	border-color: var(--hp-yellow-300);
}

.hp-ranking-panel {
	display: none;
}

.hp-ranking-panel.is-active {
	display: block;
}

.hp-ranking-list {
	display: flex;
	flex-direction: column;
	gap: var(--hp-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.hp-ranking-item {
	display: flex;
	align-items: center;
	gap: var(--hp-space-3);
	padding: var(--hp-space-3);
	background: var(--hp-color-bg-subtle);
	border-radius: var(--hp-radius-lg);
}

.hp-ranking-item__rank {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-bold);
	color: var(--hp-color-accent);
	background: var(--hp-pink-100);
	border-radius: var(--hp-radius-full);
}

.hp-ranking-item:nth-child(1) .hp-ranking-item__rank {
	color: #fff;
	background: linear-gradient(135deg, var(--hp-yellow-300), var(--hp-pink-400));
}

.hp-ranking-item__avatar {
	width: 2.25rem;
	height: 2.25rem;
	overflow: hidden;
	border-radius: var(--hp-radius-full);
}

.hp-ranking-item__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hp-ranking-item__name {
	flex: 1;
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-semibold);
}

.hp-ranking-item__score {
	font-size: var(--hp-font-size-sm);
	font-weight: var(--hp-font-weight-bold);
	color: var(--hp-color-accent);
}

/* Bottom 2-column */
.hp-stream-bottom {
	display: grid;
	gap: var(--hp-space-5);
}

/* Responsive */
@media (min-width: 768px) {
	.hp-stream-mid {
		grid-template-columns: 1fr 1.2fr 1fr;
	}

	.hp-stream-bottom {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1024px) {
	.hp-stream-page {
		gap: var(--hp-space-8);
	}
}
