/*
Theme Name: Sport WP Theme Child
Theme URI: #
Description: Child theme for Sport WP Theme
Author: Your Name
Author URI: #
Template: sport-wp-theme
Version: 1.0.0
*/

/* Import parent theme styles */
@import url("../sport-wp-theme/style.css");
.close_banner{
	display:none;
}
iframe{
	max-width: 100%;
    width: 100%;
}
.box-content{
	table{
    	margin-bottom: 16px;
    }
}	
img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.bookmaker_render .bookmaker_main_desc,
.bookmaker_render .bookmaker_sub_desc{
	text-align:left !important;
}

body.sport-theme-bongdanet {
    .bookmaker_render .bookmaker_action a {
        font-size: 14px;
    }
	.bookmaker_render .bookmaker_info{
		width: 190px;
	}
	.bookmaker_desc {
        padding-left: 10px;
    }
}
@media (max-width: 48em) {
	.footer-banner-render{
		display:flex !important;
	}
	body.sport-theme-bongdanet{
		.bookmaker_desc {
			padding-left: 0px;
		}	
	}
	.bookmaker_render .bookmaker_main_desc,
	.bookmaker_render .bookmaker_sub_desc{
		text-align:center !important;
	}
}

.score-box-wrapper {
    min-width: 46px;
    max-width: 66px
}

.score-box-wrapper .score-box {
    margin: calc(var(--spacing,.25rem)*1);
    border-radius: var(--radius-md,.375rem);
    padding-block:calc(var(--spacing,.25rem)*1);color: var(--color-white,#fff);
    background-color: #14b922
}

.score-box-wrapper .score-box.half-time {
    background-color: #9fa0a4
}

/* Thông báo: tràn ra mép giống header (header_flex margin -15px), mọi kích thước — trước đây chỉ có từ 1200px nên mobi bị hẹp */
.container.has_banner #announcement {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
    max-width: none;
    box-sizing: border-box;
}

/* Banner PC trong #announcement — ẩn marquee Vue khi có ảnh (chèn bằng JS) */
@media (min-width: 992px) {
  .container.has_banner #announcement.announcement-has-pc-ads .announcement-wrapper {
    display: none !important;
  }

  /* Hai banner cạnh nhau ~50% / 50%, giống layout mẫu (một hàng) */
  .announcement-pc-ads {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  .announcement-pc-ads > a,
  .announcement-pc-ads > img {
    flex: 1 1 0;
    min-width: 0;
  }

  .announcement-pc-ads__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
    object-position: center bottom;
    vertical-align: middle;
  }

  .announcement-pc-ads a {
    display: block;
    line-height: 0;
    align-self: center;
  }
}

@media (max-width: 991px) {
  .announcement-pc-ads {
    display: none !important;
  }
}

.sport-m {
  width: 100%;
  aspect-ratio: 1000 / 60; 
  overflow: hidden;
  display: block;
}

.sport-m ins, 
.sport-m a, 
.sport-m img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-main ul.menu_footer span {
	font-size: 12px;
}


/* Quick fix banner layout (home only) */
body.home .container {
	max-width: 1050px !important;
}
body.home .gutter_warp {
    width: calc((100vw - 1050px) / 2) !important;
}
body.home #left_gutter .img-wrapper-has {
	max-width: 130px !important;
}
body.home #right_gutter .img-wrapper-has {
	max-width: 130px !important;
}
body.home.sport-theme-bongdanet .sidebar-both .left-sidebar-content {
    width: 150px;
}
body.home.sport-theme-bongdanet .sidebar-both .right-sidebar-content {
    width: 200px;
}
body.home.sport-theme-bongdanet .sidebar-both .main-content {
    max-width: calc(100% - 150px - 200px - 16px);
}

.gutter_warp.banner_show_pc .img-wrapper-has.no-crop-img img {
    width: 130px !important;
}

