/*
Theme Name: phui-clean-feed
Version: 1.0.0
Text Domain: phui-clean-feed
Description: TikTok-style fullscreen news feed for React Native WebView. No header/footer, snap scroll, infinite scroll.
*/

/* Đồng bộ mobile app: mobile/constants/theme.ts + registration patterns */
:root {
	--phui-brand-orange: #d85722;
	--phui-brand-orange-hover: #b8441a;
	--phui-screen-bg: #1f2937;
	--phui-surface: rgba(31, 41, 55, 0.9);
	--phui-surface-muted: rgba(31, 41, 55, 0.5);
	--phui-border: #4b5563;
	--phui-border-subtle: #374151;
	--phui-text: #ffffff;
	--phui-text-secondary: #d1d5db;
	--phui-text-muted: #9ca3af;
	--phui-text-hint: #6b7280;
	--phui-danger: #f87171;
	--phui-success: #4ade80;
	--phui-brand-rgb: 216, 87, 34;

	--news-bg: #050608;
	--news-card-bg: #111318;
	--news-text: #f5f5f7;
	--news-muted: var(--phui-text-muted);
	--news-accent: var(--phui-success);
	--news-border: #1f2933;
	--news-radius-lg: 18px;
	--news-radius-full: 999px;
}

/* Lock body scroll – only .posts scrolls */
html,
body {
	height: 100%;
	margin: 0;
	overflow: hidden;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--news-text);
	background-color: var(--news-bg);
	-webkit-text-size-adjust: 100%;
}

/* main wraps the scroll area */
.wrap {
	height: 100vh;
	overflow: hidden;
}

/* Single scroll container: fullscreen + snap */
.posts {
	height: 100vh;
	overflow-y: scroll;
	overflow-x: hidden;
	scroll-snap-type: y mandatory;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scroll-behavior: smooth;
}

/* One post = one screen, snap align, no gap */
/* padding-top/bottom accounts for mobile app header (76–80px) and tab bar + safe area (~83px) */
.post-item {
	min-height: 100vh;
	height: 100vh;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 80px 0.75rem 88px;
}

.post-item h2 {
	font-size: 1.15rem;
	line-height: 1.3;
	margin: 0 0 0.35rem;
}

.post-item h2 a {
	color: var(--phui-text);
	text-decoration: none;
}

.post-item h2 a:hover {
	color: var(--phui-text-secondary);
}

.post-item .post-meta {
	font-size: 0.72rem;
	color: var(--phui-text-secondary);
	margin-bottom: 0.5rem;
}

.post-item .excerpt {
	margin: 0 0 0.65rem;
	color: var(--phui-text);
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.45;
	font-size: 0.9rem;
}

.post-item .post-thumbnail {
	width: 100%;
	border-radius: 6px;
	margin-bottom: 0.65rem;
}

.post-item .read-more {
	display: inline-block;
	margin-top: auto;
	padding: 0.4rem 0.75rem;
	background: var(--phui-brand-orange);
	color: var(--phui-text);
	text-decoration: none;
	font-size: 0.8rem;
	border-radius: 8px;
}

.post-item .read-more:hover {
	background: var(--phui-brand-orange-hover);
}

/* Pagination: hidden but in DOM for Infinite Scroll */
.pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.page-load-status {
	position: absolute;
	left: -9999px;
}

/* Single post page: scroll trong .single-scroll (để WebView bắt scroll) */
/* Backdrop đen mờ bằng multiple backgrounds (gradient phủ lên ảnh) */
body {
	background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://app.phuitayninh.com/wp-content/uploads/2026/02/bg-news.jpeg');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}
body.single {
	overflow: hidden;
}

body.single .wrap,
.wrap.single-wrap {
	height: 100vh;
	overflow: hidden;
}

.single-wrap {
	max-width: 640px;
	margin: 0 auto;
	padding: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

.single-wrap .single-scroll {
	flex: 1;
	min-height: 0;
	height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0.75rem;
}

.single-wrap .back-link {
	margin-bottom: 0.65rem;
}

.single-wrap .back-link a {
	color: var(--phui-text-secondary);
	text-decoration: none;
}

.single-wrap .back-link a:hover {
	text-decoration: underline;
}

.single-post h1 {
	font-size: 1.25rem;
	margin: 0 0 0.35rem;
}

.single-post .post-meta {
	font-size: 0.72rem;
	color: var(--phui-text-secondary);
	margin-bottom: 0.65rem;
}

.single-post .entry-content {
	line-height: 1.5;
	font-size: 0.9rem;
}

.single-post .entry-content img {
	max-width: 100%;
	height: auto;
}

/* Teams list: 2 cột + infinite scroll */
body.teams-list .wrap.teams-wrap {
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.teams-scroll,
.matches-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 80px 0.75rem 88px;
}

.teams-title {
	font-size: 1.2rem;
	margin: 0 0 0.65rem;
	text-align: center;
}

.teams-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.team-card {
	margin: 0;
	padding: 0;
}

.team-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	overflow: hidden;
	transition: background 0.2s;
}

.team-card-link:hover {
	background: var(--phui-surface);
}

.team-card-img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.team-card-placeholder {
	width: 100%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--phui-surface-muted);
	font-size: 1.5rem;
	font-weight: bold;
}

