body.live-page{
  margin:0;
  padding:0;
  min-height:100vh;
  color:#1f2d3d;
  background:
    linear-gradient(180deg,rgba(255,255,255,.80) 0%,rgba(255,255,255,.90) 100%),
    url("/assets/live/slide-background.jpg") center top/cover no-repeat;
  background-color:#eef2f7;
}
.live-wrap{max-width:769px;margin:0 auto;padding:0 0 8px}
.live-player-wrap{position:sticky;top:0;z-index:20;background:#000;width:100%;max-width:769px;margin:0 auto;aspect-ratio:16/9;min-height:220px;max-height:420px;overflow:hidden;box-sizing:border-box;border-radius:0;box-shadow:none}
.live-player-wrap .player-inner{width:100%;height:100%;position:absolute;inset:0;overflow:hidden}
.live-player-wrap #player-container-id{width:100%!important;height:100%!important;display:block;position:absolute;inset:0}
.live-player-wrap #vod-player-wrap{position:absolute;inset:0;width:100%;height:100%}
.live-player-wrap #vod-player-wrap .vod-native-player{width:100%!important;height:100%!important;min-width:100%;min-height:100%!important;object-fit:contain;display:block;background:#000}
.live-player-wrap #tv-program-player-wrap{position:absolute;inset:0;width:100%;height:100%;background:#000}
.live-player-wrap #tv-program-player-wrap .tv-program-iframe{width:100%;height:100%;border:0;display:block;background:#000}
.live-player-wrap .video-js,.live-player-wrap .tcp-skin,.live-player-wrap .vcp-player{position:absolute!important;inset:0;width:100%!important;min-width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;padding-top:0!important}
.live-player-wrap .video-js.vjs-16-9,.live-player-wrap .video-js.vjs-4-3,.live-player-wrap .video-js.vjs-fluid{height:100%!important;padding-top:0!important}
.live-player-wrap .vjs-tech,.live-player-wrap .vjs-poster,.live-player-wrap video{width:100%!important;min-width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain}
.live-player-wrap .video-js .vjs-tech,.live-player-wrap .video-js .vjs-poster{position:absolute;top:0;left:0;right:0;bottom:0;width:100%!important;height:100%!important}
.video-js.vjs-fullscreen,.video-js.vjs-fullscreen .vjs-tech,.video-js.vjs-fullscreen .vjs-poster,.video-js.vjs-fullscreen video{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
.video-js.vjs-fullscreen.vjs-16-9,.video-js.vjs-fullscreen.vjs-4-3,.video-js.vjs-fullscreen.vjs-fluid{height:100%!important;padding-top:0!important}
.fullscreen-container .video-js,.fullscreen-container .video-js .vjs-tech,.fullscreen-container .video-js video{width:100%!important;height:100%!important;object-fit:contain}
.tv-program-state{position:absolute;inset:0;z-index:24;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.tv-program-state[hidden]{display:none!important}
.tv-program-state-card{min-width:220px;max-width:min(80%,360px);padding:16px 18px;border-radius:14px;background:rgba(20,26,35,.92);color:#fff;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.tv-program-state.error .tv-program-state-card{background:rgba(58,23,23,.94)}
.tv-program-spinner{width:28px;height:28px;margin:0 auto 12px;border:3px solid rgba(255,255,255,.2);border-top-color:#fff;border-radius:50%;animation:tvspin .9s linear infinite}
.tv-program-state.error .tv-program-spinner{display:none}
.tv-program-state-text{font-size:14px;line-height:1.55;color:rgba(255,255,255,.92)}
.tv-program-retry-btn{margin-top:12px;padding:8px 16px;border:0;border-radius:999px;background:#4f84e3;color:#fff;font-size:13px;font-weight:700;cursor:pointer}
@keyframes tvspin{to{transform:rotate(360deg)}}

.live-player-wrap .live-access-state{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;margin:0;padding:20px 16px;text-align:center;border-radius:inherit;box-sizing:border-box;background:rgba(0,0,0,.82);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);color:#fff;font-size:16px;font-weight:700;line-height:1.55;text-shadow:0 2px 8px rgba(0,0,0,.75);pointer-events:auto}
.live-player-wrap .live-access-state.warn{color:#fecaca;background:rgba(60,20,20,.82)}
.live-channel-list .live-list-login-hint{display:block;color:#64748b;font-size:14px;line-height:1.6}
.live-channel-list .live-list-login-link{color:#122c68;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.live-channel-list .live-list-login-link:hover{color:#1d3b8b}
.live-player-wrap .live-access-state[hidden]{display:none!important}
.live-now-playing{margin:10px 10px 6px;padding:10px 12px;border:1px solid rgba(226,232,240,.92);border-radius:12px;background:rgba(255,255,255,.92);color:#334155;font-size:13px;font-weight:600;line-height:1.4;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}

.live-channel-section{margin:10px;padding:14px;background:rgba(255,255,255,.92);border-radius:12px;border:1px solid rgba(226,232,240,.92);box-shadow:none;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.live-channel-section .live-channel-header{display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;margin:0 0 12px;padding:0}
.live-channel-section .live-channel-header h3{font-size:13px;margin:0;color:#64748b;font-weight:700;letter-spacing:.3px;text-transform:uppercase}
.live-channel-section .live-channel-header .live-channel-toggle{font-size:14px;color:#64748b;transition:transform .25s ease}
.live-channel-section.collapsed .live-channel-header .live-channel-toggle{transform:rotate(-90deg)}
.live-channel-list{display:flex;flex-wrap:wrap;gap:10px;overflow:hidden;max-height:800px;transition:max-height .3s ease}
.live-channel-section.collapsed .live-channel-list{max-height:0!important;margin:0!important;padding:0!important;opacity:0}
.live-channel-item{position:relative;padding:12px 18px;background:#f8fafc;border-radius:12px;cursor:pointer;font-size:15px;font-weight:600;color:#334155;border:1px solid #dbe4ee;transition:all .25s ease}
.live-channel-item:hover{background:#eef2ff;border-color:#c7d2fe;transform:translateY(-1px)}
.live-channel-item.active{background:linear-gradient(135deg,#122c68 0%,#1d3b8b 100%);color:#fff;border-color:#122c68;box-shadow:0 4px 16px rgba(18,44,104,.18)}
.live-channel-item.active::before{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;background:#fbbf24;border-radius:50%;animation:pulse 1.5s ease infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.live-channel-section .muted{color:#94a3b8;font-size:14px}
.tv-program-panel{margin-top:14px;padding-top:12px;border-top:1px solid #e2e8f0}
.tv-program-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
.tv-program-panel-title{font-size:14px;font-weight:700;color:#1f2d3d;letter-spacing:.2px}
.tv-program-panel-date{font-size:12px;color:#64748b}
.tv-program-list{display:grid;gap:8px}
.tv-program-card{background:#fff;border:1px solid #dbe4ee;border-radius:10px;overflow:hidden;box-shadow:none}
.tv-program-card.skeleton{pointer-events:none}
.tv-program-card-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:36px;padding:3px 8px 3px 4px;background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);color:#2c2c2c;border:0;cursor:pointer;text-align:left}
.tv-program-card.expanded .tv-program-card-head{background:linear-gradient(180deg,#5d97f0 0%,#3f74ce 100%);color:#fff}
.tv-program-brand{display:flex;align-items:center;gap:8px;min-width:0}
.tv-program-logo-box{width:120px;display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;overflow:hidden}
.tv-program-logo{height:28px;max-width:120px;object-fit:contain;display:block;flex:0 0 auto}
.tv-program-logo.is-broken{opacity:0}
.tv-skeleton{display:inline-block;border-radius:6px;background:linear-gradient(90deg,#d5d9df 25%,#eef1f5 37%,#d5d9df 63%);background-size:400% 100%;animation:tvskeleton 1.2s ease infinite}
.tv-skeleton-logo{width:88px;height:24px}
.tv-skeleton-title{width:84px;height:14px}
.tv-skeleton-date{width:74px;height:12px}
.tv-program-name{font-size:14px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tv-program-card.expanded .tv-program-name{font-weight:700}
.tv-program-head-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.tv-program-meta{font-size:10px;opacity:.96;white-space:nowrap}
.tv-program-toggle{width:16px;text-align:center;font-size:10px;line-height:1;color:rgba(0,0,0,.55);transition:transform .2s ease}
.tv-program-card.expanded .tv-program-toggle{transform:rotate(180deg);color:#fff}
.tv-program-card-body{display:none;background:#f8fafc;border-top:1px solid #e2e8f0}
.tv-program-card.expanded .tv-program-card-body{display:block}
.tv-program-grid-wrap{padding:10px;background:#f8fafc}
.tv-program-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}
.tv-program-clip{height:38px;border:1px solid #aaaaaa;background:linear-gradient(180deg,#fbfbfb 0%,#e9e9e9 100%);border-radius:1px;color:#214c95;font-size:17px;font-weight:700;cursor:pointer;transition:background .15s ease,border-color .15s ease,box-shadow .15s ease}
.tv-program-clip:hover{border-color:#8e8e8e;box-shadow:inset 0 1px 0 rgba(255,255,255,.75)}
.tv-program-clip.active{background:linear-gradient(180deg,#4f84e3 0%,#2f60bd 100%);border-color:#24498b;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.tv-program-clip.disabled{opacity:.45;cursor:not-allowed}
.tv-program-remark{padding:0 10px 10px;color:#555;font-size:12px;line-height:1.45;background:#f8fafc}
.tv-program-remark p{margin:6px 0 0}
@keyframes tvskeleton{0%{background-position:100% 50%}100%{background-position:0 50%}}

.live-q-wrap{width:100%;max-width:769px;margin:0 auto;padding:0 0 70px;box-sizing:border-box}
.live-q-race-label{font-size:14px;margin-top:4px;margin-bottom:6px;color:#64748b;padding:0;box-sizing:border-box}
.live-q-block{width:100%;max-width:none;background:rgba(255,255,255,.94);border-radius:12px;border:1px solid rgba(226,232,240,.92);overflow:hidden;padding:0;box-sizing:border-box;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.live-q-block .q-fit-wrap,.live-q-block .q-fit-inner,.live-q-block #liveQodd{width:100%;max-width:100%;min-width:0;margin:0;padding:0;box-sizing:border-box}
.live-q-block .qin-odds-slide-container{position:relative;width:100%;max-width:100%;min-width:0;margin:0;padding:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.live-q-block .qin-odds-slide{width:100%;max-width:100%;min-width:0;margin:0;padding:0}
.live-q-block .qin-table{width:100%;max-width:100%;min-width:0;margin:0;padding:0;border-radius:0;overflow:hidden;background:#fff;border:0;border-bottom:1px solid #122c68;box-sizing:border-box}
.live-q-block .qin-odds-table{width:100%!important;max-width:100%!important;table-layout:fixed;font-size:clamp(9px,2.5vw,12px);border-collapse:collapse;margin:0;border:0}
.live-q-block .qin-odds-table td,.live-q-block .qin-odds-table th{padding:5px 2px;box-sizing:border-box;overflow:visible;word-break:normal;text-align:center;line-height:1.25}
.live-q-block .q-tables-gap{display:none;height:0;min-height:0;margin:0;padding:0}
.live-q-block .odds-legend{margin:0;padding:10px 0 14px;border-top:1px solid #e2e8f0;font-size:13px;color:#64748b;box-sizing:border-box}
.live-q-block .odds-legend .legend-label,.live-q-block .odds-legend .legend-item,.live-q-block .q-update-time{color:#64748b}
.live-q-block .q-refresh-btn{color:#64748b}
.live-q-block #liveQodd .muted{color:#94a3b8}
.live-q-block .legend-top-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.live-q-block .legend-row{display:flex;gap:16px;flex-wrap:wrap}
.live-q-block .legend-item{display:inline-flex;align-items:center;gap:4px}
.live-q-block .legend-dot{width:10px;height:10px;border-radius:2px}
.live-q-block .legend-dot.hot{background:#f03939}
.live-q-block .legend-dot.down20{background:#2aa217}
.live-q-block .legend-dot.down50{background:#993300}
.live-q-block .q-refresh-btn{background:none;border:none;cursor:pointer;font-size:16px;padding:2px}

.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:56px;background:#fff;border-top:1px solid #e2e8f0;display:flex;z-index:100;max-width:769px;margin:0 auto;box-sizing:border-box}
.bottom-nav a{flex:1;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;color:#64748b;text-decoration:none;transition:color .2s,background .2s}
.bottom-nav a:hover{color:#122c68}
.bottom-nav a.active{color:#122c68;background:#eef2ff}

@media (max-width:768px){
  .live-player-wrap{min-height:200px}
  .live-player-wrap #vod-player-wrap .vod-native-player{height:100%!important;min-height:100%!important}
  .live-player-wrap #tv-program-player-wrap .tv-program-iframe{height:100%!important}
  .live-player-wrap .video-js,.live-player-wrap .tcp-skin,.live-player-wrap .vcp-player,.live-player-wrap .vjs-tech,.live-player-wrap .vjs-poster,.live-player-wrap video{height:100%!important;max-height:100%!important}
  .live-now-playing{margin:10px 10px 6px;font-size:12px}
  .live-channel-section{margin:12px 10px;padding:14px}
  .live-channel-item{padding:10px 14px;font-size:14px}
  .tv-program-card-head{min-height:34px;padding:3px 8px 3px 4px}
  .tv-program-logo-box{width:108px}
  .tv-program-logo{height:25px;max-width:108px}
  .tv-program-name{font-size:14px}
  .tv-program-head-right{gap:6px}
  .tv-program-meta{font-size:10px}
  .tv-program-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .tv-program-clip{height:36px;font-size:16px}
  .live-q-block .qin-odds-table{font-size:clamp(8px,2.75vw,11px)}
  .live-q-block .qin-odds-table td,.live-q-block .qin-odds-table th{padding:4px 2px;min-height:24px}
  .live-q-wrap{padding:0 0 70px}
  .live-q-block .odds-legend{font-size:12px}
}
