/* In-Play and Sports pages in the SkyFair design (js/sports-pages.js). Values measured from the SkyFair application:
   phone sizes scale with the screen like it (--u = 1px at 375px wide, max 1.2px); desktop uses fixed px. */

.sf-page {
  --u: min(calc(100vw / 375), 1.2px);
  --sf-text: #1e1e1e; --sf-text-3: #777; --sf-link: #2789ce; --sf-line: #e0e6e6; --sf-line-2: #7e97a7;
  --sf-back: #72bbef; --sf-lay: #faa9ba; --sf-slate-bg: linear-gradient(180deg, #2c485a, #243a48);
  --sf-gold-bg: linear-gradient(180deg, #ffcc2e, #ffbd14); --sf-dark-bg: linear-gradient(180deg, #474747, #070707);
  --sf-live-bg: linear-gradient(180deg, #f82d2d, #ea0a0a);
  background: #eee; color: var(--sf-text); font-family: Tahoma, Helvetica, sans-serif; font-size: 16px; line-height: 1.2;
}
.sf-page *, .sf-page *::before, .sf-page *::after { box-sizing: border-box; }
.sf-page a { color: inherit; text-decoration: none; }
.sf-page button { font: inherit; border: 0; background: none; cursor: pointer; }
.sf-page svg { display: block; }

/* ---------- promo banner slider ---------- */
.sf-page .promo-banner { position: relative; display: block; width: 100%; margin: 0 auto; overflow: hidden; background: #000; aspect-ratio: 1436 / 268; touch-action: pan-y; }
.sf-page .promo-track { display: flex; width: 100%; height: 100%; will-change: transform; }
.sf-page .promo-slide { flex: 0 0 100%; width: 100%; height: 100%; }
.sf-page .promo-slide img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.sf-page .promo-prev, .sf-page .promo-next { position: absolute; top: 0; z-index: 10; display: flex; align-items: center; justify-content: center; width: calc(24 * var(--u)); height: 100%; color: rgba(255, 255, 255, 0.8); }
.sf-page .promo-prev { left: 0; } .sf-page .promo-next { right: 0; }
.sf-page .promo-prev svg, .sf-page .promo-next svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); fill: currentColor; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)); }
.sf-page .promo-dots { display: none; }