.team-card-name {
	font-size: 0.82rem;
	margin: 0;
	padding: 0.5rem;
	text-align: center;
	line-height: 1.3;
}

.teams-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0.65rem 0.5rem;
	text-align: center;
	color: var(--phui-text-muted);
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	font-size: 0.9rem;
}

.teams-pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.teams-load-status {
	position: absolute;
	left: -9999px;
}

/* Team single: hero + sections + members + tournaments (aligned with stadium-single) */
body.team-single .wrap.single-wrap .team-single-scroll {
	padding: 0;
}

.team-single-card {
	background: var(--phui-screen-bg, #1f2937);
	border-radius: 0;
	overflow: hidden;
	max-width: 100%;
}

.team-single-hero {
	position: relative;
	min-height: 200px;
	max-height: 42vh;
	overflow: hidden;
}

.team-single-hero-img {
	width: 100%;
	height: 100%;
	min-height: 200px;
	max-height: 42vh;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.team-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(31, 41, 55, 0.95) 0%,
		rgba(31, 41, 55, 0.35) 45%,
		rgba(31, 41, 55, 0.2) 100%
	);
	pointer-events: none;
}

.team-single-hero-inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 0.75rem 1rem;
}

.team-single-hero-heading {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.team-single-hero-logo-wrap {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.6));
}

.team-single-hero-logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.team-single-hero-title-block {
	flex: 1;
	min-width: 0;
}

.team-single-title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--phui-text, #fff);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.team-single-admin-actions {
	margin: 0;
}

.team-single-body {
	padding: 1rem 0.75rem 5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.team-single-section {
	margin: 0;
}

.team-single-section-label {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--phui-text-hint, #6b7280);
}

.team-single-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--phui-text-secondary, #d1d5db);
}

