.ds-core,
.ds-core *,
.ds-report-dialog,
.ds-report-dialog * {
	box-sizing: border-box;
}

.ds-core {
	--ds-accent: var(--accent, #ff3d52);
	--ds-bg: var(--bg, #0b0b0d);
	--ds-surface: var(--surface, #151518);
	--ds-surface-2: var(--surface-2, #1c1c20);
	--ds-text: var(--text, #f6f7f9);
	--ds-muted: var(--muted, #a4a6ae);
	--ds-border: var(--border, #2b2c32);
	width: 100%;
	max-width: 1380px;
	margin: 0 auto;
	color: var(--ds-text);
}

.ds-core-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 100px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--ds-border);
}

.ds-core-heading span,
.ds-panel header span {
	color: var(--ds-accent);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ds-core-heading h1,
.ds-panel header h2 {
	margin: 2px 0 0;
	letter-spacing: 0;
}

.ds-core-heading h1 {
	font-size: 34px;
}

.ds-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 16px;
	border: 1px solid var(--ds-border);
	border-radius: 7px;
	background: var(--ds-surface-2);
	color: var(--ds-text);
	font: inherit;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.ds-button-primary {
	border-color: var(--ds-accent);
	background: var(--ds-accent);
	color: #fff;
}

.ds-button-primary:hover {
	filter: brightness(.92);
	color: #fff;
}

.ds-tabs {
	display: flex;
	gap: 7px;
	margin-bottom: 24px;
	overflow-x: auto;
}

.ds-tabs a {
	flex: 0 0 auto;
	padding: 9px 14px;
	border: 1px solid var(--ds-border);
	border-radius: 7px;
	color: var(--ds-muted);
	font-size: 13px;
	font-weight: 750;
}

.ds-tabs a:hover,
.ds-tabs a.is-active {
	border-color: var(--ds-text);
	background: var(--ds-text);
	color: var(--ds-bg);
}

.ds-notice {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-left: 4px solid;
	border-radius: 5px;
	font-size: 14px;
}

.ds-notice.is-success {
	border-color: #24a46d;
	background: color-mix(in srgb, #24a46d 12%, var(--ds-surface));
}

.ds-notice.is-error {
	border-color: var(--ds-accent);
	background: color-mix(in srgb, var(--ds-accent) 12%, var(--ds-surface));
}

.ds-stat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-bottom: 22px;
}

.ds-stat-grid > div {
	padding: 20px;
	border: 1px solid var(--ds-border);
	border-radius: 8px;
	background: var(--ds-surface);
}

.ds-stat-grid span {
	display: block;
	color: var(--ds-muted);
	font-size: 13px;
}

.ds-stat-grid strong {
	display: block;
	margin-top: 8px;
	font-size: 31px;
}

.ds-panel {
	margin-bottom: 20px;
	padding: 22px;
	border: 1px solid var(--ds-border);
	border-radius: 8px;
	background: var(--ds-surface);
}

.ds-panel > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 20px;
}

.ds-panel header h2 {
	font-size: 22px;
}

.ds-performance-list {
	display: grid;
	gap: 13px;
}

.ds-performance-row {
	display: grid;
	grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 2fr) 70px;
	align-items: center;
	gap: 15px;
	font-size: 13px;
}

.ds-performance-row > span {
	display: block;
	height: 8px;
	overflow: hidden;
	border-radius: 4px;
	background: var(--ds-surface-2);
}

.ds-performance-row i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--ds-accent);
}

.ds-performance-row strong {
	text-align: right;
}

.ds-muted {
	color: var(--ds-muted);
}

.ds-form {
	max-width: 1000px;
}

.ds-form label,
.ds-create-playlist label,
.ds-report-form label {
	display: block;
	margin: 13px 0 7px;
	font-size: 13px;
	font-weight: 750;
}

.ds-form label + input + small,
.ds-form label + select + small {
	display: block;
	margin-top: 7px;
	color: var(--ds-muted);
	font-size: 12px;
}

.ds-auto-cover {
	position: relative;
	margin-top: 12px;
	overflow: hidden;
	border: 1px solid var(--ds-border);
	border-radius: 7px;
	background: #08090d;
	aspect-ratio: 16 / 9;
}

.ds-auto-cover[hidden] {
	display: none;
}

.ds-auto-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ds-auto-cover span {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 4px 7px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .78);
	color: #fff;
	font-size: 11px;
	font-weight: 750;
}

.ds-form input[type="text"],
.ds-form input[type="url"],
.ds-form input[type="file"],
.ds-form textarea,
.ds-form select,
.ds-create-playlist input,
.ds-create-playlist select,
.ds-report-form textarea,
.ds-report-form select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--ds-border);
	border-radius: 6px;
	outline: 0;
	background: var(--ds-bg);
	color: var(--ds-text);
	font: inherit;
}

