/* MBSN Player & Plugin Styles */

:root {
	--mbsn-bg: #121212;
	--mbsn-card-bg: #1e1e1e;
	--mbsn-text: #ffffff;
	--mbsn-text-muted: #aaaaaa;
	--mbsn-accent: #e50914;
	/* Netflix/Streaming Red */
	--mbsn-grid-border: #333333;
}

/* Global Reset for Plugin Areas */
.mbsn-grid,
.mbsn-guide-container,
.mbsn-player-container,
.mbsn-home-container,
.mbsn-channel-container,
.mbsn-upcoming-list,
.mbsn-modal-overlay {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--mbsn-text);
	box-sizing: border-box;
}

/* --- CHANNEL PLAYER LAYOUT --- */
.mbsn-channel-container {
	margin-bottom: 40px;
	max-width: 100%;
	/* Ensure container doesn't overflow */
}

.mbsn-player-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	/* 16:9 */
	height: 0;
	background: black;
	margin-bottom: 0;
	border-radius: 12px 12px 0 0;
	/* Updated for rounder corners */
	overflow: hidden;
}

.mbsn-player-wrapper iframe,
.mbsn-player-wrapper object,
.mbsn-player-wrapper embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.mbsn-player-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	background: #000;
}

.mbsn-channel-info-bar {
	background: var(--mbsn-card-bg);
	padding: 20px;
	border-radius: 0 0 12px 12px;
	/* Updated for rounder corners */
	display: flex !important;
	/* Ensure it's always shown */
	visibility: visible !important;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	/* Allow wrapping on mobile */
	gap: 20px;
	min-height: 80px;
}

.mbsn-info-left {
	display: flex;
	align-items: center;
	gap: 20px;
	/* Standard gap */
	flex: 1;
	min-width: 300px;
}

.mbsn-info-divider {
	width: 1px;
	height: 40px;
	background-color: #333;
	align-self: center;
}

.mbsn-program-info-stack {
	display: flex;
	flex-direction: column;
	/* Stack details vertically */
	align-items: flex-start;
	gap: 6px;
	justify-content: center;
}

.mbsn-program-meta-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mbsn-live-badge {
	background: var(--mbsn-accent);
	color: white;
	padding: 3px 6px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	white-space: nowrap;
	line-height: 1;
}

.mbsn-live-badge.replay {
	background: #555;
}

/* Updated Logo Styles */
.mbsn-channel-logo {
	height: 32px !important;
	/* Slightly smaller to fit clean bar */
	width: auto !important;
	max-width: 120px;
	object-fit: contain;
	display: block;
}

.mbsn-channel-name-fallback {
	font-weight: bold;
	font-size: 1.2rem;
	color: var(--mbsn-text);
}

.mbsn-program-info-stack h1.mbsn-program-title {
	margin: 0;
	font-size: 1.4rem;
	/* Prominent Title */
	line-height: 1.1;
	color: white;
	font-weight: 700;
}

.mbsn-program-desc {
	margin: 0;
	font-size: 0.85rem;
	color: var(--mbsn-text-muted);
	display: none;
}

.mbsn-info-right {
	text-align: right;
	border-left: 1px solid #333;
	padding-left: 20px;
	min-width: 200px;
}

@media (max-width: 768px) {
	.mbsn-info-right {
		text-align: left;
		border-left: none;
		padding-left: 0;
		border-top: 1px solid #333;
		padding-top: 15px;
		width: 100%;
	}

	.mbsn-info-left {
		flex-wrap: wrap;
	}

	.mbsn-info-divider {
		display: none;
	}

	.mbsn-program-info-stack {
		width: 100%;
		margin-top: 10px;
	}
}

