/* =================================== */
/* FIFA World Cup    */
/* =================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

*{box-sizing:border-box;margin:0;padding:0;}html,body{overflow-x:hidden;}

.wc-container{
    margin:0 auto;
    padding:16px 12px;
    font-family:'Inter',sans-serif;
    background:linear-gradient(135deg,#0a0e2a 0%,#111a3a 60%,#16213e 100%);
    color:#e0e0ff;
    min-height:100vh;
}
.wc-header{
    text-align:center;
    padding:20px 0 30px;
    border-bottom:1px solid #333355;
}
.wc-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
}
.wc-logo{
    width:80px;
    height:80px;
    border:3px solid #fff;
    border-radius:16px;
    background:#fff;
    padding:6px;
}
.wc-title h1{
    font-size:32px;
    font-weight:800;
    color:#ffffff;
    margin:0;
}
.wc-subtitle{
    margin:10px 0 0;
    color:#b0c4ff;
    font-size:15px;
}

/* 新增：与阿根廷页面一致的当前时间栏 */
.info-bar{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    align-items:center;
    margin:16px 0;
    padding:12px 16px;
    background:rgba(26,26,58,0.8);
    border:1px solid #333366;
    border-radius:12px;
    backdrop-filter:blur(6px);
    font-weight:700;
    font-size:14px;
    color:#e0e0ff;
    text-align:center;
}
.info-item{
    flex:1;
    min-width:200px;
}
.info-item::before{
    content:'';
    display:inline-block;
    width:6px;
    height:6px;
    background:#7df9ff;
    border-radius:50%;
    margin-right:8px;
    vertical-align:middle;
}

/* 过滤器 */
.wc-filters{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
    margin:20px 0;
    padding:0 8px;
}
.wc-filters select,
.wc-filters button{
    padding:10px 12px;
    border:1px solid #444477;
    background:#1a1a3a;
    color:#e0e0ff;
    border-radius:8px;
    font-size:14px;
}
.wc-btn{
    background:#3a4d8f;
    color:#fff;
    border:none;
    padding:10px 16px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
    font-size:14px;
    white-space:nowrap;
}
.wc-btn:hover{
    background:#5a6dc8;
}

/* 比赛容器 */
.wc-matches{
    display:block;
    width:100%;
    margin:0 auto;
}
.wc-matches-grid{
    display:grid;
    gap:16px;
    margin-bottom:8px;
    contain:layout style;
}
.wc-section-title{
    font-size:22px;
    font-weight:800;
    color:#7d8fff;
    text-align:center;
    margin:36px 0 20px;
}
.wc-section-separator{
    height:1px;
    background:#333366;
    margin:40px auto;
    width:80%;
    opacity:0.6;
}

/* 比赛卡片 */
.wc-card{
    background:#1a1a3a;
    border-radius:14px;
    padding:16px;
    border:1px solid #333366;
    contain:content;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.wc-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 20px rgba(0,0,0,0.4);
}
.wc-card-header{
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:#aaaacc;
    margin-bottom:8px;
    flex-wrap:wrap;
    gap:6px;
}
.wc-round{
    font-weight:bold;
    color:#ff00aa;
}
.wc-venue{
    color:#b0c4ff;
}

/* 新增：比赛时间（用户本地时区） */
.date.match-date{
    font-size:16px;
    font-weight:800;
    color:#7df9ff;
    text-align:center;
    background:rgba(0,0,0,0.3);
    padding:8px 12px;
    border-radius:10px;
    margin:12px 0;
    border:1px solid #333366;
}

/* 球队与比分 */
.wc-teams{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:16px 0;
    gap:12px;
}
.wc-team{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
    flex:1;
    min-width:0;
}
.wc-team img{
    width:48px;
    height:48px;
    border-radius:50%;
    border:2px solid #333366;
}
.wc-team span{
    font-weight:600;
    font-size:14px;
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    width:100%;
}
.wc-score{
    font-size:28px;
    font-weight:900;
    color:#7df9ff;
    background:#000022;
    padding:8px 16px;
    border-radius:10px;
    min-width:70px;
    text-align:center;
}

/* 比分详情 */
.wc-score-details{
    background:#0a0a1a;
    padding:8px 10px;
    border-radius:8px;
    margin:12px 0 8px;
    font-size:11px;
    color:#a0d8ff;
    line-height:1.5;
    text-align:center;
    min-height:18px;
}
.wc-score-details > div{margin:2px 0;}
.wc-score-details:empty{display:none;}

/* 比赛状态 - 关键调整 */
.wc-status{
    text-align:center;
    font-weight:bold;
    color:#ff00aa;
    font-size:14px;
    text-transform:uppercase;
    padding:8px 12px;
    background:rgba(255,0,170,0.15);
    border:1px solid #ff00aa;
    border-radius:10px;
    margin:12px 0;
}

/* 空状态 */
.wc-empty{
    text-align:center;
    color:#8888aa;
    font-style:italic;
    padding:40px;
    font-size:16px;
}

/* 自动刷新提示（与阿根廷页面一致） */
#auto-refresh-indicator{
    position:fixed;
    top:120px;
    right:12px;
    background:rgba(30,41,59,0.95);
    color:#ffffff;
    padding:10px 16px;
    border-radius:25px;
    font-size:13px;
    font-weight:600;
    z-index:9999;
    backdrop-filter:blur(10px);
    box-shadow:0 4px 12px rgba(0,0,0,0.4);
    display:flex;
    align-items:center;
    gap:10px;
    transition:all 0.4s ease;
    opacity:0;
    transform:translateY(-10px);
}
#auto-refresh-indicator.visible{
    opacity:1;
    transform:translateY(0);
}
.refresh-icon{
    font-size:18px;
    animation:spin 1.5s linear infinite paused;
}
.refresh-icon.spinning{
    animation-play-state:running;
}
@keyframes spin{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

/* 响应式调整 */
@media (max-width:768px){
    .wc-header{padding:20px 0 20px;}
    .wc-container{padding:12px 8px;}
    .wc-title h1{font-size:24px;}
    .wc-logo{width:60px;height:60px;}
    .info-bar{gap:8px;padding:10px;font-size:13px;}
    .wc-filters{grid-template-columns:1fr 1fr;gap:8px;}
    .wc-filters select,.wc-filters button{font-size:13px;padding:8px 6px;}
    .wc-btn{font-size:13px;padding:8px 10px;}
    .wc-matches-grid{gap:12px;}
    .wc-card{padding:14px;}
    .wc-team img{width:40px;height:40px;}
    .wc-team span{font-size:13px;}
    .wc-score{font-size:22px;padding:6px 12px;}
    .date.match-date{font-size:14px;padding:6px 10px;margin:10px 0;}
    .wc-status{font-size:13px;padding:6px 10px;margin:10px 0;}
    .wc-section-title{font-size:20px;margin:28px 0 16px;}
    .wc-section-separator{margin:36px auto;}
    #auto-refresh-indicator{
        top:80px;
        right:8px;
        font-size:12px;
        padding:8px 12px;
    }
}
@media (min-width:769px){
    .wc-container{padding:20px;}
    .wc-title h1{font-size:36px;}
    .wc-logo{width:88px;height:88px;}
    .wc-matches-grid{grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:20px;}
    .wc-card{padding:20px;}
    .wc-team img{width:52px;height:52px;}
    .wc-team span{font-size:15px;}
    .wc-score{font-size:30px;}
    .wc-filters{display:flex;flex-wrap:wrap;gap:12px;}
    .wc-filters select{flex:1;min-width:140px;}
    .wc-section-separator{margin:60px auto;}
}