/* ── Teams mega menu (3 columns — cricinfo) ── */
.primary-nav__item--mega-3col .mega-menu { min-width: 720px; }
.primary-nav__item--mega-3col .mega-menu__inner {
	grid-template-columns: 1fr 1fr 1fr;
	gap: 0 8px;
}
.primary-nav__item--mega-3col .mega-menu__link {
	padding: 9px 16px;
	font-size: 13px;
}

/* ── Team secondary nav bar ── */
.team-bar {
	background: #fff;
	border-bottom: 1px solid var(--color-border);
	position: relative;
	z-index: 1;
}
[data-theme="dark"] .team-bar { background: var(--color-card); }
.team-bar__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	min-height: 48px;
}
.team-bar__title {
	display: flex;
	align-items: center;
	padding: 0 24px 0 0;
	border-right: 1px solid var(--color-border);
	flex-shrink: 0;
}
.team-bar__title a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 800;
	color: var(--color-text);
	text-decoration: none;
	white-space: nowrap;
	padding: 12px 0;
}
.team-bar__title a:hover { color: #0066cc; }
.team-bar__flag { font-size: 22px; line-height: 1; }
.team-bar__tabs { flex: 1; overflow: hidden; min-width: 0; }
.team-bar__list {
	display: flex;
	align-items: stretch;
	list-style: none !important;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.team-bar__list::-webkit-scrollbar { display: none; }
.team-bar__list > li { flex-shrink: 0; list-style: none !important; }
.team-bar__list a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 14px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--color-muted);
	text-decoration: none;
	white-space: nowrap;
}
.team-bar__list a:hover { color: #0066cc; }
.team-bar__list .is-active a {
	color: #0066cc;
	box-shadow: inset 0 -3px 0 #0066cc;
}
.team-bar__actions {
	display: flex;
	align-items: center;
	padding: 0 0 0 16px;
	flex-shrink: 0;
}
.team-bar__compare {
	padding: 8px 16px;
	border: 1px solid var(--color-border);
	border-radius: 20px;
	background: #fff;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text);
	cursor: pointer;
}
.team-bar__compare:hover { border-color: #0066cc; color: #0066cc; }

/* ── Team page layout ── */
.team-page { padding: 20px 0 56px; }
.team-page__intro {
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: -4px 0 16px;
	max-width: 820px;
}
.team-page__meta {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px 20px;
	margin: 0 0 28px;
	padding: 16px 20px;
	background: #f8f9fb;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 13px;
}
.team-page__meta dt {
	font-weight: 700;
	color: var(--color-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	margin: 0 0 4px;
}
.team-page__meta dd { margin: 0; font-weight: 600; }
.team-page__placeholder { padding: 24px; }
.team-home-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 320px;
	gap: 28px;
	align-items: start;
}
.team-page__center { min-width: 0; }

/* Left sidebar */
.team-left__tabs {
	display: flex;
	gap: 0;
	margin-bottom: 12px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
}
.team-left__tab {
	flex: 1;
	text-align: center;
	padding: 10px 8px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	color: var(--color-muted);
	background: #fff;
}
.team-left__tab.is-active {
	background: #0066cc;
	color: #fff;
}
.team-left__matches {
	list-style: none !important;
	margin: 0 0 12px;
	padding: 0;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}
.team-left__matches li { border-bottom: 1px solid var(--color-border); }
.team-left__matches li:last-child { border-bottom: none; }
.team-left__matches a {
	display: block;
	padding: 12px;
	text-decoration: none;
	color: inherit;
	font-size: 12px;
}
.team-left__matches a:hover { background: #f8f9fb; }
.team-left__match-label { display: block; color: var(--color-muted); margin-bottom: 4px; font-size: 11px; }
.team-left__match-teams { display: block; font-weight: 700; margin-bottom: 4px; }
.team-left__match-score { display: block; color: var(--color-muted); font-size: 11px; }
.team-left__match-result { display: block; font-weight: 600; margin-top: 4px; color: #0066cc; }
.team-left__match-time { display: block; color: var(--color-muted); margin-top: 4px; font-size: 11px; }
.team-left__view-all {
	display: block;
	text-align: center;
	padding: 10px;
	background: #f0f2f5;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--color-text);
	text-decoration: none;
	margin-bottom: 20px;
}
.team-left__view-all:hover { background: #e8ecf0; color: #0066cc; }
.team-left__series { margin-bottom: 16px; }
.team-left__series-list,
.team-left__more-list {
	list-style: none !important;
	margin: 0;
	padding: 0 16px 16px;
}
.team-left__series-list li,
.team-left__more-list li { margin-bottom: 8px; }
.team-left__series-list a,
.team-left__more-list a {
	font-size: 12px;
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}
.team-left__series-list a:hover,
.team-left__more-list a:hover { text-decoration: underline; }

/* Right sidebar */
.team-sidebar__format-tabs {
	display: flex;
	gap: 4px;
}
.team-sidebar__format-tabs span {
	font-size: 10px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 4px;
	color: var(--color-muted);
	cursor: pointer;
}
.team-sidebar__format-tabs .is-active {
	background: #e8f4fd;
	color: #0066cc;
}
.team-sidebar__player-list li {
	display: grid !important;
	grid-template-columns: 40px 1fr auto;
	gap: 10px;
	align-items: center;
}
.team-sidebar__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: #eee;
}
.team-sidebar__ad {
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f2f5;
	border: 1px dashed var(--color-border);
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 11px;
	font-weight: 700;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.team-sidebar__video-list {
	list-style: none !important;
	margin: 0;
	padding: 0 16px 16px;
}
.team-sidebar__video-list li { margin-bottom: 12px; }
.team-sidebar__video-item {
	display: flex;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}
.team-sidebar__video-item:hover .team-sidebar__video-title { color: #0066cc; }
.team-sidebar__video-thumb {
	flex-shrink: 0;
	width: 100px;
	height: 56px;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	background: #111;
}
.team-sidebar__video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.team-sidebar__video-title {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.team-sidebar__photo-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 0 16px 16px;
}
.team-sidebar__photo-grid img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}
.team-sidebar__photo-grid a:hover img { opacity: 0.9; }

/* Load more (team news feed) */
.tournament-news__more {
	text-align: center;
	padding: 24px 0 8px;
}
.tournament-news__load-more {
	min-width: 160px;
}

/* Teams directory */
.teams-directory { padding: 24px 0 48px; }
.teams-directory__section h2 {
	font-size: 18px;
	margin: 0 0 16px;
}
.teams-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 12px;
}
.teams-grid__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.15s, border-color 0.15s;
}
.teams-grid__item:hover {
	background: #f8f9fb;
	border-color: #0066cc;
	color: #0066cc;
}
.teams-grid__flag { font-size: 22px; line-height: 1; }

@media (max-width: 1100px) {
	.team-home-layout { grid-template-columns: 220px 1fr; }
	.team-sidebar { grid-column: 1 / -1; }
	.team-page__meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.team-home-layout { grid-template-columns: 1fr; }
	.team-bar__actions { display: none; }
	.team-page__meta { grid-template-columns: 1fr; }
	.primary-nav__item--mega-3col .mega-menu { min-width: 280px; }
	.primary-nav__item--mega-3col .mega-menu__inner { grid-template-columns: 1fr; }
}

/* Cricinfo-style fixture cards */
.team-fixture-card {
	border: 1px solid var(--color-border, #e2e8f0);
	border-radius: 8px;
	margin-bottom: 12px;
	overflow: hidden;
}
.team-fixture-card a {
	display: block;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
}
.team-fixture-card__date {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 4px;
}
.team-fixture-card__meta {
	display: block;
	font-size: 12px;
	color: var(--text-muted, #64748b);
	margin-bottom: 10px;
	line-height: 1.4;
}
.team-fixture-card__teams {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 8px;
}
.team-fixture-card__status {
	display: block;
	font-size: 12px;
	color: var(--text-muted, #64748b);
}

/* Stats & records grid */
.team-stats-records {
	padding: 20px;
	margin-bottom: 20px;
}
.team-stats-records__title {
	margin: 0 0 16px;
	font-size: 18px;
}
.team-stats-records__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.team-stats-records__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}
.team-stats-records__header h3 {
	margin: 0;
	font-size: 14px;
}
.team-stats-records__header a {
	font-size: 12px;
	text-decoration: none;
	color: var(--accent, #0066cc);
}
.team-stats-records__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.team-stats-records__col li + li {
	margin-top: 6px;
}
.team-stats-records__col a {
	font-size: 13px;
	text-decoration: none;
	color: inherit;
}
.team-stats-records__col a:hover {
	color: var(--accent, #0066cc);
}

/* Fan ratings */
.team-sidebar__fan-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.team-sidebar__fan-list li {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--color-border, #e2e8f0);
}
.team-sidebar__fan-score {
	background: var(--color-green, #d9480f);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 999px;
	min-width: 36px;
	text-align: center;
}
.team-sidebar__fan-list small {
	display: block;
	color: var(--text-muted, #64748b);
	font-size: 11px;
}

/* Video duration badge on news thumbs */
.news-duration {
	position: absolute;
	right: 6px;
	bottom: 6px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	z-index: 2;
}
.news-duration--lg {
	right: 10px;
	bottom: 10px;
	font-size: 13px;
	padding: 4px 8px;
}
.tournament-news__thumb,
.tournament-news__hero-image {
	position: relative;
}

@media (max-width: 768px) {
	.team-stats-records__grid { grid-template-columns: 1fr; }
}
