/* =========================================
   SKYEXCH PLATFORM DESIGN SYSTEM v6
   ========================================= */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:13px;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;background:#f0f2f5;color:#333;min-height:100vh}
a{text-decoration:none;color:inherit}
img{border:0;vertical-align:middle}
input,button,select{font-family:inherit;font-size:13px}

/* =========== PLATFORM HEADER =========== */
.ph{background:#1a1a1a;height:58px;display:flex;align-items:center;padding:0 10px;position:sticky;top:0;z-index:1000;box-shadow:0 2px 6px rgba(0,0,0,.5)}
.ph-inner{display:flex;align-items:center;gap:8px;width:100%}
.ph-logo{display:flex;align-items:center;gap:7px;min-width:140px;text-decoration:none}
.ph-logo-icon{width:42px;height:42px;background:linear-gradient(135deg,#f0c527 60%,#e8a000);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;color:#111;flex-shrink:0}
.ph-logo-text{color:#fff;font-size:17px;font-weight:900;letter-spacing:2px;line-height:1}
.ph-search{flex:0 0 240px;margin:0 8px}
.ph-search input{width:100%;height:34px;padding:0 12px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:3px;color:#fff;font-size:13px;outline:none}
.ph-search input::placeholder{color:rgba(255,255,255,.45)}
.ph-auth{display:flex;align-items:center;gap:5px;margin-left:auto}
.ph-auth input{height:32px;padding:0 9px;background:rgba(255,255,255,.92);border:1px solid #999;border-radius:3px;font-size:13px;width:108px;outline:none;color:#333}
.ph-captcha{height:32px;padding:0 10px;background:rgba(255,255,255,.92);border:1px solid #999;border-radius:3px;display:flex;align-items:center;gap:8px;color:#333;white-space:nowrap}
.ph-captcha .cap-num{font-size:18px;font-weight:900;letter-spacing:3px;color:#111}
.btn-login{height:34px;padding:0 18px;background:#d0021b;color:#fff;border:none;border-radius:3px;font-weight:700;font-size:13px;cursor:pointer;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;text-decoration:none}
.btn-login:hover{background:#b00219}
.btn-signup{height:34px;padding:0 16px;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:3px;font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;text-decoration:none}
.btn-signup:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.7)}

/* =========== PLATFORM NAV =========== */
.pn{background:#f0c527;display:flex;align-items:stretch;height:40px;position:sticky;top:58px;z-index:999;border-bottom:2px solid #d4a800}
.pn-tabs{display:flex;height:100%;overflow-x:auto;scrollbar-width:none}
.pn-tabs::-webkit-scrollbar{display:none}
.pn-tab{display:inline-flex;align-items:center;gap:5px;padding:0 15px;height:100%;font-weight:700;font-size:13px;color:#111;border-right:1px solid rgba(0,0,0,.12);cursor:pointer;white-space:nowrap;transition:background .1s,color .1s;text-decoration:none}
.pn-tab:first-child{border-left:1px solid rgba(0,0,0,.12)}
.pn-tab:hover,.pn-tab.active{background:#1a1a1a;color:#fff}
.pn-badge{background:#d0021b;color:#fff;font-size:9px;font-weight:800;padding:1px 4px;border-radius:8px;min-width:16px;text-align:center;display:inline-block;line-height:16px}
.pn-right{display:flex;align-items:center;gap:14px;margin-left:auto;padding:0 12px;flex-shrink:0}
.pn-tz{font-size:12px;color:#333;font-weight:600;white-space:nowrap}
.pn-oc{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#111;white-space:nowrap;cursor:pointer}
.pn-oc input[type=checkbox]{width:32px;height:16px;accent-color:#1a1a1a;cursor:pointer}
.pn-setting{font-size:13px;font-weight:700;color:#111;cursor:pointer;display:flex;align-items:center;gap:4px}
.pn-setting:hover{color:#d0021b}

/* =========== 3-COLUMN LAYOUT =========== */
.platform-layout{display:grid;grid-template-columns:232px 1fr 258px;min-height:calc(100vh - 98px);align-items:start;background:#f0f2f5;gap:0}
.platform-layout-home{display:block;min-height:calc(100vh - 98px)}

/* =========== LEFT SIDEBAR =========== */
.ls{background:#fff;border-right:1px solid #ddd;min-height:calc(100vh - 98px)}
.ls-head{background:#1a1a1a;color:#fff;padding:10px 14px;font-weight:700;font-size:14px}
.ls-all{display:block;padding:9px 14px;font-size:13px;font-weight:600;color:#333;border-bottom:1px solid #eee;cursor:pointer}
.ls-all:hover{background:#f5f5f5}
.ls-sport{background:#1a1a1a;color:#fff;display:block;padding:9px 14px 9px 14px;font-weight:700;font-size:13px}
.ls-item{display:block;padding:7px 14px 7px 18px;font-size:12px;color:#444;border-bottom:1px solid #f5f5f5;cursor:pointer;line-height:1.4}
.ls-item:hover{color:#1a73e8;background:#f8f9ff}
.ls-item.active{background:#f0c527;color:#111;font-weight:700}

/* =========== MAIN CONTENT =========== */
.mc{background:#fff;border-right:1px solid #eee;overflow:hidden}
.sport-banner{width:100%;height:200px;overflow:hidden;background:#111;display:block;line-height:0}
.sport-banner img{width:100%;height:100%;object-fit:cover;object-position:center top}
.sport-banner-css{width:100%;height:200px;display:flex;align-items:center;justify-content:center;font-size:48px}

/* Highlights header */
.sh-bar{background:#f0c527;padding:8px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d4a800}
.sh-bar h2{font-size:14px;font-weight:700;color:#111;margin:0}
.sh-view{display:flex;align-items:center;gap:8px;font-size:13px;color:#333;font-weight:600}
.sh-view select{padding:3px 8px;font-size:12px;border:1px solid #aaa;border-radius:3px;background:#fff;cursor:pointer}

/* Odds columns header */
.odds-header{display:flex;justify-content:flex-end;padding:4px 40px 4px 0;background:#e5edf5;border-bottom:1px solid #d5e2ee}
.odds-header-inner{display:grid;grid-template-columns:repeat(3,42px);gap:2px;text-align:center}
.odds-header-inner span{font-weight:700;font-size:12px;color:#333;padding:2px}

/* Match rows */
.match-row{display:flex;align-items:center;padding:7px 10px;border-bottom:1px solid #efefef;gap:8px;background:#fff;transition:background .1s}
.match-row:hover{background:#fafbff}
.match-info{flex:1;min-width:0}
.match-name{display:block;font-size:13px;color:#1a73e8;font-weight:500;margin-bottom:4px;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.match-name:hover{text-decoration:underline}
.match-tags{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.tag{font-size:10px;font-weight:700;padding:1px 5px;border-radius:2px;display:inline-flex;align-items:center;line-height:16px}
.tag-inplay{color:#00a651;font-weight:800;background:none;padding:0}
.tag-e{background:#1a73e8;color:#fff;border-radius:3px;font-size:9px}
.tag-sport{background:#e8f0fe;color:#1a73e8;border:1px solid #c5d8fc;font-size:10px}
.tag-p{background:#f57c00;color:#fff;border-radius:50%;width:15px;height:15px;justify-content:center;font-size:9px;padding:0;flex-shrink:0}
.tag-f{background:#673ab7;color:#fff;border-radius:50%;width:15px;height:15px;justify-content:center;font-size:9px;padding:0;flex-shrink:0}
.live-dot{width:8px;height:8px;background:#00a651;border-radius:50%;display:inline-block;margin-right:3px;animation:ldot 1.3s ease infinite}
@keyframes ldot{0%,100%{box-shadow:0 0 0 0 rgba(0,166,81,.5)}50%{box-shadow:0 0 0 5px rgba(0,166,81,0)}}
.match-odds-area{display:flex;align-items:center;gap:6px;flex-shrink:0}
.pte{font-size:11px;color:#999;white-space:nowrap}
.odds-grid{display:grid;grid-template-columns:repeat(3,42px);gap:2px}
.odds-btn{height:38px;width:42px;border:none;cursor:pointer;font-weight:700;font-size:13px;color:#333;border-radius:2px;transition:opacity .15s,transform .1s;display:flex;align-items:center;justify-content:center}
.odds-btn:hover{opacity:.75;transform:scale(1.04)}
.odds-btn.back{background:#72bbef}
.odds-btn.lay{background:#fac9d1}
.pin-btn{width:24px;height:24px;background:none;border:1px solid #ccc;border-radius:50%;cursor:pointer;font-size:14px;display:flex;align-items:center;justify-content:center;color:#999;flex-shrink:0}
.pin-btn:hover{border-color:#999;color:#555}

/* =========== IN-PLAY TABS =========== */
.ip-tabs{display:flex;background:#fff;border-bottom:2px solid #f0c527}
.ip-tab{padding:10px 28px;font-weight:700;font-size:13px;cursor:pointer;color:#666;border-bottom:3px solid transparent;margin-bottom:-2px;transition:color .15s}
.ip-tab:hover{color:#333}
.ip-tab.active{color:#111;border-bottom-color:#f0c527}
.sport-section{margin-bottom:2px}
.section-head{background:#e0e8f0;padding:8px 14px;font-weight:700;font-size:13px;color:#333;display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}
.section-collapse{background:none;border:1px solid #aaa;border-radius:3px;padding:0 6px;cursor:pointer;font-size:14px;color:#555;line-height:18px}

/* =========== RIGHT SIDEBAR =========== */
.rs{background:#fff;border-left:1px solid #ddd;min-height:calc(100vh - 98px)}
.bs-head{background:#1a1a1a;color:#fff;padding:10px 14px;font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:space-between}
.bs-min{background:none;border:1px solid #666;color:#ccc;padding:0 6px;cursor:pointer;border-radius:2px;font-size:13px;line-height:20px}
.bs-body{padding:20px 14px;color:#666;font-size:13px;line-height:1.7;text-align:center}
.bs-cta{margin-top:20px;text-align:center}
.bs-cta a{display:block;background:#f0c527;color:#111;font-weight:700;padding:10px;border-radius:4px;font-size:13px;transition:background .2s}
.bs-cta a:hover{background:#d4a800}
.bs-tip{margin-top:12px;font-size:11px;color:#aaa;line-height:1.5}

/* =========== HOMEPAGE GAME CARDS =========== */
.home-wrap{background:#f0f2f5}
.banner-link{display:block;line-height:0}
.banner-link img{width:100%;height:auto;display:block}
.games-section{padding:14px 14px 0}
.games-row-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.games-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:10px}
.game-card{position:relative;border-radius:6px;overflow:hidden;cursor:pointer;line-height:0;background:#111;border:1px solid rgba(255,255,255,.08);transition:transform .2s,box-shadow .2s}
.game-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.25)}
.game-card img{width:100%;height:170px;object-fit:cover;display:block}
.game-card-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(transparent,rgba(0,0,0,.8));padding:20px 10px 8px}
.game-card-name{color:#fff;font-weight:800;font-size:15px;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.game-card-play{background:#f0c527;color:#111;font-weight:800;font-size:12px;padding:5px 12px;clip-path:polygon(8px 0,100% 0,100% 100%,0 100%)}
.game-card-live{position:absolute;top:8px;right:8px;background:rgba(255,255,255,.95);border-radius:3px;padding:2px 8px;display:flex;align-items:center;gap:5px}
.live-badge-dot{width:8px;height:8px;background:#d0021b;border-radius:50%;animation:ldot 1s ease infinite}
.live-badge-text{font-size:11px;font-weight:800;color:#d0021b}
.live-counts{position:absolute;top:8px;right:8px;background:rgba(0,0,0,.75);border-radius:4px;padding:4px 8px}
.live-counts div{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#fff;font-size:11px;font-weight:600}
.live-counts .cnt-num{background:#1a73e8;color:#fff;border-radius:3px;padding:0 5px;font-size:11px;min-width:18px;text-align:center}

/* =========== SCROLLBAR =========== */
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-track{background:#f0f0f0}
::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}
::-webkit-scrollbar-thumb:hover{background:#aaa}

/* =========== FOOTER =========== */
.platform-footer{background:#1a1a1a;color:#888;padding:14px 20px;text-align:center;font-size:12px;border-top:2px solid #f0c527}
.platform-footer a{color:#f0c527;margin:0 8px}
.platform-footer a:hover{color:#fff}
.platform-footer p{margin:4px 0}

/* =========== RESPONSIVE =========== */
@media(max-width:1100px){
  .platform-layout{grid-template-columns:200px 1fr 220px}
}
@media(max-width:900px){
  .platform-layout{grid-template-columns:1fr}
  .ls,.rs{display:none}
  .ph-auth{display:none}
  .games-row-2,.games-row-3{grid-template-columns:1fr 1fr}
  .ph-search{flex:1}
}
@media(max-width:560px){
  .games-row-3{grid-template-columns:1fr}
  .ph-logo-text{display:none}
  .pn-tab{padding:0 10px;font-size:12px}
}
