:root {
		--color-focus-outline-accent: #074766;
}

.nbs-podcasts-front {
		padding: .5rem 0 0;
		--nbs-color-primary: #074766;
		--nbs-color-primary-contrast: #ffffff;
		--nbs-color-secondary: #EDEDED;
		--nbs-color-secondary-contrast: #074766;
		--nbs-color-accent: #f59e0b;
		--nbs-surface-base: #ffffff;
		--nbs-surface-elevated: #ffffff;
		--nbs-surface-muted: #f8fafc;
		--nbs-surface-contrast: #0f172a;
		--nbs-surface-tabs: #f1f5f9;
		--nbs-surface-hover: rgba(148, 163, 184, 0.12);
		--nbs-text-main: #0f172a;
		--nbs-text-secondary: #64748b;
		--nbs-text-muted: #6b7280;
		--nbs-text-subtle: #9ca3af;
		--nbs-border-soft: rgba(148, 163, 184, 0.25);
		--nbs-border-muted: rgba(148, 163, 184, 0.4);
		--nbs-shadow-soft: 0 5px 10px rgba(0, 0, 0, 0.1);
		--nbs-shadow-hover: 0 5px 15px rgba(7, 71, 102, 0.15);
		--nbs-shadow-tab-active: 0 10px 25px rgba(15, 23, 42, 0.08);
		--nbs-active-tab-bg: var(--nbs-color-primary);
		--nbs-active-tab-text: var(--nbs-color-primary-contrast);
		--nbs-industry-active-bg: var(--nbs-color-primary);
		--nbs-industry-active-text: var(--nbs-color-primary-contrast);
		--nbs-industry-active-icon: var(--nbs-industry-active-text);
		--nbs-stats-label-text: var(--nbs-color-accent);
		--nbs-stats-value-text: var(--nbs-color-primary);
		--nbs-card-title-text: var(--nbs-color-primary);
		--nbs-empty-bg: var(--nbs-color-primary);
		--nbs-empty-text: var(--nbs-color-primary-contrast);
		--nbs-empty-icon: var(--nbs-color-accent);
}

.nbs-podcasts-shell {
		max-width: 1200px;
		margin: 0 auto;
		display: grid;
		grid-template-columns: 270px minmax(0, 1fr);
		gap: 1.75rem;
}

.nbs-empty-state {
		text-align: center;
		padding: 2.5rem 1rem;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		background: var(--nbs-empty-bg);
		border-radius: 1rem;
		color: var(--nbs-empty-text);
}

.nbs-empty-state p {
		margin-bottom: 0;
}

.nbs-empty-state .dashicons {
		font-size: 48px;
		width: 48px;
		height: 48px;
		color: var(--nbs-empty-icon);
}

.nbs-podcasts-sidebar {
		margin-top: 1.5rem;
		display: flex;
		flex-direction: column-reverse;
		gap: 1.5rem;
}

@media screen and (min-width: 1024px) {
		.nbs-podcasts-sidebar {
				margin-top: 0;
				flex-direction: column;
		}
}

.nbs-stats-card {
		background: var(--nbs-surface-elevated);
		border-radius: 0.9rem;
		margin-top: 1rem;
		padding: 1.25rem 1.25rem 1.1rem;
		box-shadow: var(--nbs-shadow-soft);
		border: 1px solid var(--nbs-border-soft);
}

@media screen and (min-width: 1024px) {
		.nbs-stats-card {
				margin-top: 0;
		}
}

.nbs-stats-header {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
}

.nbs-stats-pill {
		display: inline-flex;
		align-items: center;
		padding: 0.1rem 0.6rem;
		font-size: 0.75rem;
		border-radius: 999px;
		/* background: rgba(7, 71, 102, 0.08); */
		/* color: #074766; */
		background-color: var(--nbs-surface-tabs);
		color: var(--nbs-text-secondary);
		font-weight: 600;
}

.nbs-stats-title {
		margin: 0;
		font-size: 1rem;
		line-height: 1.25;
		font-weight: 700;
		color: var(--nbs-text-main);
}

.nbs-stats-intro p {
		margin: 0;
		color: var(--nbs-text-secondary);
		font-size: 0.95rem;
		line-height: 1.35;
}

.nbs-stats-intro p:first-child {
		margin-bottom: 0.35rem;
		font-size: 1rem;
		line-height: 1.25;
		color: var(--nbs-text-main);
}

.nbs-stats-intro p + p {
		margin-top: 0.35rem;
}

.nbs-stats-subtitle {
		margin: 0;
		font-size: 0.85rem;
		line-height: 1.25;
		color: var(--nbs-text-secondary);
}