.ds-form input:focus,
.ds-form textarea:focus,
.ds-form select:focus,
.ds-create-playlist input:focus,
.ds-report-form textarea:focus,
.ds-report-form select:focus {
	border-color: #5c7cff;
	box-shadow: 0 0 0 2px color-mix(in srgb, #5c7cff 22%, transparent);
}

.ds-form textarea,
.ds-report-form textarea {
	resize: vertical;
}

.ds-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.ds-checks {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	padding-bottom: 8px;
}

.ds-checks label {
	display: flex;
	align-items: center;
	gap: 7px;
}

.ds-checks input {
	accent-color: var(--ds-accent);
}

.ds-rights-panel {
	border-color: color-mix(in srgb, #5c7cff 42%, var(--ds-border));
}

.ds-rights-declaration {
	display: grid !important;
	grid-template-columns: 20px 1fr;
	align-items: start;
	gap: 11px;
	padding: 14px;
	border: 1px solid var(--ds-border);
	border-radius: 7px;
	background: var(--ds-surface-2);
	font-weight: 550 !important;
	line-height: 1.55;
}

.ds-rights-declaration input {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	accent-color: var(--ds-accent);
}

.ds-review-note {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-left: 3px solid #5c7cff;
	background: color-mix(in srgb, #5c7cff 9%, var(--ds-surface));
	color: var(--ds-muted);
}

.ds-separator {
	position: relative;
	margin: 20px 0 4px;
	color: var(--ds-muted);
	font-size: 12px;
	text-align: center;
}

.ds-separator::before {
	position: absolute;
	top: 50%;
	right: 0;
	left: 0;
	height: 1px;
	background: var(--ds-border);
	content: "";
}

.ds-separator span {
	position: relative;
	padding: 0 10px;
	background: var(--ds-surface);
}

.ds-banner-preview {
	width: 100%;
	max-height: 230px;
	margin-bottom: 15px;
	border-radius: 7px;
	object-fit: cover;
}

.ds-video-table {
	display: grid;
}

.ds-video-table__head,
.ds-video-table__row {
	display: grid;
	grid-template-columns: minmax(260px, 2fr) 110px 90px 120px;
	align-items: center;
	gap: 15px;
	padding: 11px 5px;
	border-bottom: 1px solid var(--ds-border);
	font-size: 13px;
}

.ds-video-table__head {
	color: var(--ds-muted);
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.ds-video-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.ds-video-title img {
	width: 90px;
	height: 51px;
	border-radius: 5px;
	object-fit: cover;
}

.ds-video-title div {
	min-width: 0;
}

.ds-video-title strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ds-video-title small {
	color: var(--ds-muted);
}

.ds-status {
	display: inline-block;
	width: fit-content;
	padding: 4px 7px;
	border-radius: 5px;
	background: var(--ds-surface-2);
	color: var(--ds-muted);
	font-size: 11px;
}

.ds-status.is-publish {
	background: color-mix(in srgb, #24a46d 15%, var(--ds-surface));
	color: #45c88c;
}

.ds-status.is-pending {
	background: color-mix(in srgb, #e5a323 18%, var(--ds-surface));
	color: #c98b12;
}

.ds-status.is-approved {
	background: color-mix(in srgb, #24a46d 15%, var(--ds-surface));
	color: #45c88c;
}

.ds-status.is-rejected {
	background: color-mix(in srgb, #e34c5b 15%, var(--ds-surface));
	color: #ef6674;
}

.ds-review-reason {
	display: block;
	max-width: 180px;
	margin-top: 6px;
	color: var(--ds-muted);
	line-height: 1.35;
}

.ds-row-actions {
	display: flex;
	gap: 9px;
}

.ds-row-actions a {
	color: #5c7cff;
}

.ds-core-empty {
	display: flex;
	min-height: 300px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 35px 20px;
	border: 1px dashed var(--ds-border, var(--border, #2b2c32));
	border-radius: 8px;
	color: var(--ds-text, var(--text, #f6f7f9));
	text-align: center;
}

.ds-core-empty h2,
.ds-core-empty p {
	margin: 0 0 10px;
}

.ds-core-empty p {
	color: var(--ds-muted, var(--muted, #a4a6ae));
}

.ds-create-playlist {
	display: grid;
	grid-template-columns: 1fr 150px auto;
	align-items: end;
	gap: 10px;
	margin-bottom: 26px;
	padding: 18px;
	border: 1px solid var(--ds-border);
	border-radius: 8px;
	background: var(--ds-surface);
}

.ds-create-playlist label {
	margin-top: 0;
}

.ds-playlist-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}

.ds-playlist-card {
	position: relative;
}

.ds-playlist-cover {
	position: relative;
	display: block;
	border-radius: 7px;
	background-color: var(--ds-surface-2);
	background-position: center;
	background-size: cover;
	aspect-ratio: 16 / 9;
}

.ds-playlist-cover::after {
	position: absolute;
	inset: 0 0 0 65%;
	background: rgba(0, 0, 0, .62);
	content: "";
}

.ds-playlist-cover span {
	position: absolute;
	top: 50%;
	right: 10px;
	z-index: 1;
	width: 30%;
	transform: translateY(-50%);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-align: center;
}

.ds-playlist-card h2,
.ds-playlist-card p {
	margin: 8px 0 0;
}

.ds-playlist-card h2 {
	font-size: 16px;
}

.ds-playlist-card p {
	color: var(--ds-muted);
	font-size: 12px;
}

.ds-playlist-card form {
	position: absolute;
	right: 0;
	bottom: 0;
}

.ds-playlist-card form button {
	border: 0;
	background: transparent;
	color: var(--ds-muted);
	font-size: 12px;
	cursor: pointer;
}

.ds-back-link {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--ds-muted);
	font-size: 13px;
}

.ds-playlist-control {
	position: relative;
	flex: 0 0 auto;
}

.ds-playlist-popover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 100;
	width: 250px;
	padding: 12px;
	border: 1px solid var(--border, #2b2c32);
	border-radius: 7px;
	background: var(--surface, #151518);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .3);
	color: var(--text, #f6f7f9);
}

.ds-playlist-popover strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
}

.ds-playlist-popover > button {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 9px;
	padding: 8px 5px;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 13px;
	text-align: left;
	cursor: pointer;
}

.ds-checkmark {
	display: block;
	width: 15px;
	height: 15px;
	border: 1px solid var(--border, #555);
	border-radius: 3px;
}

.ds-playlist-popover > button.is-active .ds-checkmark {
	border-color: var(--accent, #ff3d52);
	background: var(--accent, #ff3d52);
	box-shadow: inset 0 0 0 3px var(--surface, #151518);
}

.ds-playlist-popover > a {
	display: block;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--border, #2b2c32);
	color: #5c7cff;
	font-size: 12px;
}

.ds-notification-link {
	position: relative;
}

.ds-notification-count {
	position: absolute;
	top: 2px;
	right: 1px;
	display: grid;
	min-width: 17px;
	height: 17px;
	place-items: center;
	padding: 0 4px;
	border: 2px solid var(--bg, #0b0b0d);
	border-radius: 9px;
	background: var(--accent, #ff3d52);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
}

.ds-notification-list {
	display: grid;
	max-width: 900px;
}

.ds-notification-item {
	display: grid;
	grid-template-columns: 44px 1fr 100px;
	align-items: center;
	gap: 13px;
	padding: 14px;
	border-bottom: 1px solid var(--ds-border);
}

.ds-notification-item.is-unread {
	background: color-mix(in srgb, var(--ds-accent) 7%, transparent);
}

.ds-notification-item > img:first-child {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

.ds-notification-item > img:last-child {
	width: 100px;
	height: 56px;
	border-radius: 5px;
	object-fit: cover;
}

.ds-notification-item p,
.ds-notification-item time {
	margin: 0;
}

.ds-notification-item p {
	font-size: 14px;
}

.ds-notification-item time {
	color: var(--ds-muted);
	font-size: 11px;
}

.ds-report-dialog {
	width: min(92vw, 520px);
	padding: 0;
	border: 1px solid var(--border, #2b2c32);
	border-radius: 8px;
	background: var(--surface, #151518);
	color: var(--text, #f6f7f9);
}

.ds-report-dialog::backdrop {
	background: rgba(0, 0, 0, .68);
}

.ds-report-form {
	padding: 20px;
}

.ds-report-form header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.ds-report-form header h2 {
	margin: 0;
	font-size: 21px;
}

.ds-report-form header button {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 28px;
	cursor: pointer;
}

.ds-report-form > div:last-child {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 17px;
}

.ds-channel-banner {
	position: relative;
	display: flex;
	min-height: 250px;
	align-items: flex-end;
	margin-bottom: 24px;
	padding: 24px;
	border-bottom: 5px solid var(--channel-accent, var(--accent, #ff3d52));
	border-radius: 8px;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 -130px 100px -60px rgba(0, 0, 0, .9);
}

.ds-channel-banner > div {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
	color: #fff;
}

.ds-channel-banner img {
	border: 3px solid #fff;
	border-radius: 50%;
}

.ds-channel-banner h1 {
	margin: 0;
	font-size: 30px;
}

.ds-core-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	max-width: 340px;
	padding: 12px 15px;
	border-radius: 7px;
	background: var(--text, #fff);
	color: var(--bg, #111);
	font-size: 13px;
	font-weight: 750;
}

.ds-progress-bar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	height: 3px;
	background: rgba(255, 255, 255, .28);
}

.ds-progress-bar span {
	display: block;
	height: 100%;
	background: var(--accent, #ff3d52);
}

@media (max-width: 760px) {
	.watch-actions {
		flex-wrap: wrap;
		overflow: visible;
	}

	.ds-playlist-popover {
		position: fixed;
		top: auto;
		right: 12px;
		bottom: 78px;
		left: 12px;
		width: auto;
		max-height: 50vh;
		overflow-y: auto;
	}

	.ds-stat-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ds-form-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ds-video-table__head {
		display: none;
	}

	.ds-video-table__row {
		grid-template-columns: 1fr auto;
	}

	.ds-video-table__row > :nth-child(3) {
		display: none;
	}

	.ds-create-playlist {
		grid-template-columns: 1fr;
	}

	.ds-notification-item {
		grid-template-columns: 40px 1fr;
	}

	.ds-notification-item > img:last-child {
		display: none;
	}
}

@media (max-width: 480px) {
	.ds-core-heading {
		align-items: flex-start;
		flex-direction: column;
		padding-top: 15px;
	}

	.ds-core-heading h1 {
		font-size: 28px;
	}

	.ds-stat-grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.ds-stat-grid > div,
	.ds-panel {
		padding: 15px;
	}

	.ds-performance-row {
		grid-template-columns: 1fr 55px;
	}

	.ds-performance-row > span {
		display: none;
	}
}