/* ---------- sport strip ---------- */
.sf-page .sport-strip { position: relative; display: flex; height: calc(47 * var(--u)); background: var(--sf-gold-bg); border-bottom: calc(3 * var(--u)) solid #070707; box-sizing: content-box; }
.sf-page .sport-strip-tabs { flex: 1; min-width: 0; display: flex; align-items: flex-end; overflow-x: auto; scrollbar-width: none; padding: 0 0 0 calc(5 * var(--u));
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.sf-page .sport-strip-tabs::-webkit-scrollbar { display: none; }
.sf-page .strip-tab { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: calc(5 * var(--u)); height: calc(37 * var(--u)); padding: calc(7 * var(--u)) calc(8 * var(--u));
  border-radius: calc(6 * var(--u)) calc(6 * var(--u)) 0 0; color: #070707; font-size: calc(13 * var(--u)); font-weight: 700; white-space: nowrap; }
.sf-page .strip-tab .sport-icon { width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: #070707; }
.sf-page .strip-tab:not(.active):not(.casino):hover { background: rgba(255, 255, 255, 0.2); }
.sf-page .strip-tab.active { background: var(--sf-dark-bg); color: #ffb200; }
.sf-page .strip-tab.active .sport-icon { color: #ffb200; }
.sf-page .strip-tab.casino { margin-right: calc(4 * var(--u)); background: linear-gradient(180deg, #7a5a5f, #4a3035); color: #fff; border: 1px solid #2d1b1e; border-bottom: 0; }
.sf-page .strip-tab.casino .ext { width: calc(12 * var(--u)); height: calc(12 * var(--u)); fill: #fff; }
.sf-page .new-badge, .sf-page .live-badge { position: absolute; top: calc(-8 * var(--u)); height: calc(13 * var(--u)); border-radius: 0 calc(3 * var(--u)) calc(3 * var(--u)) 0; background: var(--sf-live-bg);
  color: #fff; font-size: calc(10 * var(--u)); font-style: normal; font-weight: 700; line-height: calc(13 * var(--u)); }
.sf-page .new-badge { right: 6px; padding: 0 5px; }
.sf-page .live-badge { right: 4px; display: flex; align-items: center; padding: 0 calc(3 * var(--u)) 0 0; overflow: hidden; }
.sf-page .live-badge i { height: 100%; margin-right: calc(3 * var(--u)); padding: 0 calc(2 * var(--u)); background: #fff; color: #e0141e; font-size: calc(7 * var(--u)); font-style: normal; line-height: calc(13 * var(--u)); }
.sf-page .strip-search { flex: 0 0 calc(48 * var(--u)); display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #4d4d4d, #303030); box-shadow: inset -9px 0 10px rgba(0, 0, 0, 0.2); }
.sf-page .strip-search svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); fill: #fff; }
.sf-page .strip-search-form { position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #1b1b1b; }
.sf-page .strip-search-form[hidden] { display: none; }
.sf-page .strip-search-form input { flex: 1; min-width: 0; height: calc(33 * var(--u)); padding: 0 12px; border: 0; border-radius: calc(4 * var(--u)); font-size: calc(13 * var(--u)); }
.sf-page .strip-search-form button { width: calc(33 * var(--u)); height: calc(33 * var(--u)); color: #fff; font-size: calc(24 * var(--u)); }

/* ---------- section bar + by Time / by Competition ---------- */
.sf-page .section-bar, .sf-page .match-list .list-title { display: flex; align-items: center; justify-content: center; height: calc(30 * var(--u)); margin: 0; padding: 0 10px;
  background: var(--sf-slate-bg); color: #fff; font-size: calc(14 * var(--u)); font-weight: 700; }
.sf-page .view-toggle { display: flex; width: calc(300 * var(--u)); max-width: calc(100% - 20px); margin: calc(5 * var(--u)) auto; padding: calc(1 * var(--u)); background: #e3e3e3; border-radius: calc(5 * var(--u)); }
.sf-page .view-toggle a { flex: 1; margin: calc(1 * var(--u)); padding: calc(8 * var(--u)) 0; border-radius: calc(4 * var(--u)); color: var(--sf-text); font-size: calc(12 * var(--u)); font-weight: 700; text-align: center; }
.sf-page .view-toggle a.active { background: #fff; color: var(--sf-link); }
.sf-page .competition-title { margin: 0; padding: calc(6 * var(--u)) calc(10 * var(--u)); background: #dddcd6; color: var(--sf-text); font-size: calc(12 * var(--u)); font-weight: 700; }

/* ---------- In-Play tabs ---------- */
.sf-page .inplay-tabs { position: relative; display: flex; align-items: stretch; height: calc(49 * var(--u)); background: #172832; }
.sf-page .inplay-tabs nav { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: calc(6 * var(--u)) calc(8 * var(--u)); border: 1px solid #fff; border-radius: calc(4 * var(--u)); overflow: hidden; }
.sf-page .inplay-tabs nav a { display: flex; align-items: center; justify-content: center; border-left: 1px solid #fff; color: #fff; font-size: calc(13 * var(--u)); font-weight: 700; }
.sf-page .inplay-tabs nav a:first-child { border-left: 0; }
.sf-page .inplay-tabs nav a.active { background: #fff; color: var(--sf-text); }
.sf-page .inplay-tabs nav a:not(.active):hover { background: rgba(255, 255, 255, 0.1); }
.sf-page .inplay-tabs .strip-search { flex-basis: calc(49 * var(--u)); background: #2b4557; border-left: 1px solid #909090; box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.4); }
.sf-page.inplay-page .match-list { margin-bottom: calc(20 * var(--u)); border-bottom: calc(3 * var(--u)) solid #070707; }

/* ---------- match list + rows (phone) ---------- */
.sf-page .match-list { margin: 0 0 10px; background: #fff; }
.sf-page .match-list-head { display: none; }
.sf-page .match-row { display: grid; grid-template-columns: 1fr calc(48 * var(--u)); align-items: center; min-height: calc(52 * var(--u)); background: #fff; border-bottom: 1px solid var(--sf-line); }
.sf-page .match-row:hover { background: #eff2f2; }
.sf-page .match-row .mini-odds { display: none; }
.sf-page .match-info { display: block; min-width: 0; padding: calc(6 * var(--u)); }
.sf-page .match-meta { display: flex; align-items: center; gap: calc(3 * var(--u)); min-height: calc(16 * var(--u)); padding-left: calc(18 * var(--u)); overflow: hidden; white-space: nowrap;
  color: var(--sf-text-3); font-size: calc(12 * var(--u)); font-weight: 500; }
.sf-page .match-status { margin: 0 6px 0 2px; color: var(--sf-text-3); font-style: normal; font-weight: 500; }
.sf-page .match-meta .score { margin-left: 4px; color: #243a48; font-weight: 700; }
.sf-page .match-meta .score:empty { display: none; }
.sf-page .match-name { display: flex; align-items: center; gap: calc(6 * var(--u)); min-width: 0; margin-top: calc(1 * var(--u)); }
.sf-page .match-name strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--sf-link); font-size: calc(15 * var(--u)); font-weight: 700; line-height: 1.3; }
.sf-page .match-info:hover .match-name strong { text-decoration: underline; }
.sf-page .dot { flex: 0 0 auto; width: calc(12 * var(--u)); height: calc(12 * var(--u)); border-radius: 50%; background: #ccc; border: 1px solid #aaa; }
.sf-page .dot.live { background: #6bbd11; border-color: #508d0e; }
.sf-page .ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(3 * var(--u));
  color: #fff; font-family: Arial, sans-serif; font-size: calc(11 * var(--u)); font-style: italic; font-weight: 900; }
.sf-page .ico svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
.sf-page .ico-tv { background: #fff; color: #1d6fc1; border: 1px solid #1d6fc1; }
.sf-page .ico-clock { background: #4bab2c; }
.sf-page .ico-f { background: #1e9fd8; }
.sf-page .ico-b { background: #2b6fd9; }
.sf-page .ico-p { background: #ea6414; }
.sf-page .ico-clock + .ico { margin-left: -3px; }
.sf-page .virtual-tag { display: inline-flex; align-items: stretch; height: calc(14 * var(--u)); padding-right: 4px; border: 1px solid #1f5172; border-radius: calc(2 * var(--u)); overflow: hidden;
  background: #fff; color: #1f5172; font-size: calc(9 * var(--u)); font-weight: 700; line-height: calc(12 * var(--u)); }
.sf-page .virtual-tag b { margin-right: calc(2 * var(--u)); padding: 0 calc(4 * var(--u)); background: #1f5172; color: #fff; font-family: Georgia, serif; font-size: calc(10 * var(--u)); font-style: italic; font-weight: 900; }
.sf-page .row-pin { justify-self: center; display: flex; align-items: center; justify-content: center; width: calc(25 * var(--u)); height: calc(25 * var(--u)); padding: 0; border: 2px solid var(--sf-line-2); border-radius: 50%; background: #fff; }
.sf-page .row-pin svg { width: calc(15 * var(--u)); height: calc(15 * var(--u)); fill: var(--sf-line-2); }
.sf-page .row-pin:hover { border-color: var(--sf-link); }
.sf-page .row-pin.pinned { background: var(--sf-link); border-color: var(--sf-link); }
.sf-page .row-pin.pinned svg { fill: #fff; }
.sf-page .mini-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; height: 35px; padding: 0 2px; }
.sf-page .mini-odds i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--sf-text); }
.sf-page .mini-odds i.back { background: var(--sf-back); }
.sf-page .mini-odds i.lay { background: var(--sf-lay); }
.sf-page .mini-odds.none i { background: #eef1f3; color: #bbb; }
.sf-page .mini-odds i.flash { animation: sf-flash 0.9s; }
@keyframes sf-flash { 0% { background: #ffe066; } }
.sf-page .empty-list { margin: 0; padding: 18px 14px; color: #3b5160; font-size: 13px; text-align: center; }
.sf-loading { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 30px 0; }
.sf-loading i { width: 8px; height: 8px; border-radius: 50%; background: #7e97a7; animation: sf-fade 0.6s infinite alternate; }
.sf-loading i:nth-child(2) { animation-delay: 0.2s; } .sf-loading i:nth-child(3) { animation-delay: 0.4s; }
@keyframes sf-fade { to { opacity: 0.3; } }

/* ---------- desktop: as on rcb365.vip, Sports = sports menu | page | bet slip ---------- */
/* In-Play (rcb365): no left menu, content + bet slip */
.is-desktop body[data-page="inPlay"] .menu-container { display: none; }
.is-desktop .sf-page { max-width: 1180px; min-height: 100%; margin: 0 auto; font-family: Tahoma, Helvetica, sans-serif; }
.is-desktop .sf-page .promo-banner { max-width: 1010px; }
.is-desktop .sf-page .promo-prev { left: 12px; } .is-desktop .sf-page .promo-next { right: 12px; }
.is-desktop .sf-page .promo-prev, .is-desktop .sf-page .promo-next { width: 24px; color: rgba(255, 255, 255, 0.6); }
.is-desktop .sf-page .promo-prev:hover, .is-desktop .sf-page .promo-next:hover { color: rgba(255, 255, 255, 0.8); }
.is-desktop .sf-page .promo-prev svg, .is-desktop .sf-page .promo-next svg { width: 28px; height: 28px; }
.is-desktop .sf-page .promo-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 8px; }
.is-desktop .sf-page .promo-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #000; opacity: 0.2; }
.is-desktop .sf-page .promo-dots button.on { width: 11px; height: 11px; background: #007aff; opacity: 1; }
.is-desktop .sf-page .sport-strip { height: 47px; border-bottom-width: 3px; }
.is-desktop .sf-page .sport-strip-tabs { padding-left: 5px; }
.is-desktop .sf-page .strip-tab { height: 37px; gap: 5px; padding: 7px 8px; border-radius: 6px 6px 0 0; font-size: 13px; }
.is-desktop .sf-page .strip-tab.casino { margin-right: 4px; }
.is-desktop .sf-page .strip-tab .sport-icon { width: 20px; height: 20px; }
.is-desktop .sf-page .strip-tab.casino .ext { width: 12px; height: 12px; }
.is-desktop .sf-page .new-badge, .is-desktop .sf-page .live-badge { top: -8px; height: 13px; border-radius: 0 3px 3px 0; font-size: 10px; line-height: 13px; }
.is-desktop .sf-page .live-badge { padding-right: 3px; }
.is-desktop .sf-page .live-badge i { margin-right: 3px; padding: 0 2px; font-size: 7px; line-height: 13px; }
.is-desktop .sf-page .strip-search { flex-basis: 48px; }
.is-desktop .sf-page .strip-search svg { width: 26px; height: 26px; }
.is-desktop .sf-page .strip-search-form input { height: 33px; font-size: 13px; }
.is-desktop .sf-page .section-bar, .is-desktop .sf-page .match-list .list-title { justify-content: flex-start; height: 25px; padding: 0 10px; background: #243a48; border-bottom: 1px solid var(--sf-line-2); font-size: 12px; font-weight: 400; }
.is-desktop .sf-page .view-toggle { width: 300px; margin: 5px auto; padding: 1px; border-radius: 5px; }
.is-desktop .sf-page .view-toggle a { margin: 1px; padding: 8px 0; border-radius: 4px; font-size: 12px; }
.is-desktop .sf-page .competition-title { padding: 6px 10px; font-size: 12px; }
.is-desktop .sf-page .inplay-tabs { height: 47px; background: #eee; }
.is-desktop .sf-page .inplay-tabs nav { flex: 0 0 auto; display: flex; margin: 10px 0 10px 8px; border: 1px solid #3b5160; border-radius: 0; }
.is-desktop .sf-page .inplay-tabs nav a { width: 129px; height: 27px; border-left: 1px solid #3b5160; background: #fff; color: #3b5160; font-size: 13px; }
.is-desktop .sf-page .inplay-tabs nav a:first-child { border-left: 0; }
.is-desktop .sf-page .inplay-tabs nav a:hover { text-decoration: underline; background: #fff; }
.is-desktop .sf-page .inplay-tabs nav a.active { background: #3b5160; color: #fff; }
.is-desktop .sf-page .inplay-tabs .strip-search { display: none; }
.is-desktop .sf-page.inplay-page .match-list { margin: 0 8px 15px; border-bottom: 1px solid var(--sf-line-2); }
.is-desktop .sf-page .match-list-head { display: grid; align-items: center; height: 25px; padding-left: 10px; background: #ced5da; border-bottom: 1px solid #c7d1d6; color: var(--sf-text); font-size: 12px; }
.is-desktop .sf-page .match-list-head span { font-weight: 400; text-align: center; }
.is-desktop .sf-page .match-list-head, .is-desktop .sf-page .match-row { grid-template-columns: 1fr repeat(3, 114px) 36px; }
.is-desktop .sf-page .match-row { min-height: 40px; padding-left: 10px; }
.is-desktop .sf-page .match-row .mini-odds { display: grid; }
.is-desktop .sf-page .match-info { display: flex; flex-direction: column-reverse; justify-content: center; padding: 2px 0; }
.is-desktop .sf-page .match-name { margin: 0; gap: 5px; }
.is-desktop .sf-page .match-name strong { font-size: 12px; line-height: 1.2; }
.is-desktop .sf-page .match-meta { min-height: 16px; padding-left: 13px; gap: 3px; font-size: 12px; font-weight: 400; }
.is-desktop .sf-page .match-status.live { color: #508d0e; font-weight: 700; }
.is-desktop .sf-page .dot { width: 8px; height: 8px; border: 0; }
.is-desktop .sf-page .ico { width: 16px; height: 16px; border-radius: 3px; font-size: 11px; }
.is-desktop .sf-page .ico svg { width: 13px; height: 13px; }
.is-desktop .sf-page .virtual-tag { height: 14px; font-size: 9px; line-height: 12px; }
.is-desktop .sf-page .virtual-tag b { font-size: 10px; padding: 0 4px; margin-right: 2px; }
.is-desktop .sf-page .row-pin { width: 20px; height: 20px; border-width: 1px; }
.is-desktop .sf-page .row-pin svg { width: 12px; height: 12px; }
