/* Dedicated mobile renderer. No duplicate database or API calls: it restyles
 * the same semantic platform output and changes navigation/presentation only. */
html.nb-matchday-mobile-view body.nb-matchday-platform{background:var(--nb-bg,#0A1729);padding-bottom:calc(74px + env(safe-area-inset-bottom));font-size:15px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-platform-shell{width:100%;max-width:none;margin:0;padding:8px;box-sizing:border-box}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-platform-page{margin:0;padding:0;background:transparent}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-match-shell{display:grid;gap:12px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-match-hero{margin:0!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-match-predictor{display:grid;gap:12px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-match-analysis{margin:0!important;border-radius:10px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(.nb-centre-page-shell,.nb-match-centre-shell,.nb-public-profile-shell,.nbpl-plugin-page-shell,.nbpl-builder-experience){width:100%!important;max-width:none!important;margin:0!important;padding-inline:8px!important;transform:none!important}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(.nb-centre-content-grid,.nb-unified-layout,.nbpl-squad-layout){display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(.nb-single-match-main,.nb-pred-wrap,.nbpl-wrap,.nbpl-squad){order:1!important;width:100%!important;max-width:none!important;margin:0!important;border-radius:10px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-unified-sidebar{order:2!important;width:100%!important}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(.nb-centre-hero,.nbpl-player-directory-hero){padding:20px 16px!important;border-radius:10px!important;box-shadow:none!important}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(.nb-centre-hero,.nbpl-player-directory-hero) :is(h1,h2){font-size:clamp(30px,10vw,44px)!important;line-height:.98!important;overflow-wrap:anywhere}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-match-article-head{text-align:center!important}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(button,.nb-btn,.nbpl-btn,select,input[type=text],input[type=email],input[type=number]){min-height:44px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-week-nav{grid-template-columns:1fr auto 1fr!important;gap:6px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-competition-tabs{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:thin}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-competition-tabs>*{flex:0 0 auto}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-match-card{width:100%!important;margin:0!important;padding:14px 10px!important;border-radius:10px!important;box-shadow:none!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-teams-row{grid-template-columns:minmax(0,1fr) minmax(104px,32vw) minmax(0,1fr)!important;gap:5px!important;align-items:center!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-team-name{font-size:15px!important;overflow-wrap:anywhere}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-score-selector{max-width:128px;margin-inline:auto}
html.nb-matchday-mobile-view body.nb-matchday-platform :is(.nb-leaderboard-wrap,.nb-profile-table-wrap){overflow-x:auto!important;-webkit-overflow-scrolling:touch}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-leaderboard{min-width:650px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-card-body{padding:10px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-card-name{font-size:14px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-profile-hero{align-items:flex-start;gap:14px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-profile-photo{width:92px;height:112px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-pitch-outer{width:100%!important;padding:4px!important;border-radius:8px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-pitch{width:100%!important;max-width:none!important;border-radius:6px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-bench{padding:12px 8px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-bench-filters{position:sticky;top:0;z-index:6;background:var(--nbm-panel);padding-block:6px}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-share-area{padding:0!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-share-dialog{width:100%!important;max-width:none!important;max-height:100dvh!important;min-height:100dvh;border-radius:0!important;padding:12px 8px!important}
html.nb-matchday-mobile-view body.nb-matchday-platform.nb-matchday-mobile-compact :is(.nb-match-card,.nb-pred-wrap,.nbpl-wrap){padding:9px!important}

html.nb-matchday-mobile-view body.nb-matchday-platform.nb-matchday-mobile-dock-enabled .nb-shared-menu2-portal{display:none!important}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-dock{position:fixed;left:0;right:0;bottom:0;z-index:99990;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:6px max(6px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));border-top:1px solid #2c4866;background:rgba(8,23,39,.98);box-shadow:0 -12px 30px rgba(8,23,39,.25);backdrop-filter:blur(12px)}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-dock a{display:grid;place-items:center;gap:3px;min-width:0;min-height:52px;padding:4px 2px;border-radius:7px;color:#c7d4e3;text-align:center;text-decoration:none;font:700 8px/1.15 "Space Mono",monospace;text-transform:uppercase}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-dock a.is-active{background:var(--nbm-red);color:#fff}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-dock__icon{display:grid;place-items:center;min-width:25px;height:20px;color:var(--nbm-gold);font:800 12px/1 Inter,sans-serif}
html.nb-matchday-mobile-view body.nb-matchday-platform .nb-mobile-dock a.is-active .nb-mobile-dock__icon{color:#fff}
@media(max-width:420px){html.nb-matchday-mobile-view body.nb-matchday-platform .nbpl-grid{grid-template-columns:1fr!important}}
/* Lightweight plugin-owned mobile shell. The desktop theme remains untouched. */
.nb-mobile-site-header {
	position: sticky;
	top: 0;
	z-index: 10020;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 62px;
	padding: max(8px, env(safe-area-inset-top)) 16px 8px;
	border-bottom: 3px solid var(--nb-red, #e30613);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 7px 22px rgba(7, 25, 43, .12);
	backdrop-filter: blur(12px);
}

.nb-mobile-site-brand {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	color: var(--nb-navy, #07192b);
	text-decoration: none;
}

.nb-mobile-site-brand img {
	display: block;
	width: auto;
	height: 42px;
	max-width: 150px;
	object-fit: contain;
}

.nb-mobile-site-actions {
	display: flex;
	align-items: center;
	gap: 7px;
}

.nb-mobile-site-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 12px;
	border: 1px solid #cad4df;
	border-radius: 8px;
	background: #f6f8fb;
	color: var(--nb-navy, #07192b);
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
}

.nb-mobile-site-actions button {
	min-height: 40px;
	padding: 0 9px;
	border-radius: 8px;
}

.nb-mobile-site-footer {
	display: grid;
	gap: 4px;
	padding: 24px 18px calc(88px + env(safe-area-inset-bottom));
	background: var(--nb-navy, #07192b);
	color: #fff;
	font-size: 12px;
}

.nb-mobile-site-footer strong {
	color: var(--nb-gold, #d5aa32);
	font-size: 15px;
}

@media (max-width: 390px) {
	.nb-mobile-site-actions a { padding: 0 9px; }
	.nb-mobile-site-brand img { max-width: 118px; }
}