.nbs-stats-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.25rem;
		margin: 1rem 0 0;
		text-align: right;
}

.nbs-stats-item {
		background: var(--nbs-color-secondary);
		border-radius: 0.5rem;
		padding: 0.45rem 0.55rem;
		align-items: end;
		display: flex;
		flex-direction: column;
		justify-content: end;
}

.nbs-stats-label {
		display: block;
		font-size: 0.72rem;
		line-height: 0.72rem;
		color: var(--nbs-stats-label-text);
		font-weight: 700;
}

.nbs-stats-value {
		display: block;
		font-size: 0.98rem;
		font-weight: 700;
		color: var(--nbs-stats-value-text);
}

.nbs-stats-footnote {
		margin: 0.5rem 0 0;
		font-size: 0.75rem;
		line-height: 0.75rem;
		color: var(--nbs-text-subtle);
}

.nbs-industry-tabs {
		display: flex;
		flex-direction: column;
		gap: 0.35rem;
}

.nbs-industry-tab {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.45rem 0.65rem;
		border-radius: 999px;
		border: none;
		background-color: transparent;
		cursor: pointer;
		font-size: 0.9rem;
		line-height: 1.9;
		color: var(--nbs-color-primary);
		transition: background-color .15s ease, color .15s ease;
		will-change: background-color, color;
}

.nbs-industry-tab:hover:not(.is-active) {
		background-color: var(--nbs-surface-hover);
}

