/* Step 10: Comments, Replies, Mentions and Notifications */
.dtv-comments {
	margin-top: 28px;
	padding: clamp(20px, 4vw, 34px);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 25px;
	background:
		radial-gradient(circle at 95% 4%, rgba(124, 58, 237, 0.09), transparent 27%),
		#111118;
	box-shadow: 0 24px 65px rgba(0, 0, 0, 0.28);
}

.dtv-comments.is-loading {
	opacity: 0.66;
	pointer-events: none;
}

.dtv-comments__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
}

.dtv-comments__header > div > span,
.dtv-notifications-page__header > div > span {
	display: block;
	margin-bottom: 7px;
	color: #c4b5fd;
	font-size: 0.67rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.dtv-comments__header h2 {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: clamp(1.7rem, 4vw, 2.8rem);
	letter-spacing: -0.05em;
}

.dtv-comments__header h2 b {
	min-width: 31px;
	height: 31px;
	padding: 0 8px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.14);
	color: #d8b4fe;
	font-size: 0.68rem;
	letter-spacing: 0;
}

.dtv-comments-sort {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #777781;
	font-size: 0.68rem;
}

.dtv-comments-sort select {
	min-height: 41px;
	padding: 0 32px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 11px;
	background: #0d0d13;
	color: #c7c7cf;
	font: inherit;
	font-weight: 700;
}

.dtv-comments-sort option {
	background: #15151d;
}

.dtv-comment-composer {
	position: relative;
	padding: 16px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 13px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.025);
}

.dtv-comment-composer__avatar,
.dtv-comment-avatar {
	width: 44px;
	height: 44px;
	border: 2px solid rgba(167, 139, 250, 0.45);
	border-radius: 50%;
	object-fit: cover;
}

.dtv-comment-composer__body {
	position: relative;
	min-width: 0;
}

.dtv-comment-composer textarea {
	width: 100%;
	min-height: 104px;
	padding: 13px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 13px;
	outline: 0;
	resize: vertical;
	background: #0d0d13;
	color: #fff;
	font: inherit;
	font-size: 0.8rem;
	line-height: 1.6;
}

.dtv-comment-composer textarea:focus {
	border-color: rgba(167, 139, 250, 0.72);
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.11);
}

.dtv-comment-composer textarea::placeholder {
	color: #696973;
}

.dtv-comment-composer__footer {
	margin-top: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.dtv-comment-composer__footer > small {
	color: #6f6f79;
	font-size: 0.64rem;
}

.dtv-comment-composer__footer > button {
	min-height: 43px;
	padding: 0 12px 0 15px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #7c3aed, #ec4899);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	cursor: pointer;
}

.dtv-comment-composer__footer > button:disabled {
	opacity: 0.62;
	cursor: wait;
}

.dtv-comment-composer__footer > button b {
	width: 25px;
	height: 25px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
}

.dtv-comment-replying {
	min-height: 35px;
	margin-bottom: 9px;
	padding: 0 9px 0 11px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid rgba(167, 139, 250, 0.17);
	border-radius: 10px;
	background: rgba(124, 58, 237, 0.08);
	color: #aaaab4;
	font-size: 0.68rem;
}

.dtv-comment-replying b {
	color: #d8b4fe;
}

.dtv-comment-replying button {
	width: 27px;
	height: 27px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	cursor: pointer;
}

.dtv-mention-suggestions {
	position: absolute;
	z-index: 30;
	left: 8px;
	right: 8px;
	top: calc(100% - 50px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(17, 17, 24, 0.98);
	box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(18px);
}

.dtv-mention-suggestions button {
	width: 100%;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	background: transparent;
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.dtv-mention-suggestions button:last-child {
	border-bottom: 0;
}

.dtv-mention-suggestions button:hover,
.dtv-mention-suggestions button.is-active {
	background: rgba(124, 58, 237, 0.12);
}

.dtv-mention-suggestions img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
}

.dtv-mention-suggestions strong,
.dtv-mention-suggestions small {
	display: block;
}

.dtv-mention-suggestions strong {
	font-size: 0.72rem;
}

.dtv-mention-suggestions small {
	margin-top: 3px;
	color: #c4b5fd;
	font-size: 0.62rem;
}

.dtv-comments-login {
	padding: 17px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.025);
}

.dtv-comments-login > span {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: rgba(124, 58, 237, 0.13);
	color: #d8b4fe;
}

.dtv-comments-login strong,
.dtv-comments-login p {
	display: block;
	margin: 0;
}

.dtv-comments-login strong {
	font-size: 0.82rem;
}

.dtv-comments-login p {
	margin-top: 5px;
	color: #7e7e88;
	font-size: 0.68rem;
	line-height: 1.5;
}

.dtv-comments-login a {
	color: #d8b4fe;
	font-size: 0.72rem;
	font-weight: 800;
	white-space: nowrap;
}

.dtv-comments-status {
	min-height: 0;
	margin: 0;
	padding: 0;
	border-radius: 11px;
	color: #d8b4fe;
	font-size: 0.7rem;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 160ms ease, transform 160ms ease, min-height 160ms ease, margin 160ms ease, padding 160ms ease;
}

.dtv-comments-status.is-visible {
	min-height: 39px;
	margin: 12px 0 0;
	padding: 11px 13px;
	border: 1px solid rgba(167, 139, 250, 0.16);
	background: rgba(124, 58, 237, 0.08);
	opacity: 1;
	transform: translateY(0);
}

.dtv-comment-list {
	margin-top: 23px;
	display: grid;
	gap: 3px;
}

.dtv-comment-list.is-empty {
	display: none;
}

.dtv-comment {
	padding: 15px 0;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	gap: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.065);
	transition: opacity 180ms ease, transform 180ms ease;
}

