/* --- 第一層：大框鎖定 (Team Info 質感) --- */
.hero-card-frame {
    display: flex;
    border: 4px solid rgb(5, 71, 0);
    border-radius: 12px;
    background: #fff;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hero-left-portrait {
    width: 210px; /* 520 的一半 */
    height: 323px; /* 800 的一半 */
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

#playerCanvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-right-content {
    flex: 1;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
}

/* 上格：巨型字體 */
.hero-top-identity {
    border-bottom: 2px solid rgb(5, 71, 0);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.big-jersey-num {
    font-size: 48px;
    font-weight: 900;
    color: #888;
    margin-right: 15px;
}

.big-player-name {
    font-size: 42px;
    font-weight: 900;
    color: rgb(5, 71, 0);
}

/* 下格：網格資料 */
.hero-bottom-details {
    width: 100%;
    margin-top: 15px;
}

.detail-item {
    font-size: 18px;
    display: flex;
    align-items: center;
}

.detail-item .label {
    color: #888;
    width: 100px;
}

.detail-item .val {
    font-weight: bold;
    color: #333;
}

/* --- 第二層：雷達圖與進度條 (無框) --- */
.stats-layer-container {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.stats-left-radar {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
}

.stats-right-progress {
    flex: 1;
    padding-left: 50px;
}

/* --- 第三層：財務垂直置中 --- */
.finance-layer-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    border-top: 1px dashed #ddd;
}

.finance-row {
    font-size: 20px;
    margin: 8px 0;
    color: #555;
}

.finance-row .money {
    font-weight: 900;
    color: #d9534f;
    font-size: 24px;
}

.finance-row .highlight {
    font-weight: bold;
    color: #333;
}

/* ==========================================
   [佈局鎖定] 確保左右並列，空間不被擠壓
   ========================================== */
/* 🌟 強制左右並列佈局 */
.bh-page-layout {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0px !important;
    max-width: 1600px;
}

.player-display-main {
    flex: 1 !important;
    min-width: 0 !important;
}


/* ==========================================
   [管理面板] 100% 複刻 team_info 樣式
   ========================================== */

/* 1. 強制鎖定外殼 (確保背景色與尺寸正確) */
div#admin-card {
    background-color: #e7e7e7 !important; 
    border-radius: 8px !important;
    padding: 12px !important;
    margin-left: 15px !important;
    width: 130px !important;
    min-width: 130px !important;
    display: block !important;
    flex-shrink: 0 !important;
    overflow: visible !important; 
    position: relative !important; 
    z-index: 1 !important;
}

/* 2. 標題鎖定 (完美負邊距填滿灰底) */
.admin-title {
    background-color: #aaaaaa !important;
    color: #333 !important;
    padding: 10px 12px !important;
    margin: -12px -12px 12px -12px !important; 
    font-size: 16px !important;
    font-weight: bold !important;
    display: block !important;
    text-align: center;
    border-radius: 8px 8px 0 0 !important;
}

/* 3. 強制選單區域透明與間距歸零 */
.admin-links {
    background: transparent !important;
    margin: 10px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
}

.admin-links li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* 4. 連結文字樣式 (蓋掉預設藍色與底線) */
.admin-links li a {
    display: block !important;
    padding: 8px 0 !important;
    color: #444 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* 5. 綠色箭頭 (保留原本的純 CSS 高清畫法) */
.admin-links li a::before {
    content: "" !important;
    display: inline-block !important;
    width: 0 !important;
    height: 0 !important;
    border-style: solid !important;
    border-width: 5px 0 5px 8px !important;
    border-color: transparent transparent transparent #004d00 !important;
    margin-right: 10px !important;
}

/* 6. 滑鼠互動效果 */
.admin-links li a:hover {
    transform: translateX(5px);
    transition: all 0.2s ease !important;
}

/* 讓雷達圖容器支援絕對定位 */
.stats-left-radar {
    position: relative;
}

/* 戰爭迷霧遮罩層 */
.fog-of-war-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* 半透明背景 */
    backdrop-filter: blur(5px);            /* 毛玻璃效果 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;                  /* 讓滑鼠點擊可以穿透 */
    border-radius: 10px;
}

.fog-of-war-text {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* 英雄區底部的雙欄容器 */
.details-split-container {
    display: flex;
    width: 100%;
    gap: 20px;
    margin-top: -15px; /* 🌟 加入這一行，數值越大往上移越多 */
}

/* 每一欄各佔 50% */
.details-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 讓每一項內容保持整齊 */
.details-col .detail-item {
    display: flex;
    padding: 6px 0; /* 稍微增加一點內距，讓畫面呼吸 */
    border-bottom: 0px solid rgba(0,0,0,0.05); /* 淡淡的水平線 */
}

.details-col .detail-item:last-child {
    border-bottom: none;
}

/* 標籤樣式調整 */
.details-col .label {
    color: #666;
    font-size: 18px;
}

.details-col .val {
    font-weight: bold;
    color: #333;
    font-size: 18px;
}

/* 進度條容器清單 */
.progress-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-item {
    width: 100%;
}

/* 標籤列：名稱與數值分居左右 */
.progress-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}

.progress-item .attr-name {
    font-size: 14px;
    color: #666;
    font-weight: bold;
}

.progress-item .attr-val {
    font-size: 16px;
    font-weight: 900;
    color: #333;
}

/* 進度條外殼 */
.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

/* 進度條填滿 (動態顏色) */
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out; /* 增加載入時的動態感 */
}

/* 遮罩：保持 fixed 確保不會跑到底部 */
.bh-modal-overlay {
    position: fixed !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none; 
    justify-content: center;
    align-items: center;
}

/* 彈窗主體美化 */
.bh-modal-window {
    background: #fff;
    width: 340px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.bh-modal-header {
    background: #f8f8f8;
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.bh-modal-body { padding: 20px; }
.bh-modal-footer {
    padding: 15px;
    text-align: right;
    background: #f8f8f8;
    border-top: 1px solid #eee;
}