/* StreamForge Portal — dark app shell theme */

:root {
	--sf-page: #07080a;
	--sf-surface: #111318;
	--sf-surface-2: #171a20;
	--sf-surface-3: #20242c;
	--sf-line: rgba(255,255,255,.09);
	--sf-line-strong: rgba(255,255,255,.16);
	--sf-text: #f7f8fb;
	--sf-muted: #9ca5b3;
	--sf-red: #e0001b;
	--sf-red-bright: #ff3048;
	--sf-red-dark: #72000e;
	--sf-green: #43d17a;
	--sf-amber: #ffbf47;
	--sf-radius: 22px;
	--sf-radius-sm: 15px;
	--sf-shadow: 0 28px 70px rgba(0,0,0,.45);
	--sf-sidebar: 250px;
}

.app-shell,
.sf-portal-standalone {
	box-sizing: border-box;
}

html.sf-portal-standalone {
	scroll-behavior: smooth;
}

body.sf-portal-standalone {
	margin: 0;
	min-height: 100vh;
	color: var(--sf-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background:
		radial-gradient(circle at 80% -10%, rgba(224,0,27,.21), transparent 34%),
		radial-gradient(circle at 15% 40%, rgba(116,0,14,.18), transparent 30%),
		linear-gradient(180deg, #090a0d 0%, #060709 100%);
}

body.sf-portal-standalone::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	opacity: .24;
	background-image:
		linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: linear-gradient(to bottom, black, transparent 80%);
	-webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.app-shell {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 0;
	overflow: hidden;
	color: var(--sf-text);
	background: var(--sf-page);
}

.app-shell button,
.app-shell a {
	font: inherit;
}

.app-shell a {
	color: inherit;
	text-decoration: none;
}

.app-shell .sidebar {
	position: relative;
	inset: auto;
	flex: 0 0 var(--sf-sidebar);
	min-height: 0;
	padding: 26px 18px;
	border-right: 1px solid var(--sf-line);
	background: rgba(9,10,13,.88);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.app-shell .brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 8px;
}

.app-shell .brand-mark {
	width: 46px;
	aspect-ratio: 1;
	border-radius: 15px;
	display: grid;
	place-items: center;
	font-weight: 1000;
	letter-spacing: -1px;
	background: linear-gradient(145deg, var(--sf-red-bright), var(--sf-red-dark));
	box-shadow: 0 12px 30px rgba(224,0,27,.28), inset 0 1px 0 rgba(255,255,255,.35);
	color: white;
	font-size: 1.1rem;
	overflow: hidden;
	flex-shrink: 0;
}

.app-shell .brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.app-shell .brand-copy strong {
	display: block;
	font-size: .95rem;
	letter-spacing: .08em;
}

.app-shell .brand-copy span {
	display: block;
	margin-top: 3px;
	color: var(--sf-muted);
	font-size: .74rem;
	letter-spacing: .18em;
}

.app-shell .nav-group {
	display: grid;
	gap: 8px;
}

.app-shell .nav-label {
	padding: 0 12px 8px;
	color: #6f7784;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.app-shell .nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 14px;
	color: #c8ced8;
	transition: .2s ease;
}

.app-shell .nav-link:hover {
	background: rgba(255,255,255,.045);
	color: white;
}

.app-shell .nav-link.active {
	color: white;
	border-color: rgba(255,48,72,.26);
	background: linear-gradient(90deg, rgba(224,0,27,.16), rgba(224,0,27,.035));
	box-shadow: inset 3px 0 0 var(--sf-red-bright);
}

.app-shell .nav-icon {
	width: 20px;
	height: 20px;
	opacity: .9;
	flex-shrink: 0;
}

.app-shell .sidebar-footer {
	margin-top: auto;
	padding: 16px;
	border: 1px solid var(--sf-line);
	border-radius: 18px;
	background: rgba(255,255,255,.025);
}

.app-shell .sidebar-footer small {
	display: block;
	color: var(--sf-muted);
	line-height: 1.5;
}

.app-shell .support-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 12px;
	color: #fff;
	font-weight: 800;
	font-size: .85rem;
}

.app-shell .main {
	flex: 1 1 0%;
	min-width: 0;
	padding: 22px 26px;
	display: flex;
	flex-direction: column;
	background: var(--sf-page);
}

.app-shell .topbar {
	max-width: 1450px;
	margin: 0 0 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.app-shell .mobile-brand {
	display: none;
}

.app-shell .mobile-nav {
	display: none;
}

.app-shell .breadcrumb {
	color: var(--sf-muted);
	font-size: .83rem;
}

.app-shell .breadcrumb b {
	color: white;
}

.app-shell .top-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.app-shell .account-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 12px 7px 7px;
	border: 1px solid var(--sf-line);
	border-radius: 999px;
	background: rgba(255,255,255,.035);
}

.app-shell .avatar {
	width: 34px;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #313743, #181b20);
	font-weight: 900;
	font-size: .78rem;
}

.app-shell .account-copy strong {
	display: block;
	font-size: .78rem;
}

.app-shell .account-copy span {
	display: block;
	color: var(--sf-muted);
	font-size: .68rem;
	margin-top: 1px;
}

.app-shell .page {
	width: min(1450px, 100%);
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.hero-card {
	position: relative;
	overflow: hidden;
	min-height: 0;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 28px;
	box-shadow: var(--sf-shadow);
	background:
		radial-gradient(circle at 82% 22%, rgba(255,48,72,.30), transparent 28%),
		linear-gradient(110deg, #17181c 0%, #121317 42%, #210006 100%);
}

.hero-card::before {
	content: "";
	position: absolute;
	inset: -80px auto -80px 50%;
	width: 42%;
	opacity: .23;
	transform: skewX(-14deg);
	background: repeating-linear-gradient(90deg, transparent 0 32px, rgba(255,255,255,.13) 32px 34px);
}

.hero-card::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(0,0,0,.08), transparent 60%, rgba(0,0,0,.35));
}

.hero-inner {
	position: relative;
	z-index: 2;
	min-height: 0;
	padding: 22px 28px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	justify-items: center;
	align-items: center;
}

.eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	justify-self: start;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 30px;
	padding: 0 10px;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.pill.live {
	background: var(--sf-red);
	box-shadow: 0 0 0 5px rgba(224,0,27,.12);
}

.pill.secure {
	color: #c9f9da;
	border: 1px solid rgba(67,209,122,.28);
	background: rgba(67,209,122,.10);
}

.pill.paid {
	color: #dad6ff;
	border: 1px solid rgba(147,132,255,.30);
	background: rgba(147,132,255,.11);
}

.pill.free {
	color: #bfe9ff;
	border: 1px solid rgba(79,168,255,.30);
	background: rgba(79,168,255,.11);
}

.dot {
	width: 7px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 4px rgba(255,255,255,.09);
}

.app-shell .hero-title,
.app-shell .page h1,
.app-shell .page .hero-title {
	margin: 0;
	max-width: 900px;
	font-size: clamp(2rem, 4.8vw, 4.75rem);
	line-height: .95;
	letter-spacing: -.055em;
	text-wrap: balance;
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
	margin-top: 20px;
	color: #c5cbd5;
	font-size: .92rem;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.meta-item svg {
	width: 17px;
	height: 17px;
	color: var(--sf-red-bright);
	flex-shrink: 0;
}

.matchup {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 12px 32px;
	padding: 14px 22px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 22px;
	background: rgba(4,5,7,.43);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	width: fit-content;
	max-width: 100%;
}

.team {
	text-align: center;
	min-width: 0;
}

.team-badge {
	width: 88px;
	aspect-ratio: 1;
	margin: 0 auto 12px;
	border-radius: 24px;
	display: grid;
	place-items: center;
	font-size: 1.45rem;
	font-weight: 1000;
	letter-spacing: -.05em;
	border: 1px solid rgba(255,255,255,.12);
	background: linear-gradient(145deg, #2a2e37, #111317);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 30px rgba(0,0,0,.25);
	overflow: hidden;
}

.team-badge img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.team.home .team-badge {
	background: linear-gradient(145deg, #e60020, #5e000b);
}

.team strong {
	display: block;
	font-size: .88rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.team span {
	display: block;
	margin-top: 4px;
	color: var(--sf-muted);
	font-size: .72rem;
}

.versus {
	font-size: 1.15rem;
	font-weight: 1000;
	color: #7f8794;
}

.watch-layout {
	display: grid;
	grid-template-columns: minmax(0,1.72fr) minmax(320px,.72fr);
	gap: 18px;
	align-items: start;
}

.watch-main,
.watch-side,
.stack {
	display: grid;
	gap: 18px;
	min-width: 0;
}

.panel {
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius);
	background: linear-gradient(180deg, rgba(25,28,34,.94), rgba(15,17,21,.96));
	box-shadow: 0 18px 50px rgba(0,0,0,.20);
}

.player-card {
	overflow: hidden;
}

.player-wrap {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background:
		radial-gradient(circle at 50% 45%, rgba(224,0,27,.16), transparent 26%),
		linear-gradient(145deg, #07080a, #13151a);
}

.player-wrap::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: .18;
	background-image:
		linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 36px 36px;
}

.player-wrap .ice-lines {
	position: absolute;
	inset: 18% 8%;
	border: 1px solid rgba(255,255,255,.07);
	border-radius: 48%;
	transform: perspective(800px) rotateX(64deg);
	box-shadow: inset 0 0 70px rgba(255,255,255,.02);
	display: none;
}

.player-wrap.show-ice .ice-lines {
	display: block;
}

.player-wrap .centre-line {
	position: absolute;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	background: rgba(224,0,27,.18);
	display: none;
}

.player-wrap .centre-circle {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 120px;
	aspect-ratio: 1;
	border: 2px solid rgba(224,0,27,.18);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	display: none;
}

.player-wrap.show-ice .centre-line,
.player-wrap.show-ice .centre-circle {
	display: block;
}

.player-wrap video,
.player-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
	z-index: 2;
}

.player-wrap .pre-game-image {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	background: #000;
	pointer-events: none;
}

.player-wrap .pre-game-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.player-wrap.has-pre-game .ice-lines,
.player-wrap.has-pre-game .centre-line,
.player-wrap.has-pre-game .centre-circle {
	display: none !important;
}

.offline-state {
	position: absolute;
	inset: 0;
	display: grid;
	place-content: center;
	text-align: center;
	padding: 24px;
	z-index: 3;
	pointer-events: auto;
}

.player-wrap.live .offline-state {
	display: none;
}

.play-button {
	width: 76px;
	aspect-ratio: 1;
	margin: 0 auto 18px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: white;
	cursor: pointer;
	background: linear-gradient(145deg, var(--sf-red-bright), var(--sf-red-dark));
	box-shadow: 0 20px 45px rgba(224,0,27,.34), 0 0 0 12px rgba(224,0,27,.09);
	transition: .2s ease;
	pointer-events: auto;
}

.play-button:hover {
	transform: scale(1.045);
}

.play-button svg {
	width: 28px;
	height: 28px;
	margin-left: 4px;
}

.offline-state h2 {
	margin: 0;
	font-size: clamp(1.2rem, 2.7vw, 2rem);
}

.offline-state p {
	max-width: 520px;
	margin: 9px auto 0;
	color: var(--sf-muted);
	line-height: 1.55;
}

.sponsor-bug {
	position: absolute;
	top: 18px;
	right: 18px;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 11px;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: 12px;
	color: #d6d9df;
	background: rgba(5,6,8,.72);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .09em;
	z-index: 4;
}

.sponsor-bug img {
	max-height: 26px;
	width: auto;
	max-width: 120px;
	border-radius: 8px;
	object-fit: contain;
	display: block;
}

.sponsor-icon {
	width: 26px;
	aspect-ratio: 1;
	border-radius: 8px;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #6845ff, #ff6a00);
	font-size: .72rem;
}

.player-controls {
	min-height: 64px;
	padding: 11px 15px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border-top: 1px solid var(--sf-line);
	background: #0d0f12;
}

.control-cluster {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.icon-btn {
	width: 40px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border: 1px solid var(--sf-line);
	border-radius: 12px;
	color: #d8dde5;
	background: rgba(255,255,255,.035);
	cursor: pointer;
	padding: 0;
}

.icon-btn:hover {
	background: rgba(255,255,255,.08);
	color: white;
}

.icon-btn svg {
	width: 18px;
	height: 18px;
}

.live-readout {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	margin-left: 3px;
	color: #d8dde5;
	font-size: .78rem;
	font-weight: 800;
}

.live-dot {
	width: 8px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--sf-red-bright);
	box-shadow: 0 0 0 5px rgba(255,48,72,.10);
}

.quality-chip {
	padding: 8px 10px;
	border: 1px solid var(--sf-line);
	border-radius: 11px;
	color: #cbd1db;
	font-size: .72rem;
	font-weight: 900;
	background: rgba(255,255,255,.025);
}

.info-strip {
	padding: 18px;
	display: grid;
	grid-template-columns: minmax(0,1fr) auto;
	gap: 16px;
	align-items: center;
}

.info-strip strong {
	display: block;
	font-size: 1rem;
}

.info-strip p {
	margin: 5px 0 0;
	color: var(--sf-muted);
	font-size: .82rem;
	line-height: 1.5;
}

.status-box {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid rgba(67,209,122,.22);
	border-radius: 14px;
	background: rgba(67,209,122,.08);
	white-space: nowrap;
}

.status-icon {
	width: 34px;
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(67,209,122,.13);
	color: var(--sf-green);
}

.status-box strong {
	font-size: .78rem;
}

.status-box span {
	display: block;
	color: #a8b9ae;
	font-size: .68rem;
	margin-top: 2px;
}

.section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
}

.section-heading h2,
.section-heading h3 {
	margin: 0;
	font-size: 1rem;
}

.section-heading span {
	color: var(--sf-muted);
	font-size: .75rem;
}

.card-pad {
	padding: 20px;
}

.countdown {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	min-width: 0;
}

.countdown p.notice {
	grid-column: 1 / -1;
	margin: 0;
	text-align: center;
}

.time-unit {
	min-width: 0;
	overflow: hidden;
	padding: 15px 8px;
	text-align: center;
	border: 1px solid var(--sf-line);
	border-radius: 15px;
	background: rgba(255,255,255,.025);
}

.time-unit b {
	display: block;
	font-size: clamp(1.35rem, 3vw, 2.1rem);
	letter-spacing: -.05em;
	white-space: nowrap;
}

.time-unit span {
	display: block;
	margin-top: 3px;
	color: var(--sf-muted);
	font-size: .65rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.notice {
	margin-top: 14px;
	padding: 12px 13px;
	border-radius: 14px;
	border: 1px solid rgba(255,191,71,.18);
	background: rgba(255,191,71,.07);
	color: #ded1af;
	font-size: .76rem;
	line-height: 1.5;
}

.chat-panel {
	display: grid;
	gap: 12px;
	min-width: 0;
}

.chat-messages {
	max-height: 320px;
	overflow-y: auto;
	display: grid;
	gap: 10px;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--sf-line) transparent;
}

.chat-messages::-webkit-scrollbar {
	width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
	background: var(--sf-line);
	border-radius: 6px;
}

.chat-empty,
.chat-notice {
	margin: 0;
	color: var(--sf-muted);
	font-size: .8rem;
}

.chat-message {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 8px 10px;
	border-radius: 12px;
	background: rgba(255,255,255,.03);
	position: relative;
}

.chat-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.chat-author {
	font-weight: 800;
	font-size: .78rem;
	color: #e6e9ef;
}

.chat-time {
	color: var(--sf-muted);
	font-size: .65rem;
	margin-right: auto;
}

.chat-text {
	margin: 0;
	font-size: .82rem;
	line-height: 1.4;
	color: #c8ced6;
}

.chat-delete {
	width: 20px;
	height: 20px;
	padding: 0;
	margin-left: auto;
	display: inline-grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--sf-muted);
	font-size: 1rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.chat-delete:hover,
.chat-delete:focus {
	background: rgba(255,255,255,.12);
	color: var(--sf-red-bright);
}

.chat-message .chat-delete {
	opacity: 0;
}

.chat-message:hover .chat-delete,
.chat-message:focus-within .chat-delete {
	opacity: 1;
}

.chat-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 8px;
	align-items: center;
}

.chat-input {
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--sf-line);
	border-radius: 12px;
	background: rgba(0,0,0,.2);
	color: #e6e9ef;
	font: inherit;
	font-size: .82rem;
	outline: none;
}