.team-single-tel {
	color: var(--phui-brand-orange, #d85722);
	font-weight: 600;
	text-decoration: none;
}

.team-single-tel:hover {
	text-decoration: underline;
}

.team-single-mo-ta-block {
	margin: 0;
}

.team-single-mo-ta-block-inner {
	padding: 1rem 1rem 1.1rem;
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 14px;
	border-left: 4px solid var(--phui-brand-orange, #d85722);
}

.team-single-mo-ta-heading {
	margin: 0 0 0.65rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--phui-text-hint, #6b7280);
}

.team-single-mo-ta-content {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--phui-text-secondary, #d1d5db);
}

.team-single-mo-ta-content > p:first-child {
	margin-top: 0;
}

.team-single-mo-ta-content > p:last-child {
	margin-bottom: 0;
}

.team-single-mo-ta-content p {
	margin: 0 0 0.75rem;
}

.team-single-mo-ta-content a {
	color: var(--phui-brand-orange, #d85722);
	text-decoration: underline;
}

.team-single-mo-ta-content ul,
.team-single-mo-ta-content ol {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.team-single-mo-ta-content li {
	margin-bottom: 0.35rem;
}

.team-members-grid {
	list-style: none;
	margin: 0.35rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.team-member-card {
	margin: 0;
}

.team-member-card-inner {
	display: flex;
	flex-direction: column;
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 12px;
	overflow: hidden;
	height: 100%;
}

.team-member-photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	background: var(--phui-surface, #374151);
}

.team-member-photo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--phui-text-muted, #9ca3af);
}

.team-member-body {
	padding: 0.5rem 0.55rem 0.65rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.team-member-name {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--phui-text, #fff);
}

.team-member-meta {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--phui-text-muted, #9ca3af);
}

.team-member-sdt {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.35;
}

.team-single-empty {
	margin: 0;
	padding: 0.75rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--phui-text-muted, #9ca3af);
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 12px;
}

.team-single-tournaments-grid {
	margin-top: 0.35rem;
}

/* Profile single: chi tiết user theo email */
.profile-detail {
	padding: 80px 0.75rem 88px;
}

.profile-avatar {
	margin-bottom: 0.65rem;
}

.profile-avatar-img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.profile-detail-title {
	font-size: 1.2rem;
	margin: 0 0 0.65rem;
}

.profile-detail-data {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.35rem 1rem;
	font-size: 0.9rem;
}

.profile-detail-data dt {
	margin: 0;
	font-weight: 600;
	color: var(--phui-text-secondary);
}

.profile-detail-data dd {
	margin: 0;
}

.profile-edit {
	margin-top: 1rem;
	text-align: center;
}

.profile-edit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	box-sizing: border-box;
	background: var(--phui-brand-orange);
	color: var(--phui-text);
	text-decoration: none;
	font-size: 0.9rem;
	border-radius: 8px;
	border: none;
	font-weight: 600;
}

.profile-edit-button:hover {
	background: var(--phui-brand-orange-hover);
}

.profile-edit-form {
	margin-top: 1rem;
}

.profile-edit-field {
	margin-bottom: 0.75rem;
}

.profile-edit-field label {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	color: var(--phui-text-secondary);
}

.profile-edit-field input,
.profile-edit-field select,
.profile-edit-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.625rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--phui-border);
	background: var(--phui-surface);
	color: var(--phui-text);
	font-size: 1rem;
}

.profile-edit-field textarea {
	min-height: 100px;
	resize: vertical;
	line-height: 1.45;
}

.profile-edit-field input[type="checkbox"] {
	width: auto;
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.35rem;
	min-width: 1.25rem;
	min-height: 1.25rem;
}

.phui-field-checkbox label {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	cursor: pointer;
	padding: 0.35rem 0;
	min-height: 44px;
	box-sizing: border-box;
}

/* Team new: URL + nút Media Library (mobile-first: cột → hàng) */
.team-new-media-row {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.5rem;
	align-items: stretch;
}

.team-new-media-row input[type="url"] {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

@media (min-width: 480px) {
	.team-new-media-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}

	.team-new-media-row input[type="url"] {
		flex: 1 1 10rem;
		width: auto;
	}
}

.phui-team-new-media-btn {
	margin: 0;
	padding: 0.5rem 0.75rem;
	min-height: 44px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid var(--phui-border);
	background: transparent;
	color: var(--phui-text-secondary);
	cursor: pointer;
	font-size: 0.85rem;
	white-space: nowrap;
	width: 100%;
}

@media (min-width: 480px) {
	.phui-team-new-media-btn {
		width: auto;
	}
}

.phui-team-new-media-btn:hover {
	background: var(--phui-surface-muted);
}

.phui-team-new-media-btn:focus-visible {
	outline: 2px solid var(--phui-text);
	outline-offset: 2px;
}

.team-new-media-hint {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: var(--phui-text-hint);
}

.team-new-media-preview {
	display: none;
	margin-top: 0.5rem;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--phui-border-subtle);
	background: var(--phui-surface-muted);
}

.team-new-media-preview.is-visible {
	display: block;
}

.team-new-media-preview-img {
	display: block;
	width: 100%;
	max-height: 220px;
	object-fit: cover;
}

/* Hai cột chỉ từ breakpoint nhỏ (mobile-first) */
.phui-form-row--split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

@media (min-width: 480px) {
	.phui-form-row--split {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.profile-edit-actions {
	margin-top: 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.profile-edit-actions .profile-edit-button,
.profile-edit-actions .profile-edit-submit {
	width: 100%;
}

.profile-edit-actions .profile-edit-cancel {
	width: 100%;
}

@media (min-width: 480px) {
	.profile-edit-actions {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		align-items: center;
		gap: 0.5rem 0.75rem;
	}

	.profile-edit-actions .profile-edit-button,
	.profile-edit-actions .profile-edit-submit,
	.profile-edit-actions .profile-edit-cancel {
		width: auto;
	}
}

.profile-edit-submit {
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	box-sizing: border-box;
	border-radius: 8px;
	font-weight: 600;
}

.profile-edit-cancel {
	margin-left: 0;
	padding: 0.625rem 1rem;
	border-radius: 9999px;
	border: 1px solid var(--phui-border);
	background: transparent;
	color: var(--phui-text-secondary);
	cursor: pointer;
	font-size: 0.9rem;
	min-height: 44px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

@media (min-width: 480px) {
	.profile-edit-cancel {
		margin-left: 0.5rem;
	}
}

/* Stadiums list: 2 cột + infinite scroll */
body.stadiums-list .wrap.stadiums-wrap {
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.stadiums-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 80px 0.75rem 88px;
}

.stadiums-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.stadium-card {
	margin: 0;
	padding: 0;
}

.stadium-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	overflow: hidden;
	transition: background 0.2s;
}

.stadium-card-link:hover {
	background: var(--phui-surface);
}

.stadium-card-img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.stadium-card-name {
	font-size: 0.82rem;
	margin: 0;
	padding: 0.5rem;
	text-align: center;
	line-height: 1.3;
}

.stadiums-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0.65rem 0.5rem;
	text-align: center;
	color: var(--phui-text-muted);
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	font-size: 0.9rem;
}

.stadiums-pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.stadiums-load-status {
	position: absolute;
	left: -9999px;
}

/* Matches list: infinite scroll + dark match card */
body.matches-list .wrap.matches-wrap {
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.matches-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.match-card {
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	background: linear-gradient(145deg, rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.65));
	border: 1px solid var(--phui-border-subtle);
	border-radius: 14px;
	padding: 14px 16px;
	color: var(--phui-text-secondary);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.match-card-meta {
	text-align: center;
	margin-bottom: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.match-card-meta > * {
	width: 100%;
}

.match-card-round {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--phui-brand-orange);
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.match-card-time {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin-top: 6px;
}

.match-card-info {
	font-size: 14px;
	line-height: 1.4;
	margin-top: 2px;
}

.match-card-link {
	color: var(--phui-brand-orange);
	text-decoration: none;
}

.match-card-link:hover {
	text-decoration: underline;
}

.match-card-result {
	font-size: 13px;
	line-height: 1.4;
	margin-top: 4px;
	color: var(--phui-text-muted);
	text-align: center;
}

.match-card-status {
	display: inline-block;
}

.match-card-teams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 12px;
	align-items: end;
	margin-top: 8px;
}

.match-card-team {
	text-align: center;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.match-card-team-name {
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.match-card-detail-wrap {
	margin: 12px 0 0;
	text-align: center;
}

.match-card-detail-link {
	font-size: 13px;
	color: var(--phui-brand-orange);
	text-decoration: none;
}

.match-card-detail-link:hover {
	text-decoration: underline;
}

.match-card-team-logo {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--phui-text);
	padding: 4px;
	object-fit: cover;
	margin-top: 8px;
}

.match-card-vs {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px 20px;
}

.match-card-score {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	color: var(--phui-brand-orange);
	letter-spacing: 0.5px;
}

.match-card-score--pending {
	font-size: 18px;
	font-weight: 700;
	color: var(--phui-text-muted);
	text-transform: uppercase;
}

.matches-empty {
	margin: 0 auto;
	max-width: 760px;
	width: 100%;
	padding: 0.75rem;
	text-align: center;
	color: var(--phui-text-muted);
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
}

.matches-pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.matches-load-status {
	position: absolute;
	left: -9999px;
}

/* Stadium single: hero + sections + map */
body.stadium-single .wrap.single-wrap .stadium-single-scroll {
	padding: 0;
}

.stadium-single-card {
	background: var(--phui-screen-bg, #1f2937);
	border-radius: 0;
	overflow: hidden;
	max-width: 100%;
}

.stadium-single-hero {
	position: relative;
	min-height: 200px;
	max-height: 42vh;
	overflow: hidden;
}

.stadium-single-hero-img {
	width: 100%;
	height: 100%;
	min-height: 200px;
	max-height: 42vh;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.stadium-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(31, 41, 55, 0.95) 0%,
		rgba(31, 41, 55, 0.35) 45%,
		rgba(31, 41, 55, 0.2) 100%
	);
	pointer-events: none;
}

.stadium-single-hero-inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 0.75rem 1rem;
}

.stadium-single-title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--phui-text, #fff);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.stadium-single-admin-actions {
	margin: 0;
}

.stadium-single-body {
	padding: 1rem 0.75rem 5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.stadium-single-section {
	margin: 0;
}

.stadium-single-section-label {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--phui-text-hint, #6b7280);
}

.stadium-single-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--phui-text-secondary, #d1d5db);
}

.stadium-single-tel {
	color: var(--phui-brand-orange, #d85722);
	font-weight: 600;
	text-decoration: none;
}

.stadium-single-tel:hover {
	text-decoration: underline;
}

.stadium-single-desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--phui-text-secondary, #d1d5db);
}

/* Khối mô tả (mo_ta): card nổi bật */
.stadium-single-mo-ta-block {
	margin: 0;
}

.stadium-single-mo-ta-block-inner {
	padding: 1rem 1rem 1.1rem;
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 14px;
	border-left: 4px solid var(--phui-brand-orange, #d85722);
}

.stadium-single-mo-ta-heading {
	margin: 0 0 0.65rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--phui-text-hint, #6b7280);
}

.stadium-single-mo-ta-content {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--phui-text-secondary, #d1d5db);
}

.stadium-single-mo-ta-content > p:first-child {
	margin-top: 0;
}

.stadium-single-mo-ta-content > p:last-child {
	margin-bottom: 0;
}

.stadium-single-mo-ta-content p {
	margin: 0 0 0.75rem;
}

.stadium-single-mo-ta-content a {
	color: var(--phui-brand-orange, #d85722);
	text-decoration: underline;
}

.stadium-single-mo-ta-content ul,
.stadium-single-mo-ta-content ol {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.stadium-single-mo-ta-content li {
	margin-bottom: 0.35rem;
}

.stadium-single-map {
	width: 100%;
	height: 240px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--phui-border-subtle, #374151);
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	z-index: 0;
}

.stadium-single-map .leaflet-container {
	font-family: inherit;
}

.stadium-single-map-attrib {
	margin: 0.5rem 0 0;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--phui-text-muted, #9ca3af);
}

.stadium-single-map-attrib a {
	color: var(--phui-text-secondary, #d1d5db);
	text-decoration: underline;
}

.stadium-single-map-fallback {
	margin: 0;
	font-size: 0.9rem;
}

.stadium-single-map-fallback.muted {
	color: var(--phui-text-muted, #9ca3af);
}

.stadium-single-map-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 0.85rem;
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 10px;
	color: var(--phui-brand-orange, #d85722);
	font-weight: 600;
	text-decoration: none;
}

.stadium-single-map-link:hover {
	background: var(--phui-surface, rgba(31, 41, 55, 0.9));
}

.stadium-single-empty {
	margin: 0;
	padding: 0.75rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--phui-text-muted, #9ca3af);
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 12px;
}

.stadium-single-tournaments-grid {
	margin-top: 0.35rem;
}

/* Tournaments list: 2 cột + infinite scroll */
body.tournaments-list .wrap.tournaments-wrap {
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tournaments-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 80px 0.75rem 88px;
}

.tournaments-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tournament-card {
	margin: 0;
	padding: 0;
}

.tournament-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	overflow: hidden;
	transition: background 0.2s;
}

.tournament-card-link:hover {
	background: var(--phui-surface);
}

.tournament-card-img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
}

.tournament-card-name {
	font-size: 0.82rem;
	margin: 0;
	padding: 0.5rem;
	text-align: center;
	line-height: 1.3;
}

.tournaments-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 0.65rem 0.5rem;
	text-align: center;
	color: var(--phui-text-muted);
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	font-size: 0.9rem;
}

.tournaments-pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.tournaments-load-status {
	position: absolute;
	left: -9999px;
}

/* Tournament single: hero + mo_ta + teams + stadiums (aligned with team-single) */
body.tournament-single .wrap.single-wrap .tournament-single-scroll {
	padding: 0;
}

.tournament-single-card {
	background: var(--phui-screen-bg, #1f2937);
	border-radius: 0;
	overflow: hidden;
	max-width: 100%;
}

.tournament-single-hero {
	position: relative;
	min-height: 200px;
	max-height: 42vh;
	overflow: hidden;
}

.tournament-single-hero-img {
	width: 100%;
	height: 100%;
	min-height: 200px;
	max-height: 42vh;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.tournament-single-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(31, 41, 55, 0.95) 0%,
		rgba(31, 41, 55, 0.35) 45%,
		rgba(31, 41, 55, 0.2) 100%
	);
	pointer-events: none;
}

.tournament-single-hero-inner {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 0.75rem 1rem;
}

.tournament-single-title {
	margin: 0 0 0.35rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--phui-text, #fff);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.tournament-single-hero-dates {
	margin: 0 0 0.5rem;
	font-size: 0.88rem;
	line-height: 1.4;
	color: rgba(229, 231, 235, 0.95);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.tournament-single-admin-actions {
	margin: 0;
}

.tournament-single-body {
	padding: 1rem 0.75rem 5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tournament-single-section {
	margin: 0;
}

.tournament-single-section-label {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--phui-text-hint, #6b7280);
}

.tournament-single-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--phui-text-secondary, #d1d5db);
}

.tournament-single-status-pill {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--phui-text, #fff);
	background: rgba(216, 87, 34, 0.25);
	border: 1px solid var(--phui-brand-orange, #d85722);
	border-radius: 999px;
}

.tournament-single-mo-ta-block {
	margin: 0;
}

.tournament-single-mo-ta-block-inner {
	padding: 1rem 1rem 1.1rem;
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 14px;
	border-left: 4px solid var(--phui-brand-orange, #d85722);
}

.tournament-single-mo-ta-heading {
	margin: 0 0 0.65rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--phui-text-hint, #6b7280);
}

.tournament-single-mo-ta-content {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--phui-text-secondary, #d1d5db);
}

.tournament-single-mo-ta-content > p:first-child {
	margin-top: 0;
}

.tournament-single-mo-ta-content > p:last-child {
	margin-bottom: 0;
}

.tournament-single-mo-ta-content p {
	margin: 0 0 0.75rem;
}

.tournament-single-mo-ta-content a {
	color: var(--phui-brand-orange, #d85722);
	text-decoration: underline;
}

.tournament-single-mo-ta-content ul,
.tournament-single-mo-ta-content ol {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.tournament-single-mo-ta-content li {
	margin-bottom: 0.35rem;
}

.tournament-single-empty {
	margin: 0;
	padding: 0.75rem;
	text-align: center;
	font-size: 0.9rem;
	color: var(--phui-text-muted, #9ca3af);
	background: var(--phui-surface-muted, rgba(31, 41, 55, 0.5));
	border: 1px solid var(--phui-border-subtle, #374151);
	border-radius: 12px;
}

.tournament-single-teams-grid,
.tournament-single-stadiums-grid {
	margin-top: 0.35rem;
}

/* Match single: banner — info block — banner (theo layout mẫu) */
body.match-single .wrap.single-wrap .match-single-scroll {
	padding: 0;
}

.match-single-article {
	max-width: 100%;
	background: var(--phui-screen-bg, #1a1a1a);
	overflow: hidden;
}

.match-single-banner {
	line-height: 0;
	margin: 0;
	padding: 0;
}

.match-single-banner-img {
	width: 100%;
	max-height: 52vh;
	min-height: 180px;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.match-single-banner-img--rounded-bottom {
	border-radius: 0 0 18px 18px;
}

.match-single-info {
	text-align: center;
	padding: 1.75rem 1rem 2rem;
	background: var(--phui-screen-bg, #1a1a1a);
}

.match-single-headline {
	margin: 0 0 0.65rem;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--phui-text, #fff);
}

.match-single-datetime {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
}

.match-single-venue {
	margin: 0 0 1.25rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
}

.match-single-score {
	margin: 0;
	font-size: 2.25rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--phui-text, #fff);
}

.match-single-penalties {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(229, 231, 235, 0.92);
}

.match-single-credits {
	margin: 0 auto 1.5rem;
	padding: 0;
	max-width: 21rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

.match-single-credit-row {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1 !important;
}

.match-single-credit-label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	text-align: center;
}

.match-single-credit-value {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--phui-brand-orange, #d85722);
	text-align: center;
}

.match-single-credit-link {
	color: var(--phui-brand-orange, #d85722);
	text-decoration: none;
}

.match-single-credit-link:hover {
	text-decoration: underline;
}

.match-single-vs {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 1rem 0.75rem;
	align-items: stretch;
	max-width: 22rem;
	margin: 0 auto 1.25rem;
}

.match-single-vs-mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	min-width: 92px;
	align-self: stretch;
	height: auto;
}

.match-single-vs-mid .match-single-score {
	font-size: 1.7rem;
}

.match-single-vs-mid .match-single-penalties {
	font-size: 0.8rem;
}

.match-single-vs-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.55rem;
}

.match-single-vs-name {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--phui-text, #fff);
	line-height: 1.25;
}

.match-single-vs-logo-wrap {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
	background: rgba(0, 0, 0, 0.25);
	flex-shrink: 0;
}

.match-single-vs-logo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.match-single-admin {
	margin: 0 0 0.75rem;
	text-align: center;
}

.match-single-back-wrap {
	margin: 0;
	text-align: center;
}

.match-single-back {
	font-size: 0.88rem;
	color: var(--phui-text-muted, #9ca3af);
	text-decoration: none;
}

.match-single-back:hover {
	color: var(--phui-brand-orange, #d85722);
	text-decoration: underline;
}

/* Users list: list layout + infinite scroll */
body.users-list .wrap.users-wrap {
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.users-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 80px 0.75rem 88px;
}

.users-grid {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.user-card {
	margin: 0;
	padding: 0;
}

.user-card-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 9999px;
	padding: 0.5rem 0.75rem;
	transition: background 0.2s, transform 0.1s;
}

.user-card-link:hover {
	background: var(--phui-surface);
	transform: translateY(-1px);
}

.user-card-avatar-wrap {
	flex: 0 0 auto;
}

.user-card-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.user-card-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.user-card-name {
	margin: 0 0 0.1rem;
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-card-email {
	margin: 0;
	font-size: 0.8rem;
	color: var(--phui-brand-orange);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-card-role {
	flex: 0 0 auto;
	margin-left: 0.5rem;
	font-size: 0.78rem;
	color: var(--phui-text-secondary);
	white-space: nowrap;
	text-align: right;
}

.users-empty {
	margin: 0;
	padding: 0.65rem 0.5rem;
	text-align: center;
	color: var(--phui-text-muted);
	background: var(--phui-surface-muted);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 12px;
	font-size: 0.9rem;
}

.users-pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Users list: FAB tạo user (admin) */
.users-fab {
	position: fixed;
	z-index: 100;
	right: max(0.75rem, env(safe-area-inset-right, 0px));
	bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.users-fab__btn {
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	text-decoration: none;
	color: var(--phui-text);
	background: var(--phui-brand-orange);
	border-radius: 50%;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.2);
	transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.users-fab__btn:hover {
	background: var(--phui-brand-orange-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 3px 8px rgba(0, 0, 0, 0.25);
}

.users-fab__btn:focus-visible {
	outline: 2px solid var(--phui-text);
	outline-offset: 3px;
}

.users-fab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 300;
	line-height: 1;
}

.users-load-status {
	position: absolute;
	left: -9999px;
}

/* Form admin (user new + create/edit match, team, stadium, tournament) — mobile-first */
body.user-new .user-new-inner,
body.match-new .user-new-inner,
body.match-edit .user-new-inner,
body.stadium-new .user-new-inner,
body.stadium-edit .user-new-inner,
body.team-new .user-new-inner,
body.team-edit .user-new-inner,
body.tournament-new .user-new-inner,
body.tournament-edit .user-new-inner {
	width: 100%;
	max-width: min(100%, 28rem);
	margin: 0 auto;
	padding-top: max(5rem, calc(env(safe-area-inset-top, 0px) + 3.5rem));
	padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
	padding-bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
	padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
	box-sizing: border-box;
}

.phui-form-page .user-new-form {
	width: 100%;
}

.user-new-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 1rem;
	text-align: center;
	line-height: 1.3;
}

@media (min-width: 480px) {
	.user-new-title {
		font-size: 1.35rem;
	}
}

.user-new-message {
	margin: 0 0 1rem;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	font-size: 0.9rem;
	text-align: center;
}

.user-new-message--success {
	background: color-mix(in srgb, var(--phui-success) 22%, transparent);
	color: var(--phui-success);
}

.user-new-message--error {
	background: color-mix(in srgb, var(--phui-danger) 22%, transparent);
	color: var(--phui-danger);
}

.user-new-profile-link {
	margin: 0 0 1rem;
	text-align: center;
	font-size: 0.9rem;
}

.user-new-profile-link a {
	color: var(--phui-brand-orange);
	text-decoration: underline;
}

.user-new-field select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--phui-border);
	background: var(--phui-surface);
	color: var(--phui-text);
	font-size: 1rem;
}

/* Input trong form user-new khi không dùng .profile-edit-field (đồng bộ token) */
.user-new-field input:not([type="checkbox"]):not([type="radio"]),
.user-new-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.625rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--phui-border);
	background: var(--phui-surface);
	color: var(--phui-text);
	font-size: 1rem;
}

.user-new-field textarea {
	min-height: 100px;
	resize: vertical;
	line-height: 1.45;
}

/* Tournament new/edit: Select2 dark (khớp .user-new-field select) */
body.tournament-new .select2-container,
body.tournament-edit .select2-container {
	font-size: 0.9rem;
}

body.tournament-new .select2-container--default .select2-selection--multiple,
body.tournament-edit .select2-container--default .select2-selection--multiple {
	min-height: 2.75rem;
	border-radius: 8px;
	border: 1px solid var(--phui-border);
	background: var(--phui-surface);
}

body.tournament-new .select2-container--default.select2-container--focus .select2-selection--multiple,
body.tournament-new .select2-container--default.select2-container--open .select2-selection--multiple,
body.tournament-edit .select2-container--default.select2-container--focus .select2-selection--multiple,
body.tournament-edit .select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: rgba(255, 255, 255, 0.55);
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-selection__rendered,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	color: var(--phui-text);
	padding: 0.2rem 0.45rem;
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-selection__choice,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin-top: 0.25rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--phui-text);
	border-radius: 4px;
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: var(--phui-text-secondary);
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: var(--phui-text);
	background: rgba(239, 68, 68, 0.35);
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
	margin-top: 0.25rem;
	color: var(--phui-text);
	background: transparent;
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
	color: rgba(229, 231, 235, 0.45);
}

body.tournament-new .select2-dropdown,
body.tournament-edit .select2-dropdown {
	background: var(--news-card-bg);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

body.tournament-new .select2-results > .select2-results__options,
body.tournament-edit .select2-results > .select2-results__options {
	color: var(--phui-text-secondary);
	max-height: 240px;
}

body.tournament-new .select2-results__option,
body.tournament-edit .select2-results__option {
	background-color: transparent;
}

body.tournament-new .select2-results__option--highlighted.select2-results__option--selectable,
body.tournament-edit .select2-results__option--highlighted.select2-results__option--selectable {
	background: rgba(var(--phui-brand-rgb), 0.4) !important;
	color: var(--phui-text) !important;
}

body.tournament-new .select2-results__option--selected,
body.tournament-edit .select2-results__option--selected {
	background: rgba(255, 255, 255, 0.08);
	color: var(--phui-text);
}

body.tournament-new .select2-results__option[aria-selected="true"],
body.tournament-edit .select2-results__option[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.06);
}

body.tournament-new .select2-search--dropdown,
body.tournament-edit .select2-search--dropdown {
	padding: 0.5rem;
	background: var(--news-bg);
	border-bottom: 1px solid var(--phui-border-subtle);
}

body.tournament-new .select2-search--dropdown .select2-search__field,
body.tournament-edit .select2-search--dropdown .select2-search__field {
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(0, 0, 0, 0.45);
	color: var(--phui-text);
	padding: 0.4rem 0.55rem;
}

body.tournament-new .select2-search--dropdown .select2-search__field:focus,
body.tournament-edit .select2-search--dropdown .select2-search__field:focus {
	border-color: rgba(var(--phui-brand-rgb), 0.65);
	outline: none;
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-selection__clear,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-selection__clear {
	color: var(--phui-text-secondary);
	margin-top: 0.25rem;
}

body.tournament-new .select2-container--default .select2-selection--multiple .select2-selection__clear:hover,
body.tournament-edit .select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
	color: var(--phui-text);
}

/* Match edit: Select2 dark cho nhan su tran dau */
body.match-edit .phui-match-user-select2.select2-hidden-accessible {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

body.match-edit .select2-container {
	font-size: 0.9rem;
}

body.match-edit .select2-container--default .select2-selection--multiple {
	min-height: 2.75rem;
	border-radius: 8px;
	border: 1px solid var(--phui-border);
	background: var(--phui-surface);
}

body.match-edit .select2-container--default.select2-container--focus .select2-selection--multiple,
body.match-edit .select2-container--default.select2-container--open .select2-selection--multiple {
	border-color: rgba(255, 255, 255, 0.55);
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	color: var(--phui-text);
	padding: 0.2rem 0.45rem;
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin-top: 0.25rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--phui-text);
	border-radius: 4px;
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	color: var(--phui-text-secondary);
	border-right: 1px solid rgba(255, 255, 255, 0.18);
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: var(--phui-text);
	background: rgba(239, 68, 68, 0.35);
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
	margin-top: 0.25rem;
	color: var(--phui-text);
	background: transparent;
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field::placeholder {
	color: rgba(229, 231, 235, 0.45);
}

body.match-edit .select2-dropdown {
	background: var(--news-card-bg);
	border: 1px solid var(--phui-border-subtle);
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

body.match-edit .select2-results > .select2-results__options {
	color: var(--phui-text-secondary);
	max-height: 240px;
}

body.match-edit .select2-results__option {
	background-color: transparent;
}

body.match-edit .select2-results__option--highlighted.select2-results__option--selectable {
	background: rgba(var(--phui-brand-rgb), 0.4) !important;
	color: var(--phui-text) !important;
}

body.match-edit .select2-results__option--selected,
body.match-edit .select2-results__option[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.08);
	color: var(--phui-text);
}

body.match-edit .select2-search--dropdown {
	padding: 0.5rem;
	background: var(--news-bg);
	border-bottom: 1px solid var(--phui-border-subtle);
}

body.match-edit .select2-search--dropdown .select2-search__field {
	border-radius: 4px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(0, 0, 0, 0.45);
	color: var(--phui-text);
	padding: 0.4rem 0.55rem;
}

body.match-edit .select2-search--dropdown .select2-search__field:focus {
	border-color: rgba(var(--phui-brand-rgb), 0.65);
	outline: none;
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-selection__clear {
	color: var(--phui-text-secondary);
	margin-top: 0.25rem;
}

body.match-edit .select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
	color: var(--phui-text);
}

.user-new-actions {
	margin-top: 1.25rem;
}

.user-new-back {
	margin: 1.5rem 0 0;
	text-align: center;
	font-size: 0.9rem;
}

.user-new-back a {
	color: var(--phui-text-muted);
	text-decoration: underline;
}

.user-new-back a:hover {
	color: var(--phui-text-secondary);
}

.news-tabs {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px;
	border-radius: var(--news-radius-full);
	background-color: color-mix(in srgb, var(--phui-screen-bg) 90%, transparent);
	border-bottom: 1px solid var(--phui-border-subtle);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	position: sticky;
	top: 80px;
	z-index: 20;
}

.news-tab {
	border: none;
	background: transparent;
	color: var(--news-muted);
	padding: 8px 14px;
	border-radius: var(--news-radius-full);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.news-tab.is-active {
	background: var(--phui-brand-orange);
	color: var(--phui-text);
	font-weight: 600;
}

.news-tab:hover {
	color: var(--phui-text-secondary);
}

.news-card {
	background-color: var(--news-card-bg);
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid var(--phui-border-subtle);
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.7),
		0 0 0 1px rgba(31, 41, 55, 0.5);
}

.news-card-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	max-height: 220px;
}

.news-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.news-card:hover .news-card-thumb img {
	transform: scale(1.03);
}

.news-card-body {
	padding: 14px 14px 12px;
}

.news-card-kicker {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--news-muted);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.news-card-kicker-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 7px;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.6);
	font-size: 10px;
	text-transform: none;
}

.news-card-title {
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0 0 12px;
}

.news-card-title a {
	color: inherit;
	text-decoration: none;
}

.news-card-title a:hover {
	text-decoration: underline;
}

.news-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 12px;
	color: var(--news-muted);
}

.news-card-meta-left {
	display: flex;
	align-items: center;
	gap: 6px;
}

.news-card-meta-dot {
	width: 3px;
	height: 3px;
	border-radius: 999px;
	background-color: var(--news-muted);
}

.news-card-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.news-card-action {
	border: none;
	background: transparent;
	color: var(--news-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
	font-size: 14px;
}

.news-card-action:hover {
	background-color: rgba(var(--phui-brand-rgb), 0.25);
	color: var(--phui-text-secondary);
}

.news-empty {
	margin-top: 24px;
	text-align: center;
	color: var(--news-muted);
	font-size: 14px;
}

/* News feed: card list + infinite scroll in panel */
body.news-list .wrap.news-wrap {
	height: 100vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.news-shell {
	flex: 1;
	min-height: 0;
	display: flex;
	justify-content: center;
}

.news-page {
	width: 100%;
	max-width: 480px;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.news-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding: 90px 0 88px;
	box-sizing: border-box;
}

.news-grid {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.news-pagination {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.news-load-status {
	position: absolute;
	left: -9999px;
}