.mbsn-up-next-label {
	display: block;
	font-size: 10px;
	text-transform: uppercase;
	color: var(--mbsn-text-muted);
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.mbsn-up-next-title {
	font-weight: 600;
	color: white;
}


/* --- UPCOMING LIST (ESPN STYLE) --- */
.mbsn-upcoming-list {
	background: var(--mbsn-card-bg);
	border-radius: 12px;
	/* Updated for rounder corners */
	overflow: hidden;
}

.mbsn-list-row {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid var(--mbsn-grid-border);
	transition: background 0.2s;
}

.mbsn-list-row:last-child {
	border-bottom: none;
}

.mbsn-list-row:hover {
	background: rgba(255, 255, 255, 0.05);
}

.mbsn-list-time {
	width: 100px;
	font-weight: bold;
	color: var(--mbsn-text-muted);
	font-size: 14px;
	flex-shrink: 0;
}

.mbsn-list-details {
	flex: 1;
}

.mbsn-list-title {
	font-weight: 600;
	font-size: 16px;
	color: white;
	margin-bottom: 4px;
}

.mbsn-list-sub {
	font-size: 12px;
	color: var(--mbsn-text-muted);
	text-transform: uppercase;
}

.mbsn-list-logo {
	width: 60px;
	text-align: right;
	flex-shrink: 0;
}

.mbsn-list-logo img {
	max-height: 30px;
	max-width: 100%;
	object-fit: contain;
}

.mbsn-list-empty {
	padding: 20px;
	text-align: center;
	color: var(--mbsn-text-muted);
}


/* --- HERO SECTION --- */
.mbsn-hero {
	height: 60vh;
	min-height: 400px;
	max-height: 600px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-bottom: 40px;
	border-radius: 16px;
	/* Updated for rounder corners */
	overflow: hidden;
}

.mbsn-hero.empty {
	background: #1e1e1e;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.mbsn-hero-content {
	padding: 40px;
	width: 100%;
}

.mbsn-hero.empty .mbsn-hero-content {
	background: none;
}

.mbsn-hero-title {
	font-size: 3rem;
	margin: 10px 0;
	color: white;
	font-weight: 700;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.mbsn-hero-meta {
	font-size: 1.2rem;
	color: #ddd;
	margin-bottom: 10px;
	font-weight: 500;
}

.mbsn-hero-logo {
	height: 28px;
	width: auto;
	display: block;
}

.mbsn-hero-channel-text {
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.mbsn-hero-datetime {
	font-size: 1.1rem;
	color: #fff;
	font-weight: 600;
	margin: 10px 0 5px 0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
	letter-spacing: 0.5px;
}

.mbsn-hero-actions {
	margin-top: 20px;
}

.mbsn-btn-primary {
	background-color: var(--mbsn-accent);
	color: white !important;
	padding: 12px 30px;
	border-radius: 8px;
	/* Rounder buttons */
	text-decoration: none;
	font-weight: bold;
	display: inline-block;
	transition: background-color 0.2s;
	border: none;
	font-size: 16px;
}

.mbsn-btn-primary:hover {
	background-color: #f40612;
}

.mbsn-badge.large {
	font-size: 14px;
	padding: 6px 12px;
}

/* --- SECTIONS --- */
.mbsn-section {
	margin-bottom: 50px;
}

.mbsn-section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 20px;
}

.mbsn-section-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: white;
	border-left: 4px solid var(--mbsn-accent);
	padding-left: 15px;
}

.mbsn-section-header .mbsn-section-title {
	margin-bottom: 0;
}

.mbsn-view-all {
	color: var(--mbsn-text-muted);
	text-decoration: none;
	font-size: 0.9rem;
}

.mbsn-view-all:hover {
	color: white;
}

/* --- Card Grids (Schedule/VODs) --- */
.mbsn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	padding: 0;
}

.mbsn-card {
	background: var(--mbsn-card-bg);
	border-radius: 12px;
	/* Updated for rounder corners */
	overflow: hidden;
	text-decoration: none !important;
	transition: transform 0.2s ease;
	display: block;
	color: var(--mbsn-text) !important;
	position: relative;
}

.mbsn-card:hover {
	transform: scale(1.02);
}

.mbsn-card-image {
	height: 140px;
	background-size: cover;
	background-position: center;
	position: relative;
}

.mbsn-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
	border-radius: 4px;
	color: white;
}

.mbsn-badge.live {
	background-color: var(--mbsn-accent);
}

.mbsn-badge.upcoming {
	background-color: #0073aa;
}

.mbsn-badge.vod {
	background-color: #555;
}

.mbsn-card-watermark {
	position: absolute;
	bottom: 10px;
	right: 10px;
	opacity: 0.8;
}

.mbsn-card-watermark img {
	max-height: 20px;
	max-width: 60px;
	display: block;
}

.mbsn-card-content {
	padding: 15px;
}

.mbsn-card-title {
	margin: 0 0 5px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: white;
}

.mbsn-card-meta {
	font-size: 12px;
	color: var(--mbsn-text-muted);
}

/* --- TV Guide (EPG) --- */
.mbsn-guide-wrapper {
	position: relative;
	margin-bottom: 0;
}