.chat-input:focus {
	border-color: var(--sf-red-bright);
}

.chat-send {
	padding: 10px 14px;
	font-size: .78rem;
	white-space: nowrap;
}

.detail-list {
	display: grid;
	gap: 4px;
}

.detail-row {
	display: grid;
	grid-template-columns: 32px 1fr auto;
	gap: 11px;
	align-items: center;
	min-height: 52px;
	padding: 8px 0;
	border-bottom: 1px solid var(--sf-line);
}

.detail-row:last-child {
	border-bottom: 0;
}

.detail-icon {
	width: 32px;
	aspect-ratio: 1;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(224,0,27,.10);
	color: var(--sf-red-bright);
}

.detail-icon svg {
	width: 16px;
	height: 16px;
}

.detail-row strong {
	display: block;
	font-size: .78rem;
}

.detail-row span {
	display: block;
	color: var(--sf-muted);
	font-size: .7rem;
	margin-top: 2px;
}

.detail-value {
	font-weight: 850;
	font-size: .76rem;
	color: #e4e7ec;
	text-align: right;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.action-card {
	min-height: 92px;
	padding: 14px;
	border: 1px solid var(--sf-line);
	border-radius: 16px;
	background: rgba(255,255,255,.025);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: .2s ease;
}

.action-card:hover {
	transform: translateY(-2px);
	border-color: var(--sf-line-strong);
	background: rgba(255,255,255,.045);
}

.action-card svg {
	width: 21px;
	height: 21px;
	color: var(--sf-red-bright);
}

.action-card strong {
	font-size: .78rem;
}

.action-card span {
	color: var(--sf-muted);
	font-size: .67rem;
	margin-top: 3px;
	display: block;
}

.sponsor-card {
	position: relative;
	overflow: hidden;
	min-height: 160px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
	border: 1px solid rgba(255,255,255,.10);
	border-radius: var(--sf-radius);
	background:
		radial-gradient(circle at 50% 10%, rgba(255,255,255,.18), transparent 28%),
		linear-gradient(135deg, #5115ff, #0d91ff 55%, #ff5d00);
}

.sponsor-card--image {
	display: block;
	padding: 0;
	min-height: 0;
	text-decoration: none;
}

.sponsor-card-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--sf-radius);
	object-fit: contain;
}

