/*
 * Dede Medya modern skin
 *
 * This file is an overlay only. The original chat functions, panels and
 * theme files remain untouched so the legacy backend can keep working.
 */
:root {
	--dede-ink: #101827;
	--dede-muted: #6d7890;
	--dede-card: rgba(255, 255, 255, 0.94);
	--dede-line: rgba(126, 143, 173, 0.22);
	--dede-primary: #6d55f5;
	--dede-primary-dark: #4a35c7;
	--dede-cyan: #17b7c8;
	--dede-shadow: 0 22px 55px rgba(10, 20, 42, 0.24);
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
}

body {
	color: var(--dede-ink);
	font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at 9% 10%, rgba(109, 85, 245, 0.21), transparent 31%),
		radial-gradient(circle at 92% 8%, rgba(23, 183, 200, 0.18), transparent 29%),
		linear-gradient(135deg, #eef3ff 0%, #f7fbff 52%, #edf8fb 100%);
}

#external_wrap {
	min-height: 100vh;
	background: transparent !important;
}

#header {
	height: 78px;
	padding: 12px 22px;
}

#inner_header {
	max-width: 1240px;
	height: 54px;
	margin: 0 auto;
	padding: 0 18px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	border: 1px solid rgba(255, 255, 255, 0.58);
	border-radius: 18px;
	background-color: rgba(255, 255, 255, 0.66) !important;
	background-size: auto 48px !important;
	background-position: 18px center !important;
	box-shadow: 0 8px 30px rgba(33, 51, 93, 0.08);
	backdrop-filter: blur(16px);
}

#inner_header::after {
	content: "DEDE MEDYA  •  GÜVENLİ SOHBET ALANI";
	color: var(--dede-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.13em;
	white-space: nowrap;
}

#dede_left_showcase {
	position: fixed;
	left: 22px;
	top: 164px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 190px;
	z-index: 120;
}

.dede_live_badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	width: max-content;
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.62);
	color: #56647f;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	box-shadow: 0 8px 20px rgba(33, 51, 93, 0.08);
}

.dede_live_badge span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff4f78;
	box-shadow: 0 0 0 0 rgba(255, 79, 120, 0.7);
	animation: dede-live-pulse 1.8s infinite;
}

.dede_showcase_card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.62);
	box-shadow: 0 13px 30px rgba(33, 51, 93, 0.1);
	color: var(--dede-ink);
	text-decoration: none;
	backdrop-filter: blur(14px);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dede_showcase_card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 34px rgba(33, 51, 93, 0.16);
}

.dede_showcase_card i {
	width: 31px;
	height: 31px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--dede-primary), var(--dede-cyan));
	color: #fff;
}

.dede_showcase_card strong {
	font-size: 12px;
	letter-spacing: 0.04em;
}

.dede_showcase_card small {
	color: var(--dede-muted);
	font-size: 11px;
}

.dede_showcase_live i {
	background: linear-gradient(135deg, #ff4f78, #ff9d55);
}

.dede_showcase_note i {
	background: linear-gradient(135deg, #6d55f5, #2687e8);
}

@keyframes dede-live-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 79, 120, 0.7); }
	50% { box-shadow: 0 0 0 7px rgba(255, 79, 120, 0); }
}

#dede_quick_admin {
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	background: linear-gradient(135deg, var(--dede-primary), var(--dede-cyan));
	color: #fff;
	font-size: 21px;
	box-shadow: 0 8px 20px rgba(74, 53, 199, 0.28);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#dede_quick_help {
	position: relative;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	background: linear-gradient(135deg, #17b7c8, #2687e8);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 8px 20px rgba(20, 126, 208, 0.26);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#dede_quick_help:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(20, 126, 208, 0.36);
}

#dede_quick_help span {
	position: absolute;
	right: 56px;
	top: 8px;
	padding: 7px 10px;
	border-radius: 8px;
	background: #101827;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(5px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

#dede_quick_help:hover span {
	opacity: 1;
	transform: translateX(0);
}

#dede_quick_admin:hover {
	transform: translateY(-2px) rotate(12deg);
	box-shadow: 0 16px 32px rgba(74, 53, 199, 0.38);
}