.mbsn-guide-container {
	display: flex;
	background: var(--mbsn-bg);
	border: 1px solid var(--mbsn-grid-border);
	overflow-x: auto;
	position: relative;
	cursor: grab;
	/* Indicates scrollable */
	border-radius: 12px;
	/* Updated for rounder corners */
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE 10+ */
}

.mbsn-guide-container::-webkit-scrollbar {
	display: none;
	/* Chrome/Safari */
}

.mbsn-guide-container.active {
	cursor: grabbing;
}

.mbsn-guide-scroll-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	border: 1px solid #444;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	transition: all 0.2s;
	opacity: 0;
	pointer-events: none;
}

.mbsn-guide-wrapper:hover .mbsn-guide-scroll-btn {
	opacity: 1;
	pointer-events: auto;
}

.mbsn-guide-scroll-btn:hover {
	background: var(--mbsn-accent);
	border-color: var(--mbsn-accent);
}

.mbsn-guide-scroll-left {
	left: 110px;
}

/* Offset for channel headers */
.mbsn-guide-scroll-right {
	right: 10px;
}

.mbsn-guide-channels {
	min-width: 100px;
	max-width: 150px;
	background: var(--mbsn-card-bg);
	position: sticky;
	left: 0;
	z-index: 10;
	border-right: 1px solid var(--mbsn-grid-border);
}

.mbsn-guide-header-spacer {
	height: 40px;
	/* Matches timeline header height */
	border-bottom: 1px solid var(--mbsn-grid-border);
	background: var(--mbsn-bg);
}

.mbsn-channel-row-header {
	height: 80px;
	/* Matches row height */
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	border-bottom: 1px solid var(--mbsn-grid-border);
	padding: 0 10px;
	background: var(--mbsn-card-bg);
}

.mbsn-channel-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: var(--mbsn-text);
}

.mbsn-channel-link:hover {
	opacity: 0.8;
}

.mbsn-guide-logo {
	max-height: 60px;
	max-width: 100%;
	object-fit: contain;
}

.mbsn-guide-timeline-wrapper {
	flex-grow: 1;
	/* overflow: hidden; Removed to allow container scroll */
	user-select: none;
}

.mbsn-guide-timeline-header {
	display: flex;
	height: 40px;
	border-bottom: 1px solid var(--mbsn-grid-border);
	background: var(--mbsn-bg);
}

.mbsn-time-slot {
	width: 200px;
	/* Fixed width per hour */
	flex-shrink: 0;
	padding: 10px;
	border-right: 1px solid #333;
	font-size: 12px;
	color: var(--mbsn-text-muted);
}

.mbsn-guide-grid {
	position: relative;
	min-width: 2400px;
	/* 12 hours * 200px */
}

.mbsn-current-time-line {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--mbsn-accent);
	z-index: 5;
}

.mbsn-channel-row {
	height: 80px;
	position: relative;
	border-bottom: 1px solid var(--mbsn-grid-border);
	background: #181818;
}

.mbsn-program-block {
	position: absolute;
	top: 5px;
	bottom: 5px;
	background: #333;
	border-left: 1px solid #444;
	padding: 8px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none;
	color: white;
	transition: background 0.2s;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-radius: 4px;
}

.mbsn-program-block:hover {
	background: #444;
	color: white;
	z-index: 2;
	/* Bring to front on hover if overlapped */
}

.program-title {
	font-weight: bold;
	font-size: 13px;
	display: block;
}

.program-time {
	font-size: 11px;
	color: #aaa;
}

/* --- SINGLE REPLAY PAGE --- */
.mbsn-replay-page-wrapper {
	background-color: var(--mbsn-bg);
	min-height: 100vh;
	width: 100%;
	margin: 0;
	padding: 40px 0;
}

.mbsn-replay-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.mbsn-single-replay {
	width: 100%;
	color: var(--mbsn-text);
}

.mbsn-replay-details {
	background: var(--mbsn-card-bg);
	padding: 30px;
	border-radius: 0 0 12px 12px;
	margin-bottom: 40px;
}

.mbsn-replay-header {
	margin-bottom: 20px;
	border-bottom: 1px solid #333;
	padding-bottom: 20px;
}

.mbsn-replay-title {
	font-size: 2.5rem;
	margin: 0 0 15px 0;
	font-weight: 700;
}

.mbsn-replay-metadata {
	display: flex;
	align-items: center;
	gap: 15px;
	color: var(--mbsn-text-muted);
	font-size: 1rem;
}

