/* ── 全站取消 input focus 黑框 ── */
input:focus, select:focus, textarea:focus, a:focus, button:focus { outline: none !important; box-shadow: none !important; }

/* ── BigBanner ── */
#blk_adMain ul.showbox li a span { background-image: none; }
#blk_adMain .showbox { position: relative; overflow: hidden; }
/* 第一個 li 保留 in-flow 撐高容器，其餘絕對定位疊在上面 */
#blk_adMain .showbox li { position: absolute; top: 0; left: 0; width: 100%; }
#blk_adMain .showbox li:first-child { position: relative; }

/* ── GameList – 讓 index.css + jquery.GameList.js 控制輪播，只補不足之處 ── */
/* #pagenum 需 overflow:hidden 才能裁切右側的離屏頁 */
#blk_gameList { width: 630px; position: relative; }
#blk_gameList #pagenum { overflow: hidden; }
#blk_gameList ul.games li { position: relative; }
#blk_gameList ul.games .name { max-width: 134px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#blk_gameList .gamePage { display: flex !important; justify-content: center !important; align-items: center !important; visibility: visible !important; opacity: 1 !important; }
#blk_gameList .gamePage a { display: inline-block !important; visibility: visible !important; }
#blk_gameList ul.games li .mask { z-index: 2 !important; pointer-events: none; }
#blk_gameList ul.games li:hover { z-index: 100 !important; }
#blk_gameList ul.games li:hover .mask { border-color: #1db3eb !important; }
#blk_gameList ul.games li .otherLink { z-index: 1000 !important; }


/* ── JS Audio Player (replaces Flash SWF) ── */
.js-player {
    display: flex;
    align-items: center;
    width: 175px;
    height: 20px;
    background: linear-gradient(to bottom, #e4e4e4, #f2f2f2);
    box-sizing: border-box;
    padding: 0 4px;
    gap: 4px;
}
.js-player .play-btn {
    background: none;
    border: none;
    color: #999999;
    cursor: pointer;
    font-size: 9px;
    padding: 0;
    width: 12px;
    flex-shrink: 0;
    line-height: 1;
}
.js-player .play-btn:hover { color: #000000; }
.js-player .progress-bar {
    flex: 1;
    height: 6px;
    background: #cccccc;
    cursor: pointer;
    position: relative;
}
.js-player .progress-fill {
    height: 100%;
    width: 0%;
    background: #999999;
    pointer-events: none;
}
.js-player .vol-bar {
    width: 28px;
    height: 6px;
    background: #cccccc;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}
.js-player .vol-fill {
    height: 100%;
    width: 80%;
    background: #999999;
    pointer-events: none;
}
.js-player .progress-bar:hover .progress-fill,
.js-player .vol-bar:hover .vol-fill { background: #666666; }

/* ── 首頁公告 blk_system 連結顏色（覆蓋 index.css 的 #333） ── */
#blk_system ul li a:link, #blk_system ul li a:visited,
#blk_system ul li a.ontop:link, #blk_system ul li a.ontop:visited { color: #5A8400; }

/* ── Vertical banners (right sidebar) ── */
#blk_adVertical a { display: block; }
#blk_adVertical a span { display: none; }
#blk_adVertical img { display: block; }

/* ── Footer: clear below sidebar + mainContent floats ── */
#footer { clear: both; }

/* ── KMNews images ── */
#blk_news .mainImg { overflow: hidden; }
#blk_news .mainImg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── FB 粉專：官方 Page Plugin（fb-page），樣式由 FB SDK 控制 ── */
#blk_fbFans { width: 175px; min-height: 250px; }