#dede_quick_admin span {
	position: absolute;
	right: 56px;
	top: 8px;
	padding: 7px 10px;
	border-radius: 8px;
	background: #101827;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateX(5px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

#dede_quick_admin:hover span {
	opacity: 1;
	transform: translateX(0);
}

#container_chat {
	width: min(1240px, calc(100% - 34px));
	height: calc(100vh - 250px);
	min-height: 440px;
	margin: 10px auto 0;
	margin-bottom: 64px;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.82);
	border-radius: 26px;
	background: var(--dede-card) !important;
	box-shadow: var(--dede-shadow);
	backdrop-filter: blur(18px);
}

#wrap_chat {
	display: flex;
	flex-direction: column;
	min-height: 0;
	border-radius: 18px;
	overflow: hidden;
}

#top_chat_container,
#wrap_topic {
	flex: 0 0 auto;
}

#top_chat_container {
	padding: 4px 4px 0;
}

#container_input {
	padding: 9px;
	border: 1px solid var(--dede-line);
	border-radius: 16px;
	background: #f8faff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#main_input {
	height: 46px;
	margin: 0;
}

#content {
	color: var(--dede-ink) !important;
	font-size: 15px;
	font-weight: 500;
	background: #fff !important;
	border: 1px solid var(--dede-line) !important;
	border-radius: 12px;
}

#content::placeholder {
	color: #9aa5bb;
}

#emo_item,
#send_image {
	color: var(--dede-primary) !important;
	background: transparent !important;
	border: 0 !important;
}

#submit_button {
	min-width: 68px;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--dede-primary), var(--dede-cyan)) !important;
	box-shadow: 0 9px 18px rgba(91, 76, 220, 0.22) !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#submit_button:hover {
	transform: translateY(-1px);
	box-shadow: 0 13px 24px rgba(91, 76, 220, 0.3) !important;
}

#warp_show_chat {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
	overflow: hidden;
	margin-top: 8px;
	padding: 5px;
	border: 1px solid var(--dede-line);
	border-radius: 18px;
	background: rgba(246, 249, 255, 0.75);
}

#dede_room_stage {
	display: none;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	margin: 0 4px 8px;
	padding: 11px 13px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(109, 85, 245, 0.94), rgba(23, 183, 200, 0.9));
	color: #fff;
	box-shadow: 0 12px 25px rgba(74, 53, 199, 0.18);
}

#dede_room_stage.is-feature {
	align-items: stretch;
	flex-direction: column;
	gap: 9px;
	flex: 0 1 auto;
	max-height: none;
	overflow: visible;
	min-height: 0;
	padding: 12px;
}

.dede_stage_top {
	display: flex;
	align-items: center;
	gap: 12px;
}

#dede_room_stage.is-visible {
	display: flex;
}

.dede_stage_icon {
	display: grid;
	place-items: center;
	flex: 0 0 39px;
	width: 39px;
	height: 39px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	font-size: 20px;
}

.dede_stage_copy {
	min-width: 0;
}

.dede_stage_copy strong,
.dede_stage_copy span {
	display: block;
}

.dede_stage_copy strong {
	font-size: 14px;
}

.dede_stage_copy span {
	margin-top: 3px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
}

.dede_stage_queue {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-left: auto;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 10px;
	background: rgba(12, 24, 48, 0.18);
	font-size: 10px;
	text-align: right;
}

.dede_stage_queue span {
	color: rgba(255, 255, 255, 0.8);
	white-space: nowrap;
}

.dede_stage_queue b {
	font-size: 10px;
	white-space: nowrap;
}