.mbsn-replay-channel-logo {
	height: 24px;
	width: auto;
}

.mbsn-metadata-item.divider {
	opacity: 0.3;
}

.mbsn-replay-description {
	font-size: 1.1rem;
	line-height: 1.6;
	color: #ddd;
}

.mbsn-recommended-section {
	margin-top: 60px;
}

@media (max-width: 768px) {
	.mbsn-replay-title {
		font-size: 1.8rem;
	}

	.mbsn-replay-metadata {
		flex-wrap: wrap;
		gap: 10px;
	}
}

/* --- MODAL --- */
.mbsn-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mbsn-modal-content {
	background: var(--mbsn-card-bg);
	width: 100%;
	max-width: 500px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mbsn-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: white;
	font-size: 24px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	z-index: 10;
}

.mbsn-modal-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.mbsn-modal-image {
	height: 250px;
	background-size: cover;
	background-position: center;
}

.mbsn-modal-info {
	padding: 25px;
}

.mbsn-modal-title {
	margin: 0 0 10px 0;
	font-size: 1.5rem;
	color: white;
}

.mbsn-modal-meta {
	font-size: 0.9rem;
	color: #ffffff;
	/* Changed from var(--mbsn-accent) to white */
	font-weight: bold;
	margin-bottom: 15px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 10px;
}

.mbsn-modal-desc {
	font-size: 1rem;
	line-height: 1.5;
	color: #ddd;
}

/* ============================================
   MOBILE RESPONSIVE STYLES - REDESIGNED
   ============================================ */