.sponsor-card--image span,
.sponsor-card--image strong {
	position: absolute;
	top: 14px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	text-shadow: 0 2px 12px rgba(0,0,0,.7);
	white-space: nowrap;
}

.sponsor-card--image strong {
	top: auto;
	bottom: 14px;
}

.sponsor-card::before {
	display: none;
}

.sponsor-card span {
	position: relative;
	z-index: 1;
	color: rgba(255,255,255,.74);
	font-size: .68rem;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.sponsor-card strong {
	display: none;
}

.share-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
}

.share-bar strong {
	font-size: .8rem;
}

.share-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	justify-content: flex-end;
}

.share-btn {
	padding: 9px 12px;
	border: 1px solid var(--sf-line);
	border-radius: 11px;
	background: rgba(255,255,255,.025);
	color: #e6e9ef;
	font-size: .72rem;
	font-weight: 850;
	cursor: pointer;
}

.share-btn:hover {
	background: rgba(255,255,255,.07);
}

.mobile-nav {
	display: none;
}

/* Generic form elements */
.sf-form-group,
.sf-form-row {
	margin-bottom: 16px;
}

.sf-form-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	align-items: start;
}

.sf-form-group label,
.sf-branding-form label {
	display: block;
	margin-bottom: 6px;
	font-size: .78rem;
	font-weight: 800;
	color: #c5cbd5;
}