.dtv-comment.is-removing {
	opacity: 0;
	transform: scale(0.98);
}

.dtv-comment-replies > .dtv-comment {
	margin-top: 9px;
	padding-left: 15px;
	border-left: 1px solid rgba(167, 139, 250, 0.14);
	border-bottom: 0;
}

.dtv-comment-replies > .dtv-comment .dtv-comment-avatar {
	width: 37px;
	height: 37px;
}

.dtv-comment__body {
	min-width: 0;
}

.dtv-comment__body > header {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
}

.dtv-comment__body > header > div {
	min-width: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 7px;
}

.dtv-comment__body > header strong {
	color: #fff;
	font-size: 0.76rem;
}

.dtv-comment__body > header span {
	color: #c4b5fd;
	font-size: 0.62rem;
}

.dtv-comment__body > header time {
	color: #676771;
	font-size: 0.61rem;
	white-space: nowrap;
}

.dtv-comment__content {
	margin-top: 8px;
	color: #b5b5be;
	font-size: 0.75rem;
	line-height: 1.65;
	word-break: break-word;
}

.dtv-comment-mention {
	color: #c4b5fd;
	font-weight: 800;
}

.dtv-comment__body > footer {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.dtv-comment__body > footer button {
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 0;
	background: transparent;
	color: #797983;
	font-size: 0.64rem;
	font-weight: 700;
	cursor: pointer;
}

.dtv-comment__body > footer button:hover,
.dtv-comment__body > footer .dtv-comment-like.is-liked {
	color: #d8b4fe;
}

.dtv-comment__body > footer .dtv-comment-delete:hover {
	color: #fda4af;
}

.dtv-comment-like span {
	font-size: 0.83rem;
}

.dtv-comment-like small {
	font-size: 0.61rem;
}

.dtv-comments-empty {
	display: none;
	min-height: 220px;
	place-items: center;
	align-content: center;
	text-align: center;
}

.dtv-comments-empty.is-visible {
	display: grid;
}

.dtv-comments-empty > div {
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	border-radius: 20px;
	background: rgba(124, 58, 237, 0.11);
	color: #d8b4fe;
	font-size: 1.4rem;
}

.dtv-comments-empty h3 {
	margin: 15px 0 6px;
	font-size: 1.1rem;
}

.dtv-comments-empty p {
	margin: 0;
	color: #777781;
	font-size: 0.7rem;
}

.dtv-comments-load-more {
	min-height: 46px;
	margin: 20px auto 0;
	padding: 0 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid rgba(167, 139, 250, 0.19);
	border-radius: 13px;
	background: rgba(124, 58, 237, 0.08);
	color: #d8b4fe;
	font-size: 0.7rem;
	font-weight: 800;
	cursor: pointer;
}

.dtv-comments-load-more:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Notifications center */
.dtv-notifications-page {
	display: grid;
	gap: 20px;
}

.dtv-notifications-page__header {
	position: relative;
	overflow: hidden;
	padding: clamp(28px, 5vw, 50px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 29px;
	background:
		radial-gradient(circle at 88% 18%, rgba(236, 72, 153, 0.21), transparent 27%),
		radial-gradient(circle at 15% 82%, rgba(124, 58, 237, 0.28), transparent 34%),
		linear-gradient(145deg, #16151f, #0f0f16);
	box-shadow: 0 27px 78px rgba(0, 0, 0, 0.31);
}

.dtv-notifications-page__header h1 {
	margin: 0;
	font-size: clamp(2.5rem, 7vw, 5.3rem);
	line-height: 0.94;
	letter-spacing: -0.067em;
}

.dtv-notifications-page__header p {
	max-width: 700px;
	margin: 15px 0 0;
	color: #92929c;
	font-size: 0.85rem;
	line-height: 1.7;
}

.dtv-notifications-page__count {
	min-width: 128px;
	aspect-ratio: 1;
	display: grid;
	place-content: center;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.18);
	text-align: center;
	backdrop-filter: blur(16px);
}

.dtv-notifications-page__count strong {
	font-size: 2.15rem;
	line-height: 1;
}

.dtv-notifications-page__count small {
	margin-top: 7px;
	color: #aaaab4;
	font-size: 0.62rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.09em;
}

.dtv-notifications-toolbar {
	padding: 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 16px;
	background: #111118;
}

.dtv-notifications-toolbar nav {
	display: flex;
	align-items: center;
	gap: 7px;
	overflow-x: auto;
}

.dtv-notifications-toolbar nav a,
.dtv-notifications-toolbar > button {
	min-height: 39px;
	padding: 0 13px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	font-size: 0.68rem;
	font-weight: 800;
	white-space: nowrap;
}

.dtv-notifications-toolbar nav a {
	color: #8c8c96;
}

.dtv-notifications-toolbar nav a.is-active {
	background: rgba(124, 58, 237, 0.12);
	color: #d8b4fe;
}

.dtv-notifications-toolbar > button {
	border: 0;
	background: linear-gradient(135deg, #7c3aed, #ec4899);
	color: #fff;
	cursor: pointer;
}

.dtv-notifications-list {
	display: grid;
	gap: 10px;
}

.dtv-notifications-list.is-empty {
	display: none;
}

.dtv-notification-card {
	position: relative;
	padding: 16px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 17px;
	background: #111118;
	transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.dtv-notification-card:hover {
	transform: translateY(-2px);
	border-color: rgba(167, 139, 250, 0.26);
}

.dtv-notification-card.is-unread {
	border-color: rgba(167, 139, 250, 0.22);
	background:
		radial-gradient(circle at 95% 8%, rgba(124, 58, 237, 0.1), transparent 27%),
		#111118;
}

.dtv-notification-card.is-unread::before {
	content: "";
	position: absolute;
	left: -4px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #a78bfa;
	transform: translateY(-50%);
	box-shadow: 0 0 15px rgba(167, 139, 250, 0.8);
}

.dtv-notification-card__icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: rgba(124, 58, 237, 0.12);
	color: #d8b4fe;
	font-size: 1rem;
	font-weight: 900;
}

.dtv-notification-card--approved .dtv-notification-card__icon {
	background: rgba(34, 197, 94, 0.11);
	color: #86efac;
}

.dtv-notification-card--rejected .dtv-notification-card__icon {
	background: rgba(244, 63, 94, 0.11);
	color: #fda4af;
}

.dtv-notification-card--comment .dtv-notification-card__icon,
.dtv-notification-card--reply .dtv-notification-card__icon,
.dtv-notification-card--mention .dtv-notification-card__icon {
	background: rgba(236, 72, 153, 0.1);
	color: #f9a8d4;
}

.dtv-notification-card strong,
.dtv-notification-card p,
.dtv-notification-card small {
	display: block;
	margin: 0;
}

.dtv-notification-card strong {
	font-size: 0.78rem;
}

.dtv-notification-card p {
	margin-top: 5px;
	color: #8a8a94;
	font-size: 0.69rem;
	line-height: 1.5;
}

.dtv-notification-card small {
	margin-top: 6px;
	color: #62626c;
	font-size: 0.61rem;
}

.dtv-notification-card > b {
	color: #c4b5fd;
}

.dtv-notifications-empty {
	min-height: 340px;
	padding: 35px 20px;
	display: grid;
	place-items: center;
	align-content: center;
	border: 1px dashed rgba(255, 255, 255, 0.13);
	border-radius: 23px;
	background: #101017;
	text-align: center;
}

.dtv-notifications-empty > div {
	width: 72px;
	height: 72px;
	display: grid;
	place-items: center;
	border-radius: 23px;
	background: rgba(124, 58, 237, 0.13);
	color: #d8b4fe;
	font-size: 1.4rem;
}

.dtv-notifications-empty h2 {
	margin: 17px 0 7px;
}

.dtv-notifications-empty p {
	margin: 0;
	color: #7d7d87;
	font-size: 0.72rem;
}

.dtv-notification-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.dtv-notification-pagination a {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 11px;
	background: #111118;
	color: #92929c;
	font-size: 0.7rem;
	font-weight: 800;
}

.dtv-notification-pagination a.is-active {
	border-color: transparent;
	background: linear-gradient(135deg, #7c3aed, #ec4899);
	color: #fff;
}

.dtv-comments-toast {
	position: fixed;
	z-index: 150;
	left: 50%;
	bottom: calc(88px + env(safe-area-inset-bottom));
	max-width: calc(100% - 32px);
	padding: 11px 16px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 999px;
	background: rgba(17, 17, 24, 0.95);
	color: #fff;
	font-size: 0.76rem;
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity 180ms ease, transform 180ms ease;
	backdrop-filter: blur(18px);
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.32);
}

.dtv-comments-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Generic notification icons shown on My Videos. */
.dtv-creator-notification__icon--comment,
.dtv-creator-notification__icon--reply,
.dtv-creator-notification__icon--mention {
	background: rgba(236, 72, 153, 0.11) !important;
	color: #f9a8d4 !important;
}

.dtv-bottom-nav__item {
	position: relative;
}

.dtv-bottom-nav__badge {
	position: absolute;
	top: 2px;
	left: 50%;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	display: grid;
	place-items: center;
	border: 2px solid #08080c;
	border-radius: 999px;
	background: #ec4899;
	color: #fff;
	font-size: 0.52rem;
	font-weight: 900;
	line-height: 1;
	transform: translateX(7px);
}

@media (max-width: 700px) {
	.dtv-comments {
		padding: 17px 14px;
		border-radius: 20px;
	}

	.dtv-comments__header,
	.dtv-notifications-page__header {
		display: grid;
		align-items: start;
	}

	.dtv-comments-sort {
		justify-content: space-between;
	}

	.dtv-comment-composer {
		grid-template-columns: 1fr;
	}

	.dtv-comment-composer__avatar {
		width: 40px;
		height: 40px;
	}

	.dtv-comments-login {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.dtv-comments-login a {
		grid-column: 1 / -1;
		justify-self: end;
	}

	.dtv-comment-replies > .dtv-comment {
		padding-left: 9px;
	}

	.dtv-notifications-page__count {
		width: 105px;
		min-width: 105px;
	}

	.dtv-notifications-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.dtv-notifications-toolbar > button {
		width: 100%;
	}
}

@media (max-width: 420px) {
	.dtv-comment {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 9px;
	}

	.dtv-comment-avatar {
		width: 36px;
		height: 36px;
	}

	.dtv-comment__body > header {
		display: grid;
		gap: 4px;
	}

	.dtv-comment__body > header time {
		justify-self: start;
	}

	.dtv-notification-card {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.dtv-notification-card > b {
		display: none;
	}
}


.dtv-profile-notification-shell {
	display: grid;
	gap: 20px;
}

.dtv-profile-actions .dtv-profile-secondary b {
	min-width: 20px;
	height: 20px;
	margin-left: 6px;
	padding: 0 5px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	background: #ec4899;
	color: #fff;
	font-size: 0.58rem;
}
