/* Videos & Stats hub pages */

.hub-subnav {
	background: #fff;
	border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.hub-subnav--stats {
	background: #eceef1;
	border-bottom: 1px solid #dcdfe4;
}

.hub-subnav--stats .hub-subnav__label {
	font-size: 13px;
	text-transform: none;
}

.hub-subnav--stats .hub-subnav__list a {
	font-size: 12px;
	color: #333;
}

.hub-subnav--stats .hub-subnav__list a.is-active {
	color: #1a4d8c;
}

.hub-subnav__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	overflow-x: auto;
}

.hub-subnav__label {
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
	color: var(--text, #0f172a);
}

.hub-subnav__list {
	display: flex;
	gap: 4px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.hub-subnav__list a {
	font-size: 13px;
	color: var(--text-muted, #475569);
	text-decoration: none;
	white-space: nowrap;
}

.hub-subnav__list a:hover,
.hub-subnav__list a.is-active {
	color: var(--accent, #0066cc);
	font-weight: 600;
}

/* Videos */
.videos-page {
	padding-bottom: 48px;
}

.videos-page__breadcrumb,
.stats-page__breadcrumb {
	margin: 16px 0 20px;
	font-size: 13px;
	color: var(--text-muted, #64748b);
}

.videos-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}

.videos-page__title,
.stats-page__title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 800;
	margin: 0 0 12px;
}

.videos-page__intro,
.stats-page__intro {
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-muted, #475569);
	margin: 0 0 24px;
	max-width: 720px;
}

.video-shows {
	margin-top: 36px;
}

.video-shows__header h2 {
	font-size: 20px;
	margin: 0 0 16px;
}

.video-shows__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.video-show-tile {
	display: flex;
	align-items: flex-end;
	min-height: 100px;
	padding: 14px;
	border-radius: 8px;
	background: var(--tile-color, #1e3a5f);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
}

.video-show-tile:hover {
	opacity: 0.92;
}

.videos-layout__sidebar .trending-list__thumb img {
	width: 64px;
	height: 40px;
	object-fit: cover;
	border-radius: 4px;
}

/* Stats hub — Cricinfo records layout */

.stats-page--records {
	background: #f5f6f8;
	padding-bottom: 48px;
}

.stats-page--records .container {
	max-width: 1140px;
}

.stats-page__title {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px;
}

.stats-page__intro {
	font-size: 14px;
	line-height: 1.5;
	color: #505050;
	margin: 0 0 20px;
}

/* Records hub */
.records-hub {
	margin-top: 4px;
}

.records-hub__formats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.records-hub__body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: 16px;
	align-items: start;
}

.records-panel {
	background: #fff;
	border: 1px solid #dcdfe4;
	border-radius: 2px;
	margin-bottom: 16px;
	overflow: hidden;
}

.records-panel--format {
	margin-bottom: 0;
}

.records-panel__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: #eceef1;
	border-bottom: 1px solid #dcdfe4;
}

.records-panel__head--plain {
	background: #eceef1;
}

.records-panel__head h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
}

.records-panel__icon {
	font-size: 16px;
	line-height: 1;
}

.records-panel__list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.records-panel__list li {
	padding: 0;
}

.records-panel__list a {
	display: block;
	padding: 5px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: #1a4d8c;
	text-decoration: none;
}

.records-panel__list a:hover {
	background: #f5f8fc;
	text-decoration: underline;
}

/* Team records submenu (Test matches) */
.records-submenu__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 5px 14px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #1a4d8c;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}
.records-submenu__toggle:hover { background: #f5f8fc; text-decoration: underline; }
.records-submenu__caret { opacity: 0.85; font-size: 12px; transform: translateY(1px); }
.records-submenu__toggle[aria-expanded="true"] .records-submenu__caret { transform: translateY(1px) rotate(180deg); }
.records-submenu {
	border-top: 1px solid #eef0f3;
	background: #fff;
	padding: 8px 0 10px;
}
.records-submenu__title {
	padding: 10px 14px 6px;
	font-size: 12px;
	font-weight: 700;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.records-submenu__list {
	list-style: none;
	margin: 0;
	padding: 0 0 6px;
}
.records-submenu__list a { padding-left: 24px; }

.records-panel__list--compact a {
	padding-top: 4px;
	padding-bottom: 4px;
}

.records-panel__list--scroll {
	max-height: 220px;
	overflow-y: auto;
}

.records-panel__list--teams a {
	font-size: 13px;
}

.records-panel__list strong {
	font-weight: 600;
	color: #333;
}

/* Search */
.records-search {
	padding: 10px 14px 0;
}

.records-search__input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #c8ccd2;
	border-radius: 2px;
	font-size: 13px;
	background: #fff;
	color: #333;
}

.records-search__input:focus {
	outline: none;
	border-color: #1a4d8c;
	box-shadow: 0 0 0 2px rgba(26, 77, 140, 0.12);
}

/* Team vs Team */
.records-compare {
	padding: 12px 14px 14px;
}

.records-compare__row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.records-compare select {
	flex: 1;
	min-width: 120px;
	padding: 8px 10px;
	border: 1px solid #c8ccd2;
	border-radius: 2px;
	font-size: 13px;
	background: #fff;
	color: #333;
}

.records-compare__vs {
	font-size: 13px;
	color: #666;
	font-weight: 600;
}

.records-compare__btn,
.records-year button {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: #1a4d8c;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	font-weight: 300;
}

.records-compare__btn:hover,
.records-year button:hover {
	background: #153d6e;
}

/* Tabs */
.records-tabs {
	display: flex;
	gap: 0;
	padding: 10px 14px 0;
	border-bottom: 1px solid #e5e7eb;
}

.records-tabs__btn {
	padding: 8px 14px;
	border: none;
	background: none;
	font-size: 13px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.records-tabs__btn.is-active {
	color: #1a4d8c;
	border-bottom-color: #1a4d8c;
}

/* Decades grid */
.records-decades {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px 12px;
	padding: 12px 14px 14px;
}

.records-decades a {
	font-size: 13px;
	color: #1a4d8c;
	text-decoration: none;
	padding: 4px 0;
}

.records-decades a:hover {
	text-decoration: underline;
}

/* Trending */
.records-trending {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.records-trending li + li {
	border-top: 1px solid #eef0f3;
}

.records-trending a {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: #1a4d8c;
	text-decoration: none;
}

.records-trending a:hover {
	background: #f5f8fc;
}

.records-trending__arrow {
	color: #999;
	font-size: 16px;
	line-height: 1.2;
}

/* Calendar year */
.records-year {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px 14px;
}

.records-year input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #c8ccd2;
	border-radius: 2px;
	font-size: 13px;
}

/* Footer SEO text */
.records-hub__footer-text {
	padding: 16px 0 8px;
}

.records-hub__footer-text h3 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.records-hub__footer-text p {
	font-size: 13px;
	line-height: 1.6;
	color: #505050;
	margin: 0;
}

.stats-page__records {
	display: grid;
	gap: 24px;
}

/* Team record detail pages */
.records-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
	gap: 16px;
	align-items: start;
}

.records-detail__main {
	background: #fff;
	border: 1px solid #dcdfe4;
	border-radius: 2px;
	overflow: hidden;
}

.records-series-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.records-series-list__col + .records-series-list__col {
	border-left: 1px solid #eef0f3;
}

.records-series-list__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 14px;
	border-bottom: 1px solid #eef0f3;
	color: inherit;
	text-decoration: none;
}

.records-series-list__row:hover {
	background: #f5f8fc;
}

.records-series-list__label {
	font-size: 13px;
	line-height: 1.45;
	color: #1a4d8c;
}

.records-series-list__row:hover .records-series-list__label {
	text-decoration: underline;
}

.records-series-list__meta {
	flex-shrink: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #333;
	white-space: nowrap;
}

.records-panel__current {
	display: block;
	padding: 4px 14px;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 700;
	color: #1a1a1a;
}

@media (max-width: 960px) {
	.records-detail {
		grid-template-columns: 1fr;
	}

	.records-series-list {
		grid-template-columns: 1fr;
	}

	.records-series-list__col + .records-series-list__col {
		border-left: 0;
		border-top: 1px solid #eef0f3;
	}
}

@media (max-width: 640px) {
	.records-series-list__row {
		flex-direction: column;
		align-items: flex-start;
		gap: 2px;
	}
}

@media (max-width: 960px) {
	.records-hub__formats,
	.records-hub__body {
		grid-template-columns: 1fr;
	}

	.records-decades {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.records-hub__formats {
		grid-template-columns: 1fr;
	}

	.records-decades {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Legacy stats hub (removed) — keep videos styles below */

@media (max-width: 640px) {
	.videos-layout {
		grid-template-columns: 1fr;
	}
}
