.tts-btn {
	margin: 2px;
	padding: 8px 0;
	border-radius: 8px;
	border: none;
	background: #3367d6;
	color: #fff;
	font-size: 1.05em;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	box-shadow: 0 1px 2px #0001;
}
.tts-btn:active {
	background: #1a4480;
}
.tts-panel {
	position: fixed;
	left: 32px;
	bottom: 32px;
	z-index: 9999;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 6px 32px #3333;
	padding: 22px 26px 18px 26px;
	min-width: 260px;
	border: 1px solid #ccd8e0;
	display: flex;
	flex-direction: column;
	gap: 16px;
	opacity: 1;
	transition: opacity 0.3s, transform 0.25s, box-shadow 0.22s;
	font-size: 1em;
	animation: ttsPanelIn 0.4s;
}
 @keyframes ttsPanelIn {
 from {
transform: translateY(80px) scale(0.92);
opacity:0;
}
 to {
transform: none;
opacity:1;
}
}
.tts-panel.hide {
	display: none !important;
}
.tts-panel.minimized {
	min-width: unset;
	width: 52px;
	height: 52px;
	padding: 0;
	background: #3367d6;
	cursor: pointer;
	box-shadow: 0 2px 10px #2223;
	left: 32px;
	bottom: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.17s;
}
.tts-panel.minimized .tts-mini-icon {
	display: block;
	color: #fff;
	font-size: 2em;
}
.tts-panel.minimized *:not(.tts-mini-icon) {
	display: none;
}
.tts-panel-title {
	font-size: 1.11em;
	font-weight: bold;
	color: #2b519e;
	margin-bottom: 2px;
}
.tts-panel-progress {
	width: 100%;
	height: 8px;
	background: #e3ebfc;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 6px;
}
.tts-panel-progress-bar {
	height: 100%;
	background: #a4c3f6;
	width: 0%;
	border-radius: 6px;
	transition: width 0.25s;
}
.tts-panel-btn-row {
	display: flex;
	gap: 7px;
}
.tts-panel-status {
	font-size: 0.97em;
	color: #6e7bb5;
	margin-top: 2px;
}
.tts-panel-close {
	position: absolute;
	right: 10px;
	top: 7px;
	background: none;
	border: none;
	color: #779;
	font-size: 1.2em;
	cursor: pointer;
}
.tts-panel-close:hover {
	color: #b33;
}
.tts-mini-icon {
	display: none;
}
.tts-hint-icon {
	position: absolute;
	left: 11px;
	top: 10px;
	cursor: pointer;
	font-size: 1.3em;
	color: #357abd;
	background: none;
	border: none;
	outline: none;
	z-index: 100;
}
/* Sabit kısayol butonu */
.shortcut-info-btn {
	position: fixed;
	right: 24px;
	bottom: 32px;
	z-index: 10001;
	background: #3367d6;
	color: #fff;
	border-radius: 12px;
	border: none;
	padding: 11px 19px 10px 15px;
	font-size: 1.11em;
	box-shadow: 0 2px 18px #2222;
	cursor: pointer;
	transition: background 0.15s;
	display: flex;
	align-items: center;
	gap: 0.5em;
}
.shortcut-info-btn:hover {
	background: #1a4480;
}
.tts-hint-popup {
	position: fixed;
	right: 92px;
	bottom: 82px;
	z-index: 11001;
	background: #fffbe7;
	color: #2b519e;
	border: 1px solid #ffe46b;
	border-radius: 9px;
	padding: 13px 20px 13px 17px;
	min-width: 190px;
	box-shadow: 0 2px 16px #ffe77e44;
	font-size: 1em;
	display: none;
}
.tts-hint-popup.open {
	display: block !important;
}
.tts-hint-popup ul {
	margin: 5px 0 0 0;
	padding-left: 20px;
	font-size: 0.97em;
}
.tts-hint-popup button {
	margin-top: 8px;
	padding: 4px 10px;
	background: #ffe46b;
	color: #2b519e;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.97em;
}
.tts-hint-popup button:hover {
	background: #fff599;
}
/* Sesli Komut Butonu */
.voice-cmd-btn {
	position: fixed;
	right: 22px;
	top: 24px;
	z-index: 11001;
	background: #fff;
	color: #3367d6;
	border: 2px solid #3367d6;
	border-radius: 12px;
	padding: 8px 15px 8px 12px;
	font-size: 1.13em;
	font-weight: 500;
	box-shadow: 0 2px 18px #2222;
	cursor: pointer;
	transition: background 0.15s, color 0.13s;
	display: flex;
	align-items: center;
	gap: 0.4em;
}
.voice-cmd-btn.active, .voice-cmd-btn:active {
	background: #eaf2fe;
	color: #183c7b;
	border-color: #1a4480;
}

@media (max-width:700px) {
.tts-panel, .tts-panel.minimized {
	left: 4vw;
	bottom: 14px;
}
.shortcut-info-btn {
	right: 6vw;
	bottom: 16px;
	font-size: 1em;
	padding: 8px 11vw 7px 10px;
}
.tts-hint-popup {
	right: 11vw;
	bottom: 67px;
}
.voice-cmd-btn {
	right: 6vw;
	top: 10px;
}
}
.tts-word {
	transition: background 0.13s;
	border-radius: 4px;
}
.tts-word.active-word {
	background: #ffe46b;
}
.tts-vurgulu {
	background: #fffae3;
	border-radius: 8px;
	box-shadow: 0 0 0 2px #ffe46b;
	transition: background 0.3s;
}

/* Koyu mod */
@media (prefers-color-scheme: dark) {
body {
	background: #15181c;
}
.tts-panel {
	background: #232839;
	color: #eee;
	border-color: #3a4460;
	box-shadow: 0 8px 32px #0008;
}
.tts-panel-title {
	color: #b5cdfd;
}
.tts-panel-progress {
	background: #293047;
}
.tts-panel-progress-bar {
	background: #5088fc;
}
.tts-btn {
	background: #3664bc;
	color: #fff;
}
.tts-btn:active {
	background: #193466;
}
.tts-panel-status {
	color: #b2b8d2;
}
.tts-panel.minimized {
	background: #3664bc;
}
.tts-panel-close {
	color: #9bb;
}
.tts-hint-popup {
	background: #232839;
	color: #e2e6fa;
	border-color: #ffe46b;
}
.tts-hint-popup button {
	background: #ffe46b;
	color: #232839;
}
.tts-hint-popup button:hover {
	background: #ffe599;
}
.shortcut-info-btn {
	background: #3664bc;
	color: #fff;
}
.shortcut-info-btn:hover {
	background: #193466;
}
.voice-cmd-btn {
	background: #293047;
	color: #b5cdfd;
	border-color: #5088fc;
}
.voice-cmd-btn.active, .voice-cmd-btn:active {
	background: #1a2335;
	color: #ffe46b;
	border-color: #ffe46b;
}
}
