/* Doctor video stories — Prime Ortho style */

.ph-dvid {
	padding: 56px 0 64px;
	background: var(--ph-navy, #111d6a);
	color: #fff;
}

.ph-dvid__script {
	margin: 0 0 8px;
	text-align: center;
	color: var(--ph-accent, #f77f00);
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.ph-dvid__title {
	margin: 0 0 32px;
	text-align: center;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.25;
}

.ph-dvid__slider {
	position: relative;
	padding: 0 44px;
}

.ph-dvid__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ph-accent, #f77f00);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(247, 127, 0, 0.35);
}

.ph-dvid__nav--prev {
	left: 0;
}

.ph-dvid__nav--next {
	right: 0;
}

.ph-dvid__nav:hover:not(:disabled) {
	background: #fff;
	color: var(--ph-navy, #111d6a);
}

.ph-dvid__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.ph-dvid__viewport {
	overflow: hidden;
	width: 100%;
}

.ph-dvid__track {
	display: flex;
	gap: 22px;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ph-dvid__slide {
	flex: 0 0 auto;
	box-sizing: border-box;
}

.ph-dvid-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	color: #1e293b;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.ph-dvid-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 14px 10px;
}

.ph-dvid-card__avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

.ph-dvid-card__avatar--empty {
	background-image: linear-gradient(160deg, #f77f00, #e06a00);
}

.ph-dvid-card__meta-text {
	min-width: 0;
	flex: 1;
}

.ph-dvid-card__topic {
	margin: 0;
	color: #0f172a;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ph-dvid-card__hospital {
	margin: 2px 0 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
}

.ph-dvid-card__media {
	position: relative;
	display: block;
	width: calc(100% - 28px);
	margin: 0 14px 12px;
	padding: 0;
	border: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 9 / 12;
	max-height: 340px;
	background: #0f172a;
	cursor: pointer;
}

.ph-dvid-card__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ph-dvid-card__brand {
	position: absolute;
	top: 10px;
	left: 50%;
	z-index: 2;
	transform: translateX(-50%);
	height: 28px;
	width: auto;
	max-width: 110px;
	object-fit: contain;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.ph-dvid-card__play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.12);
	transition: background 0.2s ease;
}

.ph-dvid-card__media:hover .ph-dvid-card__play {
	background: rgba(0, 0, 0, 0.28);
}

.ph-dvid-card__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 8px 10px;
	background: var(--ph-accent, #f77f00);
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.ph-dvid-card__doctor {
	margin: 0 0 14px;
	padding: 0 14px;
	color: #0f172a;
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
}

/* Modal */
.ph-dvid-modal[hidden] {
	display: none !important;
}

.ph-dvid-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.ph-dvid-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 30, 0.78);
}

.ph-dvid-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.ph-dvid-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ph-dvid-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.ph-dvid-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 980px) {
	.ph-dvid__slider {
		padding: 0 40px;
	}
}

@media (max-width: 640px) {
	.ph-dvid {
		padding: 44px 0 52px;
	}

	.ph-dvid__slider {
		padding: 0 36px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ph-dvid__track {
		transition: none;
	}
}
