/**
 * DarkVid Videos — frontend styles.
 */

.dvv-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 */
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.dvv-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.dvv-rating {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0 4px;
}

.dvv-rate {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #333;
	border-radius: 999px;
	background: transparent;
	color: #bbb;
	font-size: 14px;
	cursor: pointer;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.dvv-rate:hover:not(:disabled) {
	color: #fff;
	border-color: #e33;
}

.dvv-rate--up:hover:not(:disabled),
.dvv-rate--up.is-active {
	color: #4caf50;
	border-color: #4caf50;
}

.dvv-rate--down:hover:not(:disabled),
.dvv-rate--down.is-active {
	color: #e33;
	border-color: #e33;
}

.dvv-rate:disabled,
.dvv-rate.is-disabled {
	cursor: default;
	opacity: 0.7;
}

.dvv-rating__bar {
	flex: 1;
	height: 6px;
	background: #2a2a2a;
	border-radius: 999px;
	overflow: hidden;
}

.dvv-rating__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #e33, #4caf50);
	transition: width 0.3s ease;
}

.dvv-seo__keywords {
	font-size: 13px;
	color: #999;
	margin-top: 10px;
}

/* ---------- DMCA takedown ---------- */

.dvv-dmca-link {
	color: var(--text-muted, #9a9aa3);
	text-decoration: none;
}

.dvv-dmca-link:hover {
	color: var(--accent-hover, #f6121d);
}

.dvv-dmca-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dvv-dmca-modal[hidden] {
	display: none;
}

.dvv-dmca-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.dvv-dmca-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	background: #141417;
	border: 1px solid #26262c;
	border-radius: 10px;
	padding: 24px;
	color: #f2f2f4;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.dvv-dmca-modal__dialog h2 {
	margin: 0 0 16px;
	font-size: 20px;
}

.dvv-dmca-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: 0;
	color: #9a9aa3;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.dvv-dmca-modal__close:hover {
	color: #fff;
}

.dvv-dmca-modal__body p {
	margin: 0 0 14px;
}

.dvv-dmca-modal__body label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}

.dvv-dmca-modal__body input[type="text"],
.dvv-dmca-modal__body input[type="email"],
.dvv-dmca-modal__body input[type="url"],
.dvv-dmca-modal__body textarea {
	width: 100%;
	background: #0a0a0b;
	border: 1px solid #26262c;
	border-radius: 6px;
	color: #f2f2f4;
	font-family: inherit;
	font-size: 14px;
	padding: 9px 11px;
}

.dvv-dmca-modal__body input:focus,
.dvv-dmca-modal__body textarea:focus {
	outline: none;
	border-color: #e50914;
}

.dvv-dmca-modal__body textarea {
	resize: vertical;
	min-height: 70px;
}

.dvv-dmca-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.dvv-dmca-consent label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-weight: 400;
	font-size: 13px;
	color: #9a9aa3;
	cursor: pointer;
}

.dvv-dmca-consent input {
	margin-top: 3px;
}

.dvv-dmca-submit {
	background: #e50914;
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 20px;
	cursor: pointer;
}

.dvv-dmca-submit:hover {
	background: #f6121d;
}

.dvv-dmca-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.dvv-dmca-error {
	color: #ff6b6b;
	font-size: 13px;
}

/* ---------- Player tabs ---------- */

.dvv-players__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.dvv-player-tab {
	padding: 7px 16px;
	background: var(--surface, #141417);
	border: 1px solid var(--border, #26262c);
	border-radius: 999px;
	color: var(--text-muted, #9a9aa3);
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dvv-player-tab:hover {
	color: #fff;
	border-color: #e33;
}

.dvv-player-tab.is-active {
	background: #e50914;
	border-color: #e50914;
	color: #fff;
}