.dede_feature_head,
.dede_queue_head,
.dede_video_now_head,
.dede_party_live {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.dede_feature_head {
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(12, 24, 48, 0.18);
}

.dede_feature_head span,
.dede_feature_head small {
	font-size: 10px;
}

.dede_feature_head span {
	font-weight: 800;
}

.dede_feature_head small {
	color: rgba(255, 255, 255, 0.78);
}

.dede_feature_form {
	display: grid;
	grid-template-columns: minmax(160px, 1.3fr) minmax(130px, 1fr) auto;
	gap: 7px;
}

.dede_feature_form input,
.dede_feature_form select {
	min-width: 0;
	width: 100%;
	padding: 9px 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 9px;
	outline: 0;
	background: rgba(255, 255, 255, 0.93);
	color: #17213a;
	font: inherit;
	font-size: 11px;
}

.dede_feature_form button,
.dede_party_live button {
	padding: 8px 12px;
	border: 0;
	border-radius: 9px;
	background: #101827;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.dede_feature_form button:hover,
.dede_party_live button:hover {
	background: #ff4f78;
}

.dede_feature_form button:disabled {
	opacity: 0.55;
	cursor: wait;
}

.dede_feature_message {
	padding: 7px 9px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 10px;
	font-weight: 700;
}

.dede_feature_message.is-good {
	background: rgba(128, 232, 193, 0.2);
	color: #e7fff4;
}

.dede_feature_message.is-error {
	background: rgba(255, 79, 120, 0.22);
	color: #fff2f5;
}

.dede_video_queue,
.dede_party_status {
	padding: 8px;
	border-radius: 10px;
	background: rgba(12, 24, 48, 0.18);
}

.dede_queue_head {
	margin-bottom: 6px;
	font-size: 10px;
}

.dede_queue_head span {
	color: rgba(255, 255, 255, 0.78);
}

.dede_queue_item {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px;
	padding: 5px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 10px;
}

.dede_queue_no {
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.2);
	font-weight: 900;
}

.dede_queue_title {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dede_queue_item small,
.dede_video_now_head span,
.dede_party_live small {
	color: rgba(255, 255, 255, 0.7);
	font-size: 9px;
}

.dede_video_now {
	margin-bottom: 8px;
}

.dede_video_now_head {
	margin-bottom: 6px;
	font-size: 10px;
}

.dede_video_skip {
	margin-left: auto;
	padding: 4px 8px;
	border: 0;
	border-radius: 7px;
	background: rgba(16, 24, 39, 0.7);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	cursor: pointer;
}

.dede_video_skip:hover {
	background: #ff4f78;
}

.dede_video_embed {
	position: relative;
	width: min(100%, 920px);
	height: min(518px, 56.25vw);
	margin: 0 auto;
	padding-top: 0;
	overflow: hidden;
	border-radius: 9px;
	background: #101827;
}

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

.dede_feature_muted {
	display: block;
	color: rgba(255, 255, 255, 0.72);
	font-size: 10px;
}

.dede_party_empty {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
}

.dede_party_empty i {
	font-size: 18px;
}

.dede_party_empty b,
.dede_party_empty span {
	display: block;
}

.dede_party_empty span {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.72);
}

.dede_party_live > div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.dede_party_live small {
	display: block;
	margin-left: 4px;
}

.dede_party_pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #80e8c1;
	box-shadow: 0 0 0 5px rgba(128, 232, 193, 0.14);
}

.dede_party_joined {
	color: #80e8c1;
	font-size: 10px;
	font-weight: 800;
}

#container_show_chat,
#inside_wrap_chat,
#show_chat {
	border-radius: 14px;
}

#container_show_chat {
	flex: 1 1 auto;
	height: auto !important;
	min-height: 120px;
	overflow: hidden;
}

#inside_wrap_chat,
#show_chat {
	height: 100%;
}

#show_chat {
	padding: 8px 5px;
	background: #f9fbff !important;
	color: var(--dede-ink) !important;
}

#show_chat .ch_logs {
	margin: 4px 7px;
	padding: 9px 12px;
	border: 1px solid rgba(137, 151, 182, 0.14);
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.82);
	box-shadow: 0 4px 14px rgba(38, 54, 93, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#show_chat .ch_logs:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(38, 54, 93, 0.1);
}

#show_chat .me,
#show_chat .global,
#show_chat .private,
#show_chat .seen {
	border-left: 3px solid var(--dede-primary);
	background: #fff;
}

.chat_avatar_wrap,
.chat_avatar_wrap2 {
	border: 2px solid #fff;
	box-shadow: 0 4px 12px rgba(30, 42, 76, 0.16);
}