.sf-form-group input[type="text"],
.sf-form-group input[type="email"],
.sf-form-group input[type="password"],
.sf-form-group input[type="number"],
.sf-form-group input[type="url"],
.sf-form-group input[type="date"],
.sf-form-group input[type="time"],
.sf-form-group input[type="datetime-local"],
.sf-form-group input[type="color"],
.sf-form-group textarea,
.sf-form-group select,
.sf-branding-form input[type="text"],
.sf-branding-form input[type="color"],
.sf-branding-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sf-line);
	border-radius: 14px;
	background: rgba(255,255,255,.04);
	color: var(--sf-text);
	font-size: .9rem;
	transition: border-color .2s, background .2s;
}

.sf-form-group input:focus,
.sf-form-group textarea:focus,
.sf-form-group select:focus {
	outline: none;
	border-color: var(--sf-red-bright);
	background: rgba(255,255,255,.07);
}

.sf-form-group small,
.sf-field-hint {
	display: block;
	margin-top: 5px;
	color: var(--sf-muted);
	font-size: .72rem;
}

/* Tables */
.sf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .85rem;
}

.sf-table th,
.sf-table td {
	padding: 14px 12px;
	border-bottom: 1px solid var(--sf-line);
	text-align: left;
}

.sf-table th {
	color: var(--sf-muted);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.sf-table tr:last-child td {
	border-bottom: 0;
}

/* Buttons */
.sf-btn,
.sf-form-actions button,
.sf-form-actions .sf-btn,
.wp-core-ui .button.sf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 18px;
	border: 0;
	border-radius: 12px;
	font-size: .85rem;
	font-weight: 800;
	cursor: pointer;
	transition: .2s ease;
}

.sf-btn-primary,
.sf-form-actions button,
.sf-form-actions .sf-btn-primary {
	background: linear-gradient(145deg, var(--sf-red-bright), var(--sf-red-dark));
	color: white;
}

.sf-btn-primary:hover {
	filter: brightness(1.1);
}

.sf-btn-secondary {
	background: rgba(255,255,255,.08);
	color: white;
	border: 1px solid var(--sf-line);
}