.btn-booker {
	font-size: 10px;
}

/* Homepage “Nhà cái uy tín” — layout inspired by convida.com.co (white card + title column + logo strip) */
main.home .booker-h-section {
  margin: 0 0 12px;
  padding: 16px 18px 14px;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 100%;
}

main.home .booker-h-section__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

main.home .booker-h-section__titles {
  flex: 1 1 100%;
  min-width: 0;
}

main.home .booker-h-section__titles-stack {
  min-width: 0;
}

main.home .booker-h-section__h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #880000;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

main.home .booker-h-section__lead {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  color: #ff4444;
}

main.home .booker-h-section__all {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  color: var(--Bongdanet-Primary, #cb2320) !important;
  position: relative;
  padding-bottom: 2px;
}

main.home .booker-h-section__all::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

main.home .booker-h-section__all:hover {
  opacity: 0.92;
}

main.home .booker-h-section__slider-wrap {
  flex: 1 1 100%;
  min-width: 0;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

/* Arrows beside the track (convida-style), not over the logos */
main.home .booker-h-section__slider-outer {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

/* Reset parent theme dark “card” styles — swiper lives inside white section */
main.home .booker-h-section .slider_booker.booker-h-section__swiper {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

main.home .booker-h-section .slider_booker .swiper-wrapper {
  align-items: center;
}

main.home .booker-h-section .slider_booker .swiper-slide {
  height: auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

main.home .booker-h-section .slider_booker.swiper .swiper-slide {
  flex-shrink: 0;
}

main.home .booker-h-section__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  padding: 6px 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

main.home .booker-h-section__logo:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

main.home .booker-h-section__logo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

main.home .booker-h-section__logo img {
  width: auto;
  max-width: min(76px, 22vw);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (min-width: 1000px) {
  main.home .booker-h-section__logo img {
    max-width: 80px;
    max-height: 54px;
  }
}

/* Text fallback when no per-brand image (matches convida strip readability) */
main.home .booker-h-section__name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: #333;
}

main.home .booker-h-section__nav-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  color: var(--Bongdanet-Primary, #cb2320);
}

main.home .booker-h-section__nav-btn:after {
  display: none;
}

main.home .booker-h-section__nav-btn--prev {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23cb2320' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M14 7l-5 5 5 5'/%3E%3C/svg%3E")
    center / 32px 32px no-repeat;
}

main.home .booker-h-section__nav-btn--next {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23cb2320' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M10 7l5 5-5 5'/%3E%3C/svg%3E")
    center / 32px 32px no-repeat;
}

main.home .booker-h-section__nav-btn.swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}

@media (min-width: 1000px) {
  main.home .booker-h-section__row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
  }

  /* Wide enough so “NHÀ CÁI UY TÍN” stays on readable lines (narrow % caused 1 char/line) */
  main.home .booker-h-section__titles {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 0 200px;
    max-width: 220px;
    min-width: 180px;
    padding-right: 12px;
  }

  main.home .booker-h-section__slider-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding-left: 4px;
  }
}

/* Tablet / mobile: title row = heading left + “Xem tất cả” right (convida-style) */
@media (max-width: 999px) {
  main.home .booker-h-section__row {
    align-items: flex-start;
  }

  main.home .booker-h-section__titles {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 8px;
  }

  main.home .booker-h-section__titles-stack {
    flex: 1 1 auto;
    min-width: 0;
  }

  main.home .booker-h-section__all {
    margin-top: 0;
    flex: 0 0 auto;
  }

  main.home .booker-h-section__logo {
    padding: 6px 4px;
  }

  /* ~5 logos / row: keep tiles small enough to fit viewport */
  main.home .booker-h-section__logo img {
    max-width: min(64px, 17vw);
    max-height: 44px;
  }
}

@media (max-width: 549px) {
  main.home .booker-h-section {
    padding: 12px 10px 12px;
    border-radius: 8px;
  }

  main.home .booker-h-section__slider-wrap {
    padding: 0;
  }

  main.home .booker-h-section__slider-outer {
    gap: 4px;
  }

  main.home .booker-h-section__h2 {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
  }

  /* One compact title row like convida mobile (lead stays in DOM for SEO) */
  main.home .booker-h-section__lead {
    display: none;
  }

  main.home .booker-h-section__all {
    font-size: 10px;
  }

  main.home .booker-h-section__logo {
    padding: 4px 2px;
  }

  main.home .booker-h-section__logo img {
    max-width: min(48px, 17vw);
    max-height: 38px;
  }

  main.home .booker-h-section__nav-btn {
    display: none;
  }
}

body.dark main.home .booker-h-section {
  background: #1a1a1c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

body.dark main.home .booker-h-section__h2 {
  color: #e8e8ea;
}

body.dark main.home .booker-h-section__lead {
  color: #ff6b6b;
}

body.dark main.home .booker-h-section__name {
  color: #e4e4e7;
}

/* Core module pages: stable 3-column width */
.sport-core-page.sidebar-both .contain {
  max-width: 1208px;
  margin: 0 auto;
}

.sport-core-page.sidebar-both .contain-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.sport-core-page.sidebar-both .left-sidebar-content {
  width: 188px;
  flex: 0 0 188px;
}

.sport-core-page.sidebar-both .right-sidebar-content {
  width: 290px;
  flex: 0 0 290px;
  display: block;
}

.sport-core-page.sidebar-both .main-content {
  max-width: calc(100% - 188px - 290px - 16px);
  flex: 1 1 auto;
  min-width: 0;
}

@media (min-width: 992px) {
  /* Keep full 3-column desktop frame on module pages. */
  .sport-core-page.sidebar-both .left-sidebar-content {
    width: 188px !important;
    flex: 0 0 188px !important;
  }
  .sport-core-page.sidebar-both .right-sidebar-content {
    width: 290px !important;
    flex: 0 0 290px !important;
    display: block !important;
  }
  .sport-core-page.sidebar-both .main-content {
    max-width: calc(100% - 188px - 290px - 16px) !important;
    flex: 1 1 auto !important;
  }
}

/* Mirror-like desktop profile for nhan-dinh, ty-le-keo, ket-qua */
.sport-core-page.sidebar-right.sport-core-page-nhan-dinh .contain,
.sport-core-page.sidebar-right.sport-core-page-ty-le-keo .contain,
.sport-core-page.sidebar-right.sport-core-page-ket-qua .contain {
  max-width: 1208px;
  margin: 0 auto;
}

.sport-core-page.sidebar-right.sport-core-page-nhan-dinh .contain-row,
.sport-core-page.sidebar-right.sport-core-page-ty-le-keo .contain-row,
.sport-core-page.sidebar-right.sport-core-page-ket-qua .contain-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.sport-core-page.sidebar-right.sport-core-page-nhan-dinh .right-sidebar-content,
.sport-core-page.sidebar-right.sport-core-page-ty-le-keo .right-sidebar-content,
.sport-core-page.sidebar-right.sport-core-page-ket-qua .right-sidebar-content {
  width: 290px;
  flex: 0 0 290px;
}

.sport-core-page.sidebar-right.sport-core-page-nhan-dinh .main-content,
.sport-core-page.sidebar-right.sport-core-page-ty-le-keo .main-content,
.sport-core-page.sidebar-right.sport-core-page-ket-qua .main-content {
  max-width: calc(100% - 290px - 8px);
  flex: 1 1 auto;
  min-width: 0;
}

/* Tablet / small laptop: stack columns + full-width main (fixes horizontal scroll + narrow split 769–991px) */
@media (max-width: 991px) {
  .sport-core-page .contain-row {
    flex-wrap: wrap !important;
    gap: 0;
  }

  .sport-core-page.sidebar-both .main-content {
    order: -1;
  }

  .sport-core-page.sidebar-both .left-sidebar-content,
  .sport-core-page.sidebar-both .right-sidebar-content,
  .sport-core-page.sidebar-both .main-content,
  .sport-core-page.sidebar-right .main-content,
  .sport-core-page.sidebar-right .right-sidebar-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .sport-core-page .main-content {
    min-width: 0;
  }

  /* Vue kết quả / kèo: wide tables scroll inside the mount, not the whole page */
  .sport-core-page .sport-core-mounts {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sport-core-page #app-vue {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .sport-core-page .contain,
  .sport-core-page .container.has_banner {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .sport-core-page .contain-row {
    margin-left: 0;
    margin-right: 0;
    gap: 0;
  }

  .sport-core-page .main-content {
    min-width: 0;
  }

  .sport-core-page .sport-core-article,
  .sport-core-page .entry-content,
  .sport-core-page .sport-core-mounts,
  .sport-core-page #app-vue,
  .sport-core-page .fixture_render,
  .sport-core-page .bxh_render {
    min-width: 0;
    max-width: 100%;
  }

  /* Prevent wide match/odds tables from breaking mobile viewport. */
  .sport-core-page .entry-content table,
  .sport-core-page .fixture_render table,
  .sport-core-page .bxh_render table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sport-core-page .entry-content img,
  .sport-core-page .sport-core-mounts img,
  .sport-core-page .sport-core-mounts iframe {
    max-width: 100%;
    height: auto;
  }

  /* Keep heading spacing consistent with source mobile layout. */
  .sport-core-page .page-title {
    margin-left: 8px;
    margin-right: 8px;
  }

  .sport-core-page .contain-row {
    flex-wrap: wrap;
  }
  .sport-core-page .left-sidebar-content,
  .sport-core-page .right-sidebar-content,
  .sport-core-page .main-content {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* Pixel-tune baseline for all 7 module pages on mobile */
  .sport-core-page .main-content {
    padding-left: 0;
    padding-right: 0;
  }
  .sport-core-page .sport-core-article {
    margin: 0;
    border-radius: 0;
  }
  .sport-core-page .page-title {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
  }
  .sport-core-page .entry-content {
    font-size: 14px;
    line-height: 1.55;
    padding: 0 8px;
  }
  .sport-core-page .sport-core-mounts {
    padding-left: 0;
    padding-right: 0;
  }
  .sport-core-page .row_wrap {
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .sport-core-page .fixture_head,
  .sport-core-page .bxh_head {
    min-height: 36px;
  }
  .sport-core-page .fixture_head .row_fixture_item,
  .sport-core-page .bxh_head .row_bxh_item {
    min-height: 32px;
    line-height: 32px;
    font-size: 13px;
  }
  .sport-core-page .fixture_render,
  .sport-core-page .bxh_render {
    font-size: 13px;
    line-height: 1.45;
  }
  .sport-core-page #tips-container {
    margin-top: 8px;
  }

  .sport-core-page .right-sidebar-content .widget,
  .sport-core-page .left-sidebar-content .widget {
    margin-bottom: 8px;
  }
  .sport-core-page .right-sidebar-content .widget-title,
  .sport-core-page .left-sidebar-content .widget-title {
    min-height: 34px;
    line-height: 34px;
    font-size: 13px;
  }
}

/* 390px profile: compact spacing and tighter text */
@media (max-width: 390px) {
  .sport-core-page .page-title {
    margin-left: 6px;
    margin-right: 6px;
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 25px;
  }
  .sport-core-page .entry-content {
    font-size: 13px;
    line-height: 1.5;
    padding-left: 6px;
    padding-right: 6px;
  }
  .sport-core-page .row_wrap {
    margin-top: 6px;
    margin-bottom: 6px;
  }
  .sport-core-page .fixture_head,
  .sport-core-page .bxh_head {
    min-height: 34px;
  }
  .sport-core-page .fixture_head .row_fixture_item,
  .sport-core-page .bxh_head .row_bxh_item {
    min-height: 30px;
    line-height: 30px;
    font-size: 12px;
    padding: 0 8px;
  }
}

/* 430px profile: iPhone plus/pro max style spacing */
@media (min-width: 391px) and (max-width: 430px) {
  .sport-core-page .page-title {
    margin-left: 8px;
    margin-right: 8px;
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 27px;
  }
  .sport-core-page .entry-content {
    font-size: 14px;
    line-height: 1.55;
    padding-left: 8px;
    padding-right: 8px;
  }
  .sport-core-page .fixture_head .row_fixture_item,
  .sport-core-page .bxh_head .row_bxh_item {
    font-size: 13px;
    padding: 0 10px;
  }
}

/* 768px profile: tablet view remains mobile-like but roomier */
@media (min-width: 431px) and (max-width: 768px) {
  .sport-core-page .page-title {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 30px;
  }
  .sport-core-page .entry-content {
    font-size: 15px;
    line-height: 1.6;
    padding-left: 10px;
    padding-right: 10px;
  }
  .sport-core-page .row_wrap {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .sport-core-page .fixture_head,
  .sport-core-page .bxh_head {
    min-height: 38px;
  }
  .sport-core-page .fixture_head .row_fixture_item,
  .sport-core-page .bxh_head .row_bxh_item {
    min-height: 34px;
    line-height: 34px;
    font-size: 14px;
    padding: 0 12px;
  }
}

/*
 * Final pass: per-page pixel tune (scoped by .sport-core-page-{module})
 * — nhan-dinh: editorial / wider title + entry rhythm
 * — ty-le-keo: dense odds / tighter vertical rhythm
 * — ket-qua: results list / balance between text + app
 * — livescore: data-dense / minimal chrome
 * — lich-thi-dau: fixture tabs + schedule blocks
 * — bang-xep-hang: table-heavy BXH
 * — du-doan: prediction copy + tips mount
 */

/* ----- Desktop (>=992px): block alignment per page ----- */
@media (min-width: 992px) {
  /* Nhận định — text-first, roomier title & intro */
  .sport-core-page.sport-core-page-nhan-dinh .page-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.015em;
  }
  .sport-core-page.sport-core-page-nhan-dinh .entry-content {
    padding-bottom: 4px;
    font-size: 15px;
    line-height: 1.62;
  }
  .sport-core-page.sport-core-page-nhan-dinh .entry-content p {
    margin-bottom: 12px;
  }
  .sport-core-page.sport-core-page-nhan-dinh .sport-core-mounts {
    margin-top: 14px;
  }
  .sport-core-page.sport-core-page-nhan-dinh #app-vue {
    padding: 2px 4px 0;
  }

  /* Tỷ lệ kèo — compact header + tight app column */
  .sport-core-page.sport-core-page-ty-le-keo .page-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 30px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .entry-content {
    font-size: 14px;
    line-height: 1.48;
    padding-bottom: 2px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .entry-content p {
    margin-bottom: 10px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .sport-core-mounts {
    margin-top: 8px;
  }
  .sport-core-page.sport-core-page-ty-le-keo #app-vue {
    padding: 0 0 2px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .row_fixture_wrap.row_wrap {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  /* Kết quả — similar density to kèo, slightly more air before list */
  .sport-core-page.sport-core-page-ket-qua .page-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 30px;
  }
  .sport-core-page.sport-core-page-ket-qua .entry-content {
    font-size: 14px;
    line-height: 1.52;
  }
  .sport-core-page.sport-core-page-ket-qua .sport-core-mounts {
    margin-top: 10px;
  }
  .sport-core-page.sport-core-page-ket-qua #app-vue {
    padding: 0 2px;
  }

  /* Livescore — narrow 3-col main: minimal margins, data-first */
  .sport-core-page.sidebar-both.sport-core-page-livescore .page-title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 28px;
  }
  .sport-core-page.sidebar-both.sport-core-page-livescore .entry-content {
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 0;
  }
  .sport-core-page.sidebar-both.sport-core-page-livescore .sport-core-mounts {
    margin-top: 6px;
  }
  .sport-core-page.sidebar-both.sport-core-page-livescore #app-vue {
    padding: 0;
  }
  .sport-core-page.sidebar-both.sport-core-page-livescore .row_fixture_wrap.row_wrap {
    margin-top: 4px;
    margin-bottom: 6px;
  }

  /* Lịch thi đấu — emphasize fixture strip + schedule */
  .sport-core-page.sidebar-both.sport-core-page-lich-thi-dau .page-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 30px;
  }
  .sport-core-page.sidebar-both.sport-core-page-lich-thi-dau .sport-core-mounts {
    margin-top: 8px;
  }
  .sport-core-page.sidebar-both.sport-core-page-lich-thi-dau .row_fixture_wrap.row_wrap {
    margin-top: 6px;
    margin-bottom: 8px;
  }
  .sport-core-page.sidebar-both.sport-core-page-lich-thi-dau .fixture_head {
    margin-bottom: 4px;
  }
  .sport-core-page.sidebar-both.sport-core-page-lich-thi-dau #app-vue {
    padding: 0 2px;
  }

  /* BXH — table blocks */
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang .page-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 22px;
    line-height: 30px;
  }
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang .entry-content {
    font-size: 14px;
    line-height: 1.52;
  }
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang .sport-core-mounts {
    margin-top: 8px;
  }
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang .bxh_render,
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang .fixture_render {
    font-size: 13px;
    line-height: 1.42;
  }
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang .row_bxh_wrap.row_wrap {
    margin-top: 6px;
    margin-bottom: 8px;
  }
  .sport-core-page.sidebar-both.sport-core-page-bang-xep-hang #app-vue {
    padding: 0 2px;
  }

  /* Dự đoán — copy + tips: balanced like nhận định but narrower column */
  .sport-core-page.sidebar-both.sport-core-page-du-doan .page-title {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 30px;
  }
  .sport-core-page.sidebar-both.sport-core-page-du-doan .entry-content {
    font-size: 15px;
    line-height: 1.58;
  }
  .sport-core-page.sidebar-both.sport-core-page-du-doan .entry-content p {
    margin-bottom: 11px;
  }
  .sport-core-page.sidebar-both.sport-core-page-du-doan .sport-core-mounts {
    margin-top: 12px;
  }
  .sport-core-page.sidebar-both.sport-core-page-du-doan #tips-container.sport_theme_tips_container {
    margin-top: 10px;
  }
  .sport-core-page.sidebar-both.sport-core-page-du-doan #app-vue {
    padding: 2px 2px 0;
  }
}