.chat_name p {
	font-weight: 700;
}

#room_topic {
	padding: 9px 12px 4px;
	color: var(--dede-muted);
	font-size: 12px;
	font-weight: 700;
}

#wrap_footer {
	background: transparent !important;
	pointer-events: none;
}

#menu_container_inside {
	width: min(1240px, calc(100% - 34px));
	pointer-events: auto;
	display: flex;
	align-items: center;
}

.background_menu_footer {
	border: 1px solid rgba(255, 255, 255, 0.7) !important;
	border-radius: 18px 18px 0 0;
	background: rgba(17, 27, 49, 0.94) !important;
	box-shadow: 0 -12px 32px rgba(18, 31, 58, 0.18);
	backdrop-filter: blur(18px);
}

#dede_bottom_quick_actions {
	float: none;
	order: 2;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	margin-right: 8px;
}

#menu_container_inside #my_menu {
	order: 1;
	flex: 1 1 auto;
	width: auto;
	float: none;
}

#dede_bottom_quick_actions button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	width: auto;
	min-width: 88px;
	height: 42px;
	padding: 0 12px;
	border-radius: 13px;
}

#dede_bottom_quick_actions button span {
	position: static;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.box_menu {
	width: 50px;
	height: 48px;
	font-size: 26px;
	color: #dce6ff !important;
	transition: color 0.18s ease, transform 0.18s ease;
}

.box_menu:hover {
	color: #fff !important;
	transform: translateY(-2px);
}

.menu_drop,
.panels,
.panelthree {
	border: 1px solid rgba(255, 255, 255, 0.18) !important;
	border-radius: 18px !important;
	background: rgba(17, 27, 49, 0.97) !important;
	box-shadow: 0 20px 48px rgba(7, 14, 30, 0.3) !important;
	backdrop-filter: blur(18px);
}

.panels {
	color: #edf3ff;
}

.panel_element,
.top_option {
	border-color: rgba(255, 255, 255, 0.12) !important;
}

.sub_button,
.selected_element,
.hover_element:hover {
	border: 0 !important;
	border-radius: 10px !important;
	background: linear-gradient(135deg, var(--dede-primary), var(--dede-primary-dark)) !important;
	color: #fff !important;
}

.sub_button:hover,
.selected_element:hover {
	filter: brightness(1.08);
}

.background_box {
	border-color: var(--dede-line) !important;
	border-radius: 10px;
}

#player_content {
	margin-left: 6px;
}

/* Persistent, narrow online-members rail. It uses the legacy user endpoint
 * so the existing permissions, names, avatars and moderator actions remain intact. */
#dede_online_sidebar {
	position: fixed;
	top: 92px;
	right: 18px;
	bottom: 72px;
	width: 274px;
	padding: 13px;
	z-index: 3;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 20px;
	background: rgba(17, 27, 49, 0.93);
	box-shadow: 0 18px 42px rgba(16, 24, 48, 0.24);
	backdrop-filter: blur(18px);
	display: flex;
	flex-direction: column;
	transform: translateX(calc(100% + 24px));
	transition: transform 0.24s ease, opacity 0.24s ease;
	opacity: 0;
	overflow: hidden;
}

#dede_online_sidebar.is-open {
	transform: translateX(0);
	opacity: 1;
}

.dede_online_header,
.dede_online_summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dede_online_header strong {
	display: block;
	margin-top: 4px;
	color: #fff;
	font-size: 15px;
}

.dede_online_kicker {
	color: #80e8c1;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.12em;
}

.dede_online_kicker i {
	font-size: 8px;
	color: #55e7a5;
}

#dede_online_close {
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.1);
	color: #dce6ff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

#dede_online_close:hover {
	background: rgba(255, 79, 120, 0.75);
	color: #fff;
}

.dede_online_summary {
	gap: 7px;
	margin: 12px 0 9px;
	padding: 8px 9px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.07);
	color: #b9c8e5;
	font-size: 10px;
}

.dede_online_room {
	color: #7ddfea;
	white-space: nowrap;
}