.sf-btn-secondary:hover {
	background: rgba(255,255,255,.14);
}

.sf-btn-small,
.sf-btn-small.button {
	padding: 7px 12px;
	font-size: .74rem;
}

.sf-btn-lg {
	padding: 14px 24px;
	font-size: .95rem;
}

.sf-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 18px;
}

/* Badges */
.sf-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: .7rem;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
	background: rgba(255,255,255,.08);
	color: #e6e9ef;
	border: 0;
}

.sf-badge-live,
.sf-badge-live_,
.sf-badge-live\.\.\. {
	background: var(--sf-red);
	color: white;
}

.sf-badge-draft,
.sf-badge-pending {
	background: rgba(255,255,255,.08);
	color: var(--sf-muted);
	border: 1px solid var(--sf-line);
}

.sf-badge-ended {
	background: rgba(147,132,255,.11);
	color: #dad6ff;
	border: 1px solid rgba(147,132,255,.30);
}

.sf-badge-paid,
.sf-badge-membership {
	background: rgba(255,191,71,.11);
	color: #ded1af;
	border: 1px solid rgba(255,191,71,.18);
}

.sf-badge-free {
	background: rgba(67,209,122,.10);
	color: #c9f9da;
	border: 1px solid rgba(67,209,122,.28);
}

.sf-badge-scheduled {
	background: rgba(79,168,255,.11);
	color: #bfe9ff;
	border: 1px solid rgba(79,168,255,.30);
}

.sf-badge-login_required,
.sf-badge-login-required {
	background: rgba(255,255,255,.08);
	color: #e6e9ef;
	border: 1px solid var(--sf-line);
}

/* Notices */
.sf-notice,
.sf-watch-notices .sf-notice,
.page .notice {
	padding: 13px 16px;
	border-radius: 14px;
	font-size: .85rem;
	line-height: 1.45;
	margin-bottom: 12px;
}

.sf-notice-success {
	border: 1px solid rgba(67,209,122,.22);
	background: rgba(67,209,122,.08);
	color: #c9f9da;
}

.sf-notice-error {
	border: 1px solid rgba(224,0,27,.22);
	background: rgba(224,0,27,.08);
	color: #ff9ea8;
}

/* Login / register centred cards */
.sf-login-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 40px 20px;
}

.sf-login-card {
	width: min(420px, 100%);
	padding: 36px;
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius);
	background: linear-gradient(180deg, rgba(25,28,34,.94), rgba(15,17,21,.96));
	box-shadow: var(--sf-shadow);
}

.sf-login-card h1 {
	margin: 0 0 4px;
	font-size: 1.5rem;
	letter-spacing: 0;
}

.sf-login-subtitle {
	color: var(--sf-muted);
	font-size: .9rem;
	margin: 0 0 24px;
}

.sf-login-card #loginform p,
.sf-login-card .login-username,
.sf-login-card .login-password,
.sf-login-card .login-remember,
.sf-login-card .login-submit {
	margin: 0 0 14px;
}

.sf-login-card .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .82rem;
	color: #c5cbd5;
}

.sf-login-card #loginform input[type="text"],
.sf-login-card #loginform input[type="password"] {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--sf-line);
	border-radius: 14px;
	background: rgba(255,255,255,.04);
	color: var(--sf-text);
	font-size: .9rem;
}

.sf-login-card #loginform input[type="text"]:focus,
.sf-login-card #loginform input[type="password"]:focus {
	outline: none;
	border-color: var(--sf-red-bright);
	background: rgba(255,255,255,.07);
}

.sf-login-card #loginform input[type="submit"] {
	width: 100%;
	padding: 13px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--sf-red-bright), var(--sf-red-dark));
	color: white;
	font-weight: 800;
	font-size: .9rem;
	cursor: pointer;
}

.sf-login-links {
	text-align: center;
	font-size: .82rem;
	margin: 14px 0 0;
}

.sf-login-links a {
	color: var(--sf-muted);
}

.sf-login-links a:hover {
	color: white;
	text-decoration: underline;
}

/* Legacy / existing component compatibility */
.sf-portal-card,
.sf-form-card {
	border: 1px solid var(--sf-line);
	border-radius: var(--sf-radius);
	background: #15171c;
	padding: 20px;
}

.sf-portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.sf-replay-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sf-replay-card h3 {
	margin: 0;
	font-size: 1.05rem;
}

.sf-replay-card p {
	margin: 0;
	color: var(--sf-muted);
	font-size: .82rem;
}

.sf-help-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.sf-help-list li {
	padding: 14px;
	border: 1px solid var(--sf-line);
	border-radius: 14px;
	background: rgba(255,255,255,.025);
}

.sf-help-list li p {
	margin: 6px 0 0;
	color: var(--sf-muted);
	font-size: .82rem;
	line-height: 1.5;
}

.sf-image-preview {
	width: 100%;
	min-height: 120px;
	margin: 10px 0 8px;
	border: 1px dashed var(--sf-line);
	border-radius: 14px;
	background: rgba(255,255,255,.03);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.sf-image-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-image-picker-actions {
	display: flex;
	gap: 8px;
}

.sf-form-checkbox label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #c5cbd5;
	font-size: .85rem;
	cursor: pointer;
}

.sf-form-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--sf-red);
}

.sponsor-card[style*="background-image"]::before {
	display: none;
}

.sponsor-card[style*="background-image"] span,
.sponsor-card[style*="background-image"] strong {
	text-shadow: 0 2px 12px rgba(0,0,0,.7);
}