/* ----- Mobile (<=768px): per-page density ----- */
@media (max-width: 768px) {
  .sport-core-page.sport-core-page-nhan-dinh .page-title {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 28px;
  }
  .sport-core-page.sport-core-page-nhan-dinh .entry-content {
    padding-bottom: 6px;
    font-size: 14px;
    line-height: 1.58;
  }
  .sport-core-page.sport-core-page-nhan-dinh .sport-core-mounts {
    margin-top: 10px;
  }

  .sport-core-page.sport-core-page-ty-le-keo .page-title {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 19px;
    line-height: 26px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .entry-content {
    font-size: 13px;
    line-height: 1.48;
    padding-top: 0;
  }
  .sport-core-page.sport-core-page-ty-le-keo .sport-core-mounts {
    margin-top: 6px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .row_wrap {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .sport-core-page.sport-core-page-ket-qua .page-title {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 27px;
  }
  .sport-core-page.sport-core-page-ket-qua .entry-content {
    font-size: 13px;
    line-height: 1.5;
  }
  .sport-core-page.sport-core-page-ket-qua .sport-core-mounts {
    margin-top: 8px;
  }

  .sport-core-page.sport-core-page-livescore .page-title {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 25px;
  }
  .sport-core-page.sport-core-page-livescore .entry-content {
    font-size: 13px;
    line-height: 1.45;
    padding-bottom: 2px;
  }
  .sport-core-page.sport-core-page-livescore .sport-core-mounts {
    margin-top: 4px;
  }
  .sport-core-page.sport-core-page-livescore .row_wrap {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .sport-core-page.sport-core-page-lich-thi-dau .page-title {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 27px;
  }
  .sport-core-page.sport-core-page-lich-thi-dau .fixture_head,
  .sport-core-page.sport-core-page-lich-thi-dau .bxh_head {
    min-height: 38px;
  }
  .sport-core-page.sport-core-page-lich-thi-dau .row_wrap {
    margin-top: 8px;
    margin-bottom: 8px;
  }

  .sport-core-page.sport-core-page-bang-xep-hang .page-title {
    margin-top: 6px;
    margin-bottom: 8px;
    font-size: 19px;
    line-height: 27px;
  }
  .sport-core-page.sport-core-page-bang-xep-hang .entry-content {
    font-size: 13px;
    line-height: 1.48;
  }
  .sport-core-page.sport-core-page-bang-xep-hang .fixture_render,
  .sport-core-page.sport-core-page-bang-xep-hang .bxh_render {
    font-size: 12px;
    line-height: 1.4;
  }
  .sport-core-page.sport-core-page-bang-xep-hang .bxh_head {
    min-height: 38px;
  }

  .sport-core-page.sport-core-page-du-doan .page-title {
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 28px;
  }
  .sport-core-page.sport-core-page-du-doan .entry-content {
    font-size: 14px;
    line-height: 1.55;
  }
  .sport-core-page.sport-core-page-du-doan .sport-core-mounts {
    margin-top: 10px;
  }
  .sport-core-page.sport-core-page-du-doan #tips-container {
    margin-top: 10px;
  }
}

/* 390px: extra compaction for data pages */
@media (max-width: 390px) {
  .sport-core-page.sport-core-page-ty-le-keo .page-title,
  .sport-core-page.sport-core-page-ket-qua .page-title,
  .sport-core-page.sport-core-page-livescore .page-title {
    font-size: 17px;
    line-height: 24px;
    margin-bottom: 5px;
  }
  .sport-core-page.sport-core-page-livescore .entry-content {
    font-size: 12px;
    line-height: 1.42;
    padding-left: 6px;
    padding-right: 6px;
  }
  .sport-core-page.sport-core-page-nhan-dinh .entry-content,
  .sport-core-page.sport-core-page-du-doan .entry-content {
    font-size: 13px;
  }
  .sport-core-page.sport-core-page-bang-xep-hang .fixture_render,
  .sport-core-page.sport-core-page-bang-xep-hang .bxh_render {
    font-size: 11px;
  }
}

/* 391–430px: iPhone Plus class */
@media (min-width: 391px) and (max-width: 430px) {
  .sport-core-page.sport-core-page-livescore .page-title {
    font-size: 18px;
    line-height: 26px;
  }
  .sport-core-page.sport-core-page-nhan-dinh .page-title {
    font-size: 19px;
    line-height: 27px;
  }
}

/* 431–768px: tablet */
@media (min-width: 431px) and (max-width: 768px) {
  .sport-core-page.sport-core-page-nhan-dinh .page-title {
    font-size: 21px;
    line-height: 30px;
  }
  .sport-core-page.sport-core-page-ty-le-keo .page-title,
  .sport-core-page.sport-core-page-ket-qua .page-title {
    font-size: 20px;
    line-height: 28px;
  }
  .sport-core-page.sport-core-page-livescore .page-title {
    font-size: 19px;
    line-height: 27px;
    margin-bottom: 8px;
  }
}

/* Back to top: restore missing base styles + avoid overlap on mobile */
#backToTop.back-to-top {
  position: fixed;
  right: 14px;
  bottom: 110px;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  z-index: 1200;
  opacity: 1;
  visibility: visible;
}
#backToTop.back-to-top .backtotop-icon {
  width: 100%;
  height: 100%;
  display: block;
}
#backToTop.back-to-top .backtotop-bg {
  fill: #ffffff;
}
#backToTop.back-to-top .backtotop-arrow {
  stroke: #ed1c24;
}
#backToTop.back-to-top:hover .backtotop-arrow {
  stroke: #c8101e;
}
@media (min-width: 769px) {
  #backToTop.back-to-top {
    right: 24px;
    bottom: 30px;
  }
}