.dede_online_body {
	flex: 1 1 auto;
	height: auto;
	min-height: 120px;
	overflow-y: auto;
	padding-right: 3px;
}

.dede_sidebar_section_title {
	margin: 9px 2px 5px;
	color: #8fe8ed;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dede_sidebar_section_title i {
	margin-right: 4px;
}

.dede_rooms_title {
	margin-top: 12px;
}

.dede_room_lobby {
	flex: 0 0 auto;
	max-height: 245px;
	overflow-y: auto;
	padding-right: 3px;
}

.dede_room_lobby #container_user_room {
	width: 100%;
}

.dede_room_lobby .roombutton {
	position: relative;
	margin: 4px 0;
	padding: 8px 9px;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.06);
	color: #f5f8ff;
	cursor: pointer;
	transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.dede_room_lobby .roombutton:hover,
.dede_room_lobby .roombutton.hoverroom,
.dede_room_lobby .roombutton.selected_element {
	transform: translateX(-2px);
	border-color: rgba(125, 223, 234, 0.35);
	background: linear-gradient(135deg, rgba(109, 85, 245, 0.4), rgba(23, 183, 200, 0.2));
}

.dede_room_lobby .room_name p,
.dede_room_lobby .room_count p {
	margin: 0;
}

.dede_room_lobby .room_name p {
	font-size: 12px;
	font-weight: 800;
}

.dede_room_lobby .room_count {
	margin-top: 3px;
	color: #aabbd8;
	font-size: 10px;
}

.dede_room_lobby .room_userin {
	float: right;
	color: #80e8c1;
	font-weight: 900;
}

.dede_room_lobby .room_type {
	margin-right: 4px;
	color: #9edeea;
	font-size: 9px;
}

.dede_online_body #container_user {
	width: 100%;
}

.dede_online_body #container_user > ul,
.dede_online_body > ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dede_online_body .users_option {
	margin: 4px 0;
	padding: 0;
	list-style: none;
}

.dede_online_body .open_user {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 5px 7px;
	border: 1px solid transparent;
	border-radius: 12px;
	color: #eef4ff;
	background: transparent;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.dede_online_body .open_user:hover {
	transform: translateX(-2px);
	border-color: rgba(125, 223, 234, 0.26);
	background: linear-gradient(135deg, rgba(109, 85, 245, 0.3), rgba(23, 183, 200, 0.18));
}

.dede_online_body .avatar_userlist {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	object-fit: cover;
}

.dede_online_body .usertarget {
	min-width: 0;
	margin: 0;
	color: #f7faff;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dede_online_body .away::before,
.dede_online_body .usertarget:not(.away)::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: #58e6a8;
	vertical-align: middle;
}

.dede_online_body .away::before {
	background: #ffc857;
}

.dede_online_loading {
	padding: 20px 4px;
	color: #a9b9d6;
	font-size: 11px;
	text-align: center;
}

#dede_online_toggle {
	position: fixed;
	right: 18px;
	bottom: 83px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 46px;
	height: 46px;
	z-index: 4;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 15px;
	background: linear-gradient(135deg, var(--dede-primary), var(--dede-cyan));
	color: #fff;
	box-shadow: 0 12px 26px rgba(74, 53, 199, 0.3);
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#dede_online_toggle:hover {
	transform: translateY(-3px);
	box-shadow: 0 17px 32px rgba(74, 53, 199, 0.38);
}

#dede_online_toggle span {
	min-width: 15px;
	font-size: 10px;
	font-weight: 800;
}

@media screen and (min-width: 1451px) {
	#dede_online_sidebar {
		transform: translateX(0);
		opacity: 1;
	}

	#dede_online_toggle {
		display: none;
	}

	#dede_online_sidebar.is-open ~ #wrap_footer,
	#dede_online_sidebar.is-open ~ #wrap_footer + .panels {
		/* Keep the fixed rail visually separate from legacy panels. */
	}
}

@media screen and (max-width: 1450px) {
	#dede_online_sidebar {
		top: 86px;
		bottom: 62px;
		width: min(274px, calc(100vw - 28px));
	}
	#dede_online_toggle {
		right: 12px;
		bottom: 68px;
	}
}