/* Utility */
.text-muted { color: var(--sf-muted); }
.text-red { color: var(--sf-red-bright); }
.text-green { color: var(--sf-green); }
.text-amber { color: var(--sf-amber); }

/* Mobile menu toggle */
.app-shell .sf-menu-toggle {
	display: none;
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 90;
	width: 44px;
	height: 44px;
	border: 1px solid var(--sf-line);
	border-radius: 12px;
	background: rgba(9,10,13,.88);
	backdrop-filter: blur(8px);
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.app-shell .sf-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: white;
	border-radius: 2px;
}

/* Responsive */
@media (max-width: 1180px) {
	:root { --sf-sidebar: 218px; }
	.app-shell .main { padding: 22px 22px 22px 26px; }
	.hero-inner { grid-template-columns: 1fr; align-items: start; justify-items: start; }
	.matchup { width: fit-content; max-width: 100%; }
	.watch-layout { grid-template-columns: minmax(0,1fr) 330px; }
}

@media (max-width: 920px) {
	.app-shell { flex-direction: column; }
	.app-shell .sf-menu-toggle { display: flex; }
	.app-shell .sidebar {
		position: fixed;
		inset: 0 auto 0 0;
		width: var(--sf-sidebar);
		transform: translateX(-100%);
		transition: transform .25s ease;
		background: rgba(9,10,13,.96);
		z-index: 80;
	}
	.app-shell .sidebar.open {
		transform: translateX(0);
	}
	.app-shell .main { margin-left: 0; padding: 18px 16px 20px; }
	.app-shell .mobile-brand { display: flex; align-items: center; gap: 10px; }
	.app-shell .mobile-brand .brand-mark { width: 38px; border-radius: 12px; }
	.app-shell .breadcrumb { display: none; }
	.app-shell .account-copy { display: none; }
	.app-shell .account-chip { padding-right: 7px; }
	.watch-layout { grid-template-columns: 1fr; }
	.watch-side { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.chat-panel { grid-column: 1 / -1; }
	.sponsor-card { min-height: 100%; }
	.app-shell .mobile-nav {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		width: calc(100% - 24px);
		margin: 0 12px 12px;
		z-index: 60;
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		padding: 8px;
		border: 1px solid var(--sf-line-strong);
		border-radius: 20px;
		background: rgba(12,14,18,.92);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		box-shadow: 0 20px 45px rgba(0,0,0,.45);
	}
	.app-shell .mobile-nav a {
		display: grid;
		place-items: center;
		gap: 4px;
		min-height: 48px;
		color: #89919d;
		font-size: .58rem;
		font-weight: 800;
	}
	.app-shell .mobile-nav svg {
		width: 19px;
		height: 19px;
	}
	.app-shell .mobile-nav a.active { color: white; }
}

@media (max-width: 680px) {
	.app-shell .main { padding: 14px 10px 18px; }
	.app-shell .topbar { padding: 0 4px; margin-bottom: 14px; }
	.hero-card { border-radius: 22px; min-height: 0; }
	.hero-inner { min-height: 0; padding: 18px; gap: 14px; }
	.app-shell .hero-title,
	.app-shell .page h1,
	.app-shell .page .hero-title { font-size: clamp(2.15rem, 12vw, 3.35rem); }
	.matchup { padding: 10px 16px; gap: 8px 18px; }
	.team-badge { width: 64px; border-radius: 18px; font-size: 1.08rem; }
	.team strong { font-size: .74rem; }
	.team span { font-size: .63rem; }
	.panel { border-radius: 18px; }
	.player-controls { padding: 9px 10px; }
	.control-cluster:first-child .icon-btn:nth-of-type(2) { display: none; }
	.live-readout span { display: none; }
	.quality-chip { display: none; }
	.info-strip { grid-template-columns: 1fr; padding: 15px; }
	.status-box { width: 100%; }
	.watch-side { grid-template-columns: 1fr; }
	.countdown { gap: 7px; }
	.time-unit { padding: 12px 4px; }
	.card-pad { padding: 16px; }
	.share-bar { align-items: flex-start; flex-direction: column; }
	.share-actions { flex-wrap: wrap; justify-content: flex-start; }
	.sponsor-bug { top: 10px; right: 10px; }
	.offline-state p { font-size: .82rem; }
	.sf-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 410px) {
	.watch-layout .matchup { gap: 8px 16px; padding: 6px 10px; }
	.watch-layout .team-badge { width: 48px; }
	.watch-layout .team strong { font-size: .75rem; }
	.action-grid { grid-template-columns: 1fr; }
	.share-btn { padding: 8px 9px; }
}

.app-shell .sponsor-bug {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 8px;
	background: rgba(0,0,0,.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: .72rem;
	font-weight: 700;
	color: rgba(255,255,255,.85);
	pointer-events: none;
}

.app-shell .sponsor-bug img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	border-radius: 4px;
}

.app-shell .sf-portal-footer {
	max-width: 1450px;
	margin: auto 0 0 0;
	padding: 20px 0 4px;
	border-top: 1px solid var(--sf-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	color: var(--sf-muted);
}

.app-shell.sf-no-sidebar .sidebar,
.app-shell.sf-no-sidebar .sf-menu-toggle,
.app-shell.sf-no-sidebar .mobile-nav {
	display: none !important;
}

.sf-feature-card h3,
.sf-home-card h3,
.sf-portal-card h2,
.sf-dashboard-welcome h2,
.sf-events-preview h2 {
	color: var(--sf-text);
}

.app-shell .sf-portal-footer__logo img {
	max-height: 40px;
	width: auto;
}

.app-shell .sf-portal-footer__text {
	color: var(--sf-muted);
	font-size: .78rem;
	line-height: 1.5;
	text-align: right;
}

.app-shell .sf-portal-footer__text:empty,
.app-shell .sf-portal-footer__logo:empty {
	display: none;
}

/* Watch page & sidebar UX overhaul */

.watch-layout {
	gap: 22px;
}

.watch-layout .hero-card {
	background: linear-gradient(135deg, #14161b 0%, #0d0f13 100%);
	box-shadow: none;
	border-radius: 20px;
}

.watch-layout .hero-card::before,
.watch-layout .hero-card::after {
	display: none;
}

.watch-layout .hero-inner {
	padding: 12px 18px;
}

.watch-layout .matchup {
	width: 100%;
	max-width: 100%;
	gap: 10px 24px;
	padding: 8px 14px;
	border-radius: 18px;
}

.watch-layout .team-badge {
	width: 56px;
	border-radius: 16px;
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.watch-layout .team strong {
	font-size: .8rem;
}

.watch-layout .team span {
	display: none;
}

.watch-layout .versus {
	font-size: .85rem;
}

/* Prominent paywall CTA on player overlay */
.sf-gate-cta {
	min-width: 220px;
	margin-top: 16px;
}

/* Mobile collapsible details for viewer count & sponsor */
.sf-mobile-collapsible {
	display: block;
}

.sf-collapsible-summary {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	list-style: none;
	font-size: .82rem;
	font-weight: 800;
	color: var(--sf-text);
	border-bottom: 1px solid var(--sf-line);
}

.sf-collapsible-summary::-webkit-details-marker {
	display: none;
}

.sf-chevron {
	width: 18px;
	height: 18px;
	color: var(--sf-muted);
	transition: transform .2s ease;
}

details[open] > .sf-collapsible-summary .sf-chevron {
	transform: rotate(180deg);
}

.sf-collapsible-content {
	display: block;
}

.watch-side > .sf-mobile-collapsible > .sf-collapsible-content {
	padding: 0;
}

/* Sidebar icon rail */
.app-shell .sf-sidebar-toggle {
	display: none;
	position: absolute;
	top: 18px;
	right: 10px;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sf-line);
	border-radius: 10px;
	background: rgba(255,255,255,.05);
	color: var(--sf-text);
	cursor: pointer;
	padding: 0;
	z-index: 2;
}

.app-shell .sf-sidebar-toggle svg {
	width: 18px;
	height: 18px;
	transition: transform .2s ease;
}

.app-shell.sidebar-rail .sf-sidebar-toggle svg {
	transform: rotate(180deg);
}

@media (min-width: 921px) {
	.app-shell.sidebar-rail {
		--sf-sidebar: 74px;
	}

	.app-shell.sidebar-rail .sidebar {
		padding: 18px 10px;
		gap: 18px;
	}

	.app-shell.sidebar-rail .brand {
		justify-content: center;
		padding: 0;
	}

	.app-shell:not(.sidebar-rail) .brand {
		padding-right: 44px;
	}

	.app-shell.sidebar-rail .brand-copy,
	.app-shell.sidebar-rail .nav-label,
	.app-shell.sidebar-rail .sidebar-footer {
		display: none;
	}

	.app-shell.sidebar-rail .nav-link {
		justify-content: center;
		padding: 0;
		min-height: 48px;
	}

	.app-shell.sidebar-rail .nav-link span {
		display: none;
	}

	.app-shell.sidebar-rail .main {
		padding-left: 22px;
	}

	.app-shell .sf-sidebar-toggle {
		display: flex;
	}
}

@media (max-width: 680px) {
	.sf-collapsible-summary {
		display: flex;
	}

	.detail-list > .sf-mobile-collapsible .sf-collapsible-summary {
		padding: 8px 0;
	}

	.detail-list > .sf-mobile-collapsible .sf-collapsible-content {
		padding: 0;
	}

	.detail-list > .sf-mobile-collapsible .sf-collapsible-content .detail-row {
		border-bottom: 0;
	}

	/* On mobile, hide the duplicate viewer-count label/icon inside the collapsed content so only the count shows */
	.detail-list > .sf-mobile-collapsible .sf-collapsible-content .detail-row > div:nth-of-type(2),
	.detail-list > .sf-mobile-collapsible .sf-collapsible-content .detail-row .detail-icon {
		display: none;
	}

	.detail-list > .sf-mobile-collapsible .sf-collapsible-content .detail-row {
		grid-template-columns: 1fr;
		justify-items: center;
		padding: 0 0 12px;
	}

	.detail-list > .sf-mobile-collapsible .sf-collapsible-content .detail-row .detail-value {
		margin: 0;
		font-size: 1.35rem;
		font-weight: 900;
	}

	.watch-layout .hero-inner {
		padding: 14px 16px;
	}

	.sf-gate-cta {
		width: 100%;
		min-width: 0;
	}
}

/* Portal home / landing / user dashboard */

.sf-home-hero {
	padding: 0;
	overflow: hidden;
}

.sf-home-hero__body {
	padding: clamp(28px, 5vw, 54px);
	background: #14161b;
	border-bottom: 1px solid var(--sf-line);
}

.sf-home-hero__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 22px;
}

.sf-home-hero__logo {
	width: 56px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border-radius: 16px;
	font-size: 1.6rem;
	font-weight: 900;
	color: white;
	background: var(--sf-red-bright);
	flex-shrink: 0;
}

.sf-home-hero__logo-img {
	display: block;
	max-height: 150px;
	width: auto;
	max-width: 360px;
	object-fit: contain;
	flex-shrink: 0;
}

.app-shell .sf-home-hero .sf-home-hero__brand h1 {
	margin: 0;
	font-size: clamp(1.15rem, 2.2vw, 1.75rem);
	font-weight: 900;
	letter-spacing: -0.035em;
	line-height: 1.2;
}

.sf-tv-rest {
	color: var(--sf-text);
}

.sf-tv-mark {
	color: var(--sf-red-bright);
}

.sf-home-hero__lead {
	margin: 0 0 18px;
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	font-weight: 700;
	color: #e8ebf0;
}

.sf-home-hero__text {
	margin: 0 0 34px;
	max-width: 640px;
	color: var(--sf-muted);
	font-size: 1.05rem;
	line-height: 1.65;
}

.sf-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.sf-home-hero__actions .sf-btn-lg {
	padding: 16px 28px;
	font-size: 1rem;
}

.sf-home-hero__features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1px;
	background: var(--sf-line);
	border-top: 1px solid var(--sf-line);
}

.sf-feature-card {
	padding: 34px 28px;
	background: rgba(255,255,255,.025);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	gap: 14px;
}

.sf-feature-card__icon {
	width: 52px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border-radius: 15px;
	background: var(--sf-red-bright);
	color: white;
}

.sf-feature-card__icon svg {
	width: 24px;
	height: 24px;
}

.sf-feature-card h3 {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
}

.sf-feature-card p {
	margin: 0;
	color: var(--sf-muted);
	font-size: .88rem;
	line-height: 1.5;
}

/* Dashboard */
.sf-dashboard-welcome {
	padding: 28px 32px;
}

.sf-dashboard-welcome h2 {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 800;
}

.sf-dashboard-welcome p {
	margin: 0;
	color: var(--sf-muted);
	font-size: .95rem;
}

.sf-home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.sf-home-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 22px;
	min-height: 170px;
	transition: transform .15s ease, box-shadow .15s ease;
}