.nbs-industry-tab.is-active {
		background-color: var(--nbs-industry-active-bg);
		color: var(--nbs-industry-active-text);
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.nbs-industry-tab.is-active .nbs-industry-icon {
		color: var(--nbs-industry-active-icon);
}

.nbs-industry-icon {
		width: 24px;
		height: 24px;
		border-radius: 999px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: currentColor;
		transition: color .15s ease, color .15s ease;
		will-change: color, color;
}

.nbs-modal-prev .dashicons,
.nbs-modal-next .dashicons,
.nbs-modal-close .dashicons {
		font-size: 22px;
		width: 22px;
		height: 22px;
		line-height: 22px;
}

.nbs-podcasts-main {
		background: var(--nbs-surface-elevated);
		border-radius: 1rem;
		padding: 1.2rem 1.4rem 1.4rem;
		box-shadow: var(--nbs-shadow-soft);
		border: 1px solid var(--nbs-border-soft);
		min-height: 320px;
}

.nbs-industry-description {
		font-size: 1rem;
		line-height: 1.25;
		font-weight: 500;
		margin: 0 0 1rem;
}

.nbs-industry-panel {
		display: none;
}

.nbs-industry-panel.is-active {
		display: block;
}

.nbs-layout-tabs {
		display: inline-flex;
		border-radius: 999px;
		background: var(--nbs-surface-tabs);
		padding: 0.15rem;
		margin-bottom: 1rem;
}

.nbs-layout-tab {
		border: none;
		background: transparent;
		cursor: pointer;
		font-size: 0.85rem;
		line-height: 1.9;
		padding: 0.35rem 0.9rem;
		border-radius: 999px;
		color: var(--nbs-text-secondary);
		transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nbs-layout-tab.is-active {
		background: var(--nbs-active-tab-text);
		color: var(--nbs-active-tab-bg);
		box-shadow: var(--nbs-shadow-tab-active);
}

.nbs-layout-panel {
		display: none;
}

.nbs-layout-panel.is-active {
		display: block;
}

.nbs-episodes-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.1rem;
}

.nbs-episodes-grid.is-horizontal {
		display: flex;
		gap: 1rem;
		overflow-x: auto;
		padding-bottom: 0.35rem;
		scroll-snap-type: x mandatory;
}

.nbs-episodes-grid.is-horizontal .nbs-episode-card {
		flex: 0 0 280px;
		scroll-snap-align: start;
}

.nbs-episode-card {
		background: var(--nbs-surface-muted);
		border-radius: 0.9rem;
		border: 1px solid var(--nbs-border-muted);
		overflow: hidden;
		display: flex;
		flex-direction: column;
		transition: box-shadow 0.15s ease;
}

.nbs-episode-card:hover {
		box-shadow: var(--nbs-shadow-hover);
}

.nbs-episode-thumb {
		border: none;
		padding: 0;
		width: 100%;
		background: #0f172a;
		cursor: pointer;
		position: relative;
		overflow: hidden;
}

.nbs-thumb-inner {
		position: relative;
		background-size: cover;
		background-position: center;
		background-color: #0b2130;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 0.6rem 0.7rem;
}

/* This sets the aspect ratio */
.nbs-thumb-inner::before {
		content: "";
		display: block;
		padding-bottom: 56.25%; /* 16:9 */
}

.nbs-thumb-inner::after {
		content: '';
		position: absolute;
		inset: 0;
		mix-blend-mode: multiply;
		z-index: 0;
}

.nbs-thumb-inner > * {
		position: relative;
		z-index: 1;
}

.nbs-thumb-play {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 2.25rem;
		height: 2.25rem;
		padding: 0;
		font-size: 2rem;
		top: 0;
		left: 0;
		z-index: 1;
		position: absolute;
		border-radius: .5rem;
		color: var(--nbs-color-accent);
		opacity: 0.9;
		transition: opacity 0.15s ease;
}

.nbs-thumb-inner:hover .nbs-thumb-play {
		color: var(--nbs-color-accent);
		opacity: 1;
}

.nbs-thumb-tag {
		display: inline-flex;
		align-self: flex-start;
		padding: 0.12rem 0.5rem;
		font-size: 0.7rem;
		border-radius: 50%;
		background: rgba(248, 250, 252, 0.18);
		color: #e5e7eb;
}

.nbs-thumb-duration {
		align-self: flex-end;
		font-size: 0.75rem;
		background: rgba(15, 23, 42, 0.95);
		color: #f9fafb;
		padding: 0.15rem 0.4rem;
		border-radius: 0.4rem;
}

.nbs-episode-body {
		padding: 0.65rem 0.7rem 0.8rem;
}

.nbs-episode-title {
		margin: 0;
		font-size: 0.9rem;
		font-weight: 600;
		color: var(--nbs-card-title-text);
}

.nbs-episode-meta {
		margin: 0;
		font-size: 0.78rem;
		font-weight: 400;
		color: var(--nbs-text-muted);
		display: flex;
		flex-wrap: wrap;
		gap: 0.7rem;
		row-gap: 0;
		line-height: 1.15;
}

.nbs-episode-desc {
		margin: 0;
		font-size: 0.8rem;
		line-height: 1.25;
		/* color: var(--nbs-text-secondary); */
}

.nbs-load-more-wrap {
		margin-top: 1rem;
		text-align: center;
}

.nbs-load-more-btn {
		border-radius: 999px;
		border: 1px solid #074766;
		background: #ffffff;
		color: #074766;
		padding: 0.35rem 1.1rem;
		font-size: 0.85rem;
		cursor: pointer;
		transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nbs-load-more-btn:hover {
		background: #074766;
		color: #f9fafb;
		box-shadow: 0 5px 15px rgba(7, 71, 102, 0.15);
}

.nbs-shorts-group {
		margin-bottom: 1.2rem;
}

.nbs-shorts-header {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		margin-bottom: 0.4rem;
}

.nbs-shorts-title {
		margin: 0;
		font-size: 0.9rem;
		font-weight: 600;
		color: var(--nbs-text-main);
}

.nbs-shorts-shelf {
		display: flex;
		gap: 0.7rem;
		overflow-x: auto;
		padding-bottom: 0.2rem;
		scroll-snap-type: x mandatory;
}

.nbs-shorts-shelf.is-grid {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 0.7rem;
}

.nbs-shorts-shelf::-webkit-scrollbar {
		height: 6px;
}

.nbs-shorts-shelf::-webkit-scrollbar-thumb {
		background-color: rgba(0, 94, 140, 0.3);
		border-radius: 999px;
}

.nbs-short-card {
		flex: 0 0 150px;
		scroll-snap-align: start;
}

.nbs-short-thumb {
		border: none;
		padding: 0;
		width: 100%;
		border-radius: 0.8rem;
		position: relative;
		overflow: hidden;
		cursor: pointer;
		background-size: cover;
		background-position: center;
		background-color: #020617;
}

.nbs-short-thumb::before {
		content: '';
		display: block;
		padding-bottom: 130%;
}

.nbs-short-thumb::after {
		content: '';
		position: absolute;
		inset: 0;
}

.nbs-short-duration {
		position: absolute;
		bottom: 0.35rem;
		right: 0.4rem;
		z-index: 1;
		font-size: 0.7rem;
		background: rgba(15, 23, 42, 0.98);
		color: #f9fafb;
		padding: 0.15rem 0.3rem;
		border-radius: 0.35rem;
}

.nbs-short-title {
		margin: 0.35rem 0 0;
		font-size: 0.8rem;
		line-height: 1.25;
		color: var(--nbs-card-title-text);
}

@media (max-width: 960px) {
		.nbs-podcasts-shell {
				grid-template-columns: minmax(0, 1fr);
		}

		.nbs-industry-tabs {
				flex-direction: row;
				justify-content: space-between;
				overflow-x: auto;
				padding: 0.15rem;
				border-radius: 999px;
				background: var(--nbs-surface-tabs);
		}

		.nbs-industry-tab {
				flex: 0 0 auto;
				padding: 0.3rem 0.8rem;
		}
}

@media (max-width: 800px) {
		.nbs-episodes-grid {
				grid-template-columns: repeat(2, minmax(0, 1fr));
		}
}

@media (max-width: 600px) {
		.nbs-podcasts-main {
				padding: 1rem 1rem 1.2rem;
		}

		.nbs-episodes-grid {
				grid-template-columns: minmax(0, 1fr);
		}
}

/* Modal styles */

.nbs-modal-player[hidden] {
		display: none;
}

.nbs-modal-player {
		position: fixed;
		inset: 0;
		z-index: 100000000 !important;
		display: flex;
		align-items: center;
		justify-content: center;
}

.nbs-modal-overlay {
		position: absolute;
		inset: 0;
		background: rgba(15, 23, 42, 0.75);
		backdrop-filter: blur(4px);
}

@media screen and (max-width: 1023px) {
		.nbs-modal-player {
				width: 100vw;
				height: 100vh;
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
		}
		.nbs-modal-overlay {
				position: absolute;
				inset: 0;
				background: rgba(15, 23, 42, 0.75);
				backdrop-filter: blur(4px);
		}
}

.nbs-modal-dialog {
		position: relative;
		z-index: 2;
		background: #ffffff;
		border-radius: 1rem;
		max-width: 960px;
		width: min(960px, 95vw);
		max-height: 90vh;
		display: flex;
		flex-direction: column;
		padding: 1.5rem;
		gap: 1rem;
}

.nbs-modal-video {
		width: 100%;
		background: #0f172a;
		border-radius: 14px;
		overflow: hidden;
}

.nbs-modal-video iframe,
.nbs-modal-video video {
		width: 100%;
		height: clamp(260px, 50vh, 520px);
		border: 0;
		display: block;
}

.nbs-modal-title {
		margin: 0;
		font-size: 1rem;
		color: #074766;
}

.nbs-modal-description {
		font-size: 0.95rem;
		color: #475569;
		line-height: 1.45;
		margin-top: 0.5rem;
		white-space: pre-line;
}

.nbs-modal-meta {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
		font-size: 0.95rem;
		line-height: 0.95rem;
		color: #475569;
}

.nbs-modal-meta__item {
		display: flex;
		gap: 0.35rem;
}

.nbs-modal-nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 0.5rem;
}

.nbs-modal-prev,
.nbs-modal-next {
		border: none;
		background: #074766;
		color: #fff;
		border-radius: 999px;
		padding: 0.5rem 1.25rem;
		cursor: pointer;
		font-weight: 600;
		box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
		transition: background 0.2s ease;
}

.nbs-modal-prev:disabled,
.nbs-modal-next:disabled {
		opacity: 0.4;
		cursor: not-allowed;
		box-shadow: none;
}

.nbs-modal-close {
		position: absolute;
		top: -.25rem;
		right: -.25rem;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		border: none;
		background: transparent;
		color: #0f172a;
		cursor: pointer;
		font-size: 1.25rem;
}

@media screen and (min-width: 1024px) {
		.nbs-modal-close {
				top: 0;
				right: 0;
		}
}

.nbs-modal-close:hover {
		background: rgba(15, 23, 42, 0.2);
}

body.nbs-modal-player-open {
		overflow: hidden;
}

@media (max-width: 1023px) {
		.nbs-modal-dialog {
				padding: 1.1rem;
				border-radius: 12px;
		}

		.nbs-modal-nav {
				/* flex-direction: column; */
				gap: 0.75rem;
		}
}


/* Landscape phones only */
@media screen and (max-width: 1023px) and (orientation: landscape) {
		.nbs-modal-title,
		.nbs-modal-meta,
		.nbs-modal-description,
		.nbs-modal-meta,
		.nbs-modal-nav {
				display: none;
		}
}

.nbs-podcasts-shell :focus {
		outline: none;
}

.nbs-podcasts-shell :focus-visible {
	outline: 2px solid var(--color-focus-outline-accent);
	outline-offset: 2px;
}

.nbs-episode-desc,
.nbs-industry-description,
.nbs-layout-tab:not(.is-active):hover {
	color: var(--nbs-text-main);
}