@media screen and (max-width: 768px) {
	#dede_online_sidebar {
		right: 8px;
		bottom: 58px;
	}
	#dede_online_toggle {
		right: 10px;
		bottom: 62px;
		width: 42px;
		height: 42px;
	}
}

@media screen and (max-width: 768px) {
	#header {
		height: 66px;
		padding: 8px 10px;
	}

	#inner_header {
		height: 50px;
		padding-right: 10px;
		background-size: auto 40px !important;
		background-position: 10px center !important;
	}

	#inner_header::after {
		font-size: 8px;
		letter-spacing: 0.06em;
	}

	#dede_quick_admin {
		width: 42px;
		height: 42px;
		font-size: 18px;
	}

	#dede_quick_help {
		width: 42px;
		height: 42px;
		font-size: 17px;
	}

	#dede_bottom_quick_actions {
		gap: 5px;
		margin-right: 2px;
	}

	#dede_bottom_quick_actions button {
		flex-basis: 38px;
		width: 38px;
		min-width: 38px;
		height: 38px;
		padding: 0;
	}

	#dede_bottom_quick_actions button span {
		display: none;
	}

	#container_chat {
		width: calc(100% - 16px);
		height: calc(100vh - 190px);
		min-height: 360px;
		margin-top: 4px;
		margin-bottom: 56px;
		padding: 8px;
		border-radius: 18px;
	}

	#menu_container_inside {
		width: calc(100% - 16px);
	}

	.background_menu_footer {
		border-radius: 15px 15px 0 0;
	}

	#show_chat .ch_logs {
		margin-left: 3px;
		margin-right: 3px;
	}

	.dede_feature_form {
		grid-template-columns: 1fr;
	}

	.dede_feature_head,
	.dede_queue_head,
	.dede_video_now_head,
	.dede_party_live {
		align-items: flex-start;
		flex-direction: column;
	}

	.dede_feature_head small,
	.dede_party_empty span {
		margin-left: 0;
	}
}

@media screen and (max-width: 420px) {
	#inner_header::after {
		display: none;
	}

	#main_input {
		height: 42px;
	}

	#submit_button {
		min-width: 54px;
	}

	#warp_show_chat {
		height: auto;
	}
}

@media screen and (max-width: 1450px) {
	#dede_left_showcase {
		display: none;
	}
}

/* Modern emoji and quick-message tools */
#main_emoticon {
	height: auto;
	min-height: 36px;
	padding: 5px 7px;
	border-radius: 13px 13px 0 0;
	background: linear-gradient(135deg, #111b31, #24365b) !important;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-bottom: 0;
}

#main_emoticon .bar_options {
	position: relative;
	height: 28px;
	padding: 0 3px;
}

#main_emoticon .bar_options_item,
#main_emoticon .dede_phrase_toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 29px;
	height: 28px;
	margin: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: #dce6ff;
	cursor: pointer;
	transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

#main_emoticon .bar_options_item:hover,
#main_emoticon .dede_phrase_toggle:hover,
#main_emoticon .text_item.sel_item {
	background: rgba(109, 85, 245, 0.14);
	color: #fff;
	transform: translateY(-1px);
}

#main_emoticon .dede_phrase_toggle {
	width: auto;
	padding: 0 8px;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	color: #dce6ff;
}

#dede_quick_phrases {
	position: absolute;
	left: 4px;
	bottom: calc(100% + 9px);
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 218px;
	padding: 9px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 15px;
	background: rgba(17, 27, 49, 0.97);
	box-shadow: 0 16px 34px rgba(10, 20, 42, 0.28);
	backdrop-filter: blur(16px);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
	z-index: 10002;
}

#dede_quick_phrases.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#dede_quick_phrases .dede_phrase {
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.08);
	color: #f3f7ff;
	font-family: inherit;
	font-size: 12px;
	text-align: left;
	cursor: pointer;
}

#dede_quick_phrases .dede_phrase:hover {
	background: linear-gradient(135deg, var(--dede-primary), var(--dede-cyan));
	color: #fff;
}