/*
 * Brand palette aligned with convida.com.co (primary #cb2320).
 * Widget titles use --Bongdanet-Primary; header bar color is set in parent header.php inline style.
 */
body.sport-theme-bongdanet {
  --Bongdanet-Primary: #cb2320;
  --Primary: #cb2320;
}

body.sport-theme-bongdanet .widget-area .widget-title {
  background: var(--Bongdanet-Primary, #cb2320) !important;
  color: var(--MonotoneGrey-0, #fff) !important;
}

/* Mega “more” submenu: replace teal (#005C65 / #00737e) with convida-style deep red + primary */
body.sport-theme-bongdanet .more_menu .sub-menu {
  border-top: 1px solid #660000 !important;
  background: #660000 !important;
}
body.sport-theme-bongdanet #menu-menu-mega .sub-menu .menu-item > a {
  background: #cb2320 !important;
}
body.sport-theme-bongdanet #menu-menu-mega > .menu-item:before {
  background: #660000 !important;
}

/* Mobile horizontal menu: active chip uses primary for text */
body.sport-theme-bongdanet .sport-theme-mobile-menu li.current-menu-item > a,
body.sport-theme-bongdanet .sport-theme-mobile-menu li.current_page_item > a,
body.sport-theme-bongdanet .sport-theme-mobile-menu li:hover > a {
  color: var(--Bongdanet-Primary, #cb2320) !important;
}

/* Header: split pill (TỶ LỆ KÈO | KQBD) next to dark/light toggle — desktop only */
.sport_theme_header-main-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.header-split-pill-wrap {
  align-items: center;
}
.header-split-pill {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 36px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}
.header-split-pill__seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: filter 0.15s ease, opacity 0.15s ease;
}
.header-split-pill__seg:hover {
  filter: brightness(1.05);
}
.header-split-pill__seg--ty {
  position: relative;
  z-index: 2;
  padding: 0 10px 0 14px;
  color: #fff !important;
  background: #163a7a;
  border-radius: 999px 0 0 999px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 100%, 0 100%);
}
.header-split-pill__seg--ty .header-split-pill__text {
  text-shadow: 0.4px 0 0 rgba(255, 60, 60, 0.45), -0.4px 0 0 rgba(80, 160, 255, 0.45);
}
.header-split-pill__seg--kq {
  margin-left: -14px;
  z-index: 1;
  padding: 0 14px 0 18px;
  color: #0c0c0d !important;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 0 999px 999px 0;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
}
.header-split-pill__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header-split-pill__seg--ty .header-split-pill__ico {
  color: rgba(255, 255, 255, 0.95);
}
.header-split-pill__seg--kq .header-split-pill__ico {
  color: #c9a227;
}
body.dark .header-split-pill__seg--kq {
  background: #2a2a2c;
  color: #f2f2f2 !important;
  border-color: #3d3d40;
}
body.dark .header-split-pill__seg--kq .header-split-pill__text {
  color: #f2f2f2 !important;
}