/* Himki Matches — Frontend */

/* Widget */
.hm-widget-section { margin-bottom: 16px; }
.hm-widget-label {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hm-widget-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

/* Match Item */
.hm-match-item {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}
.hm-match-item.hm-home { border-left-color: #0066cc; }
.hm-match-item.hm-away { border-left-color: #cc0000; }
.hm-match-item.hm-live { border-left-color: #ff4444; background: #fff5f5; }

.hm-match-date { text-align: center; }
.hm-day { display: block; font-size: 18px; font-weight: 800; color: #333; line-height: 1; }
.hm-month { display: block; font-size: 11px; color: #999; }
.hm-weekday { display: block; font-size: 10px; color: #bbb; }

.hm-match-teams {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hm-team-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-logo { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; background: #fff; }

.hm-score {
    font-size: 16px;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 50px;
    justify-content: center;
}
.hm-score-dash { color: #999; }

.hm-time {
    font-size: 14px;
    font-weight: 700;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.hm-vs {
    font-size: 11px;
    font-weight: 700;
    color: #ccc;
    min-width: 50px;
    text-align: center;
}

.hm-match-tournament, .hm-match-tour {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #999;
    padding-left: 60px;
}

.hm-match-live-badge {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    color: #ff4444;
    padding-left: 60px;
}

.hm-match-link {
    grid-column: 1 / -1;
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    padding-left: 60px;
}
.hm-match-link:hover { text-decoration: underline; }

/* Live dot */
.hm-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    animation: hm-pulse 1.5s ease infinite;
}
@keyframes hm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hm-live-header {
    font-size: 14px;
    font-weight: 700;
    color: #ff4444;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Shortcode — Calendar & Results */
.hm-calendar, .hm-results, .hm-live-matches {
    max-width: 700px;
    margin: 20px auto;
}

.hm-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid transparent;
    transition: transform 0.2s;
}
.hm-card:hover { transform: translateY(-2px); }
.hm-card.hm-home { border-left-color: #0066cc; }
.hm-card.hm-away { border-left-color: #cc0000; }
.hm-card.hm-live-card { border-left-color: #ff4444; background: #fff5f5; }

.hm-card-date {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 10px;
}
.hm-card-time { color: #667eea; margin-top: 2px; }
.hm-card-live { color: #ff4444; font-weight: 700; margin-top: 2px; display: flex; align-items: center; gap: 4px; }

.hm-card-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.hm-card-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}
.hm-card-team:first-child { flex: 1; text-align: right; justify-content: flex-end; }
.hm-card-team:last-child { flex: 1; }
.hm-card-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }
.hm-card-score {
    font-size: 22px;
    font-weight: 800;
    color: #333;
    min-width: 60px;
    text-align: center;
}
.hm-card-vs {
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    min-width: 60px;
    text-align: center;
}

.hm-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

/* Next Match */
.hm-next-match {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid #0066cc;
}
.hm-next-match.hm-away { border-top-color: #cc0000; }
.hm-next-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.hm-next-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.hm-next-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}
.hm-next-logo { width: 56px; height: 56px; border-radius: 50%; object-fit: contain; }
.hm-next-vs { font-size: 18px; font-weight: 800; color: #ccc; }
.hm-next-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}
.hm-next-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s;
}
.hm-next-btn:hover { transform: translateY(-1px); color: #fff; }

/* Standings */
.hm-standings-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    margin: 20px 0;
}
.hm-standings-title {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0066cc, #004499);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.hm-standings-scroll { overflow-x: auto; }
.hm-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.hm-standings-table th {
    padding: 10px 12px;
    background: #f8f9fa;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}
.hm-standings-table td {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.hm-standings-table .hm-col-team {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-standings-table th.hm-col-team { text-align: left; }
.hm-standings-logo { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.hm-team-fullname { font-weight: 600; }
.hm-col-pos { font-weight: 700; width: 30px; }
.hm-col-pts { font-weight: 800; color: #333; }
.hm-positive { color: #198754; }
.hm-negative { color: #dc3545; }

.hm-row-himki {
    background: #e8f4ff !important;
    font-weight: 700;
}
.hm-row-himki td { border-bottom-color: #b3d7ff; }

.hm-empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .hm-match-item { grid-template-columns: 40px 1fr; }
    .hm-match-teams { flex-direction: column; gap: 4px; }
    .hm-card-teams { flex-direction: column; gap: 8px; }
    .hm-card-team:first-child { justify-content: center; }
    .hm-next-teams { flex-direction: column; gap: 12px; }
    .hm-team-name { font-size: 12px; }
}