#list_emoticon {
	width: min(292px, calc(100vw - 24px)) !important;
	padding: 7px;
	border: 1px solid rgba(255, 255, 255, 0.72) !important;
	border-radius: 18px !important;
	background: rgba(17, 27, 49, 0.97) !important;
	box-shadow: 0 18px 42px rgba(10, 20, 42, 0.3) !important;
	backdrop-filter: blur(18px);
}

#smile_header {
	height: 31px;
	padding: 3px 6px;
	border-radius: 11px;
	background: linear-gradient(135deg, rgba(109, 85, 245, 0.9), rgba(23, 183, 200, 0.86)) !important;
	color: #fff;
}

#smile_header .lock_sm,
#smile_header .close_sm {
	margin: 0;
	width: 50%;
	font-size: 15px;
}

#smile_header .close_sm {
	padding-right: 2px;
}

#smile_content {
	height: 300px !important;
	margin-top: 6px;
	padding: 7px;
	overflow: hidden;
	border: 0 !important;
	border-radius: 13px;
	background: rgba(248, 251, 255, 0.96) !important;
}

#emo_list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
	gap: 5px;
	padding: 3px;
	height: 112px !important;
	overflow-y: auto;
}

#emo_list .emoticon {
	display: grid;
	place-items: center;
	min-height: 39px;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

#emo_list .emoticon:hover {
	background: rgba(109, 85, 245, 0.12);
	transform: translateY(-2px);
}

#list_emoticon img {
	float: none;
	width: 24px;
	height: 24px;
	margin: 0;
	transition: transform 0.18s ease;
}

#emo_list .emoticon:hover img {
	animation: dede-emoji-bounce 0.62s ease;
}

.emo_chat {
	transform-origin: center bottom;
	animation: dede-sent-emoji 2.2s ease-in-out infinite;
}

@keyframes dede-emoji-bounce {
	0%, 100% { transform: scale(1) rotate(0); }
	35% { transform: scale(1.28) rotate(-7deg); }
	70% { transform: scale(1.08) rotate(6deg); }
}

@keyframes dede-sent-emoji {
	0%, 100% { transform: translateY(0) rotate(0); }
	45% { transform: translateY(-2px) rotate(-2deg); }
	70% { transform: translateY(0) rotate(2deg); }
}

.dede_unicode_title {
	padding: 5px 4px 2px;
	color: #6d7890;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

#dede_unicode_emojis {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
	gap: 3px;
	height: 150px;
	overflow-y: auto;
	padding: 2px;
}

.dede_unicode_emoji {
	display: grid;
	place-items: center;
	width: 100%;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.dede_unicode_emoji:hover {
	background: rgba(109, 85, 245, 0.14);
	transform: scale(1.2) translateY(-2px);
}

#content {
	background: rgba(244, 248, 255, 0.98) !important;
	border: 1px solid rgba(130, 149, 190, 0.25) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#dede_admin_ad_area {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 86%;
	margin: 12px auto 2px;
	padding: 12px 13px;
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 15px;
	background: linear-gradient(135deg, rgba(109, 85, 245, 0.28), rgba(23, 183, 200, 0.18));
	box-shadow: 0 10px 24px rgba(6, 14, 31, 0.16);
}

.dede_admin_ad_icon {
	display: grid;
	place-items: center;
	flex: 0 0 34px;
	height: 34px;
	border-radius: 11px;
	background: linear-gradient(135deg, #ff4f78, #ff9d55);
	color: #fff;
}

#dede_admin_ad_area strong,
#dede_admin_ad_area span {
	display: block;
}

#dede_admin_ad_area strong {
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.04em;
}

#dede_admin_ad_area span {
	margin-top: 3px;
	color: #c8d4ec;
	font-size: 10px;
	line-height: 1.35;
}

@media screen and (max-width: 420px) {
	#dede_left_showcase {
		display: none;
	}
	#main_emoticon .dede_phrase_toggle span {
		display: none;
	}

	#dede_quick_phrases {
		left: auto;
		right: 0;
		width: min(218px, calc(100vw - 24px));
	}
}