/* --- MOBILE: Hero Section --- */
@media (max-width: 768px) {
	.mbsn-hero {
		height: 45vh;
		min-height: 280px;
		max-height: 380px;
		border-radius: 12px;
		margin-bottom: 25px;
	}

	.mbsn-hero-content {
		padding: 20px;
	}

	.mbsn-hero-title {
		font-size: 1.6rem;
		margin: 6px 0;
		line-height: 1.2;
	}

	.mbsn-hero-meta {
		font-size: 0.9rem;
		margin-bottom: 6px;
	}

	.mbsn-hero-logo {
		height: 20px;
	}

	.mbsn-hero-actions {
		margin-top: 12px;
	}

	.mbsn-btn-primary {
		padding: 10px 20px;
		font-size: 13px;
		width: auto;
		display: inline-block;
	}

	.mbsn-badge.large {
		font-size: 11px;
		padding: 4px 8px;
	}

	.mbsn-hero-desc {
		font-size: 0.85rem;
		line-height: 1.3;
		margin-bottom: 8px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

@media (max-width: 480px) {
	.mbsn-hero {
		height: 40vh;
		min-height: 220px;
		max-height: 300px;
		border-radius: 10px;
		margin-bottom: 20px;
	}

	.mbsn-hero-content {
		padding: 15px;
	}

	.mbsn-hero-title {
		font-size: 1.35rem;
	}

	.mbsn-hero-meta {
		font-size: 0.8rem;
	}

	.mbsn-hero-logo {
		height: 16px;
	}

	.mbsn-hero-desc {
		-webkit-line-clamp: 1;
		line-clamp: 1;
	}
}

/* --- MOBILE: Section Titles & Headers --- */
@media (max-width: 768px) {
	.mbsn-section {
		margin-bottom: 28px;
	}

	.mbsn-section-title {
		font-size: 1.1rem;
		padding-left: 10px;
		margin-bottom: 12px;
	}

	.mbsn-section-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		margin-bottom: 12px;
	}

	.mbsn-view-all {
		font-size: 0.8rem;
	}
}

/* --- MOBILE: Card Grids - 2 Column Layout --- */
@media (max-width: 768px) {
	.mbsn-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.mbsn-card {
		border-radius: 10px;
		display: block;
	}

	.mbsn-card-image {
		height: 100px;
		border-radius: 10px 10px 0 0;
	}

	.mbsn-card-content {
		padding: 10px;
	}

	.mbsn-card-title {
		font-size: 13px;
		line-height: 1.25;
		margin-bottom: 4px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.mbsn-card-meta {
		font-size: 10px;
	}

	.mbsn-badge {
		font-size: 8px;
		padding: 2px 5px;
		top: 6px;
		left: 6px;
	}

	.mbsn-card-watermark {
		bottom: 6px;
		right: 6px;
	}

	.mbsn-card-watermark img {
		max-height: 14px;
		max-width: 40px;
	}

	.mbsn-card-footer {
		display: none;
	}

	.mbsn-card-opponent {
		display: none;
	}
}

@media (max-width: 380px) {
	.mbsn-grid {
		gap: 10px;
	}

	.mbsn-card-image {
		height: 85px;
	}

	.mbsn-card-content {
		padding: 8px;
	}

	.mbsn-card-title {
		font-size: 12px;
	}

	.mbsn-card-meta {
		font-size: 9px;
	}
}

/* --- MOBILE: Live Now - Horizontal Scroll Carousel --- */
@media (max-width: 768px) {

	.mbsn-section:has(.mbsn-live-grid) .mbsn-grid,
	.mbsn-live-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		gap: 12px;
		padding-bottom: 5px;
		margin: 0 -10px;
		padding-left: 10px;
		padding-right: 10px;
	}

	.mbsn-section:has(.mbsn-live-grid) .mbsn-grid::-webkit-scrollbar,
	.mbsn-live-grid::-webkit-scrollbar {
		display: none;
	}

	.mbsn-section:has(.mbsn-live-grid) .mbsn-card,
	.mbsn-live-grid .mbsn-card {
		flex: 0 0 200px;
		min-width: 200px;
		max-width: 200px;
		scroll-snap-align: start;
	}

	.mbsn-section:has(.mbsn-live-grid) .mbsn-card-image,
	.mbsn-live-grid .mbsn-card-image {
		height: 112px;
	}
}

/* --- MOBILE: Player & Channel Info Bar --- */
@media (max-width: 768px) {
	.mbsn-channel-container {
		margin-bottom: 25px;
	}

	.mbsn-player-wrapper {
		border-radius: 10px 10px 0 0;
	}

	.mbsn-channel-info-bar {
		padding: 12px 15px;
		border-radius: 0 0 10px 10px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		min-height: auto;
	}

	.mbsn-info-left {
		width: 100%;
		min-width: 100%;
		gap: 10px;
		flex-wrap: wrap;
	}

	.mbsn-info-divider {
		display: none;
	}

	.mbsn-channel-logo {
		height: 24px !important;
		max-width: 90px;
	}

	.mbsn-program-info-stack h1.mbsn-program-title {
		font-size: 1rem;
		line-height: 1.2;
	}

	.mbsn-live-badge {
		font-size: 9px;
		padding: 2px 5px;
	}

	.mbsn-info-right {
		display: none;
	}
}

@media (max-width: 480px) {
	.mbsn-channel-info-bar {
		padding: 10px 12px;
		gap: 8px;
	}

	.mbsn-channel-logo {
		height: 20px !important;
		max-width: 75px;
	}

	.mbsn-program-info-stack h1.mbsn-program-title {
		font-size: 0.95rem;
	}
}

/* --- MOBILE: Upcoming List (ESPN Style) --- */
@media (max-width: 768px) {
	.mbsn-upcoming-list {
		border-radius: 10px;
	}

	.mbsn-list-row {
		padding: 10px 12px;
		gap: 8px;
	}

	.mbsn-list-time {
		width: 70px;
		font-size: 11px;
		color: var(--mbsn-accent);
		flex-shrink: 0;
	}

	.mbsn-list-details {
		flex: 1;
		min-width: 0;
	}

	.mbsn-list-title {
		font-size: 13px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.mbsn-list-sub {
		font-size: 10px;
	}

	.mbsn-list-logo {
		width: 40px;
		flex-shrink: 0;
	}

	.mbsn-list-logo img {
		max-height: 20px;
	}
}

/* --- MOBILE: TV Guide (EPG) --- */
@media (max-width: 768px) {
	.mbsn-guide-wrapper {
		margin-bottom: 20px;
	}

	.mbsn-guide-container {
		border-radius: 10px;
		-webkit-overflow-scrolling: touch;
	}

	.mbsn-guide-channels {
		min-width: 70px;
		max-width: 80px;
	}

	.mbsn-channel-row-header {
		height: 60px;
		padding: 0 5px;
	}

	.mbsn-guide-logo {
		max-height: 40px;
	}

	.mbsn-channel-row {
		height: 60px;
	}

	.mbsn-program-block {
		padding: 5px;
		border-radius: 3px;
	}

	.program-title {
		font-size: 10px;
	}

	.program-time {
		font-size: 8px;
	}

	.mbsn-time-slot {
		width: 120px;
		padding: 6px;
		font-size: 10px;
	}

	.mbsn-guide-grid {
		min-width: 1440px;
	}

	.mbsn-guide-scroll-btn {
		display: none;
	}

	.mbsn-guide-header-spacer,
	.mbsn-guide-timeline-header {
		height: 32px;
	}
}

/* --- MOBILE: Single Replay Page --- */
@media (max-width: 768px) {
	.mbsn-replay-page-wrapper {
		padding: 15px 0;
	}

	.mbsn-replay-inner {
		padding: 0 12px;
	}

	.mbsn-replay-details {
		padding: 15px;
		border-radius: 0 0 10px 10px;
		margin-bottom: 25px;
	}

	.mbsn-replay-header {
		margin-bottom: 12px;
		padding-bottom: 12px;
	}

	.mbsn-replay-title {
		font-size: 1.3rem;
	}

	.mbsn-replay-description {
		font-size: 0.9rem;
		line-height: 1.5;
	}

	.mbsn-recommended-section {
		margin-top: 30px;
	}
}

@media (max-width: 480px) {
	.mbsn-replay-title {
		font-size: 1.15rem;
	}

	.mbsn-replay-metadata {
		font-size: 0.8rem;
	}

	.mbsn-replay-channel-logo {
		height: 16px;
	}

	.mbsn-replay-description {
		font-size: 0.85rem;
	}
}

/* --- MOBILE: Modal --- */
@media (max-width: 768px) {
	.mbsn-modal-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.mbsn-modal-content {
		max-width: 100%;
		width: 100%;
		border-radius: 16px 16px 0 0;
		max-height: 85vh;
		overflow-y: auto;
	}

	.mbsn-modal-close {
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
		font-size: 18px;
	}

	.mbsn-modal-image {
		height: 180px;
	}

	.mbsn-modal-info {
		padding: 16px;
	}

	.mbsn-modal-title {
		font-size: 1.2rem;
		margin-bottom: 6px;
	}

	.mbsn-modal-meta {
		font-size: 0.8rem;
		margin-bottom: 10px;
	}

	.mbsn-modal-desc {
		font-size: 0.9rem;
		line-height: 1.4;
	}
}

/* --- MOBILE: Touch-Friendly Improvements --- */
@media (max-width: 768px) {

	.mbsn-card,
	.mbsn-list-row,
	.mbsn-program-block {
		min-height: 44px;
	}

	.mbsn-guide-container,
	.mbsn-upcoming-list {
		-webkit-overflow-scrolling: touch;
	}

	.mbsn-guide-container {
		-webkit-user-select: none;
		-moz-user-select: none;
		user-select: none;
	}

	.mbsn-card:active,
	.mbsn-list-row:active,
	.mbsn-btn-primary:active {
		transform: scale(0.98);
		opacity: 0.9;
	}

	@media (hover: none) {
		.mbsn-card:hover {
			transform: none;
		}

		.mbsn-list-row:hover {
			background: transparent;
		}

		.mbsn-program-block:hover {
			background: #333;
		}
	}
}

/* --- MOBILE: Home Container --- */
@media (max-width: 768px) {
	.mbsn-home-container {
		padding: 0 12px;
	}
}

@media (max-width: 480px) {
	.mbsn-home-container {
		padding: 0 10px;
	}
}

/* --- MOBILE: Empty States --- */
@media (max-width: 768px) {
	.mbsn-list-empty {
		padding: 12px;
		font-size: 13px;
	}

	.mbsn-hero.empty {
		min-height: 180px;
	}

	.mbsn-hero.empty h1 {
		font-size: 1.3rem;
	}

	.mbsn-hero.empty p {
		font-size: 0.9rem;
		padding: 0 12px;
	}
}

/* --- Landscape Phone Optimizations --- */
@media (max-width: 896px) and (max-height: 450px) and (orientation: landscape) {
	.mbsn-hero {
		height: 75vh;
		min-height: 200px;
		max-height: 260px;
	}

	.mbsn-hero-content {
		padding: 12px 15px;
	}

	.mbsn-hero-title {
		font-size: 1.2rem;
		margin: 4px 0;
	}

	.mbsn-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.mbsn-modal-overlay {
		align-items: center;
		padding: 10px;
	}

	.mbsn-modal-content {
		max-width: 85%;
		max-height: 90vh;
		border-radius: 12px;
		display: flex;
		flex-direction: row;
	}

	.mbsn-modal-image {
		width: 40%;
		height: auto;
		min-height: 100%;
	}

	.mbsn-modal-info {
		width: 60%;
		overflow-y: auto;
	}
}