/**
 * Team Overview tab styles.
 */

/* Remove underlines from content links, but keep button borders intact. */
.a2z-team-public-overview a:not(.btn),
.a2z-team-public-overview a:not(.btn):hover,
.a2z-team-public-overview a:not(.btn):focus,
.a2z-team-public-overview a:not(.btn):active {
	text-decoration: none !important;
	box-shadow: none !important;
}

.a2z-team-public-overview a:not(.btn):not(.btn-outline) {
	border-bottom: 0 !important;
}

.a2z-team-public-overview__layout {
	margin-top: 20px;
}

.a2z-team-public-overview__main > .card,
.a2z-team-public-overview__main > .a2z-team-public-empty,
.a2z-team-public-overview__sidebar > .widget {
	margin-bottom: 24px;
}

/* Card headers with action buttons — prevent clipping */
.a2z-team-public-overview .card__header,
.a2z-team-public-overview .widget__title.card__header {
	overflow: visible !important;
	min-height: 64px;
	align-items: center;
	gap: 10px;
}

.a2z-team-public-overview .card__header--has-btn,
.a2z-team-public-overview .card__header.card__header--has-btn {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.a2z-team-public-overview .card__header > h4 {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 12px;
}

.a2z-team-public-overview .card-header__button.btn,
.a2z-team-public-overview .card__header .btn {
	flex: 0 0 auto;
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	line-height: 1.2;
	padding: 6px 12px;
	margin: 0;
	height: auto;
	min-height: 28px;
	overflow: visible;
	text-decoration: none !important;
	border-style: solid !important;
	border-width: 1px !important;
}

.a2z-team-public-overview .btn-outline {
	border-color: rgba(255, 255, 255, 0.35) !important;
	color: #fff !important;
	background: transparent !important;
}

.a2z-team-public-overview .btn-outline:hover,
.a2z-team-public-overview .btn-outline:focus {
	border-color: #fff !important;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.06) !important;
}

/* Scoreboard */
.a2z-team-scoreboard .game-result__content {
	align-items: center;
}

.a2z-team-scoreboard .game-result__score-wrap {
	position: relative;
	z-index: 1;
	text-align: center;
}

.a2z-team-scoreboard .game-result__score {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	line-height: 1.15;
	margin: 0 0 10px;
}

.a2z-team-scoreboard .game-result__score-result {
	display: inline-block;
	position: relative;
	min-width: 0.75em;
	line-height: 1;
	padding: 0 2px;
}

.a2z-team-scoreboard .game-result__score-result--winner::before,
.a2z-team-scoreboard .game-result__score-result--winner::after {
	z-index: 0;
}

.a2z-team-scoreboard .game-result__score-result--winner::before {
	border-left-color: #ffdc11 !important;
	border-right-color: transparent !important;
}

.a2z-team-scoreboard .game-result__score-result--loser ~ .game-result__score-result--winner::after {
	border-right-color: #ffdc11 !important;
	border-left-color: transparent !important;
}

.a2z-team-scoreboard .game-result__score-dash {
	display: inline-block;
	line-height: 1;
	opacity: 0.85;
}

.a2z-team-scoreboard .game-result__score-label {
	display: block;
	position: static !important;
	clear: both;
	margin: 0;
	padding: 0;
	line-height: 1.35;
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.a2z-team-scoreboard .game-result__team-name {
	word-break: break-word;
	hyphens: auto;
}

/* Match meta bar (league / venue / date) — visible on dark theme */
.a2z-team-scoreboard .game-result__header.game-result__header--alt {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 28px;
	padding: 12px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: #b8b6c8;
}

.a2z-team-scoreboard .game-result__header--alt .game-result__league,
.a2z-team-scoreboard .game-result__header--alt .game-result__title,
.a2z-team-scoreboard .game-result__header--alt .game-result__date {
	color: #c2c1cc !important;
	opacity: 1;
}

.a2z-team-scoreboard .game-result__header--alt .game-result__title {
	flex: 1 1 auto;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.a2z-team-scoreboard .game-result__header--alt .game-result__league {
	flex: 0 1 auto;
	font-size: 11px;
	font-weight: 600;
	text-align: left;
}

.a2z-team-scoreboard .game-result__header--alt .game-result__date {
	flex: 0 1 auto;
	font-size: 11px;
	text-align: right;
}

.a2z-team-scoreboard__scorers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 0;
}

.a2z-team-scoreboard__scorers-col {
	min-width: 0;
}

.a2z-team-scoreboard__scorers-col--away {
	text-align: right;
}

.a2z-team-scoreboard__scorer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 0;
	font-size: 13px;
	line-height: 1.35;
	color: #c2c1cc;
	border: 0;
	text-decoration: none;
}

.a2z-team-scoreboard__scorers-col--away .a2z-team-scoreboard__scorer {
	flex-direction: row-reverse;
}

.a2z-team-scoreboard__scorer-name {
	min-width: 0;
	border: 0;
	text-decoration: none;
	box-shadow: none;
}

.a2z-team-scoreboard__scorer .fa {
	flex: 0 0 auto;
	color: #9a99a8;
}

.a2z-team-scoreboard .game-result__stats {
	margin-top: 18px;
	overflow: hidden;
}

.a2z-team-scoreboard .game-result__table-stats {
	max-width: 420px;
	margin: 0 auto;
}

.a2z-team-scoreboard .table,
.a2z-team-scoreboard .table th,
.a2z-team-scoreboard .table td {
	border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Timeline — hide vertical scrollbar, keep layout contained */
.a2z-team-timeline .card__content {
	overflow: hidden;
}

.a2z-team-timeline__wrap.game-timeline-wrapper,
.a2z-team-timeline__wrap.game-timeline-wrapper--horizontal {
	height: auto;
	min-height: 160px;
	padding: 8px 12px 20px;
	overflow: hidden !important;
}

.a2z-team-timeline__wrap .game-timeline {
	flex: 1 1 auto;
	height: 160px;
	overflow: hidden !important;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.a2z-team-timeline__wrap .game-timeline::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.a2z-team-timeline__wrap .game-timeline__event-name {
	max-width: 88px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 11px;
}

@media (min-width: 992px) {
	.a2z-team-timeline__wrap .game-timeline__event-name {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		border: 0;
	}

	.a2z-team-timeline__wrap.game-timeline-wrapper--horizontal {
		display: flex;
		flex-wrap: nowrap;
		align-items: stretch;
		height: 160px;
	}
}

.a2z-team-timeline__wrap .game-timeline::before {
	background-color: rgba(255, 255, 255, 0.18);
}

.a2z-timeline-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 18px;
}

.a2z-timeline-icon--yellow,
.a2z-timeline-icon--red {
	width: 12px;
	height: 16px;
	border-radius: 2px;
}

.a2z-timeline-icon--yellow {
	background: #f5c518;
}

.a2z-timeline-icon--red {
	background: #e74c3c;
}

.a2z-timeline-icon--goal {
	color: #c2c1cc;
	font-size: 14px;
}

/* Standings sidebar */
.a2z-team-standings__league-switch {
	flex: 1 1 auto;
	min-width: 0;
	margin-right: 10px;
}

.a2z-team-standings__select {
	width: 100%;
	max-width: 240px;
	height: 34px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
	background: #2c2a44;
	border: 1px solid #4a4868;
}

.a2z-team-standings .card__header--has-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.a2z-team-standings__table {
	margin-bottom: 0;
}

.a2z-team-standings__table .team-name {
	white-space: nowrap;
}

.a2z-team-standings__table .team-name a {
	color: inherit !important;
	text-decoration: none !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

.a2z-team-standings__table .team-name a:hover {
	color: #fff !important;
	text-decoration: none !important;
}

.a2z-team-standings__table .team-logo-img {
	width: 22px;
	height: 22px;
	margin-right: 8px;
	object-fit: contain;
	vertical-align: middle;
}

.a2z-team-standings__table tr.highlighted td {
	color: #fff;
	background: rgba(255, 255, 255, 0.04);
}

.a2z-team-newslog .newslog__content a,
.a2z-team-newslog .newslog__content a:hover,
.a2z-team-newslog .newslog__content a:focus {
	color: inherit !important;
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.a2z-team-newslog .newslog__content a:hover strong {
	color: #fff;
}

/* Gallery preview */
.a2z-team-public-gallery-preview__link {
	display: block;
	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 4px;
	border: 0 !important;
	cursor: pointer;
}

.a2z-team-public-gallery-preview__link:hover .a2z-team-public-gallery-preview__img {
	opacity: 0.85;
	transform: scale(1.03);
}

.a2z-team-public-gallery-preview__img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Mobile */
@media (max-width: 991px) {
	.a2z-team-public-overview__sidebar {
		margin-top: 8px;
	}

	.a2z-team-public-overview .card__header--has-btn {
		flex-direction: column;
		align-items: flex-start;
	}

	.a2z-team-public-overview .card-header__button.btn {
		align-self: flex-start;
	}

	.a2z-team-scoreboard .game-result__content {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		align-items: flex-start;
		gap: 16px 12px;
		margin-bottom: 20px;
	}

	.a2z-team-scoreboard .game-result__team {
		flex: 1 1 calc(50% - 8px);
		width: auto;
		max-width: calc(50% - 8px);
		min-width: 0;
		margin-bottom: 0;
		flex-direction: column;
		justify-content: flex-start;
	}

	.a2z-team-scoreboard .game-result__team-logo {
		width: 100%;
		height: auto;
		margin: 0 0 10px;
	}

	.a2z-team-scoreboard .game-result__team-logo img {
		max-width: 72px;
		max-height: 72px;
		width: auto;
		height: auto;
		margin: 0 auto;
	}

	.a2z-team-scoreboard .game-result__team-info {
		width: 100%;
		padding: 0 4px;
	}

	.a2z-team-scoreboard .game-result__score-wrap {
		flex: 0 0 100%;
		width: 100%;
		max-width: 100%;
		order: -1;
		margin: 0 0 4px;
		padding: 8px 24px 12px;
		overflow: visible;
	}

	.a2z-team-scoreboard .game-result__score {
		font-size: 40px;
		line-height: 1.1;
		margin-bottom: 8px;
		gap: 14px;
	}

	.a2z-team-scoreboard .game-result__score-result--winner::before {
		left: -18px;
	}

	.a2z-team-scoreboard .game-result__score-result--winner::after {
		right: -18px;
	}

	.a2z-team-scoreboard .game-result__team--even .game-result__team-logo,
	.a2z-team-scoreboard .game-result__team--even .game-result__team-info {
		order: initial;
		margin: 0;
		text-align: center;
	}

	.a2z-team-scoreboard .game-result__header.game-result__header--alt {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.a2z-team-scoreboard .game-result__header--alt .game-result__title,
	.a2z-team-scoreboard .game-result__header--alt .game-result__date {
		text-align: left;
	}

	.a2z-team-scoreboard__scorers {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.a2z-team-scoreboard__scorers-col--away {
		text-align: left;
	}

	.a2z-team-scoreboard__scorers-col--away .a2z-team-scoreboard__scorer {
		flex-direction: row;
	}

	.a2z-team-scoreboard .game-result__table-stats {
		max-width: 100%;
	}

	.a2z-team-timeline__wrap.game-timeline-wrapper,
	.a2z-team-timeline__wrap.game-timeline-wrapper--horizontal {
		display: block;
		height: auto;
		min-height: 0;
		padding: 0;
		overflow: visible !important;
	}

	.a2z-team-timeline__wrap .game-timeline-teams,
	.a2z-team-timeline__wrap .game-timeline-ft {
		display: none;
	}

	.a2z-team-timeline__wrap .game-timeline {
		height: auto;
		overflow: visible !important;
		padding: 8px 0 4px;
	}

	.a2z-team-timeline__wrap .game-timeline::before,
	.a2z-team-timeline__wrap .game-timeline::after {
		display: none;
	}

	.a2z-team-timeline__wrap .game-timeline__event {
		position: static !important;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		min-width: 0;
		margin: 0 0 10px;
		padding: 8px 10px;
		text-align: left;
		background: rgba(255, 255, 255, 0.03);
		border: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 6px;
	}

	.a2z-team-timeline__wrap .game-timeline__event-info {
		display: flex;
		align-items: center;
		gap: 8px;
		flex: 1 1 auto;
		min-width: 0;
	}

	.a2z-team-timeline__wrap .game-timeline__event-name {
		position: static;
		width: auto;
		height: auto;
		margin: 0;
		clip: auto;
		max-width: none;
		overflow: visible;
		white-space: normal;
	}

	.a2z-team-timeline__wrap .game-timeline__time {
		flex: 0 0 auto;
		margin: 0;
		font-weight: 700;
	}

	.a2z-team-standings__select {
		max-width: 100%;
	}

	.a2z-team-standings__table {
		font-size: 12px;
	}

	.a2z-team-standings__table .team-name {
		white-space: normal;
	}

	.a2z-team-standings__table .team-logo-img {
		width: 18px;
		height: 18px;
		margin-right: 6px;
	}
}

@media (max-width: 575px) {
	.a2z-team-scoreboard .game-result__score,
	.a2z-team-scoreboard .game-result__score--lg {
		font-size: 34px;
		gap: 10px;
		margin-bottom: 10px;
	}

	.a2z-team-scoreboard .game-result__score-wrap {
		padding: 4px 20px 10px;
	}

	.a2z-team-scoreboard .game-result__score-label {
		font-size: 10px;
	}

	.a2z-team-scoreboard .game-result__team-name {
		font-size: 12px;
		line-height: 1.3;
	}

	.a2z-team-scoreboard .game-result__team-logo img {
		max-width: 56px;
		max-height: 56px;
	}

	.a2z-team-standings__table th,
	.a2z-team-standings__table td {
		padding-left: 6px;
		padding-right: 6px;
	}
}
