:root {
    --bg-main: #09090b;
    --bg-card: #222222;
    --bg-button: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --border-color: #3f3f46;
    --accent-blue: #007bff;
    --accent-green: #25d366;
    --live-green: #00c853;
    --live-red: #ef4444;
    --card-border-left: #796fc7; 
    --text-red: #ffffff; 
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main); 
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
    position: relative; 
    z-index: 1; 
}

body::before {
    content: "";
    position: fixed;
    top: 40%; 
    left: 50%;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(121, 111, 199, 0.35) 0%, rgba(9, 9, 11, 0) 100%);
    z-index: -1; 
    pointer-events: none; 
    animation: breatheGlow 4s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
    0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.widget-container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sport-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sport-btn {
    background-color: var(--bg-button);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s ease;
}

.sport-btn.active {
    border-color: var(--text-main);
}

.day-filters {
    display: flex;
    background-color: var(--bg-button);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.day-btn {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, border 0.2s ease;
    border: 1px solid transparent;
}

.day-btn.active {
    color: var(--text-main);
    border: 1px solid var(--text-main);
    border-radius: 12px;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-left: 4px solid var(--card-border-left);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.match-card:hover {
    background-color: #2a2a2a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(121, 111, 199, 0.15); 
    border-color: #948be0; 
}

.match-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 30%;
}

.team img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
}

.score-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 40%;
}

.score-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background-color: #444;
    color: #fff;
    min-width: 40px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.status-badge.live {
    background-color: var(--live-green);
}

.status-badge.live-active {
    background-color: var(--live-red) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 0 rgba(239, 68, 64, 0.7);
    animation: livePulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 64, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 64, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 64, 0); }
}

.match-footer {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-left { width: 30%; display: flex; justify-content: center; align-items: center; gap: 4px; }
.footer-center { width: 40%; text-align: center; }
.footer-right { width: 30%; text-align: center; }

.social-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: none !important;
}

.social-btn svg { display: block; fill: currentColor; }
.telegram-btn { background-color: var(--accent-blue); }
.telegram-btn:hover { box-shadow: 0 8px 16px rgba(0, 123, 255, 0.4); }
.whatsapp-btn { background-color: var(--accent-green); }
.whatsapp-btn:hover { box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4); }

.empty-state {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.empty-icon { font-size: 28px; margin-bottom: 4px; }
.empty-state p { margin: 0; font-size: 15px; font-weight: 600; color: var(--text-main); }
.empty-state .empty-subtext { font-size: 12px; font-weight: 400; color: var(--text-muted); }

.hidden { display: none !important; }