.sf-home-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.sf-home-card__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sf-home-card h3 {
	margin: 0;
	font-size: .84rem;
	font-weight: 800;
	color: var(--sf-muted);
	letter-spacing: .06em;
	text-transform: uppercase;
}

.sf-home-card .sf-big-number {
	margin: 0;
	font-size: 2.6rem;
	font-weight: 900;
	line-height: 1;
	color: var(--sf-text);
}

.sf-home-card .sf-dashboard-icon {
	color: var(--sf-red-bright);
}

.sf-home-card .sf-dashboard-icon svg {
	width: 40px;
	height: 40px;
}

/* Upcoming streams preview */
.sf-events-preview {
	padding: 28px 32px;
}

.sf-events-preview .sf-list-header {
	margin-bottom: 22px;
}

.sf-events-preview .sf-list-header h2 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
}

.sf-event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.sf-event-card {
	display: flex;
	flex-direction: column;
	border-radius: 18px;
	overflow: hidden;
	background: rgba(255,255,255,.03);
	border: 1px solid var(--sf-line);
	transition: transform .15s ease, box-shadow .15s ease;
}

.sf-event-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(0,0,0,.25);
}

.sf-event-thumb {
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
}

.sf-event-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-event-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 20px;
}

.sf-event-card-body h4 {
	margin: 0 0 10px;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.25;
}

