/* Article meta toolbar + listen player — matches Goreto page styling */

.goreto-article-meta-bar {
	background: #fff;
	border-top: 1px solid #e8ecf1;
	border-bottom: 1px solid #e8ecf1;
	padding: 14px 0 16px;
	box-shadow: none;
}

.goreto-article-meta-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.goreto-article-meta-bar__author {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex-shrink: 0;
}

.goreto-article-meta-bar__avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eef4ff;
	color: var(--rr-heading-primary, #00043a);
	font-size: 16px;
}

.goreto-article-meta-bar__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.goreto-article-meta-bar__role {
	margin: 0 0 2px;
	font-family: var(--rr-ff-body);
	font-size: 12px;
	font-weight: var(--rr-fw-medium, 500);
	line-height: 1.3;
	color: rgba(0, 4, 58, 0.55);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.goreto-article-meta-bar__name {
	margin: 0 0 2px;
	font-family: var(--rr-ff-heading);
	font-size: 15px;
	font-weight: var(--rr-fw-sbold, 600);
	line-height: 1.3;
	color: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar__meta {
	margin: 0;
	font-family: var(--rr-ff-body);
	font-size: 12px;
	line-height: 1.3;
	color: rgba(0, 4, 58, 0.62);
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	white-space: nowrap;
	gap: 0;
}

.goreto-article-meta-bar__published {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.goreto-article-meta-bar__published i {
	font-size: 12px;
	flex-shrink: 0;
}

.goreto-article-meta-bar__dot {
	margin: 0 6px;
}

.goreto-article-meta-bar__tools {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin-left: auto;
	min-width: 0;
	max-width: 100%;
}

.goreto-article-meta-bar__toolbar {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	flex-shrink: 0;
}

.goreto-article-meta-bar__listen,
.goreto-article-meta-bar__font,
.goreto-article-meta-bar__share {
	flex-shrink: 0;
}

.goreto-article-meta-bar__player {
	min-width: 0;
	width: 100%;
	overflow: visible;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.goreto-article-meta-bar__player[hidden] {
	display: none !important;
}

.goreto-article-meta-bar__player .tts-player-container {
	width: 100%;
	overflow: visible;
}

/* Inline player — light site-matched styling */
.goreto-article-meta-bar .tts-player,
.goreto-article-meta-bar .tts-player--inline {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	position: relative;
}

.goreto-article-meta-bar .tts-player--inline .tts-header {
	display: none !important;
}

.goreto-article-meta-bar .tts-player--inline .tts-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	height: 40px;
	box-sizing: border-box;
	padding: 0 12px;
	border: 1px solid #e4e8ee;
	border-radius: 20px;
	background: #f4f6f9;
	box-shadow: none;
	min-width: 0;
	width: 100%;
}

@media (min-width: 768px) {
	.goreto-article-meta-bar__inner {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		gap: 12px;
	}

	.goreto-article-meta-bar__author {
		flex: 0 0 auto;
		max-width: none;
	}

	.goreto-article-meta-bar--blog .goreto-article-meta-bar__author {
		max-width: 320px;
	}

	.goreto-article-meta-bar__author-text {
		min-width: 0;
	}

	.goreto-article-meta-bar__name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.goreto-article-meta-bar__tools {
		flex: 0 1 auto;
		min-width: 0;
	}

	.goreto-article-meta-bar__tools {
		flex-direction: row;
		align-items: center;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-controls {
		gap: 6px;
		padding: 0 8px;
		min-width: 0;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-play-btn {
		width: 30px;
		height: 30px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-current-time {
		font-size: 11px;
		min-width: 32px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-duration {
		display: none;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-progress-container {
		flex: 1 1 40px;
		min-width: 40px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-speed-toggle {
		padding: 4px 8px;
		font-size: 11px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-control {
		gap: 4px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-btn {
		width: 26px;
		height: 26px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-slider {
		width: 36px;
	}
}

@media (max-width: 1023px) {
	.goreto-article-meta-bar__author {
		order: 1;
	}

	.goreto-article-meta-bar__tools {
		order: 2;
	}

	.goreto-article-meta-bar.is-player-open .goreto-article-meta-bar__player.is-open {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		order: 3;
		align-self: stretch;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.goreto-article-meta-bar__inner {
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	.goreto-article-meta-bar__tools {
		width: auto;
		max-width: none;
		margin-left: auto;
		align-self: center;
		align-items: flex-end;
		flex: 0 1 auto;
	}

	.goreto-article-meta-bar__toolbar {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		flex-wrap: nowrap;
		gap: clamp(6px, 1.8vw, 10px);
		width: auto;
		max-width: none;
		min-width: 0;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-slider {
		display: block;
		width: 48px;
	}
}

@media (min-width: 1024px) {
	.goreto-article-meta-bar__inner {
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
	}

	.goreto-article-meta-bar__author {
		order: 0;
		flex: 0 0 auto;
	}

	.goreto-article-meta-bar.is-player-open .goreto-article-meta-bar__player.is-open {
		order: 1;
		flex: 0 1 auto;
		min-width: 140px;
		max-width: 380px;
		width: auto;
		margin-left: auto;
	}

	.goreto-article-meta-bar__tools {
		order: 2;
		flex: 0 0 auto;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-end;
		width: auto;
		max-width: none;
		margin-left: 0;
	}

	.goreto-article-meta-bar:not(.is-player-open) .goreto-article-meta-bar__tools {
		margin-left: auto;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-controls {
		overflow: hidden;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-control,
	.goreto-article-meta-bar .tts-player--inline .tts-speed-control,
	.goreto-article-meta-bar .tts-player--inline .tts-play-btn {
		flex-shrink: 0;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-progress-container {
		flex: 1 1 auto;
		min-width: 40px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-slider {
		width: 40px;
		flex-shrink: 0;
	}
}

@media (min-width: 992px) {
	.goreto-article-meta-bar--blog .goreto-article-meta-bar__author {
		max-width: none;
	}
}

@media (max-width: 767px) {
	.goreto-article-meta-bar {
		padding: 12px 0 14px;
	}

	.goreto-article-meta-bar__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.goreto-article-meta-bar__author {
		width: 100%;
	}

	.goreto-article-meta-bar__meta {
		flex-wrap: wrap;
		white-space: normal;
	}

	.goreto-article-meta-bar__tools {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		align-self: stretch;
		align-items: flex-start;
	}

	.goreto-article-meta-bar__toolbar {
		display: flex;
		justify-content: flex-start;
		align-items: center;
		flex-wrap: nowrap;
		gap: 8px;
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.goreto-article-meta-bar__font {
		display: none !important;
	}

	.goreto-article-meta-bar__listen {
		padding: 0 14px;
		font-size: 13px;
		gap: 6px;
		height: 36px;
		flex-shrink: 0;
	}

	.goreto-article-meta-bar__share {
		gap: 6px;
		flex-shrink: 0;
	}

	.goreto-article-meta-bar__share-btn {
		width: 32px;
		height: 32px;
		font-size: 13px;
	}

	.goreto-article-meta-bar__player.is-open {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		align-self: stretch;
		order: 3;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-controls {
		flex-wrap: nowrap;
		height: 40px;
		padding: 0 10px;
		border-radius: 20px;
		gap: 6px;
		overflow: hidden;
		width: 100%;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-control {
		flex-shrink: 0;
		min-width: 0;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-progress-container {
		flex: 1 1 auto;
		min-width: 48px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-duration {
		display: none;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-slider {
		display: none;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-current-time {
		font-size: 11px;
		min-width: 30px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-play-btn {
		width: 28px;
		height: 28px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-speed-toggle {
		padding: 4px 8px;
		font-size: 11px;
	}

	.goreto-article-meta-bar .tts-player--inline .tts-volume-btn {
		width: 28px;
		height: 28px;
	}
}

/* Fallback panel player (non-inline contexts) */
.goreto-article-meta-bar .tts-player:not(.tts-player--inline) {
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 16px 18px;
	border: 1px solid #e4e8ee;
	border-radius: 12px;
	background: #f4f6f9;
	box-shadow: none;
	color: var(--rr-heading-primary, #00043a);
	overflow: visible;
	position: relative;
}

.goreto-article-meta-bar__listen {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 40px;
	box-sizing: border-box;
	padding: 0 16px;
	border: 1px solid #d8dee8;
	border-radius: 999px;
	background: #fff;
	color: var(--rr-heading-primary, #00043a);
	font-family: var(--rr-ff-heading);
	font-size: 14px;
	font-weight: var(--rr-fw-medium, 500);
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
	box-shadow: none;
	flex-shrink: 0;
}

.goreto-article-meta-bar__listen i {
	font-size: 11px;
}

.goreto-article-meta-bar__listen:hover,
.goreto-article-meta-bar__listen.is-active {
	border-color: var(--rr-theme-primary, #c5151e);
	color: var(--rr-theme-primary, #c5151e);
	background: #fff;
}

.goreto-article-meta-bar__listen.is-playing {
	border-color: var(--rr-theme-primary, #c5151e);
	color: var(--rr-theme-primary, #c5151e);
	background: #fff5f5;
}

.goreto-article-meta-bar__font {
	display: inline-flex;
	align-items: center;
	height: 40px;
	box-sizing: border-box;
	padding: 4px;
	border-radius: 999px;
	background: #f3f5f9;
	gap: 2px;
	flex-shrink: 0;
}

.goreto-article-meta-bar__font-btn {
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: rgba(0, 4, 58, 0.55);
	font-family: var(--rr-ff-heading);
	font-size: 13px;
	font-weight: var(--rr-fw-medium, 500);
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.goreto-article-meta-bar__font-btn.is-active {
	background: #fff;
	color: var(--rr-heading-primary, #00043a);
	border: 1px solid #d8dee8;
}

.goreto-article-meta-bar__share {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.goreto-article-meta-bar__share-btn {
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f3f5f9;
	color: rgba(0, 4, 58, 0.55);
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
	box-shadow: none;
}

.goreto-article-meta-bar__share-btn:hover {
	background: #eef4ff;
	color: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar .tts-header {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.goreto-article-meta-bar .tts-title {
	font-family: var(--rr-ff-heading);
	font-weight: var(--rr-fw-sbold, 600);
	font-size: 16px;
	color: var(--rr-heading-primary, #00043a);
	margin-right: 0;
}

.goreto-article-meta-bar .tts-subtitle {
	font-family: var(--rr-ff-body);
	color: rgba(0, 4, 58, 0.55);
	font-size: 13px;
}

.goreto-article-meta-bar .tts-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	position: relative;
}

.goreto-article-meta-bar .tts-play-btn {
	background: var(--rr-theme-primary, #c5151e);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	flex-shrink: 0;
	box-shadow: none;
	padding: 0;
}

.goreto-article-meta-bar .tts-play-btn::after {
	content: none !important;
	display: none !important;
}

.goreto-article-meta-bar .tts-play-btn i {
	font-size: 12px;
	line-height: 1;
	pointer-events: none;
}

.goreto-article-meta-bar .tts-play-btn:hover {
	background: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar .tts-play-btn.playing {
	background: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar .tts-current-time,
.goreto-article-meta-bar .tts-duration {
	font-family: var(--rr-ff-body);
	font-size: 13px;
	min-width: 40px;
	text-align: center;
	flex-shrink: 0;
	color: rgba(0, 4, 58, 0.72);
}

.goreto-article-meta-bar .tts-player--inline .tts-duration {
	display: none !important;
}

.goreto-article-meta-bar .tts-progress-container {
	flex: 1 1 120px;
	height: 4px;
	background: #d8dee8;
	border-radius: 999px;
	cursor: pointer;
	min-width: 80px;
}

.goreto-article-meta-bar .tts-progress-bar {
	height: 100%;
	background: var(--rr-theme-primary, #c5151e);
	border-radius: 999px;
	width: 0%;
	transition: width 0.1s linear;
}

.goreto-article-meta-bar .tts-speed-control {
	position: relative;
	flex-shrink: 0;
}

.goreto-article-meta-bar .tts-speed-toggle {
	cursor: pointer;
	background: #fff;
	border: 1px solid #d8dee8;
	padding: 6px 12px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--rr-heading-primary, #00043a);
	font-family: var(--rr-ff-body);
	font-size: 13px;
	line-height: 1;
}

.goreto-article-meta-bar .tts-speed-toggle i {
	font-size: 10px;
	color: rgba(0, 4, 58, 0.55);
	transition: transform 0.2s ease;
}

.goreto-article-meta-bar .tts-speed-control.is-open .tts-speed-toggle i {
	transform: rotate(180deg);
}

.goreto-article-meta-bar .tts-speed-options {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: auto;
	background: #fff;
	border: 1px solid #e4e8ee;
	border-radius: 10px;
	padding: 6px;
	min-width: 88px;
	z-index: 30;
	box-shadow: 0 8px 20px rgba(0, 4, 58, 0.08);
	display: none;
}

.goreto-article-meta-bar .tts-speed-options[hidden] {
	display: none !important;
}

.goreto-article-meta-bar .tts-speed-control.is-open .tts-speed-options {
	display: block !important;
}

.goreto-article-meta-bar .tts-speed-options button {
	display: block;
	width: 100%;
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	font-family: var(--rr-ff-body);
	font-size: 13px;
	line-height: 1.2;
	text-align: left;
	color: var(--rr-heading-primary, #00043a);
	cursor: pointer;
}

.goreto-article-meta-bar .tts-speed-options button:hover {
	background: #f3f5f9;
}

.goreto-article-meta-bar .tts-volume-control {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.goreto-article-meta-bar .tts-volume-btn {
	background: #fff;
	border: 1px solid #d8dee8;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	box-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar .tts-volume-btn i {
	font-size: 13px;
	pointer-events: none;
}

.goreto-article-meta-bar .tts-volume-slider {
	width: 72px;
	accent-color: var(--rr-theme-primary, #c5151e);
}

/* Inline player uses base meta bar TTS rules (light theme) */
.goreto-article-meta-bar .tts-player--inline .tts-play-btn {
	background: var(--rr-theme-primary, #c5151e);
	background-image: none;
	color: #fff;
}

.goreto-article-meta-bar .tts-player--inline .tts-play-btn:hover {
	background: var(--rr-heading-primary, #00043a);
	background-image: none;
}

.goreto-article-meta-bar .tts-player--inline .tts-play-btn.playing {
	background: var(--rr-heading-primary, #00043a);
	background-image: none;
}

.goreto-article-meta-bar .tts-player--inline .tts-current-time,
.goreto-article-meta-bar .tts-player--inline .tts-duration {
	color: rgba(0, 4, 58, 0.72);
}

.goreto-article-meta-bar .tts-player--inline .tts-progress-container {
	background: #d8dee8;
}

.goreto-article-meta-bar .tts-player--inline .tts-progress-bar {
	background: var(--rr-theme-primary, #c5151e);
}

.goreto-article-meta-bar .tts-player--inline .tts-speed-toggle {
	background: #fff;
	border: 1px solid #d8dee8;
	color: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar .tts-player--inline .tts-speed-toggle i {
	color: rgba(0, 4, 58, 0.55);
}

.goreto-article-meta-bar .tts-player--inline .tts-volume-btn {
	background: #fff;
	border: 1px solid #d8dee8;
	color: var(--rr-heading-primary, #00043a);
}

.goreto-article-meta-bar .tts-player--inline .tts-volume-slider {
	accent-color: var(--rr-theme-primary, #c5151e);
}

/* Font size scaling */
body.goreto-font-sm .goreto-article-readable,
body.goreto-font-sm .goreto-article-readable p,
body.goreto-font-sm .goreto-article-readable li {
	font-size: 15px;
	line-height: 1.65;
}

body.goreto-font-lg .goreto-article-readable,
body.goreto-font-lg .goreto-article-readable p,
body.goreto-font-lg .goreto-article-readable li {
	font-size: 18px;
	line-height: 1.75;
}

.has-article-meta-bar.single .blog-4__item-content-wrap {
	display: none !important;
}

.custom_breadcrumb__area + .goreto-article-meta-bar {
	margin-top: 0;
}

.goreto-article-meta-bar + .goreto-ai-snippet-area,
.goreto-article-meta-bar + .tp_inst_cell_nav,
.goreto-article-meta-bar + section.tp_inst_cell_nav {
	margin-top: 0;
}

.goreto-article-meta-bar + .visa-details__area.coaching-details,
.goreto-article-meta-bar + .visa-details__area.coaching-details.padding-t100,
.goreto-article-meta-bar + .pb-100 {
	padding-top: var(--goreto-snippet-gap, 32px) !important;
}

/* Override global main.css TTS margins inside meta bar */
.goreto-article-meta-bar .tts-player {
	margin: 0 !important;
	max-width: none !important;
}

.goreto-article-meta-bar__tools {
	align-items: center;
}

.goreto-article-meta-bar__tools > .goreto-article-meta-bar__toolbar,
.goreto-article-meta-bar__tools > .goreto-article-meta-bar__listen,
.goreto-article-meta-bar__tools > .goreto-article-meta-bar__font,
.goreto-article-meta-bar__tools > .goreto-article-meta-bar__share,
.goreto-article-meta-bar__inner > .goreto-article-meta-bar__player {
	align-self: center;
}
