/* =================================== */
/* UEFA European Championship */
/* =================================== */

@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;
}

.euro-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;
}

.euro-header {
    text-align: center;
    padding: 20px 0 30px;
    border-bottom: 1px solid #333355;
}

.euro-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.euro-logo {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 16px;
    background: #fff;
    padding: 6px;
}

.euro-title h1 {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.euro-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;
}

/* 过滤器 */
.euro-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
    padding: 0 8px;
}

.euro-filters select,
.euro-filters button {
    padding: 10px 12px;
    border: 1px solid #444477;
    background: #1a1a3a;
    color: #e0e0ff;
    border-radius: 8px;
    font-size: 14px;
}

.euro-btn {
    background: #3a4d8f;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.euro-btn:hover {
    background: #5a6dc8;
}

/* 比赛容器 */
.euro-matches {
    display: block;
    width: 100%;
    margin: 0 auto;
}

.euro-matches-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 8px;
    contain: layout style;
}

.euro-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #7d8fff;
    text-align: center;
    margin: 36px 0 20px;
}

.euro-section-separator {
    height: 1px;
    background: #333366;
    margin: 40px auto;
    width: 80%;
    opacity: 0.6;
}

/* 比赛卡片 */
.euro-card {
    background: #1a1a3a;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #333366;
    contain: content;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.euro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.euro-card-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #aaaacc;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.euro-round {
    font-weight: bold;
    color: #ff00aa;
}

.euro-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;
}

/* 球队与比分 */
.euro-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0;
    gap: 12px;
}

.euro-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.euro-team img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #333366;
}

.euro-team span {
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.euro-score {
    font-size: 28px;
    font-weight: 900;
    color: #7df9ff;
    background: #000022;
    padding: 8px 16px;
    border-radius: 10px;
    min-width: 70px;
    text-align: center;
}

/* 比分详情 */
.euro-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;
}

.euro-score-details > div {
    margin: 2px 0;
}

.euro-score-details:empty {
    display: none;
}

/* 比赛状态 */
.euro-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;
}

/* 空状态 */
.euro-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) {
    .euro-header { padding: 20px 0 20px; }
    .euro-container { padding: 12px 8px; }
    .euro-title h1 { font-size: 24px; }
    .euro-logo { width: 60px; height: 60px; }
    .info-bar { gap: 8px; padding: 10px; font-size: 13px; }
    .euro-filters { grid-template-columns: 1fr 1fr; gap: 8px; }
    .euro-filters select, .euro-filters button { font-size: 13px; padding: 8px 6px; }
    .euro-btn { font-size: 13px; padding: 8px 10px; }
    .euro-matches-grid { gap: 12px; }
    .euro-card { padding: 14px; }
    .euro-team img { width: 40px; height: 40px; }
    .euro-team span { font-size: 13px; }
    .euro-score { font-size: 22px; padding: 6px 12px; }
    .date.match-date { font-size: 14px; padding: 6px 10px; margin: 10px 0; }
    .euro-status { font-size: 13px; padding: 6px 10px; margin: 10px 0; }
    .euro-section-title { font-size: 20px; margin: 28px 0 16px; }
    .euro-section-separator { margin: 36px auto; }
    #auto-refresh-indicator { top: 80px; right: 8px; font-size: 12px; padding: 8px 12px; }
}

@media (min-width: 769px) {
    .euro-container { padding: 20px; }
    .euro-title h1 { font-size: 36px; }
    .euro-logo { width: 88px; height: 88px; }
    .euro-matches-grid { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 20px; }
    .euro-card { padding: 20px; }
    .euro-team img { width: 52px; height: 52px; }
    .euro-team span { font-size: 15px; }
    .euro-score { font-size: 30px; }
    .euro-filters { display: flex; flex-wrap: wrap; gap: 12px; }
    .euro-filters select { flex: 1; min-width: 140px; }
    .euro-section-separator { margin: 60px auto; }
}