.sf-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.sf-event-date {
	margin: auto 0 16px;
	color: var(--sf-muted);
	font-size: .85rem;
}

.sf-event-card-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
}

.sf-home-empty {
	margin: 0;
	padding: 32px 0;
	text-align: center;
	color: var(--sf-muted);
	font-size: .95rem;
}

/* Responsive */
@media (max-width: 1020px) {
	.sf-home-hero__features {
		grid-template-columns: 1fr;
	}

	.sf-feature-card:not(:last-child) {
		border-right: 0;
		border-bottom: 1px solid var(--sf-line);
	}
}

@media (max-width: 760px) {
	.sf-home-hero__body {
		padding: 32px 26px;
	}

	.sf-home-hero__brand {
		gap: 12px;
	}

	.sf-home-hero__logo {
		width: 46px;
		font-size: 1.25rem;
	}

	.sf-home-hero__actions .sf-btn-lg {
		width: 100%;
	}

	.sf-home-grid {
		grid-template-columns: 1fr;
	}

	.sf-events-preview,
	.sf-dashboard-welcome {
		padding: 22px;
	}

	.sf-event-grid {
		grid-template-columns: 1fr;
	}
}

body.sf-portal-page .entry-title,
body.sf-portal-page .page-title,
body.sf-portal-page .entry-header h1,
body.sf-portal-page .page-header h1 {
	display: none !important;
}

.sf-portal-card .sf-big-number {
	margin: 0;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1;
	color: var(--sf-text);
}

/* Full-screen portal shortcode with 80% centered content */
body.sf-portal-page {
	background: var(--sf-page);
}

body.sf-portal-page .site,
body.sf-portal-page .site-content,
body.sf-portal-page .portal-page__main,
body.sf-portal-page .portal-layout,
body.sf-portal-page .portal-layout--full-width,
body.sf-portal-page .portal-layout__container,
body.sf-portal-page .portal-layout__body,
body.sf-portal-page .portal-layout__main {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.sf-portal-page .app-shell {
	width: 100%;
	min-height: 100vh;
	overflow: visible;
	border-radius: 0;
	justify-content: center;
	align-items: stretch;
}

body.sf-portal-page .app-shell .main {
	width: 80%;
	max-width: 1400px;
	flex: 0 1 80%;
	min-width: 0;
}

@media (max-width: 920px) {
	body.sf-portal-page .app-shell {
		justify-content: flex-start;
	}

	body.sf-portal-page .app-shell .main {
		width: 100%;
		max-width: none;
		flex: 1 1 0%;
	}
}